@smartspace/api-client 0.1.0-pr.1369.cdbc31d → 0.1.0-pr.1371.2bf9423
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 +52 -47
- package/dist/generated/chat/api.js +100 -93
- package/dist/generated/chat/api.msw.d.ts +3 -1
- package/dist/generated/chat/api.msw.js +21 -2
- package/dist/generated/chat/models/index.d.ts +3 -0
- package/dist/generated/chat/models/index.js +3 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200One.d.ts +9 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200One.js +8 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200Three.d.ts +9 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200Three.js +8 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200Two.d.ts +9 -0
- package/dist/generated/chat/models/openAPIGetOpenApiDocument200Two.js +8 -0
- package/dist/generated/chat/zod.d.ts +4 -0
- package/dist/generated/chat/zod.js +6 -2
- package/dist/generated/config/api.d.ts +218 -212
- package/dist/generated/config/api.js +437 -423
- package/dist/generated/config/api.msw.d.ts +11 -4
- package/dist/generated/config/api.msw.js +64 -20
- package/dist/generated/config/models/dataSourcesContainerSchema200One.d.ts +9 -0
- package/dist/generated/config/models/dataSourcesContainerSchema200One.js +8 -0
- package/dist/generated/config/models/dataSourcesContainerSchema200Three.d.ts +9 -0
- package/dist/generated/config/models/dataSourcesContainerSchema200Three.js +8 -0
- package/dist/generated/config/models/dataSourcesContainerSchema200Two.d.ts +9 -0
- package/dist/generated/config/models/dataSourcesContainerSchema200Two.js +8 -0
- package/dist/generated/config/models/index.d.ts +6 -0
- package/dist/generated/config/models/index.js +6 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200One.d.ts +9 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200One.js +8 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200Three.d.ts +9 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200Three.js +8 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200Two.d.ts +9 -0
- package/dist/generated/config/models/openAPIGetOpenApiDocument200Two.js +8 -0
- package/dist/generated/config/zod.d.ts +37 -0
- package/dist/generated/config/zod.js +46 -19
- package/dist/instance.d.ts +1 -1
- package/dist/instance.js +10 -2
- package/package.json +3 -3
|
@@ -4,54 +4,57 @@
|
|
|
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, IntegrationsAzureSpeechSpeechConfig, IntegrationsAzureSpeechSpeechToken, IntegrationsAzureStorageSasToken, ManagedSecretsMySecret, ManagedSecretsUpdateManagedSecretValue, MessageThreadMessageThreadSummary, MessageThreadsGetCommentsParams, MessageThreadsThreadMessagesIdMessagesParams, MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesParams, MessagesCreateMessageInput, MessagesGetCommentsParams, MessagesMessage, MessagesMessageCreatorProfileImage, MessagesMessageRequest, ModelsGetModelsParams, NotificationGetParams, NotificationsPagedNotifications, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, StreamingThreadStreamFrame, 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, ManagedSecretsMySecret, ManagedSecretsUpdateManagedSecretValue, MessageThreadMessageThreadSummary, MessageThreadsGetCommentsParams, MessageThreadsThreadMessagesIdMessagesParams, MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesParams, MessagesCreateMessageInput, MessagesGetCommentsParams, MessagesMessage, MessagesMessageCreatorProfileImage, MessagesMessageRequest, ModelsGetModelsParams, NotificationGetParams, NotificationsPagedNotifications, OpenAPIGetOpenApiDocument200One, OpenAPIGetOpenApiDocument200Three, OpenAPIGetOpenApiDocument200Two, PagedDataCollectionAccessAccess, PagedDataCollectionAiModelSummary, PagedDataCollectionCommentCommentSummary, PagedDataCollectionMessageThreadMessageThreadSummary, PagedDataCollectionMessagesMessage, PagedDataCollectionWorkSpacesWorkSpace, StreamingThreadStreamFrame, UsersAppUser, WorkSpacesGetAccessParams, WorkSpacesGetGetParams, WorkSpacesGetUsersParams, WorkSpacesThreadParams, WorkSpacesWorkSpace } from './models';
|
|
8
|
+
import { customInstance } from '../../instance';
|
|
9
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
8
10
|
export declare const getSmartSpaceChatAPI: () => {
|
|
9
|
-
filesUploadFiles: (filesUploadFilesBody: FilesUploadFilesBody) => Promise<import("axios").AxiosResponse<void | FilesFile[], any, {}>>;
|
|
10
|
-
filesGetFileInfo: (id: string, params?: FilesGetFileInfoParams) => Promise<import("axios").AxiosResponse<FilesFile, any, {}>>;
|
|
11
|
-
filesDownloadFile: (id: string, params?: FilesDownloadFileParams) => Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
12
|
-
filesGetUri: (id: string, params?: FilesGetUriParams) => Promise<import("axios").AxiosResponse<FilesFileUriResponse, any, {}>>;
|
|
13
|
-
flowRunsCancelFlowRun: (id: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
flowRunsGetVariables: (id: string) => Promise<import("axios").AxiosResponse<FlowRunsGetVariables200One | FlowRunsGetVariables200Three | FlowRunsGetVariables200Two, any, {}>>;
|
|
15
|
-
flowRunsSetVariable: (id: string, variableName: string, flowRunsSetVariableBody: unknown) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
16
|
-
messageThreadsThreadId: (id: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
17
|
-
messageThreadsGetMessageThreadId: (id: string) => Promise<import("axios").AxiosResponse<MessageThreadMessageThreadSummary, any, {}>>;
|
|
18
|
-
messageThreadsGetComments: (id: string, params?: MessageThreadsGetCommentsParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionCommentCommentSummary, any, {}>>;
|
|
19
|
-
messageThreadsPostComment: (id: string, commentCreateComment: CommentCreateComment) => Promise<import("axios").AxiosResponse<CommentComment, any, {}>>;
|
|
20
|
-
messageThreadsSetFavoritedChat: (id: string, boolean: boolean) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
21
|
-
messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages: (id: string) => Promise<import("axios").AxiosResponse<MessagesMessageCreatorProfileImage[], any, {}>>;
|
|
22
|
-
messageThreadsThreadMessagesIdMessages: (id: string, params?: MessageThreadsThreadMessagesIdMessagesParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionMessagesMessage, any, {}>>;
|
|
23
|
-
messageThreadsStreamThreadMessagesIdMessagesStream: (id: string) => Promise<import("axios").AxiosResponse<StreamingThreadStreamFrame, any, {}>>;
|
|
24
|
-
messageThreadsThreadIdName: (id: string, messageThreadsThreadIdNameBody: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
25
|
-
messageThreadsGetThreadUsers: (threadId: string) => Promise<import("axios").AxiosResponse<UsersAppUser[], any, {}>>;
|
|
26
|
-
messageThreadsAddThreadUser: (threadId: string, userId: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
27
|
-
messagesThreadMessages: (messagesMessageRequest: MessagesMessageRequest) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
28
|
-
messagesStartThreadMessage: (messagesMessageRequest: MessagesMessageRequest) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
29
|
-
messagesMessage: (id: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
30
|
-
messagesGetComments: (id: string, params?: MessagesGetCommentsParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionCommentCommentSummary, any, {}>>;
|
|
31
|
-
messagesPostComment: (id: string, commentCreateComment: CommentCreateComment) => Promise<import("axios").AxiosResponse<CommentComment, any, {}>>;
|
|
32
|
-
messagesAddValueToMessage: (id: string, messagesCreateMessageInput: MessagesCreateMessageInput) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
33
|
-
modelsGetModels: (params?: ModelsGetModelsParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionAiModelSummary, any, {}>>;
|
|
34
|
-
modelsGetModel: (id: string) => Promise<import("axios").AxiosResponse<AiModel, any, {}>>;
|
|
35
|
-
notificationGet: (params?: NotificationGetParams) => Promise<import("axios").AxiosResponse<NotificationsPagedNotifications, any, {}>>;
|
|
36
|
-
notificationPutUpdate: (notificationPutUpdateBody: string[]) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
37
|
-
notificationPutUpdateall: () => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
38
|
-
speechGetConfig: () => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechConfig, any, {}>>;
|
|
39
|
-
speechGetToken: () => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechToken, any, {}>>;
|
|
40
|
-
usersGetUserPhoto: (id: string) => Promise<import("axios").AxiosResponse<Blob, any, {}>>;
|
|
41
|
-
workSpacesGetGet: (params?: WorkSpacesGetGetParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionWorkSpacesWorkSpace, any, {}>>;
|
|
42
|
-
workSpacesGetId: (id: string) => Promise<import("axios").AxiosResponse<WorkSpacesWorkSpace, any, {}>>;
|
|
43
|
-
workSpacesGetAccess: (id: string, params?: WorkSpacesGetAccessParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionAccessAccess, any, {}>>;
|
|
44
|
-
workSpacesThread: (id: string, params?: WorkSpacesThreadParams) => Promise<import("axios").AxiosResponse<PagedDataCollectionMessageThreadMessageThreadSummary, any, {}>>;
|
|
45
|
-
workSpacesGetUsers: (id: string, params?: WorkSpacesGetUsersParams) => Promise<import("axios").AxiosResponse<UsersAppUser[], any, {}>>;
|
|
46
|
-
documentsGetDocumentSas: (dataSpaceId: string, params?: DocumentsGetDocumentSasParams) => Promise<import("axios").AxiosResponse<IntegrationsAzureStorageSasToken, any, {}>>;
|
|
47
|
-
mySecretsGetMySecrets: () => Promise<import("axios").AxiosResponse<ManagedSecretsMySecret[], any, {}>>;
|
|
48
|
-
mySecretsDeleteMySecretValue: (name: string) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
49
|
-
mySecretsSetMySecretValue: (name: string, managedSecretsUpdateManagedSecretValue: ManagedSecretsUpdateManagedSecretValue) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
11
|
+
filesUploadFiles: (filesUploadFilesBody: FilesUploadFilesBody, options?: SecondParameter<typeof customInstance<FilesFile[] | void>>) => Promise<import("axios").AxiosResponse<void | FilesFile[], any, {}>>;
|
|
12
|
+
filesGetFileInfo: (id: string, params?: FilesGetFileInfoParams, options?: SecondParameter<typeof customInstance<FilesFile>>) => Promise<import("axios").AxiosResponse<FilesFile, any, {}>>;
|
|
13
|
+
filesDownloadFile: (id: string, params?: FilesDownloadFileParams, options?: SecondParameter<typeof customInstance<unknown>>) => Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
14
|
+
filesGetUri: (id: string, params?: FilesGetUriParams, options?: SecondParameter<typeof customInstance<FilesFileUriResponse>>) => Promise<import("axios").AxiosResponse<FilesFileUriResponse, any, {}>>;
|
|
15
|
+
flowRunsCancelFlowRun: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
16
|
+
flowRunsGetVariables: (id: string, options?: SecondParameter<typeof customInstance<FlowRunsGetVariables200One | FlowRunsGetVariables200Two | FlowRunsGetVariables200Three>>) => Promise<import("axios").AxiosResponse<FlowRunsGetVariables200One | FlowRunsGetVariables200Three | FlowRunsGetVariables200Two, any, {}>>;
|
|
17
|
+
flowRunsSetVariable: (id: string, variableName: string, flowRunsSetVariableBody: unknown, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
18
|
+
messageThreadsThreadId: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
19
|
+
messageThreadsGetMessageThreadId: (id: string, options?: SecondParameter<typeof customInstance<MessageThreadMessageThreadSummary>>) => Promise<import("axios").AxiosResponse<MessageThreadMessageThreadSummary, any, {}>>;
|
|
20
|
+
messageThreadsGetComments: (id: string, params?: MessageThreadsGetCommentsParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionCommentCommentSummary>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionCommentCommentSummary, any, {}>>;
|
|
21
|
+
messageThreadsPostComment: (id: string, commentCreateComment: CommentCreateComment, options?: SecondParameter<typeof customInstance<CommentComment>>) => Promise<import("axios").AxiosResponse<CommentComment, any, {}>>;
|
|
22
|
+
messageThreadsSetFavoritedChat: (id: string, boolean: boolean, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
23
|
+
messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages: (id: string, options?: SecondParameter<typeof customInstance<MessagesMessageCreatorProfileImage[]>>) => Promise<import("axios").AxiosResponse<MessagesMessageCreatorProfileImage[], any, {}>>;
|
|
24
|
+
messageThreadsThreadMessagesIdMessages: (id: string, params?: MessageThreadsThreadMessagesIdMessagesParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionMessagesMessage>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionMessagesMessage, any, {}>>;
|
|
25
|
+
messageThreadsStreamThreadMessagesIdMessagesStream: (id: string, options?: SecondParameter<typeof customInstance<StreamingThreadStreamFrame>>) => Promise<import("axios").AxiosResponse<StreamingThreadStreamFrame, any, {}>>;
|
|
26
|
+
messageThreadsThreadIdName: (id: string, messageThreadsThreadIdNameBody: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
27
|
+
messageThreadsGetThreadUsers: (threadId: string, options?: SecondParameter<typeof customInstance<UsersAppUser[]>>) => Promise<import("axios").AxiosResponse<UsersAppUser[], any, {}>>;
|
|
28
|
+
messageThreadsAddThreadUser: (threadId: string, userId: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
29
|
+
messagesThreadMessages: (messagesMessageRequest: MessagesMessageRequest, options?: SecondParameter<typeof customInstance<MessagesMessage>>) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
30
|
+
messagesStartThreadMessage: (messagesMessageRequest: MessagesMessageRequest, options?: SecondParameter<typeof customInstance<MessagesMessage>>) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
31
|
+
messagesMessage: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
32
|
+
messagesGetComments: (id: string, params?: MessagesGetCommentsParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionCommentCommentSummary>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionCommentCommentSummary, any, {}>>;
|
|
33
|
+
messagesPostComment: (id: string, commentCreateComment: CommentCreateComment, options?: SecondParameter<typeof customInstance<CommentComment>>) => Promise<import("axios").AxiosResponse<CommentComment, any, {}>>;
|
|
34
|
+
messagesAddValueToMessage: (id: string, messagesCreateMessageInput: MessagesCreateMessageInput, options?: SecondParameter<typeof customInstance<MessagesMessage>>) => Promise<import("axios").AxiosResponse<MessagesMessage, any, {}>>;
|
|
35
|
+
modelsGetModels: (params?: ModelsGetModelsParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionAiModelSummary>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionAiModelSummary, any, {}>>;
|
|
36
|
+
modelsGetModel: (id: string, options?: SecondParameter<typeof customInstance<AiModel>>) => Promise<import("axios").AxiosResponse<AiModel, any, {}>>;
|
|
37
|
+
notificationGet: (params?: NotificationGetParams, options?: SecondParameter<typeof customInstance<NotificationsPagedNotifications>>) => Promise<import("axios").AxiosResponse<NotificationsPagedNotifications, any, {}>>;
|
|
38
|
+
notificationPutUpdate: (notificationPutUpdateBody: string[], options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
39
|
+
notificationPutUpdateall: (options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
40
|
+
speechGetConfig: (options?: SecondParameter<typeof customInstance<IntegrationsAzureSpeechSpeechConfig>>) => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechConfig, any, {}>>;
|
|
41
|
+
speechGetToken: (options?: SecondParameter<typeof customInstance<IntegrationsAzureSpeechSpeechToken>>) => Promise<import("axios").AxiosResponse<IntegrationsAzureSpeechSpeechToken, any, {}>>;
|
|
42
|
+
usersGetUserPhoto: (id: string, options?: SecondParameter<typeof customInstance<Blob>>) => Promise<import("axios").AxiosResponse<Blob, any, {}>>;
|
|
43
|
+
workSpacesGetGet: (params?: WorkSpacesGetGetParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionWorkSpacesWorkSpace>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionWorkSpacesWorkSpace, any, {}>>;
|
|
44
|
+
workSpacesGetId: (id: string, options?: SecondParameter<typeof customInstance<WorkSpacesWorkSpace>>) => Promise<import("axios").AxiosResponse<WorkSpacesWorkSpace, any, {}>>;
|
|
45
|
+
workSpacesGetAccess: (id: string, params?: WorkSpacesGetAccessParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionAccessAccess>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionAccessAccess, any, {}>>;
|
|
46
|
+
workSpacesThread: (id: string, params?: WorkSpacesThreadParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionMessageThreadMessageThreadSummary>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionMessageThreadMessageThreadSummary, any, {}>>;
|
|
47
|
+
workSpacesGetUsers: (id: string, params?: WorkSpacesGetUsersParams, options?: SecondParameter<typeof customInstance<UsersAppUser[]>>) => Promise<import("axios").AxiosResponse<UsersAppUser[], any, {}>>;
|
|
48
|
+
documentsGetDocumentSas: (dataSpaceId: string, params?: DocumentsGetDocumentSasParams, options?: SecondParameter<typeof customInstance<IntegrationsAzureStorageSasToken>>) => Promise<import("axios").AxiosResponse<IntegrationsAzureStorageSasToken, any, {}>>;
|
|
49
|
+
mySecretsGetMySecrets: (options?: SecondParameter<typeof customInstance<ManagedSecretsMySecret[]>>) => Promise<import("axios").AxiosResponse<ManagedSecretsMySecret[], any, {}>>;
|
|
50
|
+
mySecretsDeleteMySecretValue: (name: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
51
|
+
mySecretsSetMySecretValue: (name: string, managedSecretsUpdateManagedSecretValue: ManagedSecretsUpdateManagedSecretValue, options?: SecondParameter<typeof customInstance<void>>) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
52
|
+
openAPIGetOpenApiDocument: (options?: SecondParameter<typeof customInstance<OpenAPIGetOpenApiDocument200One | OpenAPIGetOpenApiDocument200Two | OpenAPIGetOpenApiDocument200Three>>) => Promise<import("axios").AxiosResponse<OpenAPIGetOpenApiDocument200One | OpenAPIGetOpenApiDocument200Three | OpenAPIGetOpenApiDocument200Two, any, {}>>;
|
|
53
|
+
messageThreadsCreateMessageThread: (workspaceId: string, createMessageThread: CreateMessageThread, options?: SecondParameter<typeof customInstance<MessageThreadMessageThreadSummary>>) => Promise<import("axios").AxiosResponse<MessageThreadMessageThreadSummary, any, {}>>;
|
|
54
|
+
messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId: (workspaceId: string, id: string, options?: SecondParameter<typeof customInstance<MessageThreadMessageThreadSummary>>) => Promise<import("axios").AxiosResponse<MessageThreadMessageThreadSummary, any, {}>>;
|
|
55
|
+
messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages: (workspaceId: string, id: string, options?: SecondParameter<typeof customInstance<MessagesMessageCreatorProfileImage[]>>) => Promise<import("axios").AxiosResponse<MessagesMessageCreatorProfileImage[], any, {}>>;
|
|
56
|
+
messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages: (workspaceId: string, id: string, params?: MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesParams, options?: SecondParameter<typeof customInstance<PagedDataCollectionMessagesMessage>>) => Promise<import("axios").AxiosResponse<PagedDataCollectionMessagesMessage, any, {}>>;
|
|
57
|
+
messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream: (workspaceId: string, id: string, options?: SecondParameter<typeof customInstance<StreamingThreadStreamFrame>>) => Promise<import("axios").AxiosResponse<StreamingThreadStreamFrame, any, {}>>;
|
|
55
58
|
};
|
|
56
59
|
export type FilesUploadFilesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['filesUploadFiles']>>>;
|
|
57
60
|
export type FilesGetFileInfoResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['filesGetFileInfo']>>>;
|
|
@@ -94,8 +97,10 @@ export type DocumentsGetDocumentSasResult = NonNullable<Awaited<ReturnType<Retur
|
|
|
94
97
|
export type MySecretsGetMySecretsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['mySecretsGetMySecrets']>>>;
|
|
95
98
|
export type MySecretsDeleteMySecretValueResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['mySecretsDeleteMySecretValue']>>>;
|
|
96
99
|
export type MySecretsSetMySecretValueResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['mySecretsSetMySecretValue']>>>;
|
|
100
|
+
export type OpenAPIGetOpenApiDocumentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['openAPIGetOpenApiDocument']>>>;
|
|
97
101
|
export type MessageThreadsCreateMessageThreadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['messageThreadsCreateMessageThread']>>>;
|
|
98
102
|
export type MessageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsIdResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId']>>>;
|
|
99
103
|
export type MessageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages']>>>;
|
|
100
104
|
export type MessageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages']>>>;
|
|
101
105
|
export type MessageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSmartSpaceChatAPI>['messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream']>>>;
|
|
106
|
+
export {};
|
|
@@ -6,7 +6,7 @@ const getSmartSpaceChatAPI = () => {
|
|
|
6
6
|
/**
|
|
7
7
|
* @summary Upload files to be referenced in requests (supports full and chunked uploads).
|
|
8
8
|
*/
|
|
9
|
-
const filesUploadFiles = (filesUploadFilesBody) => {
|
|
9
|
+
const filesUploadFiles = (filesUploadFilesBody, options) => {
|
|
10
10
|
const formData = new FormData();
|
|
11
11
|
if (filesUploadFilesBody.chunkIndex !== undefined) {
|
|
12
12
|
formData.append(`chunkIndex`, filesUploadFilesBody.chunkIndex.toString());
|
|
@@ -32,102 +32,102 @@ const getSmartSpaceChatAPI = () => {
|
|
|
32
32
|
return (0, instance_1.customInstance)({ url: `/v1/Files`, method: 'POST',
|
|
33
33
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
34
34
|
data: formData
|
|
35
|
-
});
|
|
35
|
+
}, options);
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* @summary Get details for a file previously uploaded.
|
|
39
39
|
*/
|
|
40
|
-
const filesGetFileInfo = (id, params) => {
|
|
40
|
+
const filesGetFileInfo = (id, params, options) => {
|
|
41
41
|
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}`, method: 'GET',
|
|
42
42
|
params
|
|
43
|
-
});
|
|
43
|
+
}, options);
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
* @summary Download a previously uploaded file.
|
|
47
47
|
*/
|
|
48
|
-
const filesDownloadFile = (id, params) => {
|
|
48
|
+
const filesDownloadFile = (id, params, options) => {
|
|
49
49
|
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/download`, method: 'GET',
|
|
50
50
|
params
|
|
51
|
-
});
|
|
51
|
+
}, options);
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* @summary Get URI of a previously uploaded file.
|
|
55
55
|
*/
|
|
56
|
-
const filesGetUri = (id, params) => {
|
|
56
|
+
const filesGetUri = (id, params, options) => {
|
|
57
57
|
return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/uri`, method: 'GET',
|
|
58
58
|
params
|
|
59
|
-
});
|
|
59
|
+
}, options);
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* @summary Requests cancellation of a queued or running flow run (the chat
|
|
63
63
|
thread id is the flow run id). Cancellation is cooperative: the
|
|
64
64
|
engine stops between block executions, typically within seconds.
|
|
65
65
|
*/
|
|
66
|
-
const flowRunsCancelFlowRun = (id) => {
|
|
66
|
+
const flowRunsCancelFlowRun = (id, options) => {
|
|
67
67
|
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/cancel`, method: 'POST'
|
|
68
|
-
});
|
|
68
|
+
}, options);
|
|
69
69
|
};
|
|
70
|
-
const flowRunsGetVariables = (id) => {
|
|
70
|
+
const flowRunsGetVariables = (id, options) => {
|
|
71
71
|
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables`, method: 'GET'
|
|
72
|
-
});
|
|
72
|
+
}, options);
|
|
73
73
|
};
|
|
74
|
-
const flowRunsSetVariable = (id, variableName, flowRunsSetVariableBody) => {
|
|
74
|
+
const flowRunsSetVariable = (id, variableName, flowRunsSetVariableBody, options) => {
|
|
75
75
|
return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
|
|
76
76
|
headers: { 'Content-Type': 'application/*+json', },
|
|
77
77
|
data: flowRunsSetVariableBody
|
|
78
|
-
});
|
|
78
|
+
}, options);
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* @summary Delete a specific message thread from SmartSpace, using it's ID.
|
|
82
82
|
*/
|
|
83
|
-
const messageThreadsThreadId = (id) => {
|
|
83
|
+
const messageThreadsThreadId = (id, options) => {
|
|
84
84
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}`, method: 'DELETE'
|
|
85
|
-
});
|
|
85
|
+
}, options);
|
|
86
86
|
};
|
|
87
|
-
const messageThreadsGetMessageThreadId = (id) => {
|
|
87
|
+
const messageThreadsGetMessageThreadId = (id, options) => {
|
|
88
88
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}`, method: 'GET'
|
|
89
|
-
});
|
|
89
|
+
}, options);
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
92
|
* @summary Retrieve comments from a specified message thread in SmartSpace, using the thread's ID, with take and skip for pagination control.
|
|
93
93
|
*/
|
|
94
|
-
const messageThreadsGetComments = (id, params) => {
|
|
94
|
+
const messageThreadsGetComments = (id, params, options) => {
|
|
95
95
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/comments`, method: 'GET',
|
|
96
96
|
params
|
|
97
|
-
});
|
|
97
|
+
}, options);
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
100
|
* @summary Submit a new comment to a specific message thread in SmartSpace, identified by the thread's ID, using the provided comment schema.
|
|
101
101
|
*/
|
|
102
|
-
const messageThreadsPostComment = (id, commentCreateComment) => {
|
|
102
|
+
const messageThreadsPostComment = (id, commentCreateComment, options) => {
|
|
103
103
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/comments`, method: 'POST',
|
|
104
104
|
headers: { 'Content-Type': 'application/*+json', },
|
|
105
105
|
data: commentCreateComment
|
|
106
|
-
});
|
|
106
|
+
}, options);
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* @summary Mark a message thread as favorited or not in SmartSpace, using the thread's ID and a boolean value in the request.
|
|
110
110
|
*/
|
|
111
|
-
const messageThreadsSetFavoritedChat = (id, boolean) => {
|
|
111
|
+
const messageThreadsSetFavoritedChat = (id, boolean, options) => {
|
|
112
112
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/favorited`, method: 'PUT',
|
|
113
113
|
headers: { 'Content-Type': 'application/*+json', },
|
|
114
114
|
data: boolean
|
|
115
|
-
});
|
|
115
|
+
}, options);
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* @summary Retrieves messages from a specific message thread along with the profile images of the users who created the messages.
|
|
119
119
|
*/
|
|
120
|
-
const messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages = (id) => {
|
|
120
|
+
const messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages = (id, options) => {
|
|
121
121
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messagecreateduserprofileimages`, method: 'GET'
|
|
122
|
-
});
|
|
122
|
+
}, options);
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
125
|
* @summary Access messages within a specific message thread in SmartSpace, using the thread's ID, along with pagination options take and skip.
|
|
126
126
|
*/
|
|
127
|
-
const messageThreadsThreadMessagesIdMessages = (id, params) => {
|
|
127
|
+
const messageThreadsThreadMessagesIdMessages = (id, params, options) => {
|
|
128
128
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messages`, method: 'GET',
|
|
129
129
|
params
|
|
130
|
-
});
|
|
130
|
+
}, options);
|
|
131
131
|
};
|
|
132
132
|
/**
|
|
133
133
|
* @summary SSE stream of all messages on a thread. First frame is the thread
|
|
@@ -136,32 +136,32 @@ const getSmartSpaceChatAPI = () => {
|
|
|
136
136
|
are per-message chunk updates as they arrive. Cumulative deltas
|
|
137
137
|
mean reconnect is just "re-open" — no cursor handshake.
|
|
138
138
|
*/
|
|
139
|
-
const messageThreadsStreamThreadMessagesIdMessagesStream = (id) => {
|
|
139
|
+
const messageThreadsStreamThreadMessagesIdMessagesStream = (id, options) => {
|
|
140
140
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messages/stream`, method: 'GET'
|
|
141
|
-
});
|
|
141
|
+
}, options);
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
144
144
|
* @summary Update the name of a message thread in SmartSpace, using the thread's ID and providing the new name in the request.
|
|
145
145
|
*/
|
|
146
|
-
const messageThreadsThreadIdName = (id, messageThreadsThreadIdNameBody) => {
|
|
146
|
+
const messageThreadsThreadIdName = (id, messageThreadsThreadIdNameBody, options) => {
|
|
147
147
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/name`, method: 'PUT',
|
|
148
148
|
headers: { 'Content-Type': 'application/*+json', },
|
|
149
149
|
data: messageThreadsThreadIdNameBody
|
|
150
|
-
});
|
|
150
|
+
}, options);
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* @summary Get the users who have access to a specific message thread.
|
|
154
154
|
*/
|
|
155
|
-
const messageThreadsGetThreadUsers = (threadId) => {
|
|
155
|
+
const messageThreadsGetThreadUsers = (threadId, options) => {
|
|
156
156
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${threadId}/users`, method: 'GET'
|
|
157
|
-
});
|
|
157
|
+
}, options);
|
|
158
158
|
};
|
|
159
159
|
/**
|
|
160
160
|
* @summary Add a user to a message thread.
|
|
161
161
|
*/
|
|
162
|
-
const messageThreadsAddThreadUser = (threadId, userId) => {
|
|
162
|
+
const messageThreadsAddThreadUser = (threadId, userId, options) => {
|
|
163
163
|
return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${threadId}/users/${userId}`, method: 'POST'
|
|
164
|
-
});
|
|
164
|
+
}, options);
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
167
|
* @summary Handles the HTTP POST request to create a new message in a thread within SmartSpace.
|
|
@@ -171,11 +171,11 @@ const getSmartSpaceChatAPI = () => {
|
|
|
171
171
|
Clients that prefer to return immediately and subscribe to the SSE stream should use
|
|
172
172
|
`POST /messages/start` instead.
|
|
173
173
|
*/
|
|
174
|
-
const messagesThreadMessages = (messagesMessageRequest) => {
|
|
174
|
+
const messagesThreadMessages = (messagesMessageRequest, options) => {
|
|
175
175
|
return (0, instance_1.customInstance)({ url: `/v1/Messages`, method: 'POST',
|
|
176
176
|
headers: { 'Content-Type': 'application/*+json', },
|
|
177
177
|
data: messagesMessageRequest
|
|
178
|
-
});
|
|
178
|
+
}, options);
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
181
181
|
* @summary Starts a flow run on a thread and returns immediately with the initial Message
|
|
@@ -185,35 +185,35 @@ const getSmartSpaceChatAPI = () => {
|
|
|
185
185
|
the database. Use this endpoint when the client subscribes to the SSE stream for
|
|
186
186
|
live updates instead of waiting for the flow to complete.
|
|
187
187
|
*/
|
|
188
|
-
const messagesStartThreadMessage = (messagesMessageRequest) => {
|
|
188
|
+
const messagesStartThreadMessage = (messagesMessageRequest, options) => {
|
|
189
189
|
return (0, instance_1.customInstance)({ url: `/v1/Messages/start`, method: 'POST',
|
|
190
190
|
headers: { 'Content-Type': 'application/*+json', },
|
|
191
191
|
data: messagesMessageRequest
|
|
192
|
-
});
|
|
192
|
+
}, options);
|
|
193
193
|
};
|
|
194
194
|
/**
|
|
195
195
|
* @summary Remove a specific message from SmartSpace using its ID.
|
|
196
196
|
*/
|
|
197
|
-
const messagesMessage = (id) => {
|
|
197
|
+
const messagesMessage = (id, options) => {
|
|
198
198
|
return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}`, method: 'DELETE'
|
|
199
|
-
});
|
|
199
|
+
}, options);
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
202
|
* @summary Retrieve comments attached to a specific message in SmartSpace, using the message's ID, with pagination options 'take' and 'skip'.
|
|
203
203
|
*/
|
|
204
|
-
const messagesGetComments = (id, params) => {
|
|
204
|
+
const messagesGetComments = (id, params, options) => {
|
|
205
205
|
return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/comments`, method: 'GET',
|
|
206
206
|
params
|
|
207
|
-
});
|
|
207
|
+
}, options);
|
|
208
208
|
};
|
|
209
209
|
/**
|
|
210
210
|
* @summary Add a new comment to a message in SmartSpace, using the message's ID and comment details in the request.
|
|
211
211
|
*/
|
|
212
|
-
const messagesPostComment = (id, commentCreateComment) => {
|
|
212
|
+
const messagesPostComment = (id, commentCreateComment, options) => {
|
|
213
213
|
return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/comments`, method: 'POST',
|
|
214
214
|
headers: { 'Content-Type': 'application/*+json', },
|
|
215
215
|
data: commentCreateComment
|
|
216
|
-
});
|
|
216
|
+
}, options);
|
|
217
217
|
};
|
|
218
218
|
/**
|
|
219
219
|
* @summary Append a new input value to an in-flight message and stream successive
|
|
@@ -222,169 +222,176 @@ const getSmartSpaceChatAPI = () => {
|
|
|
222
222
|
a stream of M:SmartSpace.App.ChatApi.Controllers.MessagesController.Message(System.Guid) frames (NDJSON / SSE), with the final
|
|
223
223
|
frame being the authoritative completed message.
|
|
224
224
|
*/
|
|
225
|
-
const messagesAddValueToMessage = (id, messagesCreateMessageInput) => {
|
|
225
|
+
const messagesAddValueToMessage = (id, messagesCreateMessageInput, options) => {
|
|
226
226
|
return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/values`, method: 'POST',
|
|
227
227
|
headers: { 'Content-Type': 'application/*+json', },
|
|
228
228
|
data: messagesCreateMessageInput
|
|
229
|
-
});
|
|
229
|
+
}, options);
|
|
230
230
|
};
|
|
231
231
|
/**
|
|
232
232
|
* @summary Retrieves a list of models.
|
|
233
233
|
*/
|
|
234
|
-
const modelsGetModels = (params) => {
|
|
234
|
+
const modelsGetModels = (params, options) => {
|
|
235
235
|
return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'GET',
|
|
236
236
|
params
|
|
237
|
-
});
|
|
237
|
+
}, options);
|
|
238
238
|
};
|
|
239
239
|
/**
|
|
240
240
|
* @summary Retrieves a model by its ID.
|
|
241
241
|
*/
|
|
242
|
-
const modelsGetModel = (id) => {
|
|
242
|
+
const modelsGetModel = (id, options) => {
|
|
243
243
|
return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'GET'
|
|
244
|
-
});
|
|
244
|
+
}, options);
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
247
247
|
* @summary Retrieve notifications for user login.
|
|
248
248
|
*/
|
|
249
|
-
const notificationGet = (params) => {
|
|
249
|
+
const notificationGet = (params, options) => {
|
|
250
250
|
return (0, instance_1.customInstance)({ url: `/v1/Notification`, method: 'GET',
|
|
251
251
|
params
|
|
252
|
-
});
|
|
252
|
+
}, options);
|
|
253
253
|
};
|
|
254
254
|
/**
|
|
255
255
|
* @summary Update: mark read notifications.
|
|
256
256
|
*/
|
|
257
|
-
const notificationPutUpdate = (notificationPutUpdateBody) => {
|
|
257
|
+
const notificationPutUpdate = (notificationPutUpdateBody, options) => {
|
|
258
258
|
return (0, instance_1.customInstance)({ url: `/v1/Notification/update`, method: 'PUT',
|
|
259
259
|
headers: { 'Content-Type': 'application/*+json', },
|
|
260
260
|
data: notificationPutUpdateBody
|
|
261
|
-
});
|
|
261
|
+
}, options);
|
|
262
262
|
};
|
|
263
263
|
/**
|
|
264
264
|
* @summary Update: mark read all notifications.
|
|
265
265
|
*/
|
|
266
|
-
const notificationPutUpdateall = () => {
|
|
266
|
+
const notificationPutUpdateall = (options) => {
|
|
267
267
|
return (0, instance_1.customInstance)({ url: `/v1/Notification/updateall`, method: 'PUT'
|
|
268
|
-
});
|
|
268
|
+
}, options);
|
|
269
269
|
};
|
|
270
270
|
/**
|
|
271
271
|
* @summary Whether speech-to-text (composer dictation) is available on this install, and how the browser
|
|
272
272
|
should connect. The UI decides whether to render the microphone from this, so it answers for
|
|
273
273
|
the install rather than failing: an install without speech reports enabled = false.
|
|
274
274
|
*/
|
|
275
|
-
const speechGetConfig = () => {
|
|
275
|
+
const speechGetConfig = (options) => {
|
|
276
276
|
return (0, instance_1.customInstance)({ url: `/v1/Speech/config`, method: 'GET'
|
|
277
|
-
});
|
|
277
|
+
}, options);
|
|
278
278
|
};
|
|
279
279
|
/**
|
|
280
280
|
* @summary A token from this install's Speech account token service, which the browser passes straight
|
|
281
281
|
to Azure AI Speech to stream audio for recognition. Roughly ten minutes of life, scoped to
|
|
282
282
|
recognition on this one resource in one region.
|
|
283
283
|
*/
|
|
284
|
-
const speechGetToken = () => {
|
|
284
|
+
const speechGetToken = (options) => {
|
|
285
285
|
return (0, instance_1.customInstance)({ url: `/v1/Speech/token`, method: 'GET'
|
|
286
|
-
});
|
|
286
|
+
}, options);
|
|
287
287
|
};
|
|
288
288
|
/**
|
|
289
289
|
* @summary Retrieves the profile photo for a user. Returns the raw JPEG image with HTTP cache headers
|
|
290
290
|
so browsers can cache the image via standard img src usage.
|
|
291
291
|
*/
|
|
292
|
-
const usersGetUserPhoto = (id) => {
|
|
292
|
+
const usersGetUserPhoto = (id, options) => {
|
|
293
293
|
return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/photo`, method: 'GET',
|
|
294
294
|
responseType: 'blob'
|
|
295
|
-
});
|
|
295
|
+
}, options);
|
|
296
296
|
};
|
|
297
297
|
/**
|
|
298
298
|
* @summary Fetches a list of all workspaces with pagination.
|
|
299
299
|
*/
|
|
300
|
-
const workSpacesGetGet = (params) => {
|
|
300
|
+
const workSpacesGetGet = (params, options) => {
|
|
301
301
|
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'GET',
|
|
302
302
|
params
|
|
303
|
-
});
|
|
303
|
+
}, options);
|
|
304
304
|
};
|
|
305
305
|
/**
|
|
306
306
|
* @summary Retrieves a workspace by its ID.
|
|
307
307
|
*/
|
|
308
|
-
const workSpacesGetId = (id) => {
|
|
308
|
+
const workSpacesGetId = (id, options) => {
|
|
309
309
|
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'GET'
|
|
310
|
-
});
|
|
310
|
+
}, options);
|
|
311
311
|
};
|
|
312
312
|
/**
|
|
313
313
|
* @summary Retrieves the access control details of a workspace.
|
|
314
314
|
*/
|
|
315
|
-
const workSpacesGetAccess = (id, params) => {
|
|
315
|
+
const workSpacesGetAccess = (id, params, options) => {
|
|
316
316
|
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/access`, method: 'GET',
|
|
317
317
|
params
|
|
318
|
-
});
|
|
318
|
+
}, options);
|
|
319
319
|
};
|
|
320
320
|
/**
|
|
321
321
|
* @summary Retrieves all message threads associated with a specified workspace.
|
|
322
322
|
*/
|
|
323
|
-
const workSpacesThread = (id, params) => {
|
|
323
|
+
const workSpacesThread = (id, params, options) => {
|
|
324
324
|
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/messageThreads`, method: 'GET',
|
|
325
325
|
params
|
|
326
|
-
});
|
|
326
|
+
}, options);
|
|
327
327
|
};
|
|
328
|
-
const workSpacesGetUsers = (id, params) => {
|
|
328
|
+
const workSpacesGetUsers = (id, params, options) => {
|
|
329
329
|
return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/users`, method: 'GET',
|
|
330
330
|
params
|
|
331
|
-
});
|
|
331
|
+
}, options);
|
|
332
332
|
};
|
|
333
333
|
/**
|
|
334
334
|
* @summary Retrieve a Shared Access Signature (SAS) for a specific document in a data space, using the dataSpaceId and optional file parameter.
|
|
335
335
|
*/
|
|
336
|
-
const documentsGetDocumentSas = (dataSpaceId, params) => {
|
|
336
|
+
const documentsGetDocumentSas = (dataSpaceId, params, options) => {
|
|
337
337
|
return (0, instance_1.customInstance)({ url: `/v1/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
|
|
338
338
|
params
|
|
339
|
-
});
|
|
339
|
+
}, options);
|
|
340
340
|
};
|
|
341
341
|
/**
|
|
342
342
|
* @summary Lists every per-user secret and whether the caller has set a value. Never a value.
|
|
343
343
|
*/
|
|
344
|
-
const mySecretsGetMySecrets = () => {
|
|
344
|
+
const mySecretsGetMySecrets = (options) => {
|
|
345
345
|
return (0, instance_1.customInstance)({ url: `/v1/me/secrets`, method: 'GET'
|
|
346
|
-
});
|
|
346
|
+
}, options);
|
|
347
347
|
};
|
|
348
348
|
/**
|
|
349
349
|
* @summary Removes the caller's own value on a per-user secret.
|
|
350
350
|
*/
|
|
351
|
-
const mySecretsDeleteMySecretValue = (name) => {
|
|
351
|
+
const mySecretsDeleteMySecretValue = (name, options) => {
|
|
352
352
|
return (0, instance_1.customInstance)({ url: `/v1/me/secrets/${name}/value`, method: 'DELETE'
|
|
353
|
-
});
|
|
353
|
+
}, options);
|
|
354
354
|
};
|
|
355
355
|
/**
|
|
356
356
|
* @summary Sets or rotates the caller's own value on a per-user secret.
|
|
357
357
|
*/
|
|
358
|
-
const mySecretsSetMySecretValue = (name, managedSecretsUpdateManagedSecretValue) => {
|
|
358
|
+
const mySecretsSetMySecretValue = (name, managedSecretsUpdateManagedSecretValue, options) => {
|
|
359
359
|
return (0, instance_1.customInstance)({ url: `/v1/me/secrets/${name}/value`, method: 'PUT',
|
|
360
360
|
headers: { 'Content-Type': 'application/*+json', },
|
|
361
361
|
data: managedSecretsUpdateManagedSecretValue
|
|
362
|
-
});
|
|
362
|
+
}, options);
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
/**
|
|
365
|
+
* @summary The OpenAPI document for this API: the operations marked public, in OpenAPI 3.0 JSON.
|
|
366
|
+
*/
|
|
367
|
+
const openAPIGetOpenApiDocument = (options) => {
|
|
368
|
+
return (0, instance_1.customInstance)({ url: `/v1/openapi.json`, method: 'GET'
|
|
369
|
+
}, options);
|
|
370
|
+
};
|
|
371
|
+
const messageThreadsCreateMessageThread = (workspaceId, createMessageThread, options) => {
|
|
365
372
|
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads`, method: 'POST',
|
|
366
373
|
headers: { 'Content-Type': 'application/*+json', },
|
|
367
374
|
data: createMessageThread
|
|
368
|
-
});
|
|
375
|
+
}, options);
|
|
369
376
|
};
|
|
370
|
-
const messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId = (workspaceId, id) => {
|
|
377
|
+
const messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId = (workspaceId, id, options) => {
|
|
371
378
|
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}`, method: 'GET'
|
|
372
|
-
});
|
|
379
|
+
}, options);
|
|
373
380
|
};
|
|
374
381
|
/**
|
|
375
382
|
* @summary Retrieves messages from a specific message thread along with the profile images of the users who created the messages.
|
|
376
383
|
*/
|
|
377
|
-
const messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages = (workspaceId, id) => {
|
|
384
|
+
const messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages = (workspaceId, id, options) => {
|
|
378
385
|
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messagecreateduserprofileimages`, method: 'GET'
|
|
379
|
-
});
|
|
386
|
+
}, options);
|
|
380
387
|
};
|
|
381
388
|
/**
|
|
382
389
|
* @summary Access messages within a specific message thread in SmartSpace, using the thread's ID, along with pagination options take and skip.
|
|
383
390
|
*/
|
|
384
|
-
const messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages = (workspaceId, id, params) => {
|
|
391
|
+
const messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages = (workspaceId, id, params, options) => {
|
|
385
392
|
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messages`, method: 'GET',
|
|
386
393
|
params
|
|
387
|
-
});
|
|
394
|
+
}, options);
|
|
388
395
|
};
|
|
389
396
|
/**
|
|
390
397
|
* @summary SSE stream of all messages on a thread. First frame is the thread
|
|
@@ -393,10 +400,10 @@ const getSmartSpaceChatAPI = () => {
|
|
|
393
400
|
are per-message chunk updates as they arrive. Cumulative deltas
|
|
394
401
|
mean reconnect is just "re-open" — no cursor handshake.
|
|
395
402
|
*/
|
|
396
|
-
const messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream = (workspaceId, id) => {
|
|
403
|
+
const messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream = (workspaceId, id, options) => {
|
|
397
404
|
return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messages/stream`, method: 'GET'
|
|
398
|
-
});
|
|
405
|
+
}, options);
|
|
399
406
|
};
|
|
400
|
-
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, mySecretsGetMySecrets, mySecretsDeleteMySecretValue, mySecretsSetMySecretValue, messageThreadsCreateMessageThread, messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId, messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages, messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages, messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream };
|
|
407
|
+
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, mySecretsGetMySecrets, mySecretsDeleteMySecretValue, mySecretsSetMySecretValue, openAPIGetOpenApiDocument, messageThreadsCreateMessageThread, messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId, messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages, messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages, messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream };
|
|
401
408
|
};
|
|
402
409
|
exports.getSmartSpaceChatAPI = getSmartSpaceChatAPI;
|