@uluops/ops-sdk 6.3.1 → 6.5.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/CHANGELOG.md +69 -0
- package/README.md +273 -2
- package/dist/client.d.ts +110 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +94 -5
- package/dist/client.js.map +1 -1
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/generated-version.d.ts +1 -1
- package/dist/config/generated-version.js +1 -1
- package/dist/config/validators.d.ts +25 -1
- package/dist/config/validators.d.ts.map +1 -1
- package/dist/config/validators.js +31 -1
- package/dist/config/validators.js.map +1 -1
- package/dist/config/workspace-org.d.ts +25 -4
- package/dist/config/workspace-org.d.ts.map +1 -1
- package/dist/config/workspace-org.js +71 -18
- package/dist/config/workspace-org.js.map +1 -1
- package/dist/errors/errors.d.ts +71 -0
- package/dist/errors/errors.d.ts.map +1 -1
- package/dist/errors/errors.js +99 -0
- package/dist/errors/errors.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/admin.d.ts +100 -0
- package/dist/operations/admin.d.ts.map +1 -0
- package/dist/operations/admin.js +130 -0
- package/dist/operations/admin.js.map +1 -0
- package/dist/operations/auth.d.ts +21 -1
- package/dist/operations/auth.d.ts.map +1 -1
- package/dist/operations/auth.js +49 -3
- package/dist/operations/auth.js.map +1 -1
- package/dist/operations/orgs.d.ts +45 -0
- package/dist/operations/orgs.d.ts.map +1 -0
- package/dist/operations/orgs.js +57 -0
- package/dist/operations/orgs.js.map +1 -0
- package/dist/operations/projects.d.ts +74 -0
- package/dist/operations/projects.d.ts.map +1 -1
- package/dist/operations/projects.js +115 -1
- package/dist/operations/projects.js.map +1 -1
- package/dist/types/auth.d.ts +10 -0
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/log.d.ts +410 -0
- package/dist/types/log.d.ts.map +1 -0
- package/dist/types/log.js +191 -0
- package/dist/types/log.js.map +1 -0
- package/dist/types/rehome.d.ts +234 -0
- package/dist/types/rehome.d.ts.map +1 -0
- package/dist/types/rehome.js +171 -0
- package/dist/types/rehome.js.map +1 -0
- package/dist/types/response-schemas.d.ts +19 -0
- package/dist/types/response-schemas.d.ts.map +1 -1
- package/dist/types/response-schemas.js +19 -0
- package/dist/types/response-schemas.js.map +1 -1
- package/dist/types/schemas.d.ts +20 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +22 -0
- package/dist/types/schemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/operations/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/operations/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAE3E;;;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psHttpClient } from '../http/http-client.js';
|
|
2
|
+
import type { OrgAuditFeed, OrgAuditFeedQuery } from '../types/rehome.js';
|
|
3
|
+
import { type LogStatQuery, type OrgListEntry, type OrgLogStat } from '../types/log.js';
|
|
4
|
+
/**
|
|
5
|
+
* The org-visible audit feed (project-org-routing-and-rehome spec D19) —
|
|
6
|
+
* `GET /orgs/:slug/audit-log/global`. Any MEMBER of the org may read it; the
|
|
7
|
+
* full audit log stays admin+ and is not wrapped here.
|
|
8
|
+
*
|
|
9
|
+
* What lands in it: rows whose writer marked `details.visibility = 'org'`.
|
|
10
|
+
* Today that is one class — a project leaving this org for someone's personal
|
|
11
|
+
* org (an org admin may do that, and the org's owner could not see it before
|
|
12
|
+
* D19). The re-home writer's `details` shape is `RehomeAuditDetails`; use
|
|
13
|
+
* `readRehomeAuditDetails(entry)` to narrow, and print anything else raw.
|
|
14
|
+
*
|
|
15
|
+
* Paging: keyset `(createdAt, id)` on `@uluops/platform` ≥ 1.28.4 — `nextCursor`
|
|
16
|
+
* is `<iso>|<uuid>`, opaque to callers; pass it back verbatim. `count` is the
|
|
17
|
+
* page size, not the total (the platform reader has no count).
|
|
18
|
+
*
|
|
19
|
+
* The slug in the PATH is the org; a client-level `orgSlug` header does not
|
|
20
|
+
* redirect this read (`orgContext` resolves `:slug` first).
|
|
21
|
+
*
|
|
22
|
+
* @param client - HTTP client instance
|
|
23
|
+
* @param slug - Org slug (the org whose feed to read — you must be a member)
|
|
24
|
+
* @param query - `{ cursor?, limit? }`; `limit` is 1–100 and the API answers 400 outside that range (it does not clamp)
|
|
25
|
+
* @returns `{ data: { entries }, count, hasMore, nextCursor }`
|
|
26
|
+
*/
|
|
27
|
+
export declare function getVisibleAuditLog(client: OpsHttpClient, slug: string, query?: OrgAuditFeedQuery): Promise<OrgAuditFeed>;
|
|
28
|
+
/**
|
|
29
|
+
* The orgs the caller belongs to — `GET /orgs`. Personal org included
|
|
30
|
+
* (`isPersonal: true`). What `ulu log --orgs` iterates (spec §3.6, OQ1: API
|
|
31
|
+
* keys reach this). A key bound to one org still lists every org its holder
|
|
32
|
+
* belongs to; the binding governs what it may READ, not what it may see listed.
|
|
33
|
+
*/
|
|
34
|
+
export declare function list(client: OpsHttpClient): Promise<OrgListEntry[]>;
|
|
35
|
+
/**
|
|
36
|
+
* The org rollup — `GET /orgs/:slug/log/stat` (spec §3.6 D6/D15/D16): the
|
|
37
|
+
* §3.3 body over the org's live projects plus `projects[]` (the summary shape,
|
|
38
|
+
* last run desc, capped at 100 with `hasMoreProjects`). Any member can read
|
|
39
|
+
* it. Served from a 60 s TTL cache per (org, window) — `computedAt` says how
|
|
40
|
+
* old the numbers are. Unknown slug → 404 `ORG_NOT_FOUND`; a key bound to
|
|
41
|
+
* another org → 403 `ORG_ACCESS_DENIED`. The slug in the PATH is the org; a
|
|
42
|
+
* client-level `orgSlug` does not redirect this read.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getLogStat(client: OpsHttpClient, slug: string, query?: LogStatQuery): Promise<OrgLogStat>;
|
|
45
|
+
//# sourceMappingURL=orgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgs.d.ts","sourceRoot":"","sources":["../../src/operations/orgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAA2C,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGjI;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,iBAAsB,GAC5B,OAAO,CAAC,YAAY,CAAC,CAWvB;AAED;;;;;GAKG;AACH,wBAAsB,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAEzE;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,YAAiB,GACvB,OAAO,CAAC,UAAU,CAAC,CAKrB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { OrgAuditFeedResponseSchema } from '../types/rehome.js';
|
|
2
|
+
import { OrgListResponseSchema, OrgLogStatSchema } from '../types/log.js';
|
|
3
|
+
import { logStatQueryParams } from './projects.js';
|
|
4
|
+
/**
|
|
5
|
+
* The org-visible audit feed (project-org-routing-and-rehome spec D19) —
|
|
6
|
+
* `GET /orgs/:slug/audit-log/global`. Any MEMBER of the org may read it; the
|
|
7
|
+
* full audit log stays admin+ and is not wrapped here.
|
|
8
|
+
*
|
|
9
|
+
* What lands in it: rows whose writer marked `details.visibility = 'org'`.
|
|
10
|
+
* Today that is one class — a project leaving this org for someone's personal
|
|
11
|
+
* org (an org admin may do that, and the org's owner could not see it before
|
|
12
|
+
* D19). The re-home writer's `details` shape is `RehomeAuditDetails`; use
|
|
13
|
+
* `readRehomeAuditDetails(entry)` to narrow, and print anything else raw.
|
|
14
|
+
*
|
|
15
|
+
* Paging: keyset `(createdAt, id)` on `@uluops/platform` ≥ 1.28.4 — `nextCursor`
|
|
16
|
+
* is `<iso>|<uuid>`, opaque to callers; pass it back verbatim. `count` is the
|
|
17
|
+
* page size, not the total (the platform reader has no count).
|
|
18
|
+
*
|
|
19
|
+
* The slug in the PATH is the org; a client-level `orgSlug` header does not
|
|
20
|
+
* redirect this read (`orgContext` resolves `:slug` first).
|
|
21
|
+
*
|
|
22
|
+
* @param client - HTTP client instance
|
|
23
|
+
* @param slug - Org slug (the org whose feed to read — you must be a member)
|
|
24
|
+
* @param query - `{ cursor?, limit? }`; `limit` is 1–100 and the API answers 400 outside that range (it does not clamp)
|
|
25
|
+
* @returns `{ data: { entries }, count, hasMore, nextCursor }`
|
|
26
|
+
*/
|
|
27
|
+
export async function getVisibleAuditLog(client, slug, query = {}) {
|
|
28
|
+
const params = {};
|
|
29
|
+
if (query.cursor !== undefined)
|
|
30
|
+
params['cursor'] = query.cursor;
|
|
31
|
+
if (query.limit !== undefined)
|
|
32
|
+
params['limit'] = String(query.limit);
|
|
33
|
+
// On GET the third argument IS the query (sdk-core `buildRequestUrl`).
|
|
34
|
+
return OrgAuditFeedResponseSchema.parse(await client.request('GET', `/orgs/${encodeURIComponent(slug)}/audit-log/global`, params, { rawEnvelope: true }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The orgs the caller belongs to — `GET /orgs`. Personal org included
|
|
38
|
+
* (`isPersonal: true`). What `ulu log --orgs` iterates (spec §3.6, OQ1: API
|
|
39
|
+
* keys reach this). A key bound to one org still lists every org its holder
|
|
40
|
+
* belongs to; the binding governs what it may READ, not what it may see listed.
|
|
41
|
+
*/
|
|
42
|
+
export async function list(client) {
|
|
43
|
+
return OrgListResponseSchema.parse(await client.get('/orgs')).organizations;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The org rollup — `GET /orgs/:slug/log/stat` (spec §3.6 D6/D15/D16): the
|
|
47
|
+
* §3.3 body over the org's live projects plus `projects[]` (the summary shape,
|
|
48
|
+
* last run desc, capped at 100 with `hasMoreProjects`). Any member can read
|
|
49
|
+
* it. Served from a 60 s TTL cache per (org, window) — `computedAt` says how
|
|
50
|
+
* old the numbers are. Unknown slug → 404 `ORG_NOT_FOUND`; a key bound to
|
|
51
|
+
* another org → 403 `ORG_ACCESS_DENIED`. The slug in the PATH is the org; a
|
|
52
|
+
* client-level `orgSlug` does not redirect this read.
|
|
53
|
+
*/
|
|
54
|
+
export async function getLogStat(client, slug, query = {}) {
|
|
55
|
+
return OrgLogStatSchema.parse(await client.get(`/orgs/${encodeURIComponent(slug)}/log/stat`, logStatQueryParams(query)));
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=orgs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S,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAC5C,kBAAkB,CAAC,KAAK,CAAC,CAC1B,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { OpsHttpClient } from '../http/http-client.js';
|
|
2
|
+
import { type LogStatQuery, type ProjectLogPage, type ProjectLogQuery, type ProjectLogStat } from '../types/log.js';
|
|
2
3
|
import type { Project, CreateProjectInput, UpdateProjectInput, DeleteProjectInput, RenameProjectInput, ProjectSummaryResponse, ProjectTrends, ProjectTrendsQuery, ListProjectIssuesQuery, BulkIssueStatusUpdate, BulkIssueStatusResult, MergeIssuesInput, MergeIssuesResult, MergeProjectsInput, MergeProjectsResult } from '../types/projects.js';
|
|
4
|
+
import type { RehomeProjectInput, RehomeResponse } from '../types/rehome.js';
|
|
3
5
|
import type { Issue } from '../types/issues.js';
|
|
4
6
|
import type { DeleteResult } from '../types/responses.js';
|
|
5
7
|
/**
|
|
@@ -142,4 +144,76 @@ export declare function mergeIssues(client: OpsHttpClient, idOrName: string, inp
|
|
|
142
144
|
* @returns Merge result (spec §5 shape — snake_case fields by contract)
|
|
143
145
|
*/
|
|
144
146
|
export declare function mergeProjects(client: OpsHttpClient, input: MergeProjectsInput): Promise<MergeProjectsResult>;
|
|
147
|
+
/**
|
|
148
|
+
* Move a project to another org — the MEMBER path (project-org-routing-and-
|
|
149
|
+
* rehome spec §4.1, D14). The SOURCE is the caller's org context: the per-call
|
|
150
|
+
* `org` option (or the client `orgSlug`), never inferred from the project. A
|
|
151
|
+
* caller moving a project out of a work org must scope this call to that org;
|
|
152
|
+
* an unscoped call looks for the project in the caller's PERSONAL org and 404s.
|
|
153
|
+
* Authority: `admin`/`owner` in both orgs (§4.2); a personal-org TARGET only
|
|
154
|
+
* when the caller is that person (C6).
|
|
155
|
+
*
|
|
156
|
+
* After the move the old `(org, name)` address is a tombstone: an org-less
|
|
157
|
+
* write naming the project there gets `410 PROJECT_REHOMED` naming the target
|
|
158
|
+
* (`isProjectRehomedError`), not a forked new project. The move is reversible
|
|
159
|
+
* by moving back (a reversal annihilates the tombstone).
|
|
160
|
+
*
|
|
161
|
+
* Refusals (`rehomeRefusalReason(err)` reads the enumerated ones): 400
|
|
162
|
+
* `same_org` | `project_has_no_org`; 403 INSUFFICIENT_ORG_ROLE (source) |
|
|
163
|
+
* ORG_ACCESS_DENIED (target membership or personal target, C6) | ORG_SUSPENDED
|
|
164
|
+
* (C3); 402 PROJECT_LIMIT (target cap, C2); 409 `name_collision` |
|
|
165
|
+
* `soft_deleted_conflict` | `rehomed_away_conflict` (C1/C7) | `export_in_progress`
|
|
166
|
+
* (C4) | `moved_during_request` | MERGE_LOCK_UNAVAILABLE (details.retry_after_seconds;
|
|
167
|
+
* the SDK does NOT auto-retry).
|
|
168
|
+
*
|
|
169
|
+
* **Re-runs and lost responses.** The lookup is SOURCE-scoped, so after the
|
|
170
|
+
* move the same call (same source, same name) does not answer `same_org` — it
|
|
171
|
+
* answers 404 (by name, the address is now a tombstone; by id, the project is
|
|
172
|
+
* no longer in that org). `same_org` is the idempotence signal of the ADMIN
|
|
173
|
+
* path, whose lookup is by id and unscoped. If a member-path call times out
|
|
174
|
+
* or the response is lost, do not retry blind: read the project with
|
|
175
|
+
* `{ org: targetOrg }` (or check `admin.listProjectRehomeEvents` if you can) —
|
|
176
|
+
* a hit there means the move landed.
|
|
177
|
+
*
|
|
178
|
+
* @param client - HTTP client instance (scope it to the source org)
|
|
179
|
+
* @param idOrName - Project UUID or name, resolved in the source org
|
|
180
|
+
* @param input - `{ targetOrg, reason? }`
|
|
181
|
+
* @returns The project after the move (`orgId` is the target) plus `rehome.{from_org,to_org,audit_ids}`
|
|
182
|
+
* @throws {InputValidationError} If `targetOrg` is not a slug or `reason` is empty / over 500 chars
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* // the project lives in org "acme" → name the source; the target is the input
|
|
186
|
+
* const moved = await client.projects.rehome('billing', { targetOrg: 'ulu-labs', reason: 'team took it over' }, { org: 'acme' });
|
|
187
|
+
* moved.rehome.from_org.slug; // 'acme'
|
|
188
|
+
* moved.rehome.to_org.slug; // 'ulu-labs'
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
export declare function rehome(client: OpsHttpClient, idOrName: string, input: RehomeProjectInput): Promise<RehomeResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* The stream — `GET /projects/:id/log`: `run`, `decision` and `regression`
|
|
194
|
+
* events interleaved newest first, keyset-paged. `nextCursor` is opaque; pass
|
|
195
|
+
* it back verbatim in `query.cursor`. The envelope IS the page (`data[]`,
|
|
196
|
+
* `count`, `hasMore`, `nextCursor?`), so this reads the raw envelope rather
|
|
197
|
+
* than the SDK's `{data}` unwrap.
|
|
198
|
+
*
|
|
199
|
+
* Query keys go to the wire as named — `workflowType`, `includeArchived` —
|
|
200
|
+
* because the API's schema is camelCase and a snake_cased key is silently
|
|
201
|
+
* ignored (the filter would just vanish with a 200); this is why `toApiQuery`
|
|
202
|
+
* is not used here.
|
|
203
|
+
*
|
|
204
|
+
* @param client - HTTP client instance
|
|
205
|
+
* @param idOrName - Project id or name (resolved in the call's org)
|
|
206
|
+
* @param query - Window, paging and filters (see {@link ProjectLogQuery})
|
|
207
|
+
*/
|
|
208
|
+
export declare function getLog(client: OpsHttpClient, idOrName: string, query?: ProjectLogQuery): Promise<ProjectLogPage>;
|
|
209
|
+
/**
|
|
210
|
+
* The rollup — `GET /projects/:id/log/stat`: examined / found / decided /
|
|
211
|
+
* cameBack / activity, two frames on two clocks (see {@link ProjectLogStat}).
|
|
212
|
+
* Not cached server-side.
|
|
213
|
+
*/
|
|
214
|
+
export declare function getLogStat(client: OpsHttpClient, idOrName: string, query?: LogStatQuery): Promise<ProjectLogStat>;
|
|
215
|
+
/** Wire form of {@link ProjectLogQuery} — camelCase preserved, arrays comma-joined, booleans as strings. */
|
|
216
|
+
export declare function logQueryParams(query: ProjectLogQuery): Record<string, string>;
|
|
217
|
+
/** Wire form of {@link LogStatQuery}. */
|
|
218
|
+
export declare function logStatQueryParams(query: LogStatQuery): Record<string, string>;
|
|
145
219
|
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/operations/projects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,KAAK,EACV,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/operations/projects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE7E,OAAO,KAAK,EAAE,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AAM,EAChB,KAAK,GAAE,eAAoB,GAC1B,OAAO,CAAC,cAAc,CAAC,CAOzB;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,YAAiB,GACvB,OAAO,CAAC,cAAc,CAAC,CAKzB;AAED,4GAA4G;AAC5G,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAW7E;AAED,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAK9E"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { toApiQuery } from '../http/http-client.js';
|
|
3
|
+
import { ProjectLogPageSchema, ProjectLogStatSchema, } from '../types/log.js';
|
|
4
|
+
import { RehomeResponseSchema } from '../types/rehome.js';
|
|
3
5
|
import { ProjectResponseSchema, ProjectSummaryResponseSchema, ProjectTrendsResponseSchema, IssueResponseSchema, BulkStatusUpdateResultResponseSchema, MergeIssuesResultResponseSchema, MergeProjectsResultResponseSchema, DeleteResultResponseSchema, } from '../types/response-schemas.js';
|
|
4
|
-
import { validateCreateProjectInput, validateUpdateProjectInput, validateDeleteProjectInput, validateRenameProjectInput, validateMergeProjectsInput, } from '../config/validators.js';
|
|
6
|
+
import { validateCreateProjectInput, validateUpdateProjectInput, validateDeleteProjectInput, validateRenameProjectInput, validateMergeProjectsInput, validateRehomeProjectInput, } from '../config/validators.js';
|
|
5
7
|
import { buildIssueListParams } from './query-utils.js';
|
|
6
8
|
/**
|
|
7
9
|
* List all projects accessible to the current user.
|
|
@@ -214,4 +216,116 @@ export async function mergeProjects(client, input) {
|
|
|
214
216
|
confirmCrossOrg: input.confirmCrossOrg,
|
|
215
217
|
}));
|
|
216
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Move a project to another org — the MEMBER path (project-org-routing-and-
|
|
221
|
+
* rehome spec §4.1, D14). The SOURCE is the caller's org context: the per-call
|
|
222
|
+
* `org` option (or the client `orgSlug`), never inferred from the project. A
|
|
223
|
+
* caller moving a project out of a work org must scope this call to that org;
|
|
224
|
+
* an unscoped call looks for the project in the caller's PERSONAL org and 404s.
|
|
225
|
+
* Authority: `admin`/`owner` in both orgs (§4.2); a personal-org TARGET only
|
|
226
|
+
* when the caller is that person (C6).
|
|
227
|
+
*
|
|
228
|
+
* After the move the old `(org, name)` address is a tombstone: an org-less
|
|
229
|
+
* write naming the project there gets `410 PROJECT_REHOMED` naming the target
|
|
230
|
+
* (`isProjectRehomedError`), not a forked new project. The move is reversible
|
|
231
|
+
* by moving back (a reversal annihilates the tombstone).
|
|
232
|
+
*
|
|
233
|
+
* Refusals (`rehomeRefusalReason(err)` reads the enumerated ones): 400
|
|
234
|
+
* `same_org` | `project_has_no_org`; 403 INSUFFICIENT_ORG_ROLE (source) |
|
|
235
|
+
* ORG_ACCESS_DENIED (target membership or personal target, C6) | ORG_SUSPENDED
|
|
236
|
+
* (C3); 402 PROJECT_LIMIT (target cap, C2); 409 `name_collision` |
|
|
237
|
+
* `soft_deleted_conflict` | `rehomed_away_conflict` (C1/C7) | `export_in_progress`
|
|
238
|
+
* (C4) | `moved_during_request` | MERGE_LOCK_UNAVAILABLE (details.retry_after_seconds;
|
|
239
|
+
* the SDK does NOT auto-retry).
|
|
240
|
+
*
|
|
241
|
+
* **Re-runs and lost responses.** The lookup is SOURCE-scoped, so after the
|
|
242
|
+
* move the same call (same source, same name) does not answer `same_org` — it
|
|
243
|
+
* answers 404 (by name, the address is now a tombstone; by id, the project is
|
|
244
|
+
* no longer in that org). `same_org` is the idempotence signal of the ADMIN
|
|
245
|
+
* path, whose lookup is by id and unscoped. If a member-path call times out
|
|
246
|
+
* or the response is lost, do not retry blind: read the project with
|
|
247
|
+
* `{ org: targetOrg }` (or check `admin.listProjectRehomeEvents` if you can) —
|
|
248
|
+
* a hit there means the move landed.
|
|
249
|
+
*
|
|
250
|
+
* @param client - HTTP client instance (scope it to the source org)
|
|
251
|
+
* @param idOrName - Project UUID or name, resolved in the source org
|
|
252
|
+
* @param input - `{ targetOrg, reason? }`
|
|
253
|
+
* @returns The project after the move (`orgId` is the target) plus `rehome.{from_org,to_org,audit_ids}`
|
|
254
|
+
* @throws {InputValidationError} If `targetOrg` is not a slug or `reason` is empty / over 500 chars
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* // the project lives in org "acme" → name the source; the target is the input
|
|
258
|
+
* const moved = await client.projects.rehome('billing', { targetOrg: 'ulu-labs', reason: 'team took it over' }, { org: 'acme' });
|
|
259
|
+
* moved.rehome.from_org.slug; // 'acme'
|
|
260
|
+
* moved.rehome.to_org.slug; // 'ulu-labs'
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
export async function rehome(client, idOrName, input) {
|
|
264
|
+
const valid = validateRehomeProjectInput(input);
|
|
265
|
+
return RehomeResponseSchema.parse(await client.post(`/projects/${encodeURIComponent(idOrName)}/rehome`,
|
|
266
|
+
// The API body is `.strict()` (a typo'd key is a 400, not a stripped one),
|
|
267
|
+
// so only the two contract fields go on the wire, and `reason` is omitted
|
|
268
|
+
// rather than sent as undefined/null.
|
|
269
|
+
{ target_org: valid.targetOrg, ...(valid.reason !== undefined ? { reason: valid.reason } : {}) }));
|
|
270
|
+
}
|
|
271
|
+
// ============================================
|
|
272
|
+
// ulu log (spec v0.1.13 §3.2 / §3.3)
|
|
273
|
+
// ============================================
|
|
274
|
+
/**
|
|
275
|
+
* The stream — `GET /projects/:id/log`: `run`, `decision` and `regression`
|
|
276
|
+
* events interleaved newest first, keyset-paged. `nextCursor` is opaque; pass
|
|
277
|
+
* it back verbatim in `query.cursor`. The envelope IS the page (`data[]`,
|
|
278
|
+
* `count`, `hasMore`, `nextCursor?`), so this reads the raw envelope rather
|
|
279
|
+
* than the SDK's `{data}` unwrap.
|
|
280
|
+
*
|
|
281
|
+
* Query keys go to the wire as named — `workflowType`, `includeArchived` —
|
|
282
|
+
* because the API's schema is camelCase and a snake_cased key is silently
|
|
283
|
+
* ignored (the filter would just vanish with a 200); this is why `toApiQuery`
|
|
284
|
+
* is not used here.
|
|
285
|
+
*
|
|
286
|
+
* @param client - HTTP client instance
|
|
287
|
+
* @param idOrName - Project id or name (resolved in the call's org)
|
|
288
|
+
* @param query - Window, paging and filters (see {@link ProjectLogQuery})
|
|
289
|
+
*/
|
|
290
|
+
export async function getLog(client, idOrName, query = {}) {
|
|
291
|
+
return ProjectLogPageSchema.parse(await client.request('GET', `/projects/${encodeURIComponent(idOrName)}/log`, logQueryParams(query), { rawEnvelope: true }));
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The rollup — `GET /projects/:id/log/stat`: examined / found / decided /
|
|
295
|
+
* cameBack / activity, two frames on two clocks (see {@link ProjectLogStat}).
|
|
296
|
+
* Not cached server-side.
|
|
297
|
+
*/
|
|
298
|
+
export async function getLogStat(client, idOrName, query = {}) {
|
|
299
|
+
return ProjectLogStatSchema.parse(await client.get(`/projects/${encodeURIComponent(idOrName)}/log/stat`, logStatQueryParams(query)));
|
|
300
|
+
}
|
|
301
|
+
/** Wire form of {@link ProjectLogQuery} — camelCase preserved, arrays comma-joined, booleans as strings. */
|
|
302
|
+
export function logQueryParams(query) {
|
|
303
|
+
const params = {};
|
|
304
|
+
if (query.since !== undefined)
|
|
305
|
+
params['since'] = query.since;
|
|
306
|
+
if (query.until !== undefined)
|
|
307
|
+
params['until'] = query.until;
|
|
308
|
+
if (query.limit !== undefined)
|
|
309
|
+
params['limit'] = String(query.limit);
|
|
310
|
+
if (query.cursor !== undefined)
|
|
311
|
+
params['cursor'] = query.cursor;
|
|
312
|
+
if (query.kind !== undefined && query.kind.length > 0)
|
|
313
|
+
params['kind'] = query.kind.join(',');
|
|
314
|
+
if (query.workflowType !== undefined)
|
|
315
|
+
params['workflowType'] = query.workflowType;
|
|
316
|
+
if (query.agent !== undefined)
|
|
317
|
+
params['agent'] = query.agent;
|
|
318
|
+
if (query.includeArchived !== undefined)
|
|
319
|
+
params['includeArchived'] = query.includeArchived ? 'true' : 'false';
|
|
320
|
+
return params;
|
|
321
|
+
}
|
|
322
|
+
/** Wire form of {@link LogStatQuery}. */
|
|
323
|
+
export function logStatQueryParams(query) {
|
|
324
|
+
const params = {};
|
|
325
|
+
if (query.since !== undefined)
|
|
326
|
+
params['since'] = query.since;
|
|
327
|
+
if (query.until !== undefined)
|
|
328
|
+
params['until'] = query.until;
|
|
329
|
+
return params;
|
|
330
|
+
}
|
|
217
331
|
//# sourceMappingURL=projects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/operations/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/operations/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GAKrB,MAAM,iBAAiB,CAAC;AAmBzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACnB,oCAAoC,EACpC,+BAA+B,EAC/B,iCAAiC,EACjC,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,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M,CAAC;AAChB,CAAC"}
|
package/dist/types/auth.d.ts
CHANGED
|
@@ -48,6 +48,16 @@ export interface LoginInput {
|
|
|
48
48
|
email: string;
|
|
49
49
|
password: string;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* TOTP completion of an MFA-challenged login (`POST /auth/totp/login`).
|
|
53
|
+
* `mfaChallengeToken` comes from the {@link MfaRequiredError} the first login threw.
|
|
54
|
+
*/
|
|
55
|
+
export interface TotpLoginInput {
|
|
56
|
+
mfaChallengeToken: string;
|
|
57
|
+
/** Six digits. */
|
|
58
|
+
code: string;
|
|
59
|
+
rememberMe?: boolean;
|
|
60
|
+
}
|
|
51
61
|
/**
|
|
52
62
|
* Profile update input
|
|
53
63
|
*/
|
package/dist/types/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAM/B,8CAA8C;AAC9C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE9D,+CAA+C;AAC/C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAElE,qBAAqB;AACrB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,wBAAwB;AACxB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,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C;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './enums.js';
|
|
2
2
|
export * from './auth.js';
|
|
3
3
|
export * from './org.js';
|
|
4
|
+
export * from './rehome.js';
|
|
4
5
|
export * from './projects.js';
|
|
6
|
+
export * from './log.js';
|
|
5
7
|
export * from './runs.js';
|
|
6
8
|
export * from './issues.js';
|
|
7
9
|
export * from './analytics.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -4,7 +4,9 @@ export * from './enums.js';
|
|
|
4
4
|
export * from './auth.js';
|
|
5
5
|
// Domain types
|
|
6
6
|
export * from './org.js';
|
|
7
|
+
export * from './rehome.js';
|
|
7
8
|
export * from './projects.js';
|
|
9
|
+
export * from './log.js';
|
|
8
10
|
export * from './runs.js';
|
|
9
11
|
export * from './issues.js';
|
|
10
12
|
export * from './analytics.js';
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,YAAY,CAAC;AAE3B,aAAa;AACb,cAAc,WAAW,CAAC;AAE1B,eAAe;AACf,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,iBAAiB;AACjB,cAAc,gBAAgB,CAAC;AAE/B,iCAAiC;AACjC,cAAc,cAAc,CAAC;AAE7B,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,YAAY,CAAC;AAE3B,aAAa;AACb,cAAc,WAAW,CAAC;AAE1B,eAAe;AACf,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,iBAAiB;AACjB,cAAc,gBAAgB,CAAC;AAE/B,iCAAiC;AACjC,cAAc,cAAc,CAAC;AAE7B,qGAAqG"}
|