@smartspace/api-client 0.1.0-dev.523a211 → 0.1.0-dev.54653e9

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.
@@ -29,7 +29,7 @@ const getSmartSpaceChatAPI = () => {
29
29
  if (filesUploadFilesBody.workspaceId !== undefined) {
30
30
  formData.append(`workspaceId`, filesUploadFilesBody.workspaceId);
31
31
  }
32
- return (0, instance_1.customInstance)({ url: `/v1/Files`, method: 'POST',
32
+ return (0, instance_1.customInstance)({ url: `/Files`, method: 'POST',
33
33
  headers: { 'Content-Type': 'multipart/form-data', },
34
34
  data: formData
35
35
  });
@@ -38,7 +38,7 @@ const getSmartSpaceChatAPI = () => {
38
38
  * @summary Get details for a file previously uploaded.
39
39
  */
40
40
  const filesGetFileInfo = (id, params) => {
41
- return (0, instance_1.customInstance)({ url: `/v1/Files/${id}`, method: 'GET',
41
+ return (0, instance_1.customInstance)({ url: `/Files/${id}`, method: 'GET',
42
42
  params
43
43
  });
44
44
  };
@@ -46,7 +46,7 @@ const getSmartSpaceChatAPI = () => {
46
46
  * @summary Download a previously uploaded file.
47
47
  */
48
48
  const filesDownloadFile = (id, params) => {
49
- return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/download`, method: 'GET',
49
+ return (0, instance_1.customInstance)({ url: `/Files/${id}/download`, method: 'GET',
50
50
  params
51
51
  });
52
52
  };
@@ -54,7 +54,7 @@ const getSmartSpaceChatAPI = () => {
54
54
  * @summary Get URI of a previously uploaded file.
55
55
  */
56
56
  const filesGetUri = (id, params) => {
57
- return (0, instance_1.customInstance)({ url: `/v1/Files/${id}/uri`, method: 'GET',
57
+ return (0, instance_1.customInstance)({ url: `/Files/${id}/uri`, method: 'GET',
58
58
  params
59
59
  });
60
60
  };
@@ -64,15 +64,15 @@ const getSmartSpaceChatAPI = () => {
64
64
  engine stops between block executions, typically within seconds.
65
65
  */
66
66
  const flowRunsCancelFlowRun = (id) => {
67
- return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/cancel`, method: 'POST'
67
+ return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/cancel`, method: 'POST'
68
68
  });
69
69
  };
70
70
  const flowRunsGetVariables = (id) => {
71
- return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables`, method: 'GET'
71
+ return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables`, method: 'GET'
72
72
  });
73
73
  };
74
74
  const flowRunsSetVariable = (id, variableName, flowRunsSetVariableBody) => {
75
- return (0, instance_1.customInstance)({ url: `/v1/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
75
+ return (0, instance_1.customInstance)({ url: `/FlowRuns/${id}/variables/${variableName}`, method: 'PUT',
76
76
  headers: { 'Content-Type': 'application/*+json', },
77
77
  data: flowRunsSetVariableBody
78
78
  });
@@ -81,18 +81,18 @@ const getSmartSpaceChatAPI = () => {
81
81
  * @summary Delete a specific message thread from SmartSpace, using it's ID.
82
82
  */
83
83
  const messageThreadsThreadId = (id) => {
84
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}`, method: 'DELETE'
84
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}`, method: 'DELETE'
85
85
  });
86
86
  };
87
87
  const messageThreadsGetMessageThreadId = (id) => {
88
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}`, method: 'GET'
88
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}`, method: 'GET'
89
89
  });
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
94
  const messageThreadsGetComments = (id, params) => {
95
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/comments`, method: 'GET',
95
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/comments`, method: 'GET',
96
96
  params
97
97
  });
98
98
  };
@@ -100,7 +100,7 @@ const getSmartSpaceChatAPI = () => {
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
102
  const messageThreadsPostComment = (id, commentCreateComment) => {
103
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/comments`, method: 'POST',
103
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/comments`, method: 'POST',
104
104
  headers: { 'Content-Type': 'application/*+json', },
105
105
  data: commentCreateComment
106
106
  });
@@ -109,7 +109,7 @@ const getSmartSpaceChatAPI = () => {
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
111
  const messageThreadsSetFavoritedChat = (id, boolean) => {
112
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/favorited`, method: 'PUT',
112
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/favorited`, method: 'PUT',
113
113
  headers: { 'Content-Type': 'application/*+json', },
114
114
  data: boolean
115
115
  });
@@ -118,14 +118,14 @@ const getSmartSpaceChatAPI = () => {
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
120
  const messageThreadsThreadMessageCreateByUsersProfileImagesIdMessagecreateduserprofileimages = (id) => {
121
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messagecreateduserprofileimages`, method: 'GET'
121
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/messagecreateduserprofileimages`, method: 'GET'
122
122
  });
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
127
  const messageThreadsThreadMessagesIdMessages = (id, params) => {
128
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messages`, method: 'GET',
128
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/messages`, method: 'GET',
129
129
  params
130
130
  });
131
131
  };
@@ -137,14 +137,14 @@ const getSmartSpaceChatAPI = () => {
137
137
  mean reconnect is just "re-open" — no cursor handshake.
138
138
  */
139
139
  const messageThreadsStreamThreadMessagesIdMessagesStream = (id) => {
140
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/messages/stream`, method: 'GET'
140
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/messages/stream`, method: 'GET'
141
141
  });
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
146
  const messageThreadsThreadIdName = (id, messageThreadsThreadIdNameBody) => {
147
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${id}/name`, method: 'PUT',
147
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${id}/name`, method: 'PUT',
148
148
  headers: { 'Content-Type': 'application/*+json', },
149
149
  data: messageThreadsThreadIdNameBody
150
150
  });
@@ -153,14 +153,14 @@ const getSmartSpaceChatAPI = () => {
153
153
  * @summary Get the users who have access to a specific message thread.
154
154
  */
155
155
  const messageThreadsGetThreadUsers = (threadId) => {
156
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${threadId}/users`, method: 'GET'
156
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${threadId}/users`, method: 'GET'
157
157
  });
158
158
  };
159
159
  /**
160
160
  * @summary Add a user to a message thread.
161
161
  */
162
162
  const messageThreadsAddThreadUser = (threadId, userId) => {
163
- return (0, instance_1.customInstance)({ url: `/v1/MessageThreads/${threadId}/users/${userId}`, method: 'POST'
163
+ return (0, instance_1.customInstance)({ url: `/MessageThreads/${threadId}/users/${userId}`, method: 'POST'
164
164
  });
165
165
  };
166
166
  /**
@@ -172,7 +172,7 @@ const getSmartSpaceChatAPI = () => {
172
172
  `POST /messages/start` instead.
173
173
  */
174
174
  const messagesThreadMessages = (messagesMessageRequest) => {
175
- return (0, instance_1.customInstance)({ url: `/v1/Messages`, method: 'POST',
175
+ return (0, instance_1.customInstance)({ url: `/Messages`, method: 'POST',
176
176
  headers: { 'Content-Type': 'application/*+json', },
177
177
  data: messagesMessageRequest
178
178
  });
@@ -186,7 +186,7 @@ const getSmartSpaceChatAPI = () => {
186
186
  live updates instead of waiting for the flow to complete.
187
187
  */
188
188
  const messagesStartThreadMessage = (messagesMessageRequest) => {
189
- return (0, instance_1.customInstance)({ url: `/v1/Messages/start`, method: 'POST',
189
+ return (0, instance_1.customInstance)({ url: `/Messages/start`, method: 'POST',
190
190
  headers: { 'Content-Type': 'application/*+json', },
191
191
  data: messagesMessageRequest
192
192
  });
@@ -195,14 +195,14 @@ const getSmartSpaceChatAPI = () => {
195
195
  * @summary Remove a specific message from SmartSpace using its ID.
196
196
  */
197
197
  const messagesMessage = (id) => {
198
- return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}`, method: 'DELETE'
198
+ return (0, instance_1.customInstance)({ url: `/Messages/${id}`, method: 'DELETE'
199
199
  });
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
204
  const messagesGetComments = (id, params) => {
205
- return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/comments`, method: 'GET',
205
+ return (0, instance_1.customInstance)({ url: `/Messages/${id}/comments`, method: 'GET',
206
206
  params
207
207
  });
208
208
  };
@@ -210,7 +210,7 @@ const getSmartSpaceChatAPI = () => {
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
212
  const messagesPostComment = (id, commentCreateComment) => {
213
- return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/comments`, method: 'POST',
213
+ return (0, instance_1.customInstance)({ url: `/Messages/${id}/comments`, method: 'POST',
214
214
  headers: { 'Content-Type': 'application/*+json', },
215
215
  data: commentCreateComment
216
216
  });
@@ -223,7 +223,7 @@ const getSmartSpaceChatAPI = () => {
223
223
  frame being the authoritative completed message.
224
224
  */
225
225
  const messagesAddValueToMessage = (id, messagesCreateMessageInput) => {
226
- return (0, instance_1.customInstance)({ url: `/v1/Messages/${id}/values`, method: 'POST',
226
+ return (0, instance_1.customInstance)({ url: `/Messages/${id}/values`, method: 'POST',
227
227
  headers: { 'Content-Type': 'application/*+json', },
228
228
  data: messagesCreateMessageInput
229
229
  });
@@ -232,7 +232,7 @@ const getSmartSpaceChatAPI = () => {
232
232
  * @summary Retrieves a list of models.
233
233
  */
234
234
  const modelsGetModels = (params) => {
235
- return (0, instance_1.customInstance)({ url: `/v1/Models`, method: 'GET',
235
+ return (0, instance_1.customInstance)({ url: `/Models`, method: 'GET',
236
236
  params
237
237
  });
238
238
  };
@@ -240,14 +240,14 @@ const getSmartSpaceChatAPI = () => {
240
240
  * @summary Retrieves a model by its ID.
241
241
  */
242
242
  const modelsGetModel = (id) => {
243
- return (0, instance_1.customInstance)({ url: `/v1/Models/${id}`, method: 'GET'
243
+ return (0, instance_1.customInstance)({ url: `/Models/${id}`, method: 'GET'
244
244
  });
245
245
  };
246
246
  /**
247
247
  * @summary Retrieve notifications for user login.
248
248
  */
249
249
  const notificationGet = (params) => {
250
- return (0, instance_1.customInstance)({ url: `/v1/Notification`, method: 'GET',
250
+ return (0, instance_1.customInstance)({ url: `/Notification`, method: 'GET',
251
251
  params
252
252
  });
253
253
  };
@@ -255,7 +255,7 @@ const getSmartSpaceChatAPI = () => {
255
255
  * @summary Update: mark read notifications.
256
256
  */
257
257
  const notificationPutUpdate = (notificationPutUpdateBody) => {
258
- return (0, instance_1.customInstance)({ url: `/v1/Notification/update`, method: 'PUT',
258
+ return (0, instance_1.customInstance)({ url: `/Notification/update`, method: 'PUT',
259
259
  headers: { 'Content-Type': 'application/*+json', },
260
260
  data: notificationPutUpdateBody
261
261
  });
@@ -264,7 +264,7 @@ const getSmartSpaceChatAPI = () => {
264
264
  * @summary Update: mark read all notifications.
265
265
  */
266
266
  const notificationPutUpdateall = () => {
267
- return (0, instance_1.customInstance)({ url: `/v1/Notification/updateall`, method: 'PUT'
267
+ return (0, instance_1.customInstance)({ url: `/Notification/updateall`, method: 'PUT'
268
268
  });
269
269
  };
270
270
  /**
@@ -273,7 +273,7 @@ const getSmartSpaceChatAPI = () => {
273
273
  the install rather than failing: an install without speech reports enabled = false.
274
274
  */
275
275
  const speechGetConfig = () => {
276
- return (0, instance_1.customInstance)({ url: `/v1/Speech/config`, method: 'GET'
276
+ return (0, instance_1.customInstance)({ url: `/Speech/config`, method: 'GET'
277
277
  });
278
278
  };
279
279
  /**
@@ -282,7 +282,7 @@ const getSmartSpaceChatAPI = () => {
282
282
  recognition on this one resource in one region.
283
283
  */
284
284
  const speechGetToken = () => {
285
- return (0, instance_1.customInstance)({ url: `/v1/Speech/token`, method: 'GET'
285
+ return (0, instance_1.customInstance)({ url: `/Speech/token`, method: 'GET'
286
286
  });
287
287
  };
288
288
  /**
@@ -290,7 +290,7 @@ const getSmartSpaceChatAPI = () => {
290
290
  so browsers can cache the image via standard img src usage.
291
291
  */
292
292
  const usersGetUserPhoto = (id) => {
293
- return (0, instance_1.customInstance)({ url: `/v1/Users/${id}/photo`, method: 'GET',
293
+ return (0, instance_1.customInstance)({ url: `/Users/${id}/photo`, method: 'GET',
294
294
  responseType: 'blob'
295
295
  });
296
296
  };
@@ -298,7 +298,7 @@ const getSmartSpaceChatAPI = () => {
298
298
  * @summary Fetches a list of all workspaces with pagination.
299
299
  */
300
300
  const workSpacesGetGet = (params) => {
301
- return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces`, method: 'GET',
301
+ return (0, instance_1.customInstance)({ url: `/WorkSpaces`, method: 'GET',
302
302
  params
303
303
  });
304
304
  };
@@ -306,14 +306,14 @@ const getSmartSpaceChatAPI = () => {
306
306
  * @summary Retrieves a workspace by its ID.
307
307
  */
308
308
  const workSpacesGetId = (id) => {
309
- return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}`, method: 'GET'
309
+ return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}`, method: 'GET'
310
310
  });
311
311
  };
312
312
  /**
313
313
  * @summary Retrieves the access control details of a workspace.
314
314
  */
315
315
  const workSpacesGetAccess = (id, params) => {
316
- return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/access`, method: 'GET',
316
+ return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/access`, method: 'GET',
317
317
  params
318
318
  });
319
319
  };
@@ -321,12 +321,12 @@ const getSmartSpaceChatAPI = () => {
321
321
  * @summary Retrieves all message threads associated with a specified workspace.
322
322
  */
323
323
  const workSpacesThread = (id, params) => {
324
- return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/messageThreads`, method: 'GET',
324
+ return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/messageThreads`, method: 'GET',
325
325
  params
326
326
  });
327
327
  };
328
328
  const workSpacesGetUsers = (id, params) => {
329
- return (0, instance_1.customInstance)({ url: `/v1/WorkSpaces/${id}/users`, method: 'GET',
329
+ return (0, instance_1.customInstance)({ url: `/WorkSpaces/${id}/users`, method: 'GET',
330
330
  params
331
331
  });
332
332
  };
@@ -334,32 +334,32 @@ const getSmartSpaceChatAPI = () => {
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
336
  const documentsGetDocumentSas = (dataSpaceId, params) => {
337
- return (0, instance_1.customInstance)({ url: `/v1/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
337
+ return (0, instance_1.customInstance)({ url: `/dataspaces/${dataSpaceId}/documents/item/sas`, method: 'GET',
338
338
  params
339
339
  });
340
340
  };
341
341
  const messageThreadsCreateMessageThread = (workspaceId, createMessageThread) => {
342
- return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads`, method: 'POST',
342
+ return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads`, method: 'POST',
343
343
  headers: { 'Content-Type': 'application/*+json', },
344
344
  data: createMessageThread
345
345
  });
346
346
  };
347
347
  const messageThreadsGetMessageThreadWorkspacesWorkspaceIdMessagethreadsId = (workspaceId, id) => {
348
- return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}`, method: 'GET'
348
+ return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads/${id}`, method: 'GET'
349
349
  });
350
350
  };
351
351
  /**
352
352
  * @summary Retrieves messages from a specific message thread along with the profile images of the users who created the messages.
353
353
  */
354
354
  const messageThreadsThreadMessageCreateByUsersProfileImagesWorkspacesWorkspaceIdMessagethreadsIdMessagecreateduserprofileimages = (workspaceId, id) => {
355
- return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messagecreateduserprofileimages`, method: 'GET'
355
+ return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads/${id}/messagecreateduserprofileimages`, method: 'GET'
356
356
  });
357
357
  };
358
358
  /**
359
359
  * @summary Access messages within a specific message thread in SmartSpace, using the thread's ID, along with pagination options take and skip.
360
360
  */
361
361
  const messageThreadsThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessages = (workspaceId, id, params) => {
362
- return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messages`, method: 'GET',
362
+ return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads/${id}/messages`, method: 'GET',
363
363
  params
364
364
  });
365
365
  };
@@ -371,7 +371,7 @@ const getSmartSpaceChatAPI = () => {
371
371
  mean reconnect is just "re-open" — no cursor handshake.
372
372
  */
373
373
  const messageThreadsStreamThreadMessagesWorkspacesWorkspaceIdMessagethreadsIdMessagesStream = (workspaceId, id) => {
374
- return (0, instance_1.customInstance)({ url: `/v1/workspaces/${workspaceId}/messagethreads/${id}/messages/stream`, method: 'GET'
374
+ return (0, instance_1.customInstance)({ url: `/workspaces/${workspaceId}/messagethreads/${id}/messages/stream`, method: 'GET'
375
375
  });
376
376
  };
377
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 };