@parall/sdk 1.55.4 → 1.56.0
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 +89 -11
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +172 -16
- package/dist/constants.d.ts +79 -54
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +28 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/project-task-client.d.ts +8 -1
- package/dist/project-task-client.d.ts.map +1 -1
- package/dist/project-task-client.js +9 -0
- package/dist/types.d.ts +475 -30
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +12 -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 +342 -29
- package/src/constants.ts +45 -3
- package/src/index.ts +1 -0
- package/src/project-task-client.ts +11 -0
- package/src/types.ts +580 -36
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 WechatClient {
|
|
|
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 WechatClient {
|
|
|
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));
|
|
@@ -1532,6 +1528,17 @@ export class ParallClient extends WechatClient {
|
|
|
1532
1528
|
const res = await this.request('GET', ENDPOINTS.WIKI_CHANGESETS(orgId, wikiId));
|
|
1533
1529
|
return res.data.map(normalizeWikiChangeset);
|
|
1534
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
|
+
}
|
|
1535
1542
|
async getWikiChangeset(orgId, wikiId, changesetId) {
|
|
1536
1543
|
return normalizeWikiChangeset(await this.request('GET', ENDPOINTS.WIKI_CHANGESET(orgId, wikiId, changesetId)));
|
|
1537
1544
|
}
|
|
@@ -1624,6 +1631,46 @@ export class ParallClient extends WechatClient {
|
|
|
1624
1631
|
async getWikiAccessStatus(orgId, wikiId, path) {
|
|
1625
1632
|
return this.request('GET', ENDPOINTS.WIKI_ACCESS_STATUS(orgId, wikiId), undefined, path ? { path } : undefined);
|
|
1626
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
|
+
/** Star a library for the caller (sidebar Starred group). Idempotent —
|
|
1660
|
+
* re-starring is a 204 no-op. Requires read access; hidden private
|
|
1661
|
+
* libraries answer 404 like absent IDs. */
|
|
1662
|
+
async starWiki(orgId, wikiId) {
|
|
1663
|
+
await this.request('POST', ENDPOINTS.WIKI_STARS_SELF(orgId, wikiId));
|
|
1664
|
+
}
|
|
1665
|
+
/** Remove the caller's star. Idempotent — unstarring a never-starred
|
|
1666
|
+
* library is a 204 no-op. */
|
|
1667
|
+
async unstarWiki(orgId, wikiId) {
|
|
1668
|
+
await this.request('DELETE', ENDPOINTS.WIKI_STARS_SELF(orgId, wikiId));
|
|
1669
|
+
}
|
|
1670
|
+
async getWikiMembers(orgId, wikiId) {
|
|
1671
|
+
const res = await this.request('GET', ENDPOINTS.WIKI_MEMBERS(orgId, wikiId));
|
|
1672
|
+
return res.data ?? [];
|
|
1673
|
+
}
|
|
1627
1674
|
async createWikiAccessRequest(orgId, wikiId, data) {
|
|
1628
1675
|
await this.request('POST', ENDPOINTS.WIKI_ACCESS_REQUESTS(orgId, wikiId), data);
|
|
1629
1676
|
}
|
|
@@ -1982,11 +2029,40 @@ export class ParallClient extends WechatClient {
|
|
|
1982
2029
|
* connections operate on.
|
|
1983
2030
|
*/
|
|
1984
2031
|
async listOrgRegistryClips(orgId) {
|
|
1985
|
-
//
|
|
1986
|
-
//
|
|
2032
|
+
// ONE page (server max 100), name-ordered — a browse surface, not a
|
|
2033
|
+
// resolution surface. The catalog includes every public+approved clip
|
|
2034
|
+
// platform-wide, so "fetch it all" cannot scale; anything that needs a
|
|
2035
|
+
// SPECIFIC clip must point-query instead: `resolveRegistryClip` for an
|
|
2036
|
+
// exact <publisher org, name>, `getRegistryClip` for a `crg_` id, and
|
|
2037
|
+
// `searchOrgRegistryClips` for discovery.
|
|
1987
2038
|
const resp = await this.request('GET', `${ENDPOINTS.ORG_CLIP_REGISTRY(orgId)}?limit=100`);
|
|
1988
2039
|
return resp ?? [];
|
|
1989
2040
|
}
|
|
2041
|
+
/**
|
|
2042
|
+
* Resolve an exact `<publisher org, name>` reference to its registry entry —
|
|
2043
|
+
* the npm-style point read. Deliberately independent of catalog size: no
|
|
2044
|
+
* Search, no pagination, same read-visibility boundary as `getRegistryClip`
|
|
2045
|
+
* (cross-org requires public + approved). 404 `NOT_FOUND` when the publisher
|
|
2046
|
+
* org has no visible clip of that exact name.
|
|
2047
|
+
*/
|
|
2048
|
+
async resolveRegistryClip(orgId, publisherOrgId, name) {
|
|
2049
|
+
const params = new URLSearchParams({ org_id: publisherOrgId, name });
|
|
2050
|
+
return this.request('GET', `${ENDPOINTS.ORG_CLIP_REGISTRY_RESOLVE(orgId)}?${params}`);
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Server-side fuzzy discovery over the visible registry (name/description
|
|
2054
|
+
* substring match), paginated. The discovery verb: rows carry the `crg_` id
|
|
2055
|
+
* that {@link installRegistryClip} takes.
|
|
2056
|
+
*/
|
|
2057
|
+
async searchOrgRegistryClips(orgId, query, opts) {
|
|
2058
|
+
const params = new URLSearchParams({ q: query });
|
|
2059
|
+
if (opts?.limit !== undefined)
|
|
2060
|
+
params.set('limit', String(opts.limit));
|
|
2061
|
+
if (opts?.offset !== undefined)
|
|
2062
|
+
params.set('offset', String(opts.offset));
|
|
2063
|
+
const resp = await this.request('GET', `${ENDPOINTS.ORG_CLIP_REGISTRY_SEARCH(orgId)}?${params}`);
|
|
2064
|
+
return resp ?? [];
|
|
2065
|
+
}
|
|
1990
2066
|
/**
|
|
1991
2067
|
* Install a registry clip into the org (a reference in `clip_installs`, not a
|
|
1992
2068
|
* copy). Idempotent: installing an already-installed clip returns the same
|
|
@@ -2103,6 +2179,86 @@ export class ParallClient extends WechatClient {
|
|
|
2103
2179
|
async listEdgeProfiles(orgId, edgeId) {
|
|
2104
2180
|
return this.request('GET', ENDPOINTS.ORG_EDGE_PROFILES(orgId, edgeId));
|
|
2105
2181
|
}
|
|
2182
|
+
/** Start one durable Local BYOC Profile operation. Network-unknown callers
|
|
2183
|
+
* must retry with the same key or recover by operation id; a different body
|
|
2184
|
+
* under the same key is rejected. */
|
|
2185
|
+
async createEdgeProfileOperation(orgId, edgeId, request, idempotencyKey) {
|
|
2186
|
+
return this.request('POST', ENDPOINTS.ORG_EDGE_PROFILE_OPERATIONS(orgId, edgeId), request, undefined, false, { headers: { 'Idempotency-Key': idempotencyKey } });
|
|
2187
|
+
}
|
|
2188
|
+
/** Strong-confirm the exact durable Delete impact. A changed impact returns
|
|
2189
|
+
* PROFILE_DELETE_IMPACT_CHANGED with a replacement receipt in
|
|
2190
|
+
* `ApiError.extras.details.operation`. */
|
|
2191
|
+
async confirmEdgeProfileOperation(orgId, edgeId, operationId, request) {
|
|
2192
|
+
return this.request('POST', ENDPOINTS.ORG_EDGE_PROFILE_OPERATION_CONFIRM(orgId, edgeId, operationId), request);
|
|
2193
|
+
}
|
|
2194
|
+
/** Sole read/recovery surface. The server may reconcile an already durable
|
|
2195
|
+
* dispatch/finalization while returning this receipt. */
|
|
2196
|
+
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
2197
|
+
return this.request('GET', ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
2198
|
+
}
|
|
2199
|
+
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
2200
|
+
* with the same idempotency key and body returns the original stable ccn_. */
|
|
2201
|
+
async createBrowserAlias(orgId, request) {
|
|
2202
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request);
|
|
2203
|
+
}
|
|
2204
|
+
async listBrowserAliases(orgId) {
|
|
2205
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
2206
|
+
}
|
|
2207
|
+
async getBrowserAlias(orgId, aliasId) {
|
|
2208
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
2209
|
+
}
|
|
2210
|
+
async renameBrowserAlias(orgId, aliasId, request) {
|
|
2211
|
+
return this.request('PATCH', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
2212
|
+
}
|
|
2213
|
+
async deleteBrowserAlias(orgId, aliasId, request) {
|
|
2214
|
+
return this.request('DELETE', ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
2215
|
+
}
|
|
2216
|
+
/** Start one durable readiness check. The key is carried as the standard
|
|
2217
|
+
* Idempotency-Key header; the request body is intentionally empty. */
|
|
2218
|
+
async createBrowserAliasReadinessCheck(orgId, aliasId, request) {
|
|
2219
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), undefined, undefined, false, { headers: { 'Idempotency-Key': request.idempotency_key } });
|
|
2220
|
+
}
|
|
2221
|
+
/** Sole durable recovery surface for one readiness request. */
|
|
2222
|
+
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
2223
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
2224
|
+
}
|
|
2225
|
+
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
2226
|
+
* intentionally available only on this human-JWT management surface. */
|
|
2227
|
+
async listBrowserAliasGrants(orgId, keyId) {
|
|
2228
|
+
return this.request('GET', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
2229
|
+
}
|
|
2230
|
+
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
2231
|
+
return this.request('GET', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
2232
|
+
}
|
|
2233
|
+
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request) {
|
|
2234
|
+
return this.request('PUT', ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request);
|
|
2235
|
+
}
|
|
2236
|
+
/** Managed-key discovery. The response is already grant-filtered and never
|
|
2237
|
+
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
2238
|
+
async listManagedBrowserAliases(orgId) {
|
|
2239
|
+
return this.request('GET', ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
2240
|
+
}
|
|
2241
|
+
async getManagedBrowserAlias(orgId, aliasName) {
|
|
2242
|
+
return this.request('GET', ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
2243
|
+
}
|
|
2244
|
+
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
2245
|
+
* caller before local validation and is also the sole durable recovery key. */
|
|
2246
|
+
async createBrowserAliasExecution(orgId, request) {
|
|
2247
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request);
|
|
2248
|
+
}
|
|
2249
|
+
async getBrowserAliasExecution(orgId, requestId) {
|
|
2250
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
2251
|
+
}
|
|
2252
|
+
/** Accept one idempotent Browser Use operation for an explicit Profile.
|
|
2253
|
+
* The Server resolves Profile→Edge; callers never select an Edge directly. */
|
|
2254
|
+
async createBrowserUseOperation(orgId, request) {
|
|
2255
|
+
return this.request('POST', ENDPOINTS.ORG_BROWSER_USE_OPERATIONS(orgId), request);
|
|
2256
|
+
}
|
|
2257
|
+
/** Recover the durable receipt. Successful data is present only inside the
|
|
2258
|
+
* Server's short encrypted result TTL; terminal proof remains afterwards. */
|
|
2259
|
+
async getBrowserUseOperation(orgId, operationId) {
|
|
2260
|
+
return this.request('GET', ENDPOINTS.ORG_BROWSER_USE_OPERATION(orgId, operationId));
|
|
2261
|
+
}
|
|
2106
2262
|
/**
|
|
2107
2263
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
2108
2264
|
* 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;
|
|
@@ -462,6 +408,7 @@ export declare const ENDPOINTS: {
|
|
|
462
408
|
readonly TASKS: (orgId: string) => string;
|
|
463
409
|
readonly TASK_SUBTASK_SUMMARY: (orgId: string) => string;
|
|
464
410
|
readonly TASK: (orgId: string, taskId: string) => string;
|
|
411
|
+
readonly TASK_MOVE: (orgId: string, taskId: string) => string;
|
|
465
412
|
readonly TASK_ARCHIVE: (orgId: string, taskId: string) => string;
|
|
466
413
|
readonly TASK_RESTORE: (orgId: string, taskId: string) => string;
|
|
467
414
|
readonly TASK_WATCH: (orgId: string, taskId: string) => string;
|
|
@@ -541,6 +488,7 @@ export declare const ENDPOINTS: {
|
|
|
541
488
|
readonly INVITE_LINK_JOIN: "/api/v1/invite-link/join";
|
|
542
489
|
readonly WIKIS: (orgId: string) => string;
|
|
543
490
|
readonly WIKIS_DELETED: (orgId: string) => string;
|
|
491
|
+
readonly WIKI_ORG_CHANGESETS: (orgId: string) => string;
|
|
544
492
|
readonly WIKI: (orgId: string, wikiId: string) => string;
|
|
545
493
|
readonly WIKI_RESTORE: (orgId: string, wikiId: string) => string;
|
|
546
494
|
readonly WIKI_TREE: (orgId: string, wikiId: string) => string;
|
|
@@ -566,6 +514,11 @@ export declare const ENDPOINTS: {
|
|
|
566
514
|
readonly WIKI_PATH_SCOPE: (orgId: string, wikiId: string, scopeId: string) => string;
|
|
567
515
|
readonly WIKI_RESTRICTIONS: (orgId: string, wikiId: string) => string;
|
|
568
516
|
readonly WIKI_RESTRICTION: (orgId: string, wikiId: string, restrictionId: string) => string;
|
|
517
|
+
readonly WIKI_ACCESS_POLICY: (orgId: string, wikiId: string) => string;
|
|
518
|
+
readonly WIKI_ACCESS_POLICY_MEMBERS: (orgId: string, wikiId: string) => string;
|
|
519
|
+
readonly WIKI_MEMBERSHIP_SELF: (orgId: string, wikiId: string) => string;
|
|
520
|
+
readonly WIKI_STARS_SELF: (orgId: string, wikiId: string) => string;
|
|
521
|
+
readonly WIKI_MEMBERS: (orgId: string, wikiId: string) => string;
|
|
569
522
|
readonly WIKI_ACCESS_STATUS: (orgId: string, wikiId: string) => string;
|
|
570
523
|
readonly WIKI_ACCESS_REQUESTS: (orgId: string, wikiId: string) => string;
|
|
571
524
|
readonly WIKI_COMMITS: (orgId: string, wikiId: string) => string;
|
|
@@ -655,6 +608,21 @@ export declare const ENDPOINTS: {
|
|
|
655
608
|
readonly ORG_EDGE_DEVICE_UNREGISTER: (orgId: string, edgeId: string) => string;
|
|
656
609
|
readonly ORG_EDGE_ONBOARDING: (orgId: string) => string;
|
|
657
610
|
readonly ORG_EDGE_PROFILES: (orgId: string, edgeId: string) => string;
|
|
611
|
+
readonly ORG_EDGE_PROFILE_OPERATIONS: (orgId: string, edgeId: string) => string;
|
|
612
|
+
readonly ORG_EDGE_PROFILE_OPERATION: (orgId: string, edgeId: string, operationId: string) => string;
|
|
613
|
+
readonly ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId: string, edgeId: string, operationId: string) => string;
|
|
614
|
+
readonly ORG_BROWSER_ALIASES: (orgId: string) => string;
|
|
615
|
+
readonly ORG_BROWSER_ALIAS: (orgId: string, aliasId: string) => string;
|
|
616
|
+
readonly ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId: string, aliasId: string) => string;
|
|
617
|
+
readonly ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId: string, aliasId: string, checkId: string) => string;
|
|
618
|
+
readonly ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId: string, keyId: string) => string;
|
|
619
|
+
readonly ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId: string, keyId: string, aliasId: string) => string;
|
|
620
|
+
readonly ORG_MANAGED_ALIASES: (orgId: string) => string;
|
|
621
|
+
readonly ORG_MANAGED_ALIAS: (orgId: string, aliasName: string) => string;
|
|
622
|
+
readonly ORG_BROWSER_ALIAS_EXECUTIONS: (orgId: string) => string;
|
|
623
|
+
readonly ORG_BROWSER_ALIAS_EXECUTION: (orgId: string, requestId: string) => string;
|
|
624
|
+
readonly ORG_BROWSER_USE_OPERATIONS: (orgId: string) => string;
|
|
625
|
+
readonly ORG_BROWSER_USE_OPERATION: (orgId: string, operationId: string) => string;
|
|
658
626
|
readonly ORG_EDGE_PROFILE_PROXY: (orgId: string, edgeId: string, profileName: string) => string;
|
|
659
627
|
readonly ORG_EDGE_PROFILE_COOKIES: (orgId: string, edgeId: string, profileName: string) => string;
|
|
660
628
|
readonly ORG_EDGE_EXEC: (orgId: string) => string;
|
|
@@ -662,6 +630,8 @@ export declare const ENDPOINTS: {
|
|
|
662
630
|
readonly CLIP_CONNECTIONS: (orgId: string, clipId: string) => string;
|
|
663
631
|
readonly CLIP_CONNECTION: (orgId: string, connId: string) => string;
|
|
664
632
|
readonly ORG_CLIP_REGISTRY: (orgId: string) => string;
|
|
633
|
+
readonly ORG_CLIP_REGISTRY_RESOLVE: (orgId: string) => string;
|
|
634
|
+
readonly ORG_CLIP_REGISTRY_SEARCH: (orgId: string) => string;
|
|
665
635
|
readonly ORG_CLIP_REGISTRY_CLIP: (orgId: string, clipId: string) => string;
|
|
666
636
|
readonly ORG_CLIP_REGISTRY_PUBLISH: (orgId: string) => string;
|
|
667
637
|
readonly ORG_CLIP_INSTALL: (orgId: string) => string;
|
|
@@ -676,6 +646,61 @@ export declare const ENDPOINTS: {
|
|
|
676
646
|
readonly ORG_CLIP_MCP_CONFIG_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
677
647
|
readonly ORG_CLIP_MCP_TOOLS_REFRESH_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
678
648
|
readonly ORG_CLIP_MCP_OAUTH_DISCONNECT_BY_ID: (orgId: string, clipId: string, configId: string) => string;
|
|
649
|
+
readonly UPLOAD_PRESIGN: (orgId: string) => string;
|
|
650
|
+
readonly UPLOAD_COMPLETE: (orgId: string) => string;
|
|
651
|
+
readonly UPLOAD_ABORT: (orgId: string) => string;
|
|
652
|
+
readonly FILE: (id: string) => string;
|
|
653
|
+
readonly AUTH_REGISTER: "/api/v1/auth/register";
|
|
654
|
+
readonly AUTH_LOGIN: "/api/v1/auth/login";
|
|
655
|
+
readonly AUTH_REFRESH: "/api/v1/auth/refresh";
|
|
656
|
+
readonly AUTH_LOGOUT: "/api/v1/auth/logout";
|
|
657
|
+
readonly AUTH_CHANGE_PASSWORD: "/api/v1/auth/change-password";
|
|
658
|
+
readonly AUTH_CHECK_EMAIL: "/api/v1/auth/check-email";
|
|
659
|
+
readonly AUTH_VERIFY_EMAIL: "/api/v1/auth/verify-email";
|
|
660
|
+
readonly AUTH_RESEND_CODE: "/api/v1/auth/resend-code";
|
|
661
|
+
readonly AUTH_FORGOT_PASSWORD: "/api/v1/auth/forgot-password";
|
|
662
|
+
readonly AUTH_RESET_PASSWORD: "/api/v1/auth/reset-password";
|
|
663
|
+
readonly AUTH_OAUTH_EXCHANGE: "/api/v1/auth/oauth/exchange";
|
|
664
|
+
readonly USERS_ME: "/api/v1/users/me";
|
|
665
|
+
readonly USER_AVATAR: "/api/v1/users/me/avatar";
|
|
666
|
+
readonly USER: (id: string) => string;
|
|
667
|
+
readonly WS_TICKET: "/api/v1/ws/ticket";
|
|
668
|
+
readonly ORGS: "/api/v1/orgs";
|
|
669
|
+
readonly ORG: (orgId: string) => string;
|
|
670
|
+
readonly ORG_MEMBERS: (orgId: string) => string;
|
|
671
|
+
readonly ORG_MEMBERS_FORMER: (orgId: string) => string;
|
|
672
|
+
readonly TEAMS: (orgId: string) => string;
|
|
673
|
+
readonly TEAM: (orgId: string, teamId: string) => string;
|
|
674
|
+
readonly TEAM_MEMBERS: (orgId: string, teamId: string) => string;
|
|
675
|
+
readonly TEAM_MEMBER: (orgId: string, teamId: string, userId: string) => string;
|
|
676
|
+
readonly ORG_MEMBERS_ONLINE: (orgId: string) => string;
|
|
677
|
+
readonly ORG_MEMBER: (orgId: string, userId: string) => string;
|
|
678
|
+
readonly ORG_MEMBER_CHATS: (orgId: string, memberId: string) => string;
|
|
679
|
+
readonly ORG_MEMBER_TASKS: (orgId: string, memberId: string) => string;
|
|
680
|
+
readonly ORG_MEMBER_PROFILE: (orgId: string, userId: string) => string;
|
|
681
|
+
readonly AGENT_INSTRUCTIONS: (orgId: string, agentId: string) => string;
|
|
682
|
+
readonly AGENT_MANAGER: (orgId: string, agentId: string) => string;
|
|
683
|
+
readonly REF_SEARCH: (orgId: string) => string;
|
|
684
|
+
readonly DM: (orgId: string) => string;
|
|
685
|
+
readonly SEED_ONBOARDING_DM: (orgId: string) => string;
|
|
686
|
+
readonly DISMISS_ONBOARDING: (orgId: string) => string;
|
|
687
|
+
readonly CHATS: (orgId: string) => string;
|
|
688
|
+
readonly CHATS_DISCOVERABLE: (orgId: string) => string;
|
|
689
|
+
readonly CHAT: (orgId: string, chatId: string) => string;
|
|
690
|
+
readonly CHAT_JOIN: (orgId: string, chatId: string) => string;
|
|
691
|
+
readonly CHAT_ARCHIVE: (orgId: string, chatId: string) => string;
|
|
692
|
+
readonly CHAT_RESTORE: (orgId: string, chatId: string) => string;
|
|
693
|
+
readonly CHAT_MEMBERS: (orgId: string, chatId: string) => string;
|
|
694
|
+
readonly CHAT_MEMBER: (orgId: string, chatId: string, userId: string) => string;
|
|
695
|
+
readonly CHAT_TRANSFER_OWNERSHIP: (orgId: string, chatId: string) => string;
|
|
696
|
+
readonly CHAT_MESSAGES: (orgId: string, chatId: string) => string;
|
|
697
|
+
readonly MESSAGE: (id: string) => string;
|
|
698
|
+
readonly MESSAGE_REPLIES: (id: string) => string;
|
|
699
|
+
readonly MESSAGE_WATCH: (id: string) => string;
|
|
700
|
+
readonly MESSAGE_WATCHERS: (id: string) => string;
|
|
701
|
+
readonly MESSAGE_WATCHING: (id: string) => string;
|
|
702
|
+
readonly MESSAGE_REACTIONS: (id: string) => string;
|
|
703
|
+
readonly MESSAGE_REACTION: (id: string, emoji: string) => string;
|
|
679
704
|
};
|
|
680
705
|
/**
|
|
681
706
|
* 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;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;CA8E1F,CAAC;AA6DX,eAAO,MAAM,cAAc;4BACV,MAAM;+BACH,MAAM,UAAU,MAAM;gCACrB,MAAM,QAAQ,MAAM;mCAGjB,MAAM,QAAQ,MAAM,OAAO,MAAM,mBAAmB,MAAM,EAAE;qCAKxE,MAAM,QACR,MAAM,OACP,MAAM,aACA,MAAM,WACR,MAAM;qCAKO,MAAM,QAAQ,MAAM,OAAO,MAAM,SAAS,MAAM,OAAO,MAAM;CAE7E,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { attachmentEndpoints } from './attachment-endpoints.js';
|
|
1
2
|
// 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)
|
|
@@ -488,6 +487,7 @@ export const ENDPOINTS = {
|
|
|
488
487
|
TASKS: (orgId) => `${API_BASE}/orgs/${orgId}/tasks`,
|
|
489
488
|
TASK_SUBTASK_SUMMARY: (orgId) => `${API_BASE}/orgs/${orgId}/tasks/subtask-summary`,
|
|
490
489
|
TASK: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}`,
|
|
490
|
+
TASK_MOVE: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/move`,
|
|
491
491
|
TASK_ARCHIVE: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/archive`,
|
|
492
492
|
TASK_RESTORE: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/restore`,
|
|
493
493
|
TASK_WATCH: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/watch`,
|
|
@@ -583,6 +583,8 @@ export const ENDPOINTS = {
|
|
|
583
583
|
// backend router so `deleted` isn't captured as a {wikiId}; the SDK builder
|
|
584
584
|
// is just a string.
|
|
585
585
|
WIKIS_DELETED: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis/deleted`,
|
|
586
|
+
// Org-wide changeset listing across readable wikis (Working on tab).
|
|
587
|
+
WIKI_ORG_CHANGESETS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wiki-changesets`,
|
|
586
588
|
// Detail URL — also reused for DELETE (soft-delete) and `${WIKI}/restore`.
|
|
587
589
|
WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
|
|
588
590
|
WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
|
|
@@ -612,6 +614,12 @@ export const ENDPOINTS = {
|
|
|
612
614
|
// Wiki Path Restrictions (AFCS narrowing ACL — private subtrees)
|
|
613
615
|
WIKI_RESTRICTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions`,
|
|
614
616
|
WIKI_RESTRICTION: (orgId, wikiId, restrictionId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restrictions/${restrictionId}`,
|
|
617
|
+
WIKI_ACCESS_POLICY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy`,
|
|
618
|
+
WIKI_ACCESS_POLICY_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-policy/members`,
|
|
619
|
+
WIKI_MEMBERSHIP_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/membership/self`,
|
|
620
|
+
// Library-level star (self-scoped bookmark; POST = star, DELETE = unstar).
|
|
621
|
+
WIKI_STARS_SELF: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/stars/self`,
|
|
622
|
+
WIKI_MEMBERS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/members`,
|
|
615
623
|
WIKI_ACCESS_STATUS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-status`,
|
|
616
624
|
WIKI_ACCESS_REQUESTS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/access-requests`,
|
|
617
625
|
// Wiki History (commits, file commits, blame)
|
|
@@ -734,6 +742,21 @@ export const ENDPOINTS = {
|
|
|
734
742
|
ORG_EDGE_DEVICE_UNREGISTER: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/unregister`,
|
|
735
743
|
ORG_EDGE_ONBOARDING: (orgId) => `/api/v1/orgs/${orgId}/edge/onboarding`,
|
|
736
744
|
ORG_EDGE_PROFILES: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles`,
|
|
745
|
+
ORG_EDGE_PROFILE_OPERATIONS: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations`,
|
|
746
|
+
ORG_EDGE_PROFILE_OPERATION: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}`,
|
|
747
|
+
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`,
|
|
748
|
+
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
749
|
+
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
750
|
+
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
751
|
+
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
752
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
753
|
+
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
754
|
+
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
755
|
+
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
756
|
+
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
757
|
+
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
758
|
+
ORG_BROWSER_USE_OPERATIONS: (orgId) => `/api/v1/orgs/${orgId}/browser-use/operations`,
|
|
759
|
+
ORG_BROWSER_USE_OPERATION: (orgId, operationId) => `/api/v1/orgs/${orgId}/browser-use/operations/${encodeURIComponent(operationId)}`,
|
|
737
760
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
738
761
|
ORG_EDGE_PROFILE_PROXY: (orgId, edgeId, profileName) => `/api/v1/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/proxy`,
|
|
739
762
|
// Per-profile one-shot cookie seed (hosted Cloud Profiles; manager-only,
|
|
@@ -748,6 +771,8 @@ export const ENDPOINTS = {
|
|
|
748
771
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
749
772
|
// Clip registry (v3, org-scoped, served by api-server — `crg_` entries)
|
|
750
773
|
ORG_CLIP_REGISTRY: (orgId) => `/api/v1/orgs/${orgId}/clip-registry`,
|
|
774
|
+
ORG_CLIP_REGISTRY_RESOLVE: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/resolve`,
|
|
775
|
+
ORG_CLIP_REGISTRY_SEARCH: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/search`,
|
|
751
776
|
ORG_CLIP_REGISTRY_CLIP: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}`,
|
|
752
777
|
ORG_CLIP_REGISTRY_PUBLISH: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/publish`,
|
|
753
778
|
ORG_CLIP_INSTALL: (orgId) => `/api/v1/orgs/${orgId}/clips/install`,
|
package/dist/index.d.ts
CHANGED
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,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"}
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type { AddProjectMemberRequest, Approval, CreateProjectRequest, CreateTaskCommentRequest, CreateTaskRelationRequest, CreateTaskRequest, PaginatedResponse, Project, ProjectJoinRequest, ProjectLibraryEntry, ProjectMember, ProjectTaskSummaryResponse, Task, TaskActivity, TaskComment, TaskRelation, TaskRelationTargetType, TaskSubtaskSummaryResponse, TaskWatcher, ThreadWatcher, UpdateProjectMemberRequest, UpdateProjectRequest, UpdateTaskCommentRequest, UpdateTaskRequest } from './types.js';
|
|
1
|
+
import type { AddProjectMemberRequest, Approval, CreateProjectRequest, CreateTaskCommentRequest, CreateTaskRelationRequest, CreateTaskRequest, PaginatedResponse, Project, ProjectJoinRequest, ProjectLibraryEntry, ProjectMember, ProjectTaskSummaryResponse, Task, TaskActivity, TaskComment, TaskRelation, TaskRelationTargetType, TaskSubtaskSummaryResponse, TaskWatcher, ThreadWatcher, UpdateProjectMemberRequest, UpdateProjectRequest, UpdateTaskCommentRequest, MoveTaskRequest, UpdateTaskRequest } from './types.js';
|
|
2
2
|
/** Project and task REST methods shared by every ParallClient instance. */
|
|
3
3
|
export declare abstract class ProjectTaskClient {
|
|
4
4
|
protected abstract request<T>(method: string, path: string, body?: unknown, query?: Record<string, string | number | boolean | undefined>): Promise<T>;
|
|
@@ -27,6 +27,13 @@ export declare abstract class ProjectTaskClient {
|
|
|
27
27
|
deleteTask(orgId: string, taskId: string, opts?: {
|
|
28
28
|
force?: boolean;
|
|
29
29
|
}): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Moves a task and its whole subtree into another project (renumbering it
|
|
32
|
+
* there; old identifiers stay resolvable as aliases). The caller needs
|
|
33
|
+
* update access on the task (source project membership) and read access to
|
|
34
|
+
* the target project.
|
|
35
|
+
*/
|
|
36
|
+
moveTask(orgId: string, taskId: string, data: MoveTaskRequest): Promise<Task>;
|
|
30
37
|
archiveTask(orgId: string, taskId: string): Promise<void>;
|
|
31
38
|
restoreTask(orgId: string, taskId: string): Promise<void>;
|
|
32
39
|
watchTask(orgId: string, taskId: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-task-client.d.ts","sourceRoot":"","sources":["../src/project-task-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,sBAAsB,EACtB,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,2EAA2E;AAC3E,8BAAsB,iBAAiB;IACrC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAC1B,MAAM,EAAE,MAAM,E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SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,uBAAuB,GAC3B,OAAO,CAAC,aAAa,CAAC;IAIzB,0FAA0F;IACpF,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,0BAA0B,GAC9B,OAAO,CAAC,aAAa,CAAC;IAIzB,sFAAsF;IAChF,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5F"}
|
|
@@ -19,6 +19,15 @@ export class ProjectTaskClient {
|
|
|
19
19
|
async deleteTask(orgId, taskId, opts) {
|
|
20
20
|
return this.request('DELETE', ENDPOINTS.TASK(orgId, taskId), undefined, opts?.force ? { force: 'true' } : undefined);
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Moves a task and its whole subtree into another project (renumbering it
|
|
24
|
+
* there; old identifiers stay resolvable as aliases). The caller needs
|
|
25
|
+
* update access on the task (source project membership) and read access to
|
|
26
|
+
* the target project.
|
|
27
|
+
*/
|
|
28
|
+
async moveTask(orgId, taskId, data) {
|
|
29
|
+
return this.request('POST', ENDPOINTS.TASK_MOVE(orgId, taskId), data);
|
|
30
|
+
}
|
|
22
31
|
async archiveTask(orgId, taskId) {
|
|
23
32
|
return this.request('POST', ENDPOINTS.TASK_ARCHIVE(orgId, taskId));
|
|
24
33
|
}
|