@smartspace/api-client 0.1.0-dev.16af746 → 0.1.0-dev.187ccbe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/chat/api.d.ts +5 -1
- package/dist/generated/chat/api.js +19 -1
- package/dist/generated/chat/api.msw.d.ts +5 -1
- package/dist/generated/chat/api.msw.js +60 -32
- package/dist/generated/chat/models/index.d.ts +2 -0
- package/dist/generated/chat/models/index.js +2 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechConfig.d.ts +12 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechConfig.js +8 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechToken.d.ts +10 -0
- package/dist/generated/chat/models/integrationsAzureSpeechSpeechToken.js +8 -0
- package/dist/generated/chat/zod.d.ts +19 -0
- package/dist/generated/chat/zod.js +22 -3
- package/dist/generated/config/api.d.ts +13 -1
- package/dist/generated/config/api.js +88 -2
- package/dist/generated/config/api.msw.d.ts +11 -1
- package/dist/generated/config/api.msw.js +171 -90
- package/dist/generated/config/models/containerItem.d.ts +3 -0
- package/dist/generated/config/models/containerItem.js +0 -6
- package/dist/generated/config/models/containerItemIngestion.d.ts +34 -0
- package/dist/generated/config/models/containerItemIngestion.js +8 -0
- package/dist/generated/config/models/containersPostParams.d.ts +4 -0
- package/dist/generated/config/models/index.d.ts +4 -0
- package/dist/generated/config/models/index.js +4 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechConfig.d.ts +12 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechConfig.js +8 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechToken.d.ts +10 -0
- package/dist/generated/config/models/integrationsAzureSpeechSpeechToken.js +8 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiContainerItemRunHistory.d.ts +4 -0
- package/dist/generated/config/models/integrationsSmartSpaceAiIngestionRun.d.ts +15 -0
- package/dist/generated/config/models/syncsGetPoisonedParams.d.ts +10 -0
- package/dist/generated/config/models/syncsGetPoisonedParams.js +8 -0
- package/dist/generated/config/models/syncsSync.d.ts +9 -4
- package/dist/generated/config/zod.d.ts +226 -5
- package/dist/generated/config/zod.js +234 -25
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SmartSpace Chat API
|
|
5
5
|
* OpenAPI spec version: v1
|
|
6
6
|
*/
|
|
7
|
-
import type { AiModel, CommentComment, CommentCreateComment, CreateMessageThread, DocumentsGetDocumentSasParams, FilesDownloadFileParams, FilesFile, FilesFileUriResponse, FilesGetFileInfoParams, FilesGetUriParams, FilesUploadFilesBody, FlowRunsGetVariables200One, FlowRunsGetVariables200Three, FlowRunsGetVariables200Two, IntegrationsAzureStorageSasToken, MessageThreadMessageThreadSummary, MessageThreadsGetCommentsParams, MessageThreadsThreadMessagesIdMessagesParams, MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesParams, MessagesCreateMessageInput, MessagesGetCommentsParams, MessagesMessage, MessagesMessageCreatorProfileImage, MessagesMessageRequest, ModelsGetModelsParams, NotificationGetParams, NotificationsPagedNotifications, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, UsersAppUser, WorkSpacesGetAccessParams, WorkSpacesGetGetParams, WorkSpacesGetUsersParams, WorkSpacesThreadParams, WorkSpacesWorkSpace } from './models';
|
|
7
|
+
import type { AiModel, CommentComment, CommentCreateComment, CreateMessageThread, DocumentsGetDocumentSasParams, FilesDownloadFileParams, FilesFile, FilesFileUriResponse, FilesGetFileInfoParams, FilesGetUriParams, FilesUploadFilesBody, FlowRunsGetVariables200One, FlowRunsGetVariables200Three, FlowRunsGetVariables200Two, IntegrationsAzureSpeechSpeechConfig, IntegrationsAzureSpeechSpeechToken, IntegrationsAzureStorageSasToken, MessageThreadMessageThreadSummary, MessageThreadsGetCommentsParams, MessageThreadsThreadMessagesIdMessagesParams, MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesParams, MessagesCreateMessageInput, MessagesGetCommentsParams, MessagesMessage, MessagesMessageCreatorProfileImage, MessagesMessageRequest, ModelsGetModelsParams, NotificationGetParams, NotificationsPagedNotifications, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, UsersAppUser, WorkSpacesGetAccessParams, WorkSpacesGetGetParams, WorkSpacesGetUsersParams, WorkSpacesThreadParams, WorkSpacesWorkSpace } from './models';
|
|
8
8
|
export declare const getSmartSpaceChatAPI: () => {
|
|
9
9
|
filesUploadFiles: (filesUploadFilesBody: FilesUploadFilesBody) => Promise<import("axios").AxiosResponse<void | FilesFile[], any, {}>>;
|
|
10
10
|
filesGetFileInfo: (id: string, params?: FilesGetFileInfoParams) => Promise<import("axios").AxiosResponse<FilesFile, any, {}>>;
|
|
@@ -35,6 +35,8 @@ export declare const getSmartSpaceChatAPI: () => {
|
|
|
35
35
|
notificationGet: (params?: NotificationGetParams) => Promise<import("axios").AxiosResponse<NotificationsPagedNotifications, any, {}>>;
|
|
36
36
|
notificationPutUpdate: (notificationPutUpdateBody: string[]) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
37
37
|
notificationPutUpdateall: () => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
38
|
+
speechGetConfig: () => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechConfig, any, {}>>;
|
|
39
|
+
speechGetToken: () => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechToken, any, {}>>;
|
|
38
40
|
usersGetUserPhoto: (id: string) => Promise<import("axios").AxiosResponse<Blob, any, {}>>;
|
|
39
41
|
workSpacesGetGet: (params?: WorkSpacesGetGetParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionWorkSpacesWorkSpace, any, {}>>;
|
|
40
42
|
workSpacesGetId: (id: string) => Promise<import("axios").AxiosResponse<WorkSpacesWorkSpace, any, {}>>;
|
|
@@ -77,6 +79,8 @@ export type ModelsGetModelResult = NonNullable<Awaited<ReturnType<ReturnType<typ
|
|
|
77
79
|
export type NotificationGetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['notificationGet']>>>;
|
|
78
80
|
export type NotificationPutUpdateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['notificationPutUpdate']>>>;
|
|
79
81
|
export type NotificationPutUpdateallResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['notificationPutUpdateall']>>>;
|
|
82
|
+
export type SpeechGetConfigResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['speechGetConfig']>>>;
|
|
83
|
+
export type SpeechGetTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['speechGetToken']>>>;
|
|
80
84
|
export type UsersGetUserPhotoResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['usersGetUserPhoto']>>>;
|
|
81
85
|
export type WorkSpacesGetGetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['workSpacesGetGet']>>>;
|
|
82
86
|
export type WorkSpacesGetIdResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['workSpacesGetId']>>>;
|
|
@@ -267,6 +267,24 @@ const getSmartSpaceChatAPI = () => {
|
|
|
267
267
|
return (0, instance_1.customInstance)({ url: `/Notification/updateall`, method: 'PUT'
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
* @summary Whether speech-to-text (composer dictation) is available on this install, and how the browser
|
|
272
|
+
should connect. The UI decides whether to render the microphone from this, so it answers for
|
|
273
|
+
the install rather than failing: an install without speech reports enabled = false.
|
|
274
|
+
*/
|
|
275
|
+
const speechGetConfig = () => {
|
|
276
|
+
return (0, instance_1.customInstance)({ url: `/Speech/config`, method: 'GET'
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* @summary A token from this install's Speech account token service, which the browser passes straight
|
|
281
|
+
to Azure AI Speech to stream audio for recognition. Roughly ten minutes of life, scoped to
|
|
282
|
+
recognition on this one resource in one region.
|
|
283
|
+
*/
|
|
284
|
+
const speechGetToken = () => {
|
|
285
|
+
return (0, instance_1.customInstance)({ url: `/Speech/token`, method: 'GET'
|
|
286
|
+
});
|
|
287
|
+
};
|
|
270
288
|
/**
|
|
271
289
|
* @summary Retrieves the profile photo for a user. Returns the raw JPEG image with HTTP cache headers
|
|
272
290
|
so browsers can cache the image via standard img src usage.
|
|
@@ -356,6 +374,6 @@ const getSmartSpaceChatAPI = () => {
|
|
|
356
374
|
return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads/${id}/messages/stream`, method: 'GET'
|
|
357
375
|
});
|
|
358
376
|
};
|
|
359
|
-
return { filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCancelFlowRun, flowRunsGetVariables, flowRunsSetVariable, messageThreadsThreadId, messageThreadsGetMessageThreadId, messageThreadsGetComments, messageThreadsPostComment, messageThreadsSetFavoritedChat, messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages, messageThreadsThreadMessagesIdMessages, messageThreadsStreamThreadMessagesIdMessagesStream, messageThreadsThreadIdName, messageThreadsGetThreadUsers, messageThreadsAddThreadUser, messagesThreadMessages, messagesStartThreadMessage, messagesMessage, messagesGetComments, messagesPostComment, messagesAddValueToMessage, modelsGetModels, modelsGetModel, notificationGet, notificationPutUpdate, notificationPutUpdateall, usersGetUserPhoto, workSpacesGetGet, workSpacesGetId, workSpacesGetAccess, workSpacesThread, workSpacesGetUsers, documentsGetDocumentSas, messageThreadsCreateMessageThread, messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId, messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages, messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages, messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream };
|
|
377
|
+
return { filesUploadFiles, filesGetFileInfo, filesDownloadFile, filesGetUri, flowRunsCancelFlowRun, flowRunsGetVariables, flowRunsSetVariable, messageThreadsThreadId, messageThreadsGetMessageThreadId, messageThreadsGetComments, messageThreadsPostComment, messageThreadsSetFavoritedChat, messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages, messageThreadsThreadMessagesIdMessages, messageThreadsStreamThreadMessagesIdMessagesStream, messageThreadsThreadIdName, messageThreadsGetThreadUsers, messageThreadsAddThreadUser, messagesThreadMessages, messagesStartThreadMessage, messagesMessage, messagesGetComments, messagesPostComment, messagesAddValueToMessage, modelsGetModels, modelsGetModel, notificationGet, notificationPutUpdate, notificationPutUpdateall, speechGetConfig, speechGetToken, usersGetUserPhoto, workSpacesGetGet, workSpacesGetId, workSpacesGetAccess, workSpacesThread, workSpacesGetUsers, documentsGetDocumentSas, messageThreadsCreateMessageThread, messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId, messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages, messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages, messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream };
|
|
360
378
|
};
|
|
361
379
|
exports.getSmartSpaceChatAPI = getSmartSpaceChatAPI;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
2
|
import type { RequestHandlerOptions } from 'msw';
|
|
3
|
-
import type { AiModel, CommentComment, FilesFile, FilesFileUriResponse, IntegrationsAzureStorageSasToken, MessageThreadMessageThreadSummary, MessagesMessage, MessagesMessageCreatorProfileImage, NotificationsPagedNotifications, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, UsersAppUser, WorkSpacesWorkSpace } from './models';
|
|
3
|
+
import type { AiModel, CommentComment, FilesFile, FilesFileUriResponse, IntegrationsAzureSpeechSpeechConfig, IntegrationsAzureSpeechSpeechToken, IntegrationsAzureStorageSasToken, MessageThreadMessageThreadSummary, MessagesMessage, MessagesMessageCreatorProfileImage, NotificationsPagedNotifications, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, UsersAppUser, WorkSpacesWorkSpace } from './models';
|
|
4
4
|
import type { FlowRunsGetVariables200One, FlowRunsGetVariables200Three, FlowRunsGetVariables200Two } from './models';
|
|
5
5
|
export declare const getFilesUploadFilesResponseMock: () => FilesFile[] | void;
|
|
6
6
|
export declare const getFilesGetFileInfoResponseMock: (overrideResponse?: Partial<FilesFile>) => FilesFile;
|
|
@@ -20,6 +20,8 @@ export declare const getMessagesAddValueToMessageResponseMock: (overrideResponse
|
|
|
20
20
|
export declare const getModelsGetModelsResponseMock: (overrideResponse?: Partial<PagedDataCollectionAiModelSummary>) => PagedDataCollectionAiModelSummary;
|
|
21
21
|
export declare const getModelsGetModelResponseMock: (overrideResponse?: Partial<AiModel>) => AiModel;
|
|
22
22
|
export declare const getNotificationGetResponseMock: (overrideResponse?: Partial<NotificationsPagedNotifications>) => NotificationsPagedNotifications;
|
|
23
|
+
export declare const getSpeechGetConfigResponseMock: (overrideResponse?: Partial<IntegrationsAzureSpeechSpeechConfig>) => IntegrationsAzureSpeechSpeechConfig;
|
|
24
|
+
export declare const getSpeechGetTokenResponseMock: (overrideResponse?: Partial<IntegrationsAzureSpeechSpeechToken>) => IntegrationsAzureSpeechSpeechToken;
|
|
23
25
|
export declare const getUsersGetUserPhotoResponseMock: () => Blob;
|
|
24
26
|
export declare const getWorkSpacesGetGetResponseMock: (overrideResponse?: Partial<PagedDataCollectionWorkSpacesWorkSpace>) => PagedDataCollectionWorkSpacesWorkSpace;
|
|
25
27
|
export declare const getWorkSpacesGetIdResponseMock: (overrideResponse?: Partial<WorkSpacesWorkSpace>) => WorkSpacesWorkSpace;
|
|
@@ -60,6 +62,8 @@ export declare const getModelsGetModelMockHandler: (overrideResponse?: AiModel |
|
|
|
60
62
|
export declare const getNotificationGetMockHandler: (overrideResponse?: NotificationsPagedNotifications | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<NotificationsPagedNotifications> | NotificationsPagedNotifications), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
61
63
|
export declare const getNotificationPutUpdateMockHandler: (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<void> | void) | undefined, options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
62
64
|
export declare const getNotificationPutUpdateallMockHandler: (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<void> | void) | undefined, options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
65
|
+
export declare const getSpeechGetConfigMockHandler: (overrideResponse?: IntegrationsAzureSpeechSpeechConfig | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IntegrationsAzureSpeechSpeechConfig> | IntegrationsAzureSpeechSpeechConfig), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
66
|
+
export declare const getSpeechGetTokenMockHandler: (overrideResponse?: IntegrationsAzureSpeechSpeechToken | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<IntegrationsAzureSpeechSpeechToken> | IntegrationsAzureSpeechSpeechToken), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
63
67
|
export declare const getUsersGetUserPhotoMockHandler: (overrideResponse?: Blob | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Blob> | Blob), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
64
68
|
export declare const getWorkSpacesGetGetMockHandler: (overrideResponse?: PagedDataCollectionWorkSpacesWorkSpace | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PagedDataCollectionWorkSpacesWorkSpace> | PagedDataCollectionWorkSpacesWorkSpace), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
65
69
|
export declare const getWorkSpacesGetIdMockHandler: (overrideResponse?: WorkSpacesWorkSpace | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WorkSpacesWorkSpace> | WorkSpacesWorkSpace), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|