@copilotz/admin 0.3.9 → 0.6.1
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/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -308,16 +308,17 @@ async function fetchThreadMessages(threadId, messageOptions, options) {
|
|
|
308
308
|
}
|
|
309
309
|
async function fetchParticipantDetail(participantId, options) {
|
|
310
310
|
return await fetchAdminJson(
|
|
311
|
-
`/v1/
|
|
312
|
-
{},
|
|
311
|
+
`/v1/collections/participant/${encodeURIComponent(participantId)}`,
|
|
312
|
+
{ namespace: "global" },
|
|
313
313
|
options
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
async function updateParticipant(participantId, data, options) {
|
|
317
317
|
const url = new URL(
|
|
318
|
-
`${resolveBaseUrl(options?.baseUrl)}/v1/
|
|
318
|
+
`${resolveBaseUrl(options?.baseUrl)}/v1/collections/participant/${encodeURIComponent(participantId)}`,
|
|
319
319
|
window.location.origin
|
|
320
320
|
);
|
|
321
|
+
url.searchParams.set("namespace", "global");
|
|
321
322
|
const response = await fetch(url.toString(), {
|
|
322
323
|
method: "PUT",
|
|
323
324
|
headers: await withAuthHeaders(
|