@smartspace/api-client 0.1.0-pr.976.50e1dfd → 0.1.0-pr.976.ba8c32f
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/models/accessAccess.d.ts +11 -0
- package/dist/generated/chat/models/aiIModelProperty.d.ts +6 -0
- package/dist/generated/chat/models/aiModel.d.ts +7 -0
- package/dist/generated/chat/models/aiModelSummary.d.ts +5 -0
- package/dist/generated/chat/models/commentComment.d.ts +9 -0
- package/dist/generated/chat/models/commentCreateComment.d.ts +7 -0
- package/dist/generated/chat/models/connectorsConnectorSummary.d.ts +6 -0
- package/dist/generated/chat/models/filesFile.d.ts +12 -0
- package/dist/generated/chat/models/filesFileUriResponse.d.ts +7 -0
- package/dist/generated/chat/models/mentionsMention.d.ts +7 -0
- package/dist/generated/chat/models/notificationsNotification.d.ts +9 -0
- package/dist/generated/chat/models/notificationsPagedNotifications.d.ts +4 -0
- package/dist/generated/chat/models/usersAppUser.d.ts +5 -0
- package/dist/generated/chat/models/workSpaceInfo.d.ts +6 -0
- package/dist/generated/chat/models/workSpacesWorkSpace.d.ts +9 -0
- package/dist/generated/chat/zod.js +26 -26
- package/dist/generated/config/models/accessAccess.d.ts +11 -0
- package/dist/generated/config/models/accessAccessWorkSpace.d.ts +6 -0
- package/dist/generated/config/models/accessCreateAccess.d.ts +4 -0
- package/dist/generated/config/models/activitiesActivityWorkSpace.d.ts +8 -0
- package/dist/generated/config/models/aiIModelProperty.d.ts +6 -0
- package/dist/generated/config/models/aiModel.d.ts +7 -0
- package/dist/generated/config/models/aiModelSummary.d.ts +5 -0
- package/dist/generated/config/models/blocksBlockInfo.d.ts +6 -0
- package/dist/generated/config/models/blocksBlockInterface.d.ts +9 -0
- package/dist/generated/config/models/blocksBlockSet.d.ts +7 -0
- package/dist/generated/config/models/blocksInputPinInterface.d.ts +6 -0
- package/dist/generated/config/models/blocksOutputPinInterface.d.ts +6 -0
- package/dist/generated/config/models/blocksPortInterface.d.ts +5 -0
- package/dist/generated/config/models/blocksStateInterface.d.ts +4 -0
- package/dist/generated/config/models/blocksUsedInWorkspaceRef.d.ts +5 -0
- package/dist/generated/config/models/connectorsConnector.d.ts +7 -0
- package/dist/generated/config/models/connectorsConnectorSummary.d.ts +6 -0
- package/dist/generated/config/models/connectorsCreateConnector.d.ts +5 -0
- package/dist/generated/config/models/connectorsResolvedConnector.d.ts +9 -0
- package/dist/generated/config/models/connectorsUpdateConnector.d.ts +9 -0
- package/dist/generated/config/models/dataSetsCreateDataSet.d.ts +6 -0
- package/dist/generated/config/models/dataSetsCreateDataSetContainer.d.ts +6 -0
- package/dist/generated/config/models/dataSetsDataSet.d.ts +14 -0
- package/dist/generated/config/models/dataSetsDataSetProperty.d.ts +5 -0
- package/dist/generated/config/models/dataSetsSetDataSetScoping.d.ts +6 -0
- package/dist/generated/config/models/dataSetsUpdateDataSet.d.ts +6 -0
- package/dist/generated/config/models/dataSetsUpdateDataSetBasicInfo.d.ts +4 -0
- package/dist/generated/config/models/dataSetsUpsertDataSetProperty.d.ts +14 -1
- package/dist/generated/config/models/dataSourcesCreateDataSource.d.ts +6 -0
- package/dist/generated/config/models/dataSourcesDataSource.d.ts +6 -0
- package/dist/generated/config/models/dataSourcesDataSourceAdminUser.d.ts +6 -0
- package/dist/generated/config/models/dataSourcesDataSourceCredentialsDefinition.d.ts +5 -0
- package/dist/generated/config/models/dataSourcesTestDataSourceConnection.d.ts +7 -0
- package/dist/generated/config/models/dataSourcesUpdateDataSourceCredentials.d.ts +6 -0
- package/dist/generated/config/models/dataSpacesCreateDataSpace.d.ts +5 -0
- package/dist/generated/config/models/dataSpacesDataSpace.d.ts +9 -0
- package/dist/generated/config/models/dataSpacesDataSpaceAdmin.d.ts +12 -0
- package/dist/generated/config/models/dataSpacesDataSpaceWorkSpaceRef.d.ts +5 -0
- package/dist/generated/config/models/dataSpacesUpdateDataSpace.d.ts +6 -0
- package/dist/generated/config/models/draftsDraft.d.ts +6 -0
- package/dist/generated/config/models/draftsPublishDraftRequest.d.ts +5 -0
- package/dist/generated/config/models/draftsSaveDraftRequest.d.ts +5 -0
- package/dist/generated/config/models/draftsSaveDraftResponse.d.ts +5 -0
- package/dist/generated/config/models/filesCreateFileFromBlobUri.d.ts +6 -0
- package/dist/generated/config/models/filesFile.d.ts +12 -0
- package/dist/generated/config/models/filesFileUriResponse.d.ts +7 -0
- package/dist/generated/config/models/filesIngestedBlob.d.ts +7 -0
- package/dist/generated/config/models/managedSecretsCreateManagedSecret.d.ts +7 -0
- package/dist/generated/config/models/managedSecretsManagedSecret.d.ts +8 -0
- package/dist/generated/config/models/managedSecretsUpdateManagedSecretValue.d.ts +4 -0
- package/dist/generated/config/models/notificationsNotification.d.ts +9 -0
- package/dist/generated/config/models/notificationsPagedNotifications.d.ts +4 -0
- package/dist/generated/config/models/syncsSyncQueueState.d.ts +6 -0
- package/dist/generated/config/models/syncsSyncRunInfo.d.ts +5 -0
- package/dist/generated/config/models/usersAppAccessUser.d.ts +5 -0
- package/dist/generated/config/models/usersAppRole.d.ts +3 -0
- package/dist/generated/config/models/usersAppUserDetail.d.ts +5 -0
- package/dist/generated/config/models/usersAppUserSearchResult.d.ts +5 -0
- package/dist/generated/config/models/usersAppUserSummary.d.ts +6 -0
- package/dist/generated/config/models/usersServicePrincipalSearchResult.d.ts +4 -0
- package/dist/generated/config/models/workSpaceInfo.d.ts +6 -0
- package/dist/generated/config/models/workSpacesCreateWorkSpace.d.ts +5 -0
- package/dist/generated/config/models/workSpacesUpdateWorkSpaceBasicInfo.d.ts +5 -0
- package/dist/generated/config/models/workSpacesWorkSpace.d.ts +9 -0
- package/dist/generated/config/models/workSpacesWorkSpaceUser.d.ts +6 -0
- package/dist/generated/config/zod.js +125 -125
- package/package.json +1 -1
|
@@ -55,7 +55,7 @@ exports.accessGetAccessesResponse = zod_1.default.object({
|
|
|
55
55
|
"principalType": zod_1.default.enum(['Unknown', 'User', 'ServicePrincipal', 'Internal']).optional(),
|
|
56
56
|
"userEmailAddress": zod_1.default.string().nullish(),
|
|
57
57
|
"workSpaceId": zod_1.default.string().regex(exports.accessGetAccessesResponseDataItemWorkSpaceIdRegExp).nullish()
|
|
58
|
-
})),
|
|
58
|
+
}).describe('Full read shape for an access grant. The model collides on the simple\r\nname with `SmartSpace.App.Data.Entities.EntityAccess` at the\r\nnamespace alias boundary — but the entity uses a different short name\r\n(`EntityAccess`), so no alias is required when both are imported.\r\n \r\nDisplay names (`DisplayName`, `UserEmailAddress`) are not\r\ncolumns on the entity — they are resolved at read time from Azure AD via\r\n`IUserService` / `IAzureADClient` and filled in by the service\r\nafter loading.')),
|
|
59
59
|
"total": zod_1.default.number()
|
|
60
60
|
});
|
|
61
61
|
/**
|
|
@@ -66,7 +66,7 @@ exports.accessAddAccessBody = zod_1.default.strictObject({
|
|
|
66
66
|
"accessType": zod_1.default.enum(['Principal', 'Group']),
|
|
67
67
|
"objectId": zod_1.default.string(),
|
|
68
68
|
"workSpaceId": zod_1.default.string().regex(exports.accessAddAccessBodyWorkSpaceIdRegExp)
|
|
69
|
-
});
|
|
69
|
+
}).describe('Request body for creating an access grant. Access records are junction\r\nrows — there is no `UpdateAccess`; the convention is delete + create.');
|
|
70
70
|
/**
|
|
71
71
|
* @summary List groups from Azure AD.
|
|
72
72
|
*/
|
|
@@ -93,7 +93,7 @@ exports.accessGetAppRolesResponseItem = zod_1.default.object({
|
|
|
93
93
|
"description": zod_1.default.string(),
|
|
94
94
|
"id": zod_1.default.string().regex(exports.accessGetAppRolesResponseIdRegExp),
|
|
95
95
|
"name": zod_1.default.string()
|
|
96
|
-
});
|
|
96
|
+
}).describe('Azure AD application-role model. Sourced from AAD; no local EF entity.');
|
|
97
97
|
exports.accessGetAppRolesResponse = zod_1.default.array(exports.accessGetAppRolesResponseItem);
|
|
98
98
|
/**
|
|
99
99
|
* @summary List users assigned to a specific role in SmartSpace by providing the role's ID.
|
|
@@ -115,7 +115,7 @@ exports.accessGetUsersInRoleRolesRoleIdUsersResponse = zod_1.default.object({
|
|
|
115
115
|
"emailAddress": zod_1.default.string().nullish(),
|
|
116
116
|
"isAssigned": zod_1.default.boolean(),
|
|
117
117
|
"userId": zod_1.default.string()
|
|
118
|
-
})),
|
|
118
|
+
}).describe('User model in the context of an access-grant picker — adds an\r\n`IsAssigned` flag for highlighting users who already have access to\r\nthe target resource.')),
|
|
119
119
|
"total": zod_1.default.number()
|
|
120
120
|
});
|
|
121
121
|
/**
|
|
@@ -155,7 +155,7 @@ exports.accessSearchServicePrincipalsResponse = zod_1.default.object({
|
|
|
155
155
|
"displayName": zod_1.default.string(),
|
|
156
156
|
"id": zod_1.default.string(),
|
|
157
157
|
"isAssigned": zod_1.default.boolean()
|
|
158
|
-
})),
|
|
158
|
+
}).describe('Service-principal counterpart of SmartSpace.App.Business.Models.Users.AppUserSearchResult for\r\nthe same picker UI.')),
|
|
159
159
|
"total": zod_1.default.number()
|
|
160
160
|
});
|
|
161
161
|
/**
|
|
@@ -176,7 +176,7 @@ exports.accessSearchUsersResponse = zod_1.default.object({
|
|
|
176
176
|
"id": zod_1.default.string(),
|
|
177
177
|
"isAssigned": zod_1.default.boolean(),
|
|
178
178
|
"name": zod_1.default.string()
|
|
179
|
-
})),
|
|
179
|
+
}).describe('Minimal user search result for autocomplete / picker UIs. Drops every\r\nfield that isn\'t needed to render a row — the picker only needs id, name,\r\nand email.')),
|
|
180
180
|
"total": zod_1.default.number()
|
|
181
181
|
});
|
|
182
182
|
/**
|
|
@@ -198,7 +198,7 @@ exports.accessGetUsersInRoleUsersResponse = zod_1.default.object({
|
|
|
198
198
|
"emailAddress": zod_1.default.string().nullish(),
|
|
199
199
|
"isAssigned": zod_1.default.boolean(),
|
|
200
200
|
"userId": zod_1.default.string()
|
|
201
|
-
})),
|
|
201
|
+
}).describe('User model in the context of an access-grant picker — adds an\r\n`IsAssigned` flag for highlighting users who already have access to\r\nthe target resource.')),
|
|
202
202
|
"total": zod_1.default.number()
|
|
203
203
|
});
|
|
204
204
|
/**
|
|
@@ -259,7 +259,7 @@ exports.activityGetLoggingResponse = zod_1.default.object({
|
|
|
259
259
|
"response": zod_1.default.string().nullish(),
|
|
260
260
|
"workSpaceId": zod_1.default.string().regex(exports.activityGetLoggingResponseDataItemWorkSpaceIdRegExp).nullish(),
|
|
261
261
|
"workSpaceName": zod_1.default.string().nullish()
|
|
262
|
-
})),
|
|
262
|
+
}).describe('Workspace-scoped activity row returned by the activity log endpoint. The\r\n`EventDescription`, `Prompt`, `Response`, and\r\n`QueryNumber` are deserialised from the activity\'s\r\n`DisplayName` (a JSON-serialised `WorkSpaceConfiguration`);\r\n`LlmUsages` and `DurationMs` from `MetricsJson`. Build\r\nhappens in service code — see `ActivityService.GetLogWorkSpaceAsync`.')),
|
|
263
263
|
"total": zod_1.default.number()
|
|
264
264
|
});
|
|
265
265
|
/**
|
|
@@ -312,7 +312,7 @@ exports.blockSetsGetBlockSetsResponseItem = zod_1.default.object({
|
|
|
312
312
|
"sticky": zod_1.default.boolean(),
|
|
313
313
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary']),
|
|
314
314
|
"virtual": zod_1.default.boolean()
|
|
315
|
-
})),
|
|
315
|
+
}).describe('Model for an input pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.InputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`,\r\n`Default`) rather than the raw `*Json` columns.')),
|
|
316
316
|
"isFunction": zod_1.default.boolean(),
|
|
317
317
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
318
318
|
"outputs": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
@@ -325,9 +325,9 @@ exports.blockSetsGetBlockSetsResponseItem = zod_1.default.object({
|
|
|
325
325
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
326
326
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
327
327
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
328
|
-
})),
|
|
328
|
+
}).describe('Model for an output pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.OutputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`)\r\nrather than the raw `*Json` columns.')),
|
|
329
329
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
330
|
-
})),
|
|
330
|
+
}).describe('Model for a block `PortInterface`. Inputs and Outputs are keyed by pin\r\nname (entities store them as `List<...>` with a `Key`\r\ncolumn; the model exposes them as dictionaries to match the API shape).')),
|
|
331
331
|
"scopes": zod_1.default.array(zod_1.default.enum(['WorkSpace', 'DataSet'])).nullish(),
|
|
332
332
|
"state": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
333
333
|
"default": zod_1.default.any().nullish(),
|
|
@@ -336,8 +336,8 @@ exports.blockSetsGetBlockSetsResponseItem = zod_1.default.object({
|
|
|
336
336
|
"pin": zod_1.default.string(),
|
|
337
337
|
"port": zod_1.default.string()
|
|
338
338
|
}))
|
|
339
|
-
}))
|
|
340
|
-
}))),
|
|
339
|
+
}).describe('Model for a block `StateInterface` — a piece of state declared by a\r\nblock interface, with a JSON default value and an optional pin-ref scope.'))
|
|
340
|
+
}).describe('Model for a block interface — the schema that describes a single\r\n(name, version) pair of a block (ports, state, scope). Collides on the\r\nsimple name with `SmartSpace.App.Data.Entities.BlockInterface`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `Name` and `Version` live on the entity but are surfaced\r\nhere too so the wire shape is self-describing (the same model travels via\r\nSignalR debug payloads where the keys are stripped).'))),
|
|
341
341
|
"connectionId": zod_1.default.string().nullish(),
|
|
342
342
|
"createdByUserId": zod_1.default.string().nullish(),
|
|
343
343
|
"id": zod_1.default.string().regex(exports.blockSetsGetBlockSetsResponseIdRegExp),
|
|
@@ -348,8 +348,8 @@ exports.blockSetsGetBlockSetsResponseItem = zod_1.default.object({
|
|
|
348
348
|
"usedInWorkspaces": zod_1.default.array(zod_1.default.object({
|
|
349
349
|
"id": zod_1.default.string().regex(exports.blockSetsGetBlockSetsResponseUsedInWorkspacesItemIdRegExp),
|
|
350
350
|
"name": zod_1.default.string()
|
|
351
|
-
}))
|
|
352
|
-
});
|
|
351
|
+
}).describe('A workspace that references one of the block set\'s blocks in its active\r\nflow definition. Carries the id so the UI can deep-link to the workspace\r\ndesigner (e.g. to detach a block before deleting its set).'))
|
|
352
|
+
}).describe('Model for a `BlockSet` — a versioned collection of block interfaces.\r\nCollides on the simple name with `SmartSpace.App.Data.Entities.BlockSet`;\r\nalias `DataEntities = SmartSpace.App.Data.Entities` in files that\r\nimport both. `BlockInterfaces` is keyed by block name then version to\r\nmatch the API shape consumers expect.');
|
|
353
353
|
exports.blockSetsGetBlockSetsResponse = zod_1.default.array(exports.blockSetsGetBlockSetsResponseItem);
|
|
354
354
|
/**
|
|
355
355
|
* @summary Get the saved Python source code for a deployed custom block set.
|
|
@@ -418,7 +418,7 @@ exports.blocksGetBlocksResponse = zod_1.default.record(zod_1.default.string(), z
|
|
|
418
418
|
"sticky": zod_1.default.boolean(),
|
|
419
419
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary']),
|
|
420
420
|
"virtual": zod_1.default.boolean()
|
|
421
|
-
})),
|
|
421
|
+
}).describe('Model for an input pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.InputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`,\r\n`Default`) rather than the raw `*Json` columns.')),
|
|
422
422
|
"isFunction": zod_1.default.boolean(),
|
|
423
423
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
424
424
|
"outputs": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
@@ -431,9 +431,9 @@ exports.blocksGetBlocksResponse = zod_1.default.record(zod_1.default.string(), z
|
|
|
431
431
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
432
432
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
433
433
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
434
|
-
})),
|
|
434
|
+
}).describe('Model for an output pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.OutputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`)\r\nrather than the raw `*Json` columns.')),
|
|
435
435
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
436
|
-
})),
|
|
436
|
+
}).describe('Model for a block `PortInterface`. Inputs and Outputs are keyed by pin\r\nname (entities store them as `List<...>` with a `Key`\r\ncolumn; the model exposes them as dictionaries to match the API shape).')),
|
|
437
437
|
"scopes": zod_1.default.array(zod_1.default.enum(['WorkSpace', 'DataSet'])).nullish(),
|
|
438
438
|
"state": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
439
439
|
"default": zod_1.default.any().nullish(),
|
|
@@ -442,13 +442,13 @@ exports.blocksGetBlocksResponse = zod_1.default.record(zod_1.default.string(), z
|
|
|
442
442
|
"pin": zod_1.default.string(),
|
|
443
443
|
"port": zod_1.default.string()
|
|
444
444
|
}))
|
|
445
|
-
}))
|
|
446
|
-
}),
|
|
445
|
+
}).describe('Model for a block `StateInterface` — a piece of state declared by a\r\nblock interface, with a JSON default value and an optional pin-ref scope.'))
|
|
446
|
+
}).describe('Model for a block interface — the schema that describes a single\r\n(name, version) pair of a block (ports, state, scope). Collides on the\r\nsimple name with `SmartSpace.App.Data.Entities.BlockInterface`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `Name` and `Version` live on the entity but are surfaced\r\nhere too so the wire shape is self-describing (the same model travels via\r\nSignalR debug payloads where the keys are stripped).'),
|
|
447
447
|
"name": zod_1.default.string(),
|
|
448
448
|
"sourceCodeUrl": zod_1.default.string().nullish(),
|
|
449
449
|
"type": zod_1.default.enum(['Native', 'Custom', 'Debug']),
|
|
450
450
|
"version": zod_1.default.string()
|
|
451
|
-
})));
|
|
451
|
+
}).describe('Flattened block descriptor — one `BlockInfo` per (name, version) pair\r\nacross every visible `BlockSet`. This is the shape the\r\n`BlocksController` returns; the dictionary-of-dictionaries layout is\r\nreconstructed by the service from the underlying interfaces.')));
|
|
452
452
|
/**
|
|
453
453
|
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
454
454
|
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
@@ -637,11 +637,11 @@ exports.dataSetsGetResponse = zod_1.default.object({
|
|
|
637
637
|
"description": zod_1.default.string().nullish(),
|
|
638
638
|
"isVector": zod_1.default.boolean(),
|
|
639
639
|
"name": zod_1.default.string()
|
|
640
|
-
})),
|
|
640
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
641
641
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
642
642
|
"subjectPath": zod_1.default.string().nullish(),
|
|
643
643
|
"version": zod_1.default.string().regex(exports.dataSetsGetResponseDataItemVersionRegExp).nullish()
|
|
644
|
-
})),
|
|
644
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.')),
|
|
645
645
|
"total": zod_1.default.number()
|
|
646
646
|
});
|
|
647
647
|
exports.dataSetsGetItemPathDataSetIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -696,11 +696,11 @@ exports.dataSetsGetByIdResponse = zod_1.default.object({
|
|
|
696
696
|
"description": zod_1.default.string().nullish(),
|
|
697
697
|
"isVector": zod_1.default.boolean(),
|
|
698
698
|
"name": zod_1.default.string()
|
|
699
|
-
})),
|
|
699
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
700
700
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
701
701
|
"subjectPath": zod_1.default.string().nullish(),
|
|
702
702
|
"version": zod_1.default.string().regex(exports.dataSetsGetByIdResponseVersionRegExp).nullish()
|
|
703
|
-
});
|
|
703
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.');
|
|
704
704
|
/**
|
|
705
705
|
* @summary Update an existing dataset (name, description, container bindings).
|
|
706
706
|
*/
|
|
@@ -718,11 +718,11 @@ exports.dataSetsPutBody = zod_1.default.strictObject({
|
|
|
718
718
|
"value": zod_1.default.string()
|
|
719
719
|
})).nullish(),
|
|
720
720
|
"path": zod_1.default.string()
|
|
721
|
-
})).nullish(),
|
|
721
|
+
}).describe('Container reference used in create/update requests — pair of\r\n`DataSourceId` and a `Path` identifying a specific container\r\ninside that data source. The service hashes the pair to produce the\r\ncontainer id. Optional Filters restrict which records are synced.')).nullish(),
|
|
722
722
|
"description": zod_1.default.string().nullish(),
|
|
723
723
|
"id": zod_1.default.string().regex(exports.dataSetsPutBodyIdRegExp),
|
|
724
724
|
"name": zod_1.default.string().nullish()
|
|
725
|
-
});
|
|
725
|
+
}).describe('Update-request shape for a DataSet — name/description plus optional\r\nre-binding of containers. Container info null = leave the existing\r\nflow alone, just update basic fields; empty = disconnect every\r\ncontainer (soft-deletes all flow triggers).');
|
|
726
726
|
exports.dataSetsPutResponseDataSpaceIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
727
727
|
exports.dataSetsPutResponseFlowIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
728
728
|
exports.dataSetsPutResponseIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -741,11 +741,11 @@ exports.dataSetsPutResponse = zod_1.default.object({
|
|
|
741
741
|
"description": zod_1.default.string().nullish(),
|
|
742
742
|
"isVector": zod_1.default.boolean(),
|
|
743
743
|
"name": zod_1.default.string()
|
|
744
|
-
})),
|
|
744
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
745
745
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
746
746
|
"subjectPath": zod_1.default.string().nullish(),
|
|
747
747
|
"version": zod_1.default.string().regex(exports.dataSetsPutResponseVersionRegExp).nullish()
|
|
748
|
-
});
|
|
748
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.');
|
|
749
749
|
/**
|
|
750
750
|
* @summary Update just the basic-info fields (name + description) on a dataset.
|
|
751
751
|
*/
|
|
@@ -756,7 +756,7 @@ exports.dataSetsPutBasicInfoParams = zod_1.default.strictObject({
|
|
|
756
756
|
exports.dataSetsPutBasicInfoBody = zod_1.default.strictObject({
|
|
757
757
|
"description": zod_1.default.string().nullish(),
|
|
758
758
|
"name": zod_1.default.string()
|
|
759
|
-
});
|
|
759
|
+
}).describe('Lightweight update for just the editable basic-info fields. Used by the\r\n`PUT /DataSets/{id}/basicInfo` endpoint.');
|
|
760
760
|
exports.dataSetsClearPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
761
761
|
exports.dataSetsClearParams = zod_1.default.strictObject({
|
|
762
762
|
"id": zod_1.default.string().regex(exports.dataSetsClearPathIdRegExp)
|
|
@@ -824,11 +824,11 @@ exports.dataSetsSetDataspaceResponse = zod_1.default.object({
|
|
|
824
824
|
"description": zod_1.default.string().nullish(),
|
|
825
825
|
"isVector": zod_1.default.boolean(),
|
|
826
826
|
"name": zod_1.default.string()
|
|
827
|
-
})),
|
|
827
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
828
828
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
829
829
|
"subjectPath": zod_1.default.string().nullish(),
|
|
830
830
|
"version": zod_1.default.string().regex(exports.dataSetsSetDataspaceResponseVersionRegExp).nullish()
|
|
831
|
-
});
|
|
831
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.');
|
|
832
832
|
exports.dataSetsExportPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
833
833
|
exports.dataSetsExportParams = zod_1.default.strictObject({
|
|
834
834
|
"id": zod_1.default.string().regex(exports.dataSetsExportPathIdRegExp)
|
|
@@ -846,7 +846,7 @@ exports.dataSetsExportResponse = zod_1.default.object({
|
|
|
846
846
|
"size": zod_1.default.number(),
|
|
847
847
|
"threadId": zod_1.default.string().regex(exports.dataSetsExportResponseThreadIdRegExp).nullish(),
|
|
848
848
|
"workspaceId": zod_1.default.string().regex(exports.dataSetsExportResponseWorkspaceIdRegExp).nullish()
|
|
849
|
-
});
|
|
849
|
+
}).describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.');
|
|
850
850
|
exports.dataSetsGetItemsPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
851
851
|
exports.dataSetsGetItemsParams = zod_1.default.strictObject({
|
|
852
852
|
"id": zod_1.default.string().regex(exports.dataSetsGetItemsPathIdRegExp)
|
|
@@ -946,14 +946,14 @@ exports.dataSetsAddDataSetPropertyParams = zod_1.default.strictObject({
|
|
|
946
946
|
});
|
|
947
947
|
exports.dataSetsAddDataSetPropertyBody = zod_1.default.strictObject({
|
|
948
948
|
"description": zod_1.default.string().nullish(),
|
|
949
|
-
"isVector": zod_1.default.boolean().nullish(),
|
|
949
|
+
"isVector": zod_1.default.boolean().nullish().describe('Unused — the platform no longer reads this field and\r\n it has no effect on ingestion or querying. It is retained as an optional\r\n property purely for backward compatibility (see the description of\r\n `POST /DataSets/{id}/properties`); omit it in new integrations.\r\n When omitted, the stored value is preserved on update and defaults to\r\n `false` on create.'),
|
|
950
950
|
"name": zod_1.default.string()
|
|
951
|
-
});
|
|
951
|
+
}).describe('Upsert payload for a single DataSet property. `Name` is the key —\r\nexisting property with the same name is updated in place, otherwise a\r\nnew one is added.');
|
|
952
952
|
exports.dataSetsAddDataSetPropertyResponse = zod_1.default.object({
|
|
953
953
|
"description": zod_1.default.string().nullish(),
|
|
954
954
|
"isVector": zod_1.default.boolean(),
|
|
955
955
|
"name": zod_1.default.string()
|
|
956
|
-
});
|
|
956
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.');
|
|
957
957
|
exports.dataSetsDeleteDataSetPropertyPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
958
958
|
exports.dataSetsDeleteDataSetPropertyParams = zod_1.default.strictObject({
|
|
959
959
|
"id": zod_1.default.string().regex(exports.dataSetsDeleteDataSetPropertyPathIdRegExp),
|
|
@@ -1023,7 +1023,7 @@ exports.dataSetsPutScopingParams = zod_1.default.strictObject({
|
|
|
1023
1023
|
exports.dataSetsPutScopingBody = zod_1.default.strictObject({
|
|
1024
1024
|
"mode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
1025
1025
|
"subjectPath": zod_1.default.string().nullish()
|
|
1026
|
-
});
|
|
1026
|
+
}).describe('Sets the per-document scoping config on a dataset (intelligence-layer\r\n`scoping` block). When `Mode` is `Unrestricted` the\r\n`SubjectPath` is cleared; when `PerSubject`, `SubjectPath`\r\nselects the document field to match (null = the built-in owner envelope).');
|
|
1027
1027
|
/**
|
|
1028
1028
|
* @summary Fetch a list of all available data source types in SmartSpace.
|
|
1029
1029
|
*/
|
|
@@ -1035,7 +1035,7 @@ exports.dataSourceTypesGetResponseItem = zod_1.default.object({
|
|
|
1035
1035
|
"key": zod_1.default.string(),
|
|
1036
1036
|
"type": zod_1.default.enum(['String', 'Int', 'Bool'])
|
|
1037
1037
|
}))
|
|
1038
|
-
}),
|
|
1038
|
+
}).describe('Schema metadata describing the *shape* of credentials a connector type\r\nrequires — not credential values. Exempted from\r\n`ModelFolderSafetyTests` via `LegitimateSchemaExceptions`.'),
|
|
1039
1039
|
"defaultSyncIntervalMinutes": zod_1.default.number().nullish(),
|
|
1040
1040
|
"id": zod_1.default.string(),
|
|
1041
1041
|
"name": zod_1.default.string()
|
|
@@ -1047,7 +1047,7 @@ exports.dataSourceTypesGetResponse = zod_1.default.array(exports.dataSourceTypes
|
|
|
1047
1047
|
exports.dataSourceTypesGetAvailableContainersBody = zod_1.default.strictObject({
|
|
1048
1048
|
"credentials": zod_1.default.record(zod_1.default.string(), zod_1.default.string()),
|
|
1049
1049
|
"dataSourceTypeId": zod_1.default.string()
|
|
1050
|
-
});
|
|
1050
|
+
}).describe('Request shape for the test-connection endpoint and an internal carrier\r\nfor the data-source-type service when probing credentials. Contains an\r\ninline credentials dictionary — listed under\r\n`ModelFolderSafetyTests.ExistingDebtToReview`; redesign to a\r\nKeyVault-ref-only payload is tracked in TODO.md.');
|
|
1051
1051
|
exports.dataSourceTypesGetAvailableContainersResponseItem = zod_1.default.object({
|
|
1052
1052
|
"children": zod_1.default.array(zod_1.default.any()).nullish(),
|
|
1053
1053
|
"filters": zod_1.default.array(zod_1.default.object({
|
|
@@ -1069,7 +1069,7 @@ exports.dataSourceTypesGetAvailableContainersResponse = zod_1.default.array(expo
|
|
|
1069
1069
|
exports.dataSourceTypesTestConnectionBody = zod_1.default.strictObject({
|
|
1070
1070
|
"credentials": zod_1.default.record(zod_1.default.string(), zod_1.default.string()),
|
|
1071
1071
|
"dataSourceTypeId": zod_1.default.string()
|
|
1072
|
-
});
|
|
1072
|
+
}).describe('Request shape for the test-connection endpoint and an internal carrier\r\nfor the data-source-type service when probing credentials. Contains an\r\ninline credentials dictionary — listed under\r\n`ModelFolderSafetyTests.ExistingDebtToReview`; redesign to a\r\nKeyVault-ref-only payload is tracked in TODO.md.');
|
|
1073
1073
|
exports.dataSourceTypesTestConnectionResponse = zod_1.default.object({
|
|
1074
1074
|
"exceptionType": zod_1.default.string().nullish(),
|
|
1075
1075
|
"isSuccessful": zod_1.default.boolean(),
|
|
@@ -1113,7 +1113,7 @@ exports.dataSourcesGetResponse = zod_1.default.object({
|
|
|
1113
1113
|
"modifiedByUserId": zod_1.default.string().nullish(),
|
|
1114
1114
|
"name": zod_1.default.string(),
|
|
1115
1115
|
"searchable": zod_1.default.boolean()
|
|
1116
|
-
})),
|
|
1116
|
+
}).describe('Full read shape for a DataSource. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSource`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.')),
|
|
1117
1117
|
"total": zod_1.default.number()
|
|
1118
1118
|
});
|
|
1119
1119
|
/**
|
|
@@ -1124,7 +1124,7 @@ exports.dataSourcesPostBody = zod_1.default.strictObject({
|
|
|
1124
1124
|
"credentials": zod_1.default.record(zod_1.default.string(), zod_1.default.string()),
|
|
1125
1125
|
"keyId": zod_1.default.string().nullish(),
|
|
1126
1126
|
"name": zod_1.default.string()
|
|
1127
|
-
});
|
|
1127
|
+
}).describe('Create request shape — paired with SmartSpace.App.Business.Models.DataSources.UpdateDataSource even\r\nthough field overlap is partial; the `[Required]` contract differs.\r\nAccepts inline credentials at creation time (listed under\r\n`ModelFolderSafetyTests.ExistingDebtToReview`).');
|
|
1128
1128
|
exports.dataSourcesPostResponseContainersItemDataSourceIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1129
1129
|
exports.dataSourcesPostResponseContainersItemIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1130
1130
|
exports.dataSourcesPostResponseIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -1149,7 +1149,7 @@ exports.dataSourcesPostResponse = zod_1.default.object({
|
|
|
1149
1149
|
"modifiedByUserId": zod_1.default.string().nullish(),
|
|
1150
1150
|
"name": zod_1.default.string(),
|
|
1151
1151
|
"searchable": zod_1.default.boolean()
|
|
1152
|
-
});
|
|
1152
|
+
}).describe('Full read shape for a DataSource. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSource`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.');
|
|
1153
1153
|
/**
|
|
1154
1154
|
* @summary Remove a specific data source from SmartSpace using its unique ID.
|
|
1155
1155
|
*/
|
|
@@ -1233,7 +1233,7 @@ exports.dataSourcesUpdateCredentialsParams = zod_1.default.strictObject({
|
|
|
1233
1233
|
});
|
|
1234
1234
|
exports.dataSourcesUpdateCredentialsBody = zod_1.default.strictObject({
|
|
1235
1235
|
"credentials": zod_1.default.record(zod_1.default.string(), zod_1.default.string().nullable())
|
|
1236
|
-
});
|
|
1236
|
+
}).describe('Partial-update payload for connector credentials — only non-empty\r\nvalues overwrite the existing entries (see\r\n`DataSourceService.UpdateCredentialsAsync`). Listed under\r\n`ModelFolderSafetyTests.ExistingDebtToReview`.');
|
|
1237
1237
|
/**
|
|
1238
1238
|
* @summary Requests an on-demand sync of a data source. The request is queued;
|
|
1239
1239
|
the sync service picks it up within ~30 seconds. Repeated requests
|
|
@@ -1250,7 +1250,7 @@ exports.dataSourcesGetAdminUsersParams = zod_1.default.strictObject({
|
|
|
1250
1250
|
exports.dataSourcesGetAdminUsersResponseItem = zod_1.default.object({
|
|
1251
1251
|
"id": zod_1.default.string(),
|
|
1252
1252
|
"name": zod_1.default.string()
|
|
1253
|
-
});
|
|
1253
|
+
}).describe('API response shape for \"list admin users on a DataSource\" — joins the\r\njunction SmartSpace.App.Business.Models.DataSources.DataSourceAdmin with the user-service principal\r\nto surface a display name. Composed in the service; not a Mapperly\r\nprojection target (the join crosses an external service boundary).');
|
|
1254
1254
|
exports.dataSourcesGetAdminUsersResponse = zod_1.default.array(exports.dataSourcesGetAdminUsersResponseItem);
|
|
1255
1255
|
exports.dataSourcesDeleteAdminPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1256
1256
|
exports.dataSourcesDeleteAdminParams = zod_1.default.strictObject({
|
|
@@ -1296,11 +1296,11 @@ exports.dataSpacesGetResponse = zod_1.default.object({
|
|
|
1296
1296
|
"description": zod_1.default.string().nullish(),
|
|
1297
1297
|
"isVector": zod_1.default.boolean(),
|
|
1298
1298
|
"name": zod_1.default.string()
|
|
1299
|
-
})),
|
|
1299
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
1300
1300
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
1301
1301
|
"subjectPath": zod_1.default.string().nullish(),
|
|
1302
1302
|
"version": zod_1.default.string().regex(exports.dataSpacesGetResponseDataItemDataSetsItemVersionRegExp).nullish()
|
|
1303
|
-
})),
|
|
1303
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.')),
|
|
1304
1304
|
"id": zod_1.default.string().regex(exports.dataSpacesGetResponseDataItemIdRegExp),
|
|
1305
1305
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
1306
1306
|
"modifiedByUserId": zod_1.default.string(),
|
|
@@ -1309,8 +1309,8 @@ exports.dataSpacesGetResponse = zod_1.default.object({
|
|
|
1309
1309
|
"workSpaces": zod_1.default.array(zod_1.default.object({
|
|
1310
1310
|
"id": zod_1.default.string().regex(exports.dataSpacesGetResponseDataItemWorkSpacesItemIdRegExp),
|
|
1311
1311
|
"name": zod_1.default.string()
|
|
1312
|
-
}))
|
|
1313
|
-
})),
|
|
1312
|
+
}).describe('Lightweight reference to a WorkSpace that uses this DataSpace. Avoids\r\npulling the full WorkSpace shape (admins, flows, configurations) when a\r\ncaller only needs to surface \"what workspaces reference this DataSpace\".'))
|
|
1313
|
+
}).describe('Model for a DataSpace. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSpace`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. The fully-qualified `DataSets.DataSet` below also\r\ndisambiguates from the legacy unmigrated `Business.Models.DataSet`\r\n— implicit name resolution prefers the ancestor namespace and would\r\notherwise pick up the legacy record.')),
|
|
1314
1314
|
"total": zod_1.default.number()
|
|
1315
1315
|
});
|
|
1316
1316
|
/**
|
|
@@ -1320,7 +1320,7 @@ exports.dataSpacesPostBodyDataSetIdsItemRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-
|
|
|
1320
1320
|
exports.dataSpacesPostBody = zod_1.default.strictObject({
|
|
1321
1321
|
"dataSetIds": zod_1.default.array(zod_1.default.string().regex(exports.dataSpacesPostBodyDataSetIdsItemRegExp)).nullish(),
|
|
1322
1322
|
"name": zod_1.default.string()
|
|
1323
|
-
});
|
|
1323
|
+
}).describe('Create-request shape for a DataSpace. `DataSetIds` is an optional\r\npre-attachment of existing datasets to the new dataspace; the creating\r\nprincipal is implicitly added as the first admin.');
|
|
1324
1324
|
exports.dataSpacesDeletePathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1325
1325
|
exports.dataSpacesDeleteParams = zod_1.default.strictObject({
|
|
1326
1326
|
"id": zod_1.default.string().regex(exports.dataSpacesDeletePathIdRegExp)
|
|
@@ -1353,11 +1353,11 @@ exports.dataSpacesGetByIdResponse = zod_1.default.object({
|
|
|
1353
1353
|
"description": zod_1.default.string().nullish(),
|
|
1354
1354
|
"isVector": zod_1.default.boolean(),
|
|
1355
1355
|
"name": zod_1.default.string()
|
|
1356
|
-
})),
|
|
1356
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
1357
1357
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
1358
1358
|
"subjectPath": zod_1.default.string().nullish(),
|
|
1359
1359
|
"version": zod_1.default.string().regex(exports.dataSpacesGetByIdResponseDataSetsItemVersionRegExp).nullish()
|
|
1360
|
-
})),
|
|
1360
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.')),
|
|
1361
1361
|
"id": zod_1.default.string().regex(exports.dataSpacesGetByIdResponseIdRegExp),
|
|
1362
1362
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
1363
1363
|
"modifiedByUserId": zod_1.default.string(),
|
|
@@ -1366,8 +1366,8 @@ exports.dataSpacesGetByIdResponse = zod_1.default.object({
|
|
|
1366
1366
|
"workSpaces": zod_1.default.array(zod_1.default.object({
|
|
1367
1367
|
"id": zod_1.default.string().regex(exports.dataSpacesGetByIdResponseWorkSpacesItemIdRegExp),
|
|
1368
1368
|
"name": zod_1.default.string()
|
|
1369
|
-
}))
|
|
1370
|
-
});
|
|
1369
|
+
}).describe('Lightweight reference to a WorkSpace that uses this DataSpace. Avoids\r\npulling the full WorkSpace shape (admins, flows, configurations) when a\r\ncaller only needs to surface \"what workspaces reference this DataSpace\".'))
|
|
1370
|
+
}).describe('Model for a DataSpace. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSpace`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. The fully-qualified `DataSets.DataSet` below also\r\ndisambiguates from the legacy unmigrated `Business.Models.DataSet`\r\n— implicit name resolution prefers the ancestor namespace and would\r\notherwise pick up the legacy record.');
|
|
1371
1371
|
/**
|
|
1372
1372
|
* @summary Update an existing dataspace.
|
|
1373
1373
|
*/
|
|
@@ -1381,7 +1381,7 @@ exports.dataSpacesPutBody = zod_1.default.strictObject({
|
|
|
1381
1381
|
"dataSetIds": zod_1.default.array(zod_1.default.string().regex(exports.dataSpacesPutBodyDataSetIdsItemRegExp)),
|
|
1382
1382
|
"id": zod_1.default.string().regex(exports.dataSpacesPutBodyIdRegExp),
|
|
1383
1383
|
"name": zod_1.default.string()
|
|
1384
|
-
});
|
|
1384
|
+
}).describe('Update-request shape for a DataSpace — rename and re-bind the attached\r\ndatasets. The complete `DataSetIds` list is treated as the desired\r\nstate; datasets present today but missing here are unbound, new ones\r\nare bound in.');
|
|
1385
1385
|
exports.dataSpacesPutResponseDataSetsItemDataSpaceIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1386
1386
|
exports.dataSpacesPutResponseDataSetsItemFlowIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1387
1387
|
exports.dataSpacesPutResponseDataSetsItemIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -1406,11 +1406,11 @@ exports.dataSpacesPutResponse = zod_1.default.object({
|
|
|
1406
1406
|
"description": zod_1.default.string().nullish(),
|
|
1407
1407
|
"isVector": zod_1.default.boolean(),
|
|
1408
1408
|
"name": zod_1.default.string()
|
|
1409
|
-
})),
|
|
1409
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
1410
1410
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
1411
1411
|
"subjectPath": zod_1.default.string().nullish(),
|
|
1412
1412
|
"version": zod_1.default.string().regex(exports.dataSpacesPutResponseDataSetsItemVersionRegExp).nullish()
|
|
1413
|
-
})),
|
|
1413
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.')),
|
|
1414
1414
|
"id": zod_1.default.string().regex(exports.dataSpacesPutResponseIdRegExp),
|
|
1415
1415
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
1416
1416
|
"modifiedByUserId": zod_1.default.string(),
|
|
@@ -1419,8 +1419,8 @@ exports.dataSpacesPutResponse = zod_1.default.object({
|
|
|
1419
1419
|
"workSpaces": zod_1.default.array(zod_1.default.object({
|
|
1420
1420
|
"id": zod_1.default.string().regex(exports.dataSpacesPutResponseWorkSpacesItemIdRegExp),
|
|
1421
1421
|
"name": zod_1.default.string()
|
|
1422
|
-
}))
|
|
1423
|
-
});
|
|
1422
|
+
}).describe('Lightweight reference to a WorkSpace that uses this DataSpace. Avoids\r\npulling the full WorkSpace shape (admins, flows, configurations) when a\r\ncaller only needs to surface \"what workspaces reference this DataSpace\".'))
|
|
1423
|
+
}).describe('Model for a DataSpace. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSpace`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. The fully-qualified `DataSets.DataSet` below also\r\ndisambiguates from the legacy unmigrated `Business.Models.DataSet`\r\n— implicit name resolution prefers the ancestor namespace and would\r\notherwise pick up the legacy record.');
|
|
1424
1424
|
exports.dataSpacesGetAdminUsersPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1425
1425
|
exports.dataSpacesGetAdminUsersParams = zod_1.default.strictObject({
|
|
1426
1426
|
"id": zod_1.default.string().regex(exports.dataSpacesGetAdminUsersPathIdRegExp)
|
|
@@ -1428,9 +1428,9 @@ exports.dataSpacesGetAdminUsersParams = zod_1.default.strictObject({
|
|
|
1428
1428
|
exports.dataSpacesGetAdminUsersResponseDataSpaceIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1429
1429
|
exports.dataSpacesGetAdminUsersResponseItem = zod_1.default.object({
|
|
1430
1430
|
"dataSpaceId": zod_1.default.string().regex(exports.dataSpacesGetAdminUsersResponseDataSpaceIdRegExp),
|
|
1431
|
-
"displayName": zod_1.default.string(),
|
|
1431
|
+
"displayName": zod_1.default.string().describe('Display name resolved from `IUserService.GetPrincipalsByIdsAsync`\r\nafter projection. Empty string when the principal lookup misses.'),
|
|
1432
1432
|
"userId": zod_1.default.string()
|
|
1433
|
-
});
|
|
1433
|
+
}).describe('Model for a DataSpace admin junction record. The composite key is\r\n(UserId, DataSpaceId) — no surrogate id. Junction entities follow the\r\ndelete+create convention, so there is no `UpdateDataSpaceAdmin`.\r\n \r\n`DisplayName` is filled by the service via `IUserService`\r\npost-projection — it isn\'t on the entity and can\'t be projected, so it\r\nhangs off the record as an `init`-only property rather than a\r\nconstructor parameter.');
|
|
1434
1434
|
exports.dataSpacesGetAdminUsersResponse = zod_1.default.array(exports.dataSpacesGetAdminUsersResponseItem);
|
|
1435
1435
|
exports.dataSpacesDeleteAdminPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1436
1436
|
exports.dataSpacesDeleteAdminParams = zod_1.default.strictObject({
|
|
@@ -1472,11 +1472,11 @@ exports.dataSpacesGetDataSetsResponse = zod_1.default.object({
|
|
|
1472
1472
|
"description": zod_1.default.string().nullish(),
|
|
1473
1473
|
"isVector": zod_1.default.boolean(),
|
|
1474
1474
|
"name": zod_1.default.string()
|
|
1475
|
-
})),
|
|
1475
|
+
}).describe('Model for a property on a DataSet — a named, optionally-vectorised field\r\nstored on each ingested item. Read-only at the model boundary; writes go\r\nthrough SmartSpace.App.Business.Models.DataSets.UpsertDataSetProperty.')),
|
|
1476
1476
|
"scopingMode": zod_1.default.enum(['Unrestricted', 'PerSubject']),
|
|
1477
1477
|
"subjectPath": zod_1.default.string().nullish(),
|
|
1478
1478
|
"version": zod_1.default.string().regex(exports.dataSpacesGetDataSetsResponseDataItemVersionRegExp).nullish()
|
|
1479
|
-
})),
|
|
1479
|
+
}).describe('Model for a DataSet. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.DataSet`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth.\r\n \r\nThe nested Flow shape on the legacy `SmartSpace.App.Business.Models.DataSet`\r\nis intentionally dropped here — `FlowId` only. The Flow domain\r\nhasn\'t migrated yet and projecting its recursive structure (Flow →\r\nTriggers → DataSourceContainer → DataSource, Flow → ActiveFlowDefinition\r\n→ Inputs) into the model layer would couple two unmigrated domains and\r\nbloat every DataSet read with multiple JOIN fan-outs. Callers that need\r\nFlow detail fetch it via `IFlowService`.')),
|
|
1480
1480
|
"total": zod_1.default.number()
|
|
1481
1481
|
});
|
|
1482
1482
|
/**
|
|
@@ -1496,10 +1496,10 @@ exports.dataSpacesPostDatasetBody = zod_1.default.strictObject({
|
|
|
1496
1496
|
"value": zod_1.default.string()
|
|
1497
1497
|
})).nullish(),
|
|
1498
1498
|
"path": zod_1.default.string()
|
|
1499
|
-
})).nullish(),
|
|
1499
|
+
}).describe('Container reference used in create/update requests — pair of\r\n`DataSourceId` and a `Path` identifying a specific container\r\ninside that data source. The service hashes the pair to produce the\r\ncontainer id. Optional Filters restrict which records are synced.')).nullish(),
|
|
1500
1500
|
"description": zod_1.default.string().nullish(),
|
|
1501
1501
|
"name": zod_1.default.string()
|
|
1502
|
-
});
|
|
1502
|
+
}).describe('Create-request shape for a DataSet. The DataSpace it belongs to is\r\ncarried on the route (`/DataSpaces/{id}/datasets`) rather than the\r\nbody. Container info is optional — empty list means \"file-only\" dataset\r\nwith a freshly-created file ingestion flow.');
|
|
1503
1503
|
exports.debugInvokeParams = zod_1.default.strictObject({
|
|
1504
1504
|
"connectionId": zod_1.default.string(),
|
|
1505
1505
|
"method": zod_1.default.string()
|
|
@@ -1526,7 +1526,7 @@ exports.draftsListDraftsResponseItem = zod_1.default.object({
|
|
|
1526
1526
|
"sticky": zod_1.default.boolean(),
|
|
1527
1527
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary']),
|
|
1528
1528
|
"virtual": zod_1.default.boolean()
|
|
1529
|
-
})),
|
|
1529
|
+
}).describe('Model for an input pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.InputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`,\r\n`Default`) rather than the raw `*Json` columns.')),
|
|
1530
1530
|
"isFunction": zod_1.default.boolean(),
|
|
1531
1531
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1532
1532
|
"outputs": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
@@ -1539,9 +1539,9 @@ exports.draftsListDraftsResponseItem = zod_1.default.object({
|
|
|
1539
1539
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1540
1540
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1541
1541
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1542
|
-
})),
|
|
1542
|
+
}).describe('Model for an output pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.OutputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`)\r\nrather than the raw `*Json` columns.')),
|
|
1543
1543
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1544
|
-
})),
|
|
1544
|
+
}).describe('Model for a block `PortInterface`. Inputs and Outputs are keyed by pin\r\nname (entities store them as `List<...>` with a `Key`\r\ncolumn; the model exposes them as dictionaries to match the API shape).')),
|
|
1545
1545
|
"scopes": zod_1.default.array(zod_1.default.enum(['WorkSpace', 'DataSet'])).nullish(),
|
|
1546
1546
|
"state": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
1547
1547
|
"default": zod_1.default.any().nullish(),
|
|
@@ -1550,15 +1550,15 @@ exports.draftsListDraftsResponseItem = zod_1.default.object({
|
|
|
1550
1550
|
"pin": zod_1.default.string(),
|
|
1551
1551
|
"port": zod_1.default.string()
|
|
1552
1552
|
}))
|
|
1553
|
-
}))
|
|
1554
|
-
}))),
|
|
1553
|
+
}).describe('Model for a block `StateInterface` — a piece of state declared by a\r\nblock interface, with a JSON default value and an optional pin-ref scope.'))
|
|
1554
|
+
}).describe('Model for a block interface — the schema that describes a single\r\n(name, version) pair of a block (ports, state, scope). Collides on the\r\nsimple name with `SmartSpace.App.Data.Entities.BlockInterface`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `Name` and `Version` live on the entity but are surfaced\r\nhere too so the wire shape is self-describing (the same model travels via\r\nSignalR debug payloads where the keys are stripped).'))),
|
|
1555
1555
|
"isActive": zod_1.default.boolean(),
|
|
1556
1556
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
1557
1557
|
"name": zod_1.default.string(),
|
|
1558
1558
|
"parseError": zod_1.default.string().nullish(),
|
|
1559
1559
|
"rowVersion": zod_1.default.string(),
|
|
1560
1560
|
"sourceText": zod_1.default.string()
|
|
1561
|
-
});
|
|
1561
|
+
}).describe('A browser-authored Draft Custom block — a `BlockSet` row with\r\n`IsDraft = true`, scoped to one user. See `ADR-0002` for the\r\nresolution rule that decides when the owner\'s draft wins over a published\r\nCustom at the same `(name, version)`.');
|
|
1562
1562
|
exports.draftsListDraftsResponse = zod_1.default.array(exports.draftsListDraftsResponseItem);
|
|
1563
1563
|
/**
|
|
1564
1564
|
* @summary Delete a draft (row + blob). Does not touch any published Custom of the same name.
|
|
@@ -1589,7 +1589,7 @@ exports.draftsGetDraftResponse = zod_1.default.object({
|
|
|
1589
1589
|
"sticky": zod_1.default.boolean(),
|
|
1590
1590
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary']),
|
|
1591
1591
|
"virtual": zod_1.default.boolean()
|
|
1592
|
-
})),
|
|
1592
|
+
}).describe('Model for an input pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.InputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`,\r\n`Default`) rather than the raw `*Json` columns.')),
|
|
1593
1593
|
"isFunction": zod_1.default.boolean(),
|
|
1594
1594
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1595
1595
|
"outputs": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
@@ -1602,9 +1602,9 @@ exports.draftsGetDraftResponse = zod_1.default.object({
|
|
|
1602
1602
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1603
1603
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1604
1604
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1605
|
-
})),
|
|
1605
|
+
}).describe('Model for an output pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.OutputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`)\r\nrather than the raw `*Json` columns.')),
|
|
1606
1606
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1607
|
-
})),
|
|
1607
|
+
}).describe('Model for a block `PortInterface`. Inputs and Outputs are keyed by pin\r\nname (entities store them as `List<...>` with a `Key`\r\ncolumn; the model exposes them as dictionaries to match the API shape).')),
|
|
1608
1608
|
"scopes": zod_1.default.array(zod_1.default.enum(['WorkSpace', 'DataSet'])).nullish(),
|
|
1609
1609
|
"state": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
1610
1610
|
"default": zod_1.default.any().nullish(),
|
|
@@ -1613,15 +1613,15 @@ exports.draftsGetDraftResponse = zod_1.default.object({
|
|
|
1613
1613
|
"pin": zod_1.default.string(),
|
|
1614
1614
|
"port": zod_1.default.string()
|
|
1615
1615
|
}))
|
|
1616
|
-
}))
|
|
1617
|
-
}))),
|
|
1616
|
+
}).describe('Model for a block `StateInterface` — a piece of state declared by a\r\nblock interface, with a JSON default value and an optional pin-ref scope.'))
|
|
1617
|
+
}).describe('Model for a block interface — the schema that describes a single\r\n(name, version) pair of a block (ports, state, scope). Collides on the\r\nsimple name with `SmartSpace.App.Data.Entities.BlockInterface`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `Name` and `Version` live on the entity but are surfaced\r\nhere too so the wire shape is self-describing (the same model travels via\r\nSignalR debug payloads where the keys are stripped).'))),
|
|
1618
1618
|
"isActive": zod_1.default.boolean(),
|
|
1619
1619
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
1620
1620
|
"name": zod_1.default.string(),
|
|
1621
1621
|
"parseError": zod_1.default.string().nullish(),
|
|
1622
1622
|
"rowVersion": zod_1.default.string(),
|
|
1623
1623
|
"sourceText": zod_1.default.string()
|
|
1624
|
-
});
|
|
1624
|
+
}).describe('A browser-authored Draft Custom block — a `BlockSet` row with\r\n`IsDraft = true`, scoped to one user. See `ADR-0002` for the\r\nresolution rule that decides when the owner\'s draft wins over a published\r\nCustom at the same `(name, version)`.');
|
|
1625
1625
|
/**
|
|
1626
1626
|
* @summary Toggle the draft's "Start testing" flag. See ADR-0002 — owner's active draft
|
|
1627
1627
|
overrides the published Custom at the same `(name, version)` for them only.
|
|
@@ -1643,7 +1643,7 @@ exports.draftsSaveDraftParams = zod_1.default.strictObject({
|
|
|
1643
1643
|
exports.draftsSaveDraftBody = zod_1.default.strictObject({
|
|
1644
1644
|
"expectedRowVersion": zod_1.default.string().nullish(),
|
|
1645
1645
|
"source": zod_1.default.string()
|
|
1646
|
-
});
|
|
1646
|
+
}).describe('Save a draft\'s source. `ExpectedRowVersion` is the value the client last saw;\r\nthe server returns 409 if the DB has moved on (eg. another tab). Null is allowed\r\nonly for first-ever creation.');
|
|
1647
1647
|
exports.draftsSaveDraftResponse = zod_1.default.object({
|
|
1648
1648
|
"blockInterfaces": zod_1.default.record(zod_1.default.string(), zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
1649
1649
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
@@ -1661,7 +1661,7 @@ exports.draftsSaveDraftResponse = zod_1.default.object({
|
|
|
1661
1661
|
"sticky": zod_1.default.boolean(),
|
|
1662
1662
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary']),
|
|
1663
1663
|
"virtual": zod_1.default.boolean()
|
|
1664
|
-
})),
|
|
1664
|
+
}).describe('Model for an input pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.InputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`,\r\n`Default`) rather than the raw `*Json` columns.')),
|
|
1665
1665
|
"isFunction": zod_1.default.boolean(),
|
|
1666
1666
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1667
1667
|
"outputs": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
@@ -1674,9 +1674,9 @@ exports.draftsSaveDraftResponse = zod_1.default.object({
|
|
|
1674
1674
|
"metadata": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1675
1675
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
1676
1676
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1677
|
-
})),
|
|
1677
|
+
}).describe('Model for an output pin on a block port. Mirrors the live\r\n`SmartSpace.App.Data.Entities.OutputPinInterface` shape but exposes the\r\nparsed JSON payloads (`Metadata`, `Schema`, `Generics`)\r\nrather than the raw `*Json` columns.')),
|
|
1678
1678
|
"type": zod_1.default.enum(['Single', 'List', 'Dictionary'])
|
|
1679
|
-
})),
|
|
1679
|
+
}).describe('Model for a block `PortInterface`. Inputs and Outputs are keyed by pin\r\nname (entities store them as `List<...>` with a `Key`\r\ncolumn; the model exposes them as dictionaries to match the API shape).')),
|
|
1680
1680
|
"scopes": zod_1.default.array(zod_1.default.enum(['WorkSpace', 'DataSet'])).nullish(),
|
|
1681
1681
|
"state": zod_1.default.record(zod_1.default.string(), zod_1.default.object({
|
|
1682
1682
|
"default": zod_1.default.any().nullish(),
|
|
@@ -1685,11 +1685,11 @@ exports.draftsSaveDraftResponse = zod_1.default.object({
|
|
|
1685
1685
|
"pin": zod_1.default.string(),
|
|
1686
1686
|
"port": zod_1.default.string()
|
|
1687
1687
|
}))
|
|
1688
|
-
}))
|
|
1689
|
-
}))),
|
|
1688
|
+
}).describe('Model for a block `StateInterface` — a piece of state declared by a\r\nblock interface, with a JSON default value and an optional pin-ref scope.'))
|
|
1689
|
+
}).describe('Model for a block interface — the schema that describes a single\r\n(name, version) pair of a block (ports, state, scope). Collides on the\r\nsimple name with `SmartSpace.App.Data.Entities.BlockInterface`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `Name` and `Version` live on the entity but are surfaced\r\nhere too so the wire shape is self-describing (the same model travels via\r\nSignalR debug payloads where the keys are stripped).'))),
|
|
1690
1690
|
"parseError": zod_1.default.string().nullish(),
|
|
1691
1691
|
"rowVersion": zod_1.default.string()
|
|
1692
|
-
});
|
|
1692
|
+
}).describe('Response after saving a draft. `ParseError` is non-null when the source\r\nfailed to parse — the text is still persisted, but `BlockInterfaces` is\r\nempty until parse succeeds (matches the editor\'s live-preview semantics).');
|
|
1693
1693
|
/**
|
|
1694
1694
|
* @summary Publish the draft's saved source as a tenant-visible Custom block set.
|
|
1695
1695
|
When a published set of the same name exists, the first call returns 409
|
|
@@ -1702,7 +1702,7 @@ exports.draftsPublishDraftParams = zod_1.default.strictObject({
|
|
|
1702
1702
|
exports.draftsPublishDraftBody = zod_1.default.strictObject({
|
|
1703
1703
|
"confirmOverwrite": zod_1.default.boolean(),
|
|
1704
1704
|
"publishAs": zod_1.default.string().nullish()
|
|
1705
|
-
});
|
|
1705
|
+
}).describe('`ConfirmOverwrite` must be true to replace an already-published set of\r\n the same name — the first attempt 409s with the impact details so the user\r\n opts in deliberately (see the custom-block rework design, Phase 3).');
|
|
1706
1706
|
exports.draftsPublishDraftResponseBlockSetIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
1707
1707
|
exports.draftsPublishDraftResponse = zod_1.default.object({
|
|
1708
1708
|
"blockSetId": zod_1.default.string().regex(exports.draftsPublishDraftResponseBlockSetIdRegExp),
|
|
@@ -1740,7 +1740,7 @@ exports.filesUploadFilesResponseItem = zod_1.default.object({
|
|
|
1740
1740
|
"size": zod_1.default.number(),
|
|
1741
1741
|
"threadId": zod_1.default.string().regex(exports.filesUploadFilesResponseThreadIdRegExpOne).nullish(),
|
|
1742
1742
|
"workspaceId": zod_1.default.string().regex(exports.filesUploadFilesResponseWorkspaceIdRegExpOne).nullish()
|
|
1743
|
-
});
|
|
1743
|
+
}).describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.');
|
|
1744
1744
|
exports.filesUploadFilesResponse = zod_1.default.array(exports.filesUploadFilesResponseItem);
|
|
1745
1745
|
/**
|
|
1746
1746
|
* @summary Get details for a file previously uploaded.
|
|
@@ -1768,7 +1768,7 @@ exports.filesGetFileInfoResponse = zod_1.default.object({
|
|
|
1768
1768
|
"size": zod_1.default.number(),
|
|
1769
1769
|
"threadId": zod_1.default.string().regex(exports.filesGetFileInfoResponseThreadIdRegExpOne).nullish(),
|
|
1770
1770
|
"workspaceId": zod_1.default.string().regex(exports.filesGetFileInfoResponseWorkspaceIdRegExpOne).nullish()
|
|
1771
|
-
});
|
|
1771
|
+
}).describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.');
|
|
1772
1772
|
/**
|
|
1773
1773
|
* @summary Download a previously uploaded file.
|
|
1774
1774
|
*/
|
|
@@ -1797,7 +1797,7 @@ exports.filesGetUriQueryParams = zod_1.default.strictObject({
|
|
|
1797
1797
|
});
|
|
1798
1798
|
exports.filesGetUriResponse = zod_1.default.object({
|
|
1799
1799
|
"uri": zod_1.default.string()
|
|
1800
|
-
});
|
|
1800
|
+
}).describe('Response shape for `GET /files/{id}/uri` on both the chat-api and\r\nconfig-api. Frontends call this with whatever URL the server hands them\r\n(e.g. as the `sourceUri` on a file MessageValue) and expect a JSON\r\nobject — not a bare string — so the wire format stays extensible (we can\r\nadd e.g. an expiry without breaking clients).');
|
|
1801
1801
|
/**
|
|
1802
1802
|
* @summary Creates a new flow run with the specified parameters
|
|
1803
1803
|
*/
|
|
@@ -1845,7 +1845,7 @@ exports.flowRunsGetFileFromFlowRunIdResponse = zod_1.default.object({
|
|
|
1845
1845
|
"size": zod_1.default.number(),
|
|
1846
1846
|
"threadId": zod_1.default.string().regex(exports.flowRunsGetFileFromFlowRunIdResponseThreadIdRegExp).nullish(),
|
|
1847
1847
|
"workspaceId": zod_1.default.string().regex(exports.flowRunsGetFileFromFlowRunIdResponseWorkspaceIdRegExp).nullish()
|
|
1848
|
-
});
|
|
1848
|
+
}).describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.');
|
|
1849
1849
|
/**
|
|
1850
1850
|
* @summary Gets a flow run including its context
|
|
1851
1851
|
*/
|
|
@@ -2082,9 +2082,9 @@ exports.modelsGetModelsResponse = zod_1.default.object({
|
|
|
2082
2082
|
"properties": zod_1.default.array(zod_1.default.object({
|
|
2083
2083
|
"name": zod_1.default.string(),
|
|
2084
2084
|
"type": zod_1.default.enum(['Boolean', 'Number', 'String'])
|
|
2085
|
-
})),
|
|
2085
|
+
}).describe('Polymorphic AI-model parameter (Number / Boolean / String) — discriminator\r\nlives on `Type`. The shape is kept because the public JSON contract\r\nreturns the variant-specific fields under one collection; flattening to a\r\nsingle record would be a breaking wire-shape change for the admin UI.')),
|
|
2086
2086
|
"virtualMachineUrl": zod_1.default.string().nullish()
|
|
2087
|
-
})),
|
|
2087
|
+
}).describe('Lighter list-endpoint shape — drops the nested `Deployment.Steps`\r\ncollection and keeps a flat `DeploymentStatus` + provider type for\r\nthe AI Models grid.')),
|
|
2088
2088
|
"total": zod_1.default.number()
|
|
2089
2089
|
});
|
|
2090
2090
|
/**
|
|
@@ -2174,8 +2174,8 @@ exports.modelsGetModelResponse = zod_1.default.object({
|
|
|
2174
2174
|
"properties": zod_1.default.array(zod_1.default.object({
|
|
2175
2175
|
"name": zod_1.default.string(),
|
|
2176
2176
|
"type": zod_1.default.enum(['Boolean', 'Number', 'String'])
|
|
2177
|
-
}))
|
|
2178
|
-
});
|
|
2177
|
+
}).describe('Polymorphic AI-model parameter (Number / Boolean / String) — discriminator\r\nlives on `Type`. The shape is kept because the public JSON contract\r\nreturns the variant-specific fields under one collection; flattening to a\r\nsingle record would be a breaking wire-shape change for the admin UI.'))
|
|
2178
|
+
}).describe('Full read model for an AI Model. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.Model`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. The folder is named `AiModels` to avoid the second namespace\r\ncollision with `SmartSpace.App.Business.Models` itself.');
|
|
2179
2179
|
/**
|
|
2180
2180
|
* @summary Updates or inserts a model with the specified ID.
|
|
2181
2181
|
*/
|
|
@@ -2247,10 +2247,10 @@ exports.notificationGetResponse = zod_1.default.object({
|
|
|
2247
2247
|
"notificationType": zod_1.default.enum(['WorkSpaceUpdated', 'MessageThreadUpdated', 'CommentUpdated', 'AddedToThread']),
|
|
2248
2248
|
"threadId": zod_1.default.string().regex(exports.notificationGetResponseDataItemThreadIdRegExpOne).nullish(),
|
|
2249
2249
|
"workSpaceId": zod_1.default.string().regex(exports.notificationGetResponseDataItemWorkSpaceIdRegExpOne).nullish()
|
|
2250
|
-
})),
|
|
2250
|
+
}).describe('Model for a Notification. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.Notification`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. `CreatedBy` (display name) sits outside the positional ctor\r\nbecause it can\'t be expression-tree-translated — the service hydrates it\r\npost-projection via `IUserService.GetPrincipalDisplayNameByIdAsync`\r\nand emits a `with { CreatedBy = ... }`.')),
|
|
2251
2251
|
"total": zod_1.default.number(),
|
|
2252
2252
|
"totalUnread": zod_1.default.number()
|
|
2253
|
-
});
|
|
2253
|
+
}).describe('Notification list response shape. Two counts so callers can render an\r\n\"X unread of Y total\" badge without a second round-trip.');
|
|
2254
2254
|
/**
|
|
2255
2255
|
* @summary Update: mark read notifications.
|
|
2256
2256
|
*/
|
|
@@ -2361,7 +2361,7 @@ exports.syncsGetResponse = zod_1.default.object({
|
|
|
2361
2361
|
"message": zod_1.default.string().nullish(),
|
|
2362
2362
|
"start": zod_1.default.iso.datetime({}),
|
|
2363
2363
|
"status": zod_1.default.string()
|
|
2364
|
-
})).nullish(),
|
|
2364
|
+
}).describe('One sync = one configured data source container: the source selection\r\n(path + filters) the sync service pulls, with its high-water mark and the\r\ndatasets subscribed to it via container flow triggers.')).nullish(),
|
|
2365
2365
|
"statusMessage": zod_1.default.string().nullish()
|
|
2366
2366
|
})),
|
|
2367
2367
|
"total": zod_1.default.number()
|
|
@@ -2376,7 +2376,7 @@ exports.syncsGetQueueResponseWaitingDataSourceIdsItemRegExp = new RegExp('^[0-9a
|
|
|
2376
2376
|
exports.syncsGetQueueResponse = zod_1.default.object({
|
|
2377
2377
|
"depth": zod_1.default.number(),
|
|
2378
2378
|
"waitingDataSourceIds": zod_1.default.array(zod_1.default.string().regex(exports.syncsGetQueueResponseWaitingDataSourceIdsItemRegExp))
|
|
2379
|
-
});
|
|
2379
|
+
}).describe('Point-in-time view of the sync-requests queue: how many requests are\r\nwaiting and which data sources they are for. Waiting only — a message\r\nbeing processed is invisible for its visibility timeout (that state is\r\nwhat IsSyncing covers).');
|
|
2380
2380
|
exports.syncsGetByIdPathContainerIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
2381
2381
|
exports.syncsGetByIdParams = zod_1.default.strictObject({
|
|
2382
2382
|
"containerId": zod_1.default.string().regex(exports.syncsGetByIdPathContainerIdRegExp)
|
|
@@ -2414,7 +2414,7 @@ exports.syncsGetByIdResponse = zod_1.default.object({
|
|
|
2414
2414
|
"message": zod_1.default.string().nullish(),
|
|
2415
2415
|
"start": zod_1.default.iso.datetime({}),
|
|
2416
2416
|
"status": zod_1.default.string()
|
|
2417
|
-
})).nullish(),
|
|
2417
|
+
}).describe('One sync = one configured data source container: the source selection\r\n(path + filters) the sync service pulls, with its high-water mark and the\r\ndatasets subscribed to it via container flow triggers.')).nullish(),
|
|
2418
2418
|
"statusMessage": zod_1.default.string().nullish()
|
|
2419
2419
|
});
|
|
2420
2420
|
/**
|
|
@@ -2469,7 +2469,7 @@ exports.usersGetUsersResponse = zod_1.default.object({
|
|
|
2469
2469
|
"mobilePhone": zod_1.default.string().nullish(),
|
|
2470
2470
|
"name": zod_1.default.string(),
|
|
2471
2471
|
"permissions": zod_1.default.array(zod_1.default.enum(['WorkspaceCreate', 'WorkspaceEdit', 'WorkspaceDelete', 'DataSpaceCreate', 'DataSpaceEdit', 'DataSpaceDelete', 'ConnectorCreate', 'ConnectorEdit', 'ConnectorDelete']))
|
|
2472
|
-
})),
|
|
2472
|
+
}).describe('Full per-user detail returned by the admin user-management endpoints.\r\nJoins the AAD principal with the local SmartSpace.App.Business.Models.Users.UserPermission\r\njunction state and last-activity timestamp.')),
|
|
2473
2473
|
"total": zod_1.default.number()
|
|
2474
2474
|
});
|
|
2475
2475
|
exports.usersGetUsersByFilterParams = zod_1.default.strictObject({
|
|
@@ -2497,7 +2497,7 @@ exports.usersSearchUsersResponseItem = zod_1.default.object({
|
|
|
2497
2497
|
"id": zod_1.default.string(),
|
|
2498
2498
|
"isAssigned": zod_1.default.boolean(),
|
|
2499
2499
|
"name": zod_1.default.string()
|
|
2500
|
-
});
|
|
2500
|
+
}).describe('Minimal user search result for autocomplete / picker UIs. Drops every\r\nfield that isn\'t needed to render a row — the picker only needs id, name,\r\nand email.');
|
|
2501
2501
|
exports.usersSearchUsersResponse = zod_1.default.array(exports.usersSearchUsersResponseItem);
|
|
2502
2502
|
/**
|
|
2503
2503
|
* @summary Retrieve user detail in SmartSpace
|
|
@@ -2511,7 +2511,7 @@ exports.usersGetUserDetailResponse = zod_1.default.object({
|
|
|
2511
2511
|
"isAdmin": zod_1.default.boolean().nullish(),
|
|
2512
2512
|
"mobilePhone": zod_1.default.string().nullish(),
|
|
2513
2513
|
"name": zod_1.default.string()
|
|
2514
|
-
});
|
|
2514
|
+
}).describe('Lighter user model used by role-membership lookups and permission-based\r\nfilters where the full per-user activity and permission set isn\'t needed.\r\nDrops the heavier SmartSpace.App.Business.Models.Users.AppUserDetail fields to keep\r\nrole-membership payloads tight.');
|
|
2515
2515
|
/**
|
|
2516
2516
|
* @summary Retrieves the profile photo for a user. Returns the raw JPEG image with HTTP cache headers
|
|
2517
2517
|
so browsers can cache the image via standard img src usage.
|
|
@@ -2545,7 +2545,7 @@ exports.usersGetAccessWorkSpacesResponse = zod_1.default.object({
|
|
|
2545
2545
|
"principalType": zod_1.default.enum(['Unknown', 'User', 'ServicePrincipal', 'Internal']).optional(),
|
|
2546
2546
|
"workSpaceId": zod_1.default.string().regex(exports.usersGetAccessWorkSpacesResponseDataItemWorkSpaceIdRegExp).nullish(),
|
|
2547
2547
|
"workSpaceName": zod_1.default.string().nullish()
|
|
2548
|
-
})),
|
|
2548
|
+
}).describe('Per-workspace access summary surfaced by the \"what workspaces does this\r\nuser belong to\" lookups. Carries the workspace\'s name alongside the\r\naccess grant so callers can render the assignment list without an\r\nadditional workspace lookup.')),
|
|
2549
2549
|
"total": zod_1.default.number()
|
|
2550
2550
|
});
|
|
2551
2551
|
exports.usersAdminPermissionPathUserIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -2654,7 +2654,7 @@ exports.workSpacesGetGetResponse = zod_1.default.object({
|
|
|
2654
2654
|
"id": zod_1.default.string().regex(exports.workSpacesGetGetResponseDataItemConnectorsItemIdRegExpOne),
|
|
2655
2655
|
"kind": zod_1.default.string(),
|
|
2656
2656
|
"name": zod_1.default.string()
|
|
2657
|
-
})),
|
|
2657
|
+
}).describe('The shape non-admins are allowed to see: enough to pick a connector from a\r\ndropdown, and nothing more. No URL (that is infrastructure detail) and no\r\nauth settings. Used by the workspace MCP tab\'s picker and embedded in the\r\nworkspace detail response so the flow editor can list what is attached.')),
|
|
2658
2658
|
"createdAt": zod_1.default.iso.datetime({}),
|
|
2659
2659
|
"createdByUserId": zod_1.default.string(),
|
|
2660
2660
|
"dataSpaces": zod_1.default.array(zod_1.default.object({
|
|
@@ -2756,7 +2756,7 @@ exports.workSpacesGetGetResponse = zod_1.default.object({
|
|
|
2756
2756
|
"workspacesInfo": zod_1.default.array(zod_1.default.object({
|
|
2757
2757
|
"id": zod_1.default.string().regex(exports.workSpacesGetGetResponseDataItemDataSpacesItemWorkspacesInfoItemIdRegExpOne),
|
|
2758
2758
|
"name": zod_1.default.string()
|
|
2759
|
-
})).nullish()
|
|
2759
|
+
}).describe('Cross-domain lightweight workspace pointer (id + name) embedded in\r\nshapes owned by other domains (e.g. SmartSpace.App.Business.Models.DataSpace). Stays\r\nin the legacy `SmartSpace.App.Business.Models` namespace until\r\nthose domains migrate.')).nullish()
|
|
2760
2760
|
})),
|
|
2761
2761
|
"favorited": zod_1.default.boolean(),
|
|
2762
2762
|
"firstPrompt": zod_1.default.string().nullish(),
|
|
@@ -2825,7 +2825,7 @@ exports.workSpacesGetGetResponse = zod_1.default.object({
|
|
|
2825
2825
|
"access": zod_1.default.enum(['None', 'Read', 'Write']),
|
|
2826
2826
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any())
|
|
2827
2827
|
}))
|
|
2828
|
-
})),
|
|
2828
|
+
}).describe('Full read model for a WorkSpace. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.WorkSpace`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. References pre-existing cross-domain models\r\n(SmartSpace.App.Business.Models.DataSpace, SmartSpace.App.Business.Models.ModelConfiguration,\r\nSmartSpace.App.Business.Models.Flows.FlowInput, SmartSpace.App.Business.Models.Flows.FlowVariable) — those are not\r\nre-modelled by this PR.')),
|
|
2829
2829
|
"total": zod_1.default.number()
|
|
2830
2830
|
});
|
|
2831
2831
|
/**
|
|
@@ -2850,7 +2850,7 @@ exports.workSpacesPostBody = zod_1.default.strictObject({
|
|
|
2850
2850
|
})),
|
|
2851
2851
|
"name": zod_1.default.string(),
|
|
2852
2852
|
"templateVersionId": zod_1.default.string().regex(exports.workSpacesPostBodyTemplateVersionIdRegExp).nullish()
|
|
2853
|
-
});
|
|
2853
|
+
}).describe('Request shape for creating a workspace. SmartSpace.App.Business.Models.WorkSpaces.CreateWorkSpace.Id is optional —\r\ncallers may pre-allocate the id (e.g. for idempotency / client-side\r\noptimistic UI) or let the service generate one.');
|
|
2854
2854
|
/**
|
|
2855
2855
|
* @summary Deletes a workspace by its ID.
|
|
2856
2856
|
*/
|
|
@@ -2889,7 +2889,7 @@ exports.workSpacesGetIdResponse = zod_1.default.object({
|
|
|
2889
2889
|
"id": zod_1.default.string().regex(exports.workSpacesGetIdResponseConnectorsItemIdRegExpOne),
|
|
2890
2890
|
"kind": zod_1.default.string(),
|
|
2891
2891
|
"name": zod_1.default.string()
|
|
2892
|
-
})),
|
|
2892
|
+
}).describe('The shape non-admins are allowed to see: enough to pick a connector from a\r\ndropdown, and nothing more. No URL (that is infrastructure detail) and no\r\nauth settings. Used by the workspace MCP tab\'s picker and embedded in the\r\nworkspace detail response so the flow editor can list what is attached.')),
|
|
2893
2893
|
"createdAt": zod_1.default.iso.datetime({}),
|
|
2894
2894
|
"createdByUserId": zod_1.default.string(),
|
|
2895
2895
|
"dataSpaces": zod_1.default.array(zod_1.default.object({
|
|
@@ -2991,7 +2991,7 @@ exports.workSpacesGetIdResponse = zod_1.default.object({
|
|
|
2991
2991
|
"workspacesInfo": zod_1.default.array(zod_1.default.object({
|
|
2992
2992
|
"id": zod_1.default.string().regex(exports.workSpacesGetIdResponseDataSpacesItemWorkspacesInfoItemIdRegExpOne),
|
|
2993
2993
|
"name": zod_1.default.string()
|
|
2994
|
-
})).nullish()
|
|
2994
|
+
}).describe('Cross-domain lightweight workspace pointer (id + name) embedded in\r\nshapes owned by other domains (e.g. SmartSpace.App.Business.Models.DataSpace). Stays\r\nin the legacy `SmartSpace.App.Business.Models` namespace until\r\nthose domains migrate.')).nullish()
|
|
2995
2995
|
})),
|
|
2996
2996
|
"favorited": zod_1.default.boolean(),
|
|
2997
2997
|
"firstPrompt": zod_1.default.string().nullish(),
|
|
@@ -3060,7 +3060,7 @@ exports.workSpacesGetIdResponse = zod_1.default.object({
|
|
|
3060
3060
|
"access": zod_1.default.enum(['None', 'Read', 'Write']),
|
|
3061
3061
|
"schema": zod_1.default.record(zod_1.default.string(), zod_1.default.any())
|
|
3062
3062
|
}))
|
|
3063
|
-
});
|
|
3063
|
+
}).describe('Full read model for a WorkSpace. Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.WorkSpace`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import\r\nboth. References pre-existing cross-domain models\r\n(SmartSpace.App.Business.Models.DataSpace, SmartSpace.App.Business.Models.ModelConfiguration,\r\nSmartSpace.App.Business.Models.Flows.FlowInput, SmartSpace.App.Business.Models.Flows.FlowVariable) — those are not\r\nre-modelled by this PR.');
|
|
3064
3064
|
exports.workSpacesGetWorkspaceAdminsPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3065
3065
|
exports.workSpacesGetWorkspaceAdminsParams = zod_1.default.strictObject({
|
|
3066
3066
|
"id": zod_1.default.string().regex(exports.workSpacesGetWorkspaceAdminsPathIdRegExp)
|
|
@@ -3069,7 +3069,7 @@ exports.workSpacesGetWorkspaceAdminsResponseItem = zod_1.default.object({
|
|
|
3069
3069
|
"id": zod_1.default.string(),
|
|
3070
3070
|
"isAdmin": zod_1.default.boolean(),
|
|
3071
3071
|
"name": zod_1.default.string()
|
|
3072
|
-
});
|
|
3072
|
+
}).describe('User-on-workspace projection: the user\'s id, display name, and whether\r\nthey are a workspace admin. Composed by the service from\r\n`EntityAccess` + `WorkspaceAdmin` records + the user-directory\r\ndisplay name — not a direct entity projection.');
|
|
3073
3073
|
exports.workSpacesGetWorkspaceAdminsResponse = zod_1.default.array(exports.workSpacesGetWorkspaceAdminsResponseItem);
|
|
3074
3074
|
exports.workSpacesDeleteAdminPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3075
3075
|
exports.workSpacesDeleteAdminPathUserIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
@@ -3097,7 +3097,7 @@ exports.workSpacesPutBody = zod_1.default.strictObject({
|
|
|
3097
3097
|
"showSources": zod_1.default.boolean(),
|
|
3098
3098
|
"summary": zod_1.default.string().nullish(),
|
|
3099
3099
|
"tags": zod_1.default.array(zod_1.default.string()).nullish()
|
|
3100
|
-
});
|
|
3100
|
+
}).describe('Request shape for the basic-info PUT endpoint. Replaces the legacy\r\n`WorkSpaceBasicInfo` record (which lacked DataAnnotations); shape\r\nunchanged so the wire contract is preserved.');
|
|
3101
3101
|
/**
|
|
3102
3102
|
* @summary Marks a workspace as favorited or not for the active user.
|
|
3103
3103
|
*/
|
|
@@ -3238,13 +3238,13 @@ exports.workSpacesGetWorkspaceFilesResponse = zod_1.default.object({
|
|
|
3238
3238
|
"size": zod_1.default.number(),
|
|
3239
3239
|
"threadId": zod_1.default.string().regex(exports.workSpacesGetWorkspaceFilesResponseDataItemFileThreadIdRegExp).nullish(),
|
|
3240
3240
|
"workspaceId": zod_1.default.string().regex(exports.workSpacesGetWorkspaceFilesResponseDataItemFileWorkspaceIdRegExp).nullish()
|
|
3241
|
-
}).optional(),
|
|
3241
|
+
}).optional().describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.'),
|
|
3242
3242
|
"flowRunId": zod_1.default.string().nullish(),
|
|
3243
3243
|
"id": zod_1.default.string(),
|
|
3244
3244
|
"modifiedAt": zod_1.default.iso.datetime({}).nullish(),
|
|
3245
3245
|
"modifiedByUserId": zod_1.default.string().nullish(),
|
|
3246
3246
|
"status": zod_1.default.enum(['Uploaded', 'Ingested', 'Ingesting'])
|
|
3247
|
-
})),
|
|
3247
|
+
}).describe('Model for an ingested blob — pairs a stored SmartSpace.App.Business.Models.Files.IngestedBlob.File with its\r\ningestion lifecycle (status, owning dataset, originating flow run).\r\n`CreatedByUserName` is filled in by the service post-projection\r\n(display-name lookup via `IUserService`); it is not part of the EF\r\nprojection because it cannot be expression-tree-translated.')),
|
|
3248
3248
|
"total": zod_1.default.number()
|
|
3249
3249
|
});
|
|
3250
3250
|
/**
|
|
@@ -3275,13 +3275,13 @@ exports.workSpacesWorkspaceFilesResponseItem = zod_1.default.object({
|
|
|
3275
3275
|
"size": zod_1.default.number(),
|
|
3276
3276
|
"threadId": zod_1.default.string().regex(exports.workSpacesWorkspaceFilesResponseFileThreadIdRegExp).nullish(),
|
|
3277
3277
|
"workspaceId": zod_1.default.string().regex(exports.workSpacesWorkspaceFilesResponseFileWorkspaceIdRegExp).nullish()
|
|
3278
|
-
}).optional(),
|
|
3278
|
+
}).optional().describe('Model for a stored file blob. The simple name collides with\r\n`System.IO.File` and `SmartSpace.App.Data.Entities.FileEntity`\r\n(which is itself named to side-step the BCL collision); the\r\n`SmartSpace.App.Business.Models.Files` namespace disambiguates. When\r\nimporting both this model and the entity, alias the entity side:\r\n```using DataEntities = SmartSpace.App.Data.Entities;```\n`ThreadId` reflects the entity column `MessageThreadId`\r\n(renamed at the model boundary because the API contract has always called\r\nit `threadId`). `WorkspaceId` keeps the lower-s spelling that\r\nmatches the entity column and is already on the wire.'),
|
|
3279
3279
|
"flowRunId": zod_1.default.string().nullish(),
|
|
3280
3280
|
"id": zod_1.default.string(),
|
|
3281
3281
|
"modifiedAt": zod_1.default.iso.datetime({}).nullish(),
|
|
3282
3282
|
"modifiedByUserId": zod_1.default.string().nullish(),
|
|
3283
3283
|
"status": zod_1.default.enum(['Uploaded', 'Ingested', 'Ingesting'])
|
|
3284
|
-
});
|
|
3284
|
+
}).describe('Model for an ingested blob — pairs a stored SmartSpace.App.Business.Models.Files.IngestedBlob.File with its\r\ningestion lifecycle (status, owning dataset, originating flow run).\r\n`CreatedByUserName` is filled in by the service post-projection\r\n(display-name lookup via `IUserService`); it is not part of the EF\r\nprojection because it cannot be expression-tree-translated.');
|
|
3285
3285
|
exports.workSpacesWorkspaceFilesResponse = zod_1.default.array(exports.workSpacesWorkspaceFilesResponseItem);
|
|
3286
3286
|
/**
|
|
3287
3287
|
* @summary Removes a file from the workspace and the ingested content.
|
|
@@ -3433,7 +3433,7 @@ exports.connectorsGetConnectorsResponseItem = zod_1.default.object({
|
|
|
3433
3433
|
"modifiedByUserId": zod_1.default.string(),
|
|
3434
3434
|
"name": zod_1.default.string(),
|
|
3435
3435
|
"url": zod_1.default.string()
|
|
3436
|
-
});
|
|
3436
|
+
}).describe('Admin read shape for a connector. Carries the auth SETTINGS (type, header,\r\nscheme) because an admin editing the connector needs to see them — but\r\nnever the vault reference and never the value. Collides on the simple name\r\nwith `SmartSpace.App.Data.Entities.Connector`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files importing both.');
|
|
3437
3437
|
exports.connectorsGetConnectorsResponse = zod_1.default.array(exports.connectorsGetConnectorsResponseItem);
|
|
3438
3438
|
/**
|
|
3439
3439
|
* @summary Creates a connector and its shared credential in one call: the value
|
|
@@ -3447,7 +3447,7 @@ exports.connectorsCreateConnectorBody = zod_1.default.strictObject({
|
|
|
3447
3447
|
"name": zod_1.default.string(),
|
|
3448
3448
|
"secret": zod_1.default.string().nullish(),
|
|
3449
3449
|
"url": zod_1.default.string()
|
|
3450
|
-
});
|
|
3450
|
+
}).describe('Create request. One form writes both rows: the connector (identity) and\r\nits single shared connection (credential). `Secret` is write-only —\r\nit goes straight to Key Vault and is never returned by any admin endpoint.');
|
|
3451
3451
|
/**
|
|
3452
3452
|
* @summary Picker list for workspace editors: id, name and kind only. Gated on
|
|
3453
3453
|
WorkspaceEdit rather than Admin because attaching a connector to a
|
|
@@ -3462,7 +3462,7 @@ exports.connectorsGetConnectorSummariesResponseItem = zod_1.default.object({
|
|
|
3462
3462
|
"id": zod_1.default.string().regex(exports.connectorsGetConnectorSummariesResponseIdRegExp),
|
|
3463
3463
|
"kind": zod_1.default.string(),
|
|
3464
3464
|
"name": zod_1.default.string()
|
|
3465
|
-
});
|
|
3465
|
+
}).describe('The shape non-admins are allowed to see: enough to pick a connector from a\r\ndropdown, and nothing more. No URL (that is infrastructure detail) and no\r\nauth settings. Used by the workspace MCP tab\'s picker and embedded in the\r\nworkspace detail response so the flow editor can list what is attached.');
|
|
3466
3466
|
exports.connectorsGetConnectorSummariesResponse = zod_1.default.array(exports.connectorsGetConnectorSummariesResponseItem);
|
|
3467
3467
|
exports.connectorsDeleteConnectorPathIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3468
3468
|
exports.connectorsDeleteConnectorParams = zod_1.default.strictObject({
|
|
@@ -3486,7 +3486,7 @@ exports.connectorsGetConnectorResponse = zod_1.default.object({
|
|
|
3486
3486
|
"modifiedByUserId": zod_1.default.string(),
|
|
3487
3487
|
"name": zod_1.default.string(),
|
|
3488
3488
|
"url": zod_1.default.string()
|
|
3489
|
-
});
|
|
3489
|
+
}).describe('Admin read shape for a connector. Carries the auth SETTINGS (type, header,\r\nscheme) because an admin editing the connector needs to see them — but\r\nnever the vault reference and never the value. Collides on the simple name\r\nwith `SmartSpace.App.Data.Entities.Connector`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files importing both.');
|
|
3490
3490
|
/**
|
|
3491
3491
|
* @summary Updates a connector. Omit `Secret` to leave the credential
|
|
3492
3492
|
untouched; supply one to rotate it.
|
|
@@ -3502,7 +3502,7 @@ exports.connectorsUpdateConnectorBody = zod_1.default.strictObject({
|
|
|
3502
3502
|
"name": zod_1.default.string(),
|
|
3503
3503
|
"secret": zod_1.default.string().nullish(),
|
|
3504
3504
|
"url": zod_1.default.string()
|
|
3505
|
-
});
|
|
3505
|
+
}).describe('Update request. `Kind` is absent on purpose — changing what a\r\nconnector IS would invalidate every flow referencing it; delete and\r\nrecreate instead.\r\n \r\n`Secret` null means \"leave the credential alone\". A non-null value\r\nrotates it: a new version of the SAME vault secret, so the row\'s reference\r\nnever changes and no orphan is left behind.');
|
|
3506
3506
|
exports.connectorsUpdateConnectorResponseIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3507
3507
|
exports.connectorsUpdateConnectorResponse = zod_1.default.object({
|
|
3508
3508
|
"authHeaderName": zod_1.default.string().nullish(),
|
|
@@ -3517,7 +3517,7 @@ exports.connectorsUpdateConnectorResponse = zod_1.default.object({
|
|
|
3517
3517
|
"modifiedByUserId": zod_1.default.string(),
|
|
3518
3518
|
"name": zod_1.default.string(),
|
|
3519
3519
|
"url": zod_1.default.string()
|
|
3520
|
-
});
|
|
3520
|
+
}).describe('Admin read shape for a connector. Carries the auth SETTINGS (type, header,\r\nscheme) because an admin editing the connector needs to see them — but\r\nnever the vault reference and never the value. Collides on the simple name\r\nwith `SmartSpace.App.Data.Entities.Connector`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files importing both.');
|
|
3521
3521
|
/**
|
|
3522
3522
|
* @summary Retrieve a Shared Access Signature (SAS) for a specific item within a data space's documents in SmartSpace, using the dataSpaceId.
|
|
3523
3523
|
*/
|
|
@@ -3542,7 +3542,7 @@ exports.managedSecretsGetManagedSecretsResponseItem = zod_1.default.object({
|
|
|
3542
3542
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
3543
3543
|
"modifiedByUserId": zod_1.default.string(),
|
|
3544
3544
|
"name": zod_1.default.string()
|
|
3545
|
-
});
|
|
3545
|
+
}).describe('Read/list shape for a managed secret. Deliberately carries NO value property\r\nand NO vault reference — secret values are write-only through the admin\r\nsurface and only ever leave via the machine-only resolve endpoint\r\n(SmartSpace.App.Business.Models.ManagedSecrets.ResolvedManagedSecret). Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.ManagedSecret`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import both.');
|
|
3546
3546
|
exports.managedSecretsGetManagedSecretsResponse = zod_1.default.array(exports.managedSecretsGetManagedSecretsResponseItem);
|
|
3547
3547
|
/**
|
|
3548
3548
|
* @summary Creates a named secret: writes the value to Key Vault and stores only
|
|
@@ -3551,7 +3551,7 @@ the vault reference.
|
|
|
3551
3551
|
exports.managedSecretsCreateManagedSecretBody = zod_1.default.strictObject({
|
|
3552
3552
|
"name": zod_1.default.string(),
|
|
3553
3553
|
"value": zod_1.default.string()
|
|
3554
|
-
});
|
|
3554
|
+
}).describe('Create request shape. `Name` must match the token-safe pattern so it\r\nembeds cleanly in flow-definition secret tokens; the same rule is enforced\r\nas a business rule in `ManagedSecretService` (single source:\r\n`CreateManagedSecret.Pattern`). `Value` is write-only — it goes to\r\nKey Vault and is never returned by any admin endpoint.');
|
|
3555
3555
|
/**
|
|
3556
3556
|
* @summary Deletes a secret: removes the Key Vault secret and hard-deletes the row.
|
|
3557
3557
|
*/
|
|
@@ -3568,7 +3568,7 @@ exports.managedSecretsOverwriteManagedSecretValueParams = zod_1.default.strictOb
|
|
|
3568
3568
|
});
|
|
3569
3569
|
exports.managedSecretsOverwriteManagedSecretValueBody = zod_1.default.strictObject({
|
|
3570
3570
|
"value": zod_1.default.string()
|
|
3571
|
-
});
|
|
3571
|
+
}).describe('Overwrite-value request shape (rotation). Writes a new version of the same\r\nKey Vault secret — the row\'s vault reference is reused, never re-minted.');
|
|
3572
3572
|
exports.managedSecretsOverwriteManagedSecretValueResponseIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3573
3573
|
exports.managedSecretsOverwriteManagedSecretValueResponse = zod_1.default.object({
|
|
3574
3574
|
"createdAt": zod_1.default.iso.datetime({}),
|
|
@@ -3577,7 +3577,7 @@ exports.managedSecretsOverwriteManagedSecretValueResponse = zod_1.default.object
|
|
|
3577
3577
|
"modifiedAt": zod_1.default.iso.datetime({}),
|
|
3578
3578
|
"modifiedByUserId": zod_1.default.string(),
|
|
3579
3579
|
"name": zod_1.default.string()
|
|
3580
|
-
});
|
|
3580
|
+
}).describe('Read/list shape for a managed secret. Deliberately carries NO value property\r\nand NO vault reference — secret values are write-only through the admin\r\nsurface and only ever leave via the machine-only resolve endpoint\r\n(SmartSpace.App.Business.Models.ManagedSecrets.ResolvedManagedSecret). Collides on the simple name with\r\n`SmartSpace.App.Data.Entities.ManagedSecret`; alias\r\n`DataEntities = SmartSpace.App.Data.Entities` in files that import both.');
|
|
3581
3581
|
exports.messageThreadsGetWorkspaceExecutionsPathWorkSpaceIdRegExp = new RegExp('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$');
|
|
3582
3582
|
exports.messageThreadsGetWorkspaceExecutionsParams = zod_1.default.strictObject({
|
|
3583
3583
|
"workSpaceId": zod_1.default.string().regex(exports.messageThreadsGetWorkspaceExecutionsPathWorkSpaceIdRegExp)
|