@parall/sdk 1.55.3 → 1.55.5
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/attachment-client.d.ts +14 -0
- package/dist/attachment-client.d.ts.map +1 -0
- package/dist/attachment-client.js +38 -0
- package/dist/attachment-endpoints.d.ts +7 -0
- package/dist/attachment-endpoints.d.ts.map +1 -0
- package/dist/attachment-endpoints.js +8 -0
- package/dist/attachment-types.d.ts +33 -0
- package/dist/attachment-types.d.ts.map +1 -0
- package/dist/attachment-types.js +1 -0
- package/dist/client.d.ts +60 -27
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +125 -41
- package/dist/constants.d.ts +74 -54
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +22 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/types.d.ts +383 -28
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +12 -0
- package/dist/wechat-client.d.ts +15 -0
- package/dist/wechat-client.d.ts.map +1 -0
- package/dist/wechat-client.js +28 -0
- package/dist/wechat-types.d.ts +27 -0
- package/dist/wechat-types.d.ts.map +1 -0
- package/dist/wechat-types.js +1 -0
- package/package.json +1 -1
- package/src/attachment-client.ts +56 -0
- package/src/attachment-endpoints.ts +8 -0
- package/src/attachment-types.ts +36 -0
- package/src/client.ts +273 -61
- package/src/constants.ts +37 -3
- package/src/index.ts +2 -0
- package/src/types.ts +451 -30
- package/src/wechat-client.ts +35 -0
- package/src/wechat-types.ts +28 -0
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { browserViewerRequestOptions } from './browser-viewer.js';
|
|
2
2
|
import { API_BASE, ENDPOINTS, WIKI_BASE } from './constants.js';
|
|
3
|
-
import {
|
|
4
|
-
export class ParallClient extends
|
|
3
|
+
import { AttachmentClient } from './attachment-client.js';
|
|
4
|
+
export class ParallClient extends AttachmentClient {
|
|
5
5
|
baseUrl;
|
|
6
6
|
wikiBaseUrl;
|
|
7
7
|
token;
|
|
@@ -674,16 +674,6 @@ export class ParallClient extends TaskLabelClient {
|
|
|
674
674
|
const res = await this.request('GET', ENDPOINTS.MESSAGE_REACTIONS(messageId));
|
|
675
675
|
return res.reactions;
|
|
676
676
|
}
|
|
677
|
-
// ---- File Upload ----
|
|
678
|
-
async getUploadPresignUrl(orgId, req) {
|
|
679
|
-
return this.request('POST', ENDPOINTS.UPLOAD_PRESIGN(orgId), req);
|
|
680
|
-
}
|
|
681
|
-
async completeUpload(orgId, attachmentId) {
|
|
682
|
-
return this.request('POST', ENDPOINTS.UPLOAD_COMPLETE(orgId), { attachment_id: attachmentId });
|
|
683
|
-
}
|
|
684
|
-
async getFileUrl(id, opts) {
|
|
685
|
-
return this.request('GET', ENDPOINTS.FILE(id), undefined, opts?.download ? { download: true } : undefined);
|
|
686
|
-
}
|
|
687
677
|
// ---- Approvals ----
|
|
688
678
|
async getApproval(id) {
|
|
689
679
|
return this.request('GET', ENDPOINTS.APPROVAL(id));
|
|
@@ -691,8 +681,14 @@ export class ParallClient extends TaskLabelClient {
|
|
|
691
681
|
async requestApproval(orgId, req) {
|
|
692
682
|
return this.request('POST', ENDPOINTS.APPROVAL_REQUESTS(orgId), req);
|
|
693
683
|
}
|
|
694
|
-
async decideApproval(id, decision) {
|
|
695
|
-
|
|
684
|
+
async decideApproval(id, decision, reason) {
|
|
685
|
+
if (decision === 'approve' && reason?.trim()) {
|
|
686
|
+
throw new ApiError(400, 'Approval reason is only allowed for rejection decisions', 'INVALID_DECISION_REASON');
|
|
687
|
+
}
|
|
688
|
+
return this.request('POST', ENDPOINTS.APPROVAL_DECIDE(id), {
|
|
689
|
+
decision,
|
|
690
|
+
...(decision === 'reject' && reason !== undefined ? { reason } : {}),
|
|
691
|
+
});
|
|
696
692
|
}
|
|
697
693
|
async cancelApproval(id) {
|
|
698
694
|
return this.request('POST', ENDPOINTS.APPROVAL_CANCEL(id));
|
|
@@ -1380,28 +1376,6 @@ export class ParallClient extends TaskLabelClient {
|
|
|
1380
1376
|
async setSlackStatus(orgId, input) {
|
|
1381
1377
|
await this.request('POST', ENDPOINTS.SLACK_STATUS(orgId), input);
|
|
1382
1378
|
}
|
|
1383
|
-
/**
|
|
1384
|
-
* WeChat tier-B read verb (agent-only; internal research preview): the
|
|
1385
|
-
* account's address book — friends/chatrooms enriched with display names,
|
|
1386
|
-
* followed official accounts. Same live gate as the send verb.
|
|
1387
|
-
*/
|
|
1388
|
-
async listWechatContacts(orgId) {
|
|
1389
|
-
return this.request('GET', ENDPOINTS.WECHAT_CONTACTS(orgId));
|
|
1390
|
-
}
|
|
1391
|
-
/**
|
|
1392
|
-
* WeChat tier-B read verb (agent-only): the connected account's identity
|
|
1393
|
-
* (wxid / alias / nickName / app id).
|
|
1394
|
-
*/
|
|
1395
|
-
async wechatProfile(orgId) {
|
|
1396
|
-
return this.request('GET', ENDPOINTS.WECHAT_PROFILE(orgId));
|
|
1397
|
-
}
|
|
1398
|
-
/**
|
|
1399
|
-
* WeChat tier-B read verb (agent-only): live online probe + identity +
|
|
1400
|
-
* the platform's offline record.
|
|
1401
|
-
*/
|
|
1402
|
-
async wechatStatus(orgId) {
|
|
1403
|
-
return this.request('GET', ENDPOINTS.WECHAT_STATUS(orgId));
|
|
1404
|
-
}
|
|
1405
1379
|
async listChannelConversations(orgId, connectionId) {
|
|
1406
1380
|
return this.request('GET', ENDPOINTS.CHANNEL_CONNECTION_CONVERSATIONS(orgId, connectionId));
|
|
1407
1381
|
}
|
|
@@ -1554,6 +1528,17 @@ export class ParallClient extends TaskLabelClient {
|
|
|
1554
1528
|
const res = await this.request('GET', ENDPOINTS.WIKI_CHANGESETS(orgId, wikiId));
|
|
1555
1529
|
return res.data.map(normalizeWikiChangeset);
|
|
1556
1530
|
}
|
|
1531
|
+
/** Org-wide changeset listing across every wiki the caller can read.
|
|
1532
|
+
* Server default (no `status`) is the pending set: proposed,
|
|
1533
|
+
* approval_pending, approved. */
|
|
1534
|
+
async getOrgWikiChangesets(orgId, opts) {
|
|
1535
|
+
const params = new URLSearchParams();
|
|
1536
|
+
for (const s of opts?.status ?? [])
|
|
1537
|
+
params.append('status', s);
|
|
1538
|
+
const qs = params.toString();
|
|
1539
|
+
const res = await this.request('GET', `${ENDPOINTS.WIKI_ORG_CHANGESETS(orgId)}${qs ? `?${qs}` : ''}`);
|
|
1540
|
+
return (res.data ?? []).map(normalizeWikiChangeset);
|
|
1541
|
+
}
|
|
1557
1542
|
async getWikiChangeset(orgId, wikiId, changesetId) {
|
|
1558
1543
|
return normalizeWikiChangeset(await this.request('GET', ENDPOINTS.WIKI_CHANGESET(orgId, wikiId, changesetId)));
|
|
1559
1544
|
}
|
|
@@ -1646,6 +1631,35 @@ export class ParallClient extends TaskLabelClient {
|
|
|
1646
1631
|
async getWikiAccessStatus(orgId, wikiId, path) {
|
|
1647
1632
|
return this.request('GET', ENDPOINTS.WIKI_ACCESS_STATUS(orgId, wikiId), undefined, path ? { path } : undefined);
|
|
1648
1633
|
}
|
|
1634
|
+
// ---- Wiki membership projection (who-can-access, invites, join/leave) ----
|
|
1635
|
+
async getWikiAccessPolicy(orgId, wikiId, path = '') {
|
|
1636
|
+
return this.request('GET', ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), undefined, path ? { path } : undefined);
|
|
1637
|
+
}
|
|
1638
|
+
async putWikiAccessPolicy(orgId, wikiId, policy) {
|
|
1639
|
+
return this.request('PUT', ENDPOINTS.WIKI_ACCESS_POLICY(orgId, wikiId), policy);
|
|
1640
|
+
}
|
|
1641
|
+
/** Add-only invite (viewer/editor); allowed for managers, and for editors
|
|
1642
|
+
* when the library enables editors_can_invite. */
|
|
1643
|
+
async addWikiMember(orgId, wikiId, subject, role) {
|
|
1644
|
+
await this.request('POST', ENDPOINTS.WIKI_ACCESS_POLICY_MEMBERS(orgId, wikiId), {
|
|
1645
|
+
subject,
|
|
1646
|
+
role,
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
/** Join a PUBLIC library as an explicit member (lands at the library's
|
|
1650
|
+
* default role). Restricted libraries answer 409 JOIN_REQUIRES_REQUEST —
|
|
1651
|
+
* go through createWikiAccessRequest instead. */
|
|
1652
|
+
async joinWiki(orgId, wikiId) {
|
|
1653
|
+
await this.request('POST', ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
1654
|
+
}
|
|
1655
|
+
/** Remove the caller's explicit membership (team-granted membership stays). */
|
|
1656
|
+
async leaveWiki(orgId, wikiId) {
|
|
1657
|
+
await this.request('DELETE', ENDPOINTS.WIKI_MEMBERSHIP_SELF(orgId, wikiId));
|
|
1658
|
+
}
|
|
1659
|
+
async getWikiMembers(orgId, wikiId) {
|
|
1660
|
+
const res = await this.request('GET', ENDPOINTS.WIKI_MEMBERS(orgId, wikiId));
|
|
1661
|
+
return res.data ?? [];
|
|
1662
|
+
}
|
|
1649
1663
|
async createWikiAccessRequest(orgId, wikiId, data) {
|
|
1650
1664
|
await this.request('POST', ENDPOINTS.WIKI_ACCESS_REQUESTS(orgId, wikiId), data);
|
|
1651
1665
|
}
|
|
@@ -1693,11 +1707,11 @@ export class ParallClient extends TaskLabelClient {
|
|
|
1693
1707
|
}
|
|
1694
1708
|
// ---- References ----
|
|
1695
1709
|
async resolveRefs(orgId, refs, options) {
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1710
|
+
return this.request('POST', ENDPOINTS.REFS_RESOLVE(orgId), {
|
|
1711
|
+
refs,
|
|
1712
|
+
source_message_id: options?.sourceMessageId,
|
|
1713
|
+
full: options?.full || undefined,
|
|
1714
|
+
});
|
|
1701
1715
|
}
|
|
1702
1716
|
async getBacklinks(orgId, params) {
|
|
1703
1717
|
return this.request('GET', ENDPOINTS.REFS_BACKLINKS(orgId), undefined, params);
|
|
@@ -2125,6 +2139,76 @@ export class ParallClient extends TaskLabelClient {
|
|
|
2125
2139
|
async listEdgeProfiles(orgId, edgeId) {
|
|
2126
2140
|
return this.request('GET', ENDPOINTS.ORG_EDGE_PROFILES(orgId, edgeId));
|
|
2127
2141
|
}
|
|
2142
|
+
/** Start one durable Local BYOC Profile operation. Network-unknown callers
|
|
2143
|
+
* must retry with the same key or recover by operation id; a different body
|
|
2144
|
+
* under the same key is rejected. */
|
|
2145
|
+
async createEdgeProfileOperation(orgId, edgeId, request, idempotencyKey) {
|
|
2146
|
+
return this.request('POST', ENDPOINTS.ORG_EDGE_PROFILE_OPERATIONS(orgId, edgeId), request, undefined, false, { headers: { 'Idempotency-Key': idempotencyKey } });
|
|
2147
|
+
}
|
|
2148
|
+
/** Strong-confirm the exact durable Delete impact. A changed impact returns
|
|
2149
|
+
* PROFILE_DELETE_IMPACT_CHANGED with a replacement receipt in
|
|
2150
|
+
* `ApiError.extras.details.operation`. */
|
|
2151
|
+
async confirmEdgeProfileOperation(orgId, edgeId, operationId, request) {
|
|
2152
|
+
return this.request('POST', ENDPOINTS.ORG_EDGE_PROFILE_OPERATION_CONFIRM(orgId, edgeId, operationId), request);
|
|
2153
|
+
}
|
|
2154
|
+
/** Sole read/recovery surface. The server may reconcile an already durable
|
|
2155
|
+
* dispatch/finalization while returning this receipt. */
|
|
2156
|
+
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
2157
|
+
return this.request('GET', ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
2158
|
+
}
|
|
2159
|
+
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
2160
|
+
* with the same idempotency key and body returns the original stable ccn_. */
|
|
2161
|
+
async createBrowserAlias(orgId, request) {
|
|
2162
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request);
|
|
2163
|
+
}
|
|
2164
|
+
async listBrowserAliases(orgId) {
|
|
2165
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
2166
|
+
}
|
|
2167
|
+
async getBrowserAlias(orgId, aliasId) {
|
|
2168
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
2169
|
+
}
|
|
2170
|
+
async renameBrowserAlias(orgId, aliasId, request) {
|
|
2171
|
+
return this.request('PATCH', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
2172
|
+
}
|
|
2173
|
+
async deleteBrowserAlias(orgId, aliasId, request) {
|
|
2174
|
+
return this.request('DELETE', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
2175
|
+
}
|
|
2176
|
+
/** Start one durable readiness check. The key is carried as the standard
|
|
2177
|
+
* Idempotency-Key header; the request body is intentionally empty. */
|
|
2178
|
+
async createBrowserAliasReadinessCheck(orgId, aliasId, request) {
|
|
2179
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), undefined, undefined, false, { headers: { 'Idempotency-Key': request.idempotency_key } });
|
|
2180
|
+
}
|
|
2181
|
+
/** Sole durable recovery surface for one readiness request. */
|
|
2182
|
+
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
2183
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
2184
|
+
}
|
|
2185
|
+
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
2186
|
+
* intentionally available only on this human-JWT management surface. */
|
|
2187
|
+
async listBrowserAliasGrants(orgId, keyId) {
|
|
2188
|
+
return this.request('GET', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
2189
|
+
}
|
|
2190
|
+
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
2191
|
+
return this.request('GET', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
2192
|
+
}
|
|
2193
|
+
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request) {
|
|
2194
|
+
return this.request('PUT', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request);
|
|
2195
|
+
}
|
|
2196
|
+
/** Managed-key discovery. The response is already grant-filtered and never
|
|
2197
|
+
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
2198
|
+
async listManagedBrowserAliases(orgId) {
|
|
2199
|
+
return this.request('GET', ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
2200
|
+
}
|
|
2201
|
+
async getManagedBrowserAlias(orgId, aliasName) {
|
|
2202
|
+
return this.request('GET', ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
2203
|
+
}
|
|
2204
|
+
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
2205
|
+
* caller before local validation and is also the sole durable recovery key. */
|
|
2206
|
+
async createBrowserAliasExecution(orgId, request) {
|
|
2207
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request);
|
|
2208
|
+
}
|
|
2209
|
+
async getBrowserAliasExecution(orgId, requestId) {
|
|
2210
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
2211
|
+
}
|
|
2128
2212
|
/**
|
|
2129
2213
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
2130
2214
|
* human maintainer or org admin). Sanitized — the password never comes back.
|
package/dist/constants.d.ts
CHANGED
|
@@ -339,60 +339,6 @@ export declare function isPlatformModelSelectableForRuntime(model: {
|
|
|
339
339
|
}, runtime: string | null | undefined): boolean;
|
|
340
340
|
export declare function platformDefaultModelForRuntime(runtime: string | null | undefined): string | null;
|
|
341
341
|
export declare const ENDPOINTS: {
|
|
342
|
-
readonly AUTH_REGISTER: "/api/v1/auth/register";
|
|
343
|
-
readonly AUTH_LOGIN: "/api/v1/auth/login";
|
|
344
|
-
readonly AUTH_REFRESH: "/api/v1/auth/refresh";
|
|
345
|
-
readonly AUTH_LOGOUT: "/api/v1/auth/logout";
|
|
346
|
-
readonly AUTH_CHANGE_PASSWORD: "/api/v1/auth/change-password";
|
|
347
|
-
readonly AUTH_CHECK_EMAIL: "/api/v1/auth/check-email";
|
|
348
|
-
readonly AUTH_VERIFY_EMAIL: "/api/v1/auth/verify-email";
|
|
349
|
-
readonly AUTH_RESEND_CODE: "/api/v1/auth/resend-code";
|
|
350
|
-
readonly AUTH_FORGOT_PASSWORD: "/api/v1/auth/forgot-password";
|
|
351
|
-
readonly AUTH_RESET_PASSWORD: "/api/v1/auth/reset-password";
|
|
352
|
-
readonly AUTH_OAUTH_EXCHANGE: "/api/v1/auth/oauth/exchange";
|
|
353
|
-
readonly USERS_ME: "/api/v1/users/me";
|
|
354
|
-
readonly USER_AVATAR: "/api/v1/users/me/avatar";
|
|
355
|
-
readonly USER: (id: string) => string;
|
|
356
|
-
readonly WS_TICKET: "/api/v1/ws/ticket";
|
|
357
|
-
readonly ORGS: "/api/v1/orgs";
|
|
358
|
-
readonly ORG: (orgId: string) => string;
|
|
359
|
-
readonly ORG_MEMBERS: (orgId: string) => string;
|
|
360
|
-
readonly ORG_MEMBERS_FORMER: (orgId: string) => string;
|
|
361
|
-
readonly TEAMS: (orgId: string) => string;
|
|
362
|
-
readonly TEAM: (orgId: string, teamId: string) => string;
|
|
363
|
-
readonly TEAM_MEMBERS: (orgId: string, teamId: string) => string;
|
|
364
|
-
readonly TEAM_MEMBER: (orgId: string, teamId: string, userId: string) => string;
|
|
365
|
-
readonly ORG_MEMBERS_ONLINE: (orgId: string) => string;
|
|
366
|
-
readonly ORG_MEMBER: (orgId: string, userId: string) => string;
|
|
367
|
-
readonly ORG_MEMBER_CHATS: (orgId: string, memberId: string) => string;
|
|
368
|
-
readonly ORG_MEMBER_TASKS: (orgId: string, memberId: string) => string;
|
|
369
|
-
readonly ORG_MEMBER_PROFILE: (orgId: string, userId: string) => string;
|
|
370
|
-
readonly AGENT_INSTRUCTIONS: (orgId: string, agentId: string) => string;
|
|
371
|
-
readonly AGENT_MANAGER: (orgId: string, agentId: string) => string;
|
|
372
|
-
readonly REF_SEARCH: (orgId: string) => string;
|
|
373
|
-
readonly DM: (orgId: string) => string;
|
|
374
|
-
readonly SEED_ONBOARDING_DM: (orgId: string) => string;
|
|
375
|
-
readonly DISMISS_ONBOARDING: (orgId: string) => string;
|
|
376
|
-
readonly CHATS: (orgId: string) => string;
|
|
377
|
-
readonly CHATS_DISCOVERABLE: (orgId: string) => string;
|
|
378
|
-
readonly CHAT: (orgId: string, chatId: string) => string;
|
|
379
|
-
readonly CHAT_JOIN: (orgId: string, chatId: string) => string;
|
|
380
|
-
readonly CHAT_ARCHIVE: (orgId: string, chatId: string) => string;
|
|
381
|
-
readonly CHAT_RESTORE: (orgId: string, chatId: string) => string;
|
|
382
|
-
readonly CHAT_MEMBERS: (orgId: string, chatId: string) => string;
|
|
383
|
-
readonly CHAT_MEMBER: (orgId: string, chatId: string, userId: string) => string;
|
|
384
|
-
readonly CHAT_TRANSFER_OWNERSHIP: (orgId: string, chatId: string) => string;
|
|
385
|
-
readonly CHAT_MESSAGES: (orgId: string, chatId: string) => string;
|
|
386
|
-
readonly MESSAGE: (id: string) => string;
|
|
387
|
-
readonly MESSAGE_REPLIES: (id: string) => string;
|
|
388
|
-
readonly MESSAGE_WATCH: (id: string) => string;
|
|
389
|
-
readonly MESSAGE_WATCHERS: (id: string) => string;
|
|
390
|
-
readonly MESSAGE_WATCHING: (id: string) => string;
|
|
391
|
-
readonly MESSAGE_REACTIONS: (id: string) => string;
|
|
392
|
-
readonly MESSAGE_REACTION: (id: string, emoji: string) => string;
|
|
393
|
-
readonly UPLOAD_PRESIGN: (orgId: string) => string;
|
|
394
|
-
readonly UPLOAD_COMPLETE: (orgId: string) => string;
|
|
395
|
-
readonly FILE: (id: string) => string;
|
|
396
342
|
readonly APPROVAL_REQUESTS: (orgId: string) => string;
|
|
397
343
|
readonly APPROVAL: (id: string) => string;
|
|
398
344
|
readonly APPROVAL_DECIDE: (id: string) => string;
|
|
@@ -524,6 +470,7 @@ export declare const ENDPOINTS: {
|
|
|
524
470
|
readonly SLACK_MEMBERS: (orgId: string) => string;
|
|
525
471
|
readonly SLACK_STATUS: (orgId: string) => string;
|
|
526
472
|
readonly WECHAT_CONTACTS: (orgId: string) => string;
|
|
473
|
+
readonly WECHAT_HISTORY: (orgId: string) => string;
|
|
527
474
|
readonly WECHAT_PROFILE: (orgId: string) => string;
|
|
528
475
|
readonly WECHAT_STATUS: (orgId: string) => string;
|
|
529
476
|
readonly ORG_INVITATIONS: (orgId: string) => string;
|
|
@@ -540,6 +487,7 @@ export declare const ENDPOINTS: {
|
|
|
540
487
|
readonly INVITE_LINK_JOIN: "/api/v1/invite-link/join";
|
|
541
488
|
readonly WIKIS: (orgId: string) => string;
|
|
542
489
|
readonly WIKIS_DELETED: (orgId: string) => string;
|
|
490
|
+
readonly WIKI_ORG_CHANGESETS: (orgId: string) => string;
|
|
543
491
|
readonly WIKI: (orgId: string, wikiId: string) => string;
|
|
544
492
|
readonly WIKI_RESTORE: (orgId: string, wikiId: string) => string;
|
|
545
493
|
readonly WIKI_TREE: (orgId: string, wikiId: string) => string;
|
|
@@ -565,6 +513,10 @@ export declare const ENDPOINTS: {
|
|
|
565
513
|
readonly WIKI_PATH_SCOPE: (orgId: string, wikiId: string, scopeId: string) => string;
|
|
566
514
|
readonly WIKI_RESTRICTIONS: (orgId: string, wikiId: string) => string;
|
|
567
515
|
readonly WIKI_RESTRICTION: (orgId: string, wikiId: string, restrictionId: string) => string;
|
|
516
|
+
readonly WIKI_ACCESS_POLICY: (orgId: string, wikiId: string) => string;
|
|
517
|
+
readonly WIKI_ACCESS_POLICY_MEMBERS: (orgId: string, wikiId: string) => string;
|
|
518
|
+
readonly WIKI_MEMBERSHIP_SELF: (orgId: string, wikiId: string) => string;
|
|
519
|
+
readonly WIKI_MEMBERS: (orgId: string, wikiId: string) => string;
|
|
568
520
|
readonly WIKI_ACCESS_STATUS: (orgId: string, wikiId: string) => string;
|
|
569
521
|
readonly WIKI_ACCESS_REQUESTS: (orgId: string, wikiId: string) => string;
|
|
570
522
|
readonly WIKI_COMMITS: (orgId: string, wikiId: string) => string;
|
|
@@ -654,6 +606,19 @@ export declare const ENDPOINTS: {
|
|
|
654
606
|
readonly ORG_EDGE_DEVICE_UNREGISTER: (orgId: string, edgeId: string) => string;
|
|
655
607
|
readonly ORG_EDGE_ONBOARDING: (orgId: string) => string;
|
|
656
608
|
readonly ORG_EDGE_PROFILES: (orgId: string, edgeId: string) => string;
|
|
609
|
+
readonly ORG_EDGE_PROFILE_OPERATIONS: (orgId: string, edgeId: string) => string;
|
|
610
|
+
readonly ORG_EDGE_PROFILE_OPERATION: (orgId: string, edgeId: string, operationId: string) => string;
|
|
611
|
+
readonly ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId: string, edgeId: string, operationId: string) => string;
|
|
612
|
+
readonly ORG_BROWSER_ALIASES: (orgId: string) => string;
|
|
613
|
+
readonly ORG_BROWSER_ALIAS: (orgId: string, aliasId: string) => string;
|
|
614
|
+
readonly ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId: string, aliasId: string) => string;
|
|
615
|
+
readonly ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId: string, aliasId: string, checkId: string) => string;
|
|
616
|
+
readonly ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId: string, keyId: string) => string;
|
|
617
|
+
readonly ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId: string, keyId: string, aliasId: string) => string;
|
|
618
|
+
readonly ORG_MANAGED_ALIASES: (orgId: string) => string;
|
|
619
|
+
readonly ORG_MANAGED_ALIAS: (orgId: string, aliasName: string) => string;
|
|
620
|
+
readonly ORG_BROWSER_ALIAS_EXECUTIONS: (orgId: string) => string;
|
|
621
|
+
readonly ORG_BROWSER_ALIAS_EXECUTION: (orgId: string, requestId: string) => string;
|
|
657
622
|
readonly ORG_EDGE_PROFILE_PROXY: (orgId: string, edgeId: string, profileName: string) => string;
|
|
658
623
|
readonly ORG_EDGE_PROFILE_COOKIES: (orgId: string, edgeId: string, profileName: string) => string;
|
|
659
624
|
readonly ORG_EDGE_EXEC: (orgId: string) => string;
|
|
@@ -675,6 +640,61 @@ export declare const ENDPOINTS: {
|
|
|
675
640
|
readonly ORG_CLIP_MCP_CONFIG_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
676
641
|
readonly ORG_CLIP_MCP_TOOLS_REFRESH_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
677
642
|
readonly ORG_CLIP_MCP_OAUTH_DISCONNECT_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
643
|
+
readonly UPLOAD_PRESIGN: (orgId: string) => string;
|
|
644
|
+
readonly UPLOAD_COMPLETE: (orgId: string) => string;
|
|
645
|
+
readonly UPLOAD_ABORT: (orgId: string) => string;
|
|
646
|
+
readonly FILE: (id: string) => string;
|
|
647
|
+
readonly AUTH_REGISTER: "/api/v1/auth/register";
|
|
648
|
+
readonly AUTH_LOGIN: "/api/v1/auth/login";
|
|
649
|
+
readonly AUTH_REFRESH: "/api/v1/auth/refresh";
|
|
650
|
+
readonly AUTH_LOGOUT: "/api/v1/auth/logout";
|
|
651
|
+
readonly AUTH_CHANGE_PASSWORD: "/api/v1/auth/change-password";
|
|
652
|
+
readonly AUTH_CHECK_EMAIL: "/api/v1/auth/check-email";
|
|
653
|
+
readonly AUTH_VERIFY_EMAIL: "/api/v1/auth/verify-email";
|
|
654
|
+
readonly AUTH_RESEND_CODE: "/api/v1/auth/resend-code";
|
|
655
|
+
readonly AUTH_FORGOT_PASSWORD: "/api/v1/auth/forgot-password";
|
|
656
|
+
readonly AUTH_RESET_PASSWORD: "/api/v1/auth/reset-password";
|
|
657
|
+
readonly AUTH_OAUTH_EXCHANGE: "/api/v1/auth/oauth/exchange";
|
|
658
|
+
readonly USERS_ME: "/api/v1/users/me";
|
|
659
|
+
readonly USER_AVATAR: "/api/v1/users/me/avatar";
|
|
660
|
+
readonly USER: (id: string) => string;
|
|
661
|
+
readonly WS_TICKET: "/api/v1/ws/ticket";
|
|
662
|
+
readonly ORGS: "/api/v1/orgs";
|
|
663
|
+
readonly ORG: (orgId: string) => string;
|
|
664
|
+
readonly ORG_MEMBERS: (orgId: string) => string;
|
|
665
|
+
readonly ORG_MEMBERS_FORMER: (orgId: string) => string;
|
|
666
|
+
readonly TEAMS: (orgId: string) => string;
|
|
667
|
+
readonly TEAM: (orgId: string, teamId: string) => string;
|
|
668
|
+
readonly TEAM_MEMBERS: (orgId: string, teamId: string) => string;
|
|
669
|
+
readonly TEAM_MEMBER: (orgId: string, teamId: string, userId: string) => string;
|
|
670
|
+
readonly ORG_MEMBERS_ONLINE: (orgId: string) => string;
|
|
671
|
+
readonly ORG_MEMBER: (orgId: string, userId: string) => string;
|
|
672
|
+
readonly ORG_MEMBER_CHATS: (orgId: string, memberId: string) => string;
|
|
673
|
+
readonly ORG_MEMBER_TASKS: (orgId: string, memberId: string) => string;
|
|
674
|
+
readonly ORG_MEMBER_PROFILE: (orgId: string, userId: string) => string;
|
|
675
|
+
readonly AGENT_INSTRUCTIONS: (orgId: string, agentId: string) => string;
|
|
676
|
+
readonly AGENT_MANAGER: (orgId: string, agentId: string) => string;
|
|
677
|
+
readonly REF_SEARCH: (orgId: string) => string;
|
|
678
|
+
readonly DM: (orgId: string) => string;
|
|
679
|
+
readonly SEED_ONBOARDING_DM: (orgId: string) => string;
|
|
680
|
+
readonly DISMISS_ONBOARDING: (orgId: string) => string;
|
|
681
|
+
readonly CHATS: (orgId: string) => string;
|
|
682
|
+
readonly CHATS_DISCOVERABLE: (orgId: string) => string;
|
|
683
|
+
readonly CHAT: (orgId: string, chatId: string) => string;
|
|
684
|
+
readonly CHAT_JOIN: (orgId: string, chatId: string) => string;
|
|
685
|
+
readonly CHAT_ARCHIVE: (orgId: string, chatId: string) => string;
|
|
686
|
+
readonly CHAT_RESTORE: (orgId: string, chatId: string) => string;
|
|
687
|
+
readonly CHAT_MEMBERS: (orgId: string, chatId: string) => string;
|
|
688
|
+
readonly CHAT_MEMBER: (orgId: string, chatId: string, userId: string) => string;
|
|
689
|
+
readonly CHAT_TRANSFER_OWNERSHIP: (orgId: string, chatId: string) => string;
|
|
690
|
+
readonly CHAT_MESSAGES: (orgId: string, chatId: string) => string;
|
|
691
|
+
readonly MESSAGE: (id: string) => string;
|
|
692
|
+
readonly MESSAGE_REPLIES: (id: string) => string;
|
|
693
|
+
readonly MESSAGE_WATCH: (id: string) => string;
|
|
694
|
+
readonly MESSAGE_WATCHERS: (id: string) => string;
|
|
695
|
+
readonly MESSAGE_WATCHING: (id: string) => string;
|
|
696
|
+
readonly MESSAGE_REACTIONS: (id: string) => string;
|
|
697
|
+
readonly MESSAGE_REACTION: (id: string, emoji: string) => string;
|
|
678
698
|
};
|
|
679
699
|
/**
|
|
680
700
|
* Wiki personal-namespace prefix — the path subtree a member owns for
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAGlC,eAAO,MAAM,SAAS,aAAa,CAAC;AAGpC,eAAO,MAAM,SAAS,aAAa,CAAC;AAMpC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmMlB,CAAC;AAIX;;;;;GAKG;AACH,eAAO,MAAM,s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
|
// API base path
|
|
2
3
|
export const API_BASE = '/api/v1';
|
|
3
4
|
// Wiki-service base path (served by wiki-service, routed via LB path rules)
|
|
@@ -400,9 +401,7 @@ export const ENDPOINTS = {
|
|
|
400
401
|
MESSAGE_REACTIONS: (id) => `${API_BASE}/messages/${id}/reactions`,
|
|
401
402
|
MESSAGE_REACTION: (id, emoji) => `${API_BASE}/messages/${id}/reactions/${encodeURIComponent(emoji)}`,
|
|
402
403
|
// Upload (org-scoped)
|
|
403
|
-
|
|
404
|
-
UPLOAD_COMPLETE: (orgId) => `${API_BASE}/orgs/${orgId}/upload/complete`,
|
|
405
|
-
FILE: (id) => `${API_BASE}/files/${id}`,
|
|
404
|
+
...attachmentEndpoints(API_BASE),
|
|
406
405
|
// Approval requests (org-scoped)
|
|
407
406
|
APPROVAL_REQUESTS: (orgId) => `${API_BASE}/orgs/${orgId}/approval-requests`,
|
|
408
407
|
// Approvals (global)
|
|
@@ -559,6 +558,7 @@ export const ENDPOINTS = {
|
|
|
559
558
|
SLACK_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/slack/status`,
|
|
560
559
|
// WeChat tier-B read verbs (agent-only; internal research preview).
|
|
561
560
|
WECHAT_CONTACTS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/contacts`,
|
|
561
|
+
WECHAT_HISTORY: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/history`,
|
|
562
562
|
WECHAT_PROFILE: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/profile`,
|
|
563
563
|
WECHAT_STATUS: (orgId) => `${API_BASE}/orgs/${orgId}/agents/me/wechat/status`,
|
|
564
564
|
// Invitations (org-scoped, admin)
|
|
@@ -582,6 +582,8 @@ export const ENDPOINTS = {
|
|
|
582
582
|
// backend router so `deleted` isn't captured as a {wikiId}; the SDK builder
|
|
583
583
|
// is just a string.
|
|
584
584
|
WIKIS_DELETED: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis/deleted`,
|
|
585
|
+
// Org-wide changeset listing across readable wikis (Working on tab).
|
|
586
|
+
WIKI_ORG_CHANGESETS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wiki-changesets`,
|
|
585
587
|
// Detail URL — also reused for DELETE (soft-delete) and `${WIKI}/restore`.
|
|
586
588
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
587
589
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
@@ -611,6 +613,10 @@ export const ENDPOINTS = {
|
|
|
611
613
|
// Wiki Path Restrictions (AFCS narrowing ACL — private subtrees)
|
|
612
614
|
WIKI_RESTRICTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions`,
|
|
613
615
|
WIKI_RESTRICTION: (orgId, wikiId, restrictionId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions/${restrictionId}`,
|
|
616
|
+
WIKI_ACCESS_POLICY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy`,
|
|
617
|
+
WIKI_ACCESS_POLICY_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy/members`,
|
|
618
|
+
WIKI_MEMBERSHIP_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/membership/self`,
|
|
619
|
+
WIKI_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/members`,
|
|
614
620
|
WIKI_ACCESS_STATUS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-status`,
|
|
615
621
|
WIKI_ACCESS_REQUESTS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-requests`,
|
|
616
622
|
// Wiki History (commits, file commits, blame)
|
|
@@ -733,6 +739,19 @@ export const ENDPOINTS = {
|
|
|
733
739
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
734
740
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
735
741
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
742
|
+
ORG_EDGE_PROFILE_OPERATIONS: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations`,
|
|
743
|
+
ORG_EDGE_PROFILE_OPERATION: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}`,
|
|
744
|
+
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`,
|
|
745
|
+
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
746
|
+
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
747
|
+
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
748
|
+
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
749
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
750
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
751
|
+
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
752
|
+
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
753
|
+
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
754
|
+
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
736
755
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
737
756
|
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
738
757
|
// Per-profile one-shot cookie seed (hosted Cloud Profiles; manager-only,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './browser-viewer.js';
|
|
2
|
+
export * from './attachment-types.js';
|
|
2
3
|
export type { ParallClientOptions } from './client.js';
|
|
3
4
|
export { ApiError, ParallClient } from './client.js';
|
|
4
5
|
export * from './constants.js';
|
|
5
6
|
export * from './subject.js';
|
|
6
7
|
export * from './task-label-types.js';
|
|
7
8
|
export * from './types.js';
|
|
9
|
+
export * from './wechat-types.js';
|
|
8
10
|
export type { ParallWsOptions, WsClientEventMap, WsConnectionState, WsEventHandler, WsEventType, } from './ws.js';
|
|
9
11
|
export { ParallWs } from './ws.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './browser-viewer.js';
|
|
2
|
+
export * from './attachment-types.js';
|
|
2
3
|
export { ApiError, ParallClient } from './client.js';
|
|
3
4
|
export * from './constants.js';
|
|
4
5
|
export * from './subject.js';
|
|
5
6
|
export * from './task-label-types.js';
|
|
6
7
|
export * from './types.js';
|
|
8
|
+
export * from './wechat-types.js';
|
|
7
9
|
export { ParallWs } from './ws.js';
|