@rustrak/client 0.20.0 → 0.21.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/README.md +3 -0
- package/dist/generated/sdk.gen.cjs +68 -0
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +8 -1
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +8 -1
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +69 -2
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +67 -1
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +67 -1
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +57 -7
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +51 -8
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -334,6 +334,7 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
334
334
|
|
|
335
335
|
| Method | Endpoint | Description |
|
|
336
336
|
|---|---|---|
|
|
337
|
+
| `environments.list({ path })` | `GET /api/projects/{project_id}/environments` | Lists the environments a project's issues have been seen in, by name. |
|
|
337
338
|
| `feedback.list({ path, query? })` | `GET /api/projects/{project_id}/feedback` | Lists user feedback with what each user submitted. |
|
|
338
339
|
| `issues.bulkDelete({ path, body })` | `DELETE /api/projects/{project_id}/issues` | Bulk delete by ids or filter |
|
|
339
340
|
| `issues.bulkUpdate({ path, body })` | `PUT /api/projects/{project_id}/issues` | Bulk mutate |
|
|
@@ -469,10 +470,12 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
469
470
|
|
|
470
471
|
| Method | Endpoint | Description |
|
|
471
472
|
|---|---|---|
|
|
473
|
+
| `storage.compact()` | `POST /api/storage/compaction` | Rewrites a SQLite file created before incremental mode, so it gives freed space back from then on. |
|
|
472
474
|
| `storage.executeCleanup({ body })` | `POST /api/storage/cleanup` | Starts deleting old data and the issues it empties. |
|
|
473
475
|
| `storage.gcSourceMaps()` | `POST /api/storage/source-maps/gc` | Delete orphaned source maps (DB + disk). |
|
|
474
476
|
| `storage.getAge()` | `GET /api/storage/age` | Rows per age bucket, per project and kind. |
|
|
475
477
|
| `storage.getCleanupStatus()` | `GET /api/storage/cleanup/status` | Progress of the running cleanup, or the outcome of the last one. |
|
|
478
|
+
| `storage.getCompaction()` | `GET /api/storage/compaction` | Whether the database file shrinks when data is deleted, and the disk a one-off compaction needs. |
|
|
476
479
|
| `storage.getProjects()` | `GET /api/storage/projects` | Per-project counts and estimated weight. |
|
|
477
480
|
| `storage.getRetention()` | `GET /api/storage/retention` | |
|
|
478
481
|
| `storage.getSummary()` | `GET /api/storage/summary` | Row counts, DB size, and source-map weight. |
|
|
@@ -1617,6 +1617,28 @@ var Events = class extends HeyApiClient {
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
|
+
var Environments = class extends HeyApiClient {
|
|
1621
|
+
/**
|
|
1622
|
+
* GET /api/projects/{project_id}/environments
|
|
1623
|
+
* Lists the environments a project's issues have been seen in, by name.
|
|
1624
|
+
*/
|
|
1625
|
+
list(options) {
|
|
1626
|
+
return (options.client ?? this.client).get({
|
|
1627
|
+
requestValidator: async (data) => await zod.object({
|
|
1628
|
+
body: zod.never().optional(),
|
|
1629
|
+
path: require_zod_gen.zEnvironmentsListPath,
|
|
1630
|
+
query: zod.never().optional()
|
|
1631
|
+
}).parseAsync(data),
|
|
1632
|
+
responseValidator: async (data) => await require_zod_gen.zEnvironmentsListResponse.parseAsync(data),
|
|
1633
|
+
security: [{
|
|
1634
|
+
scheme: "bearer",
|
|
1635
|
+
type: "http"
|
|
1636
|
+
}],
|
|
1637
|
+
url: "/api/projects/{project_id}/environments",
|
|
1638
|
+
...options
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1620
1642
|
var Stats = class extends HeyApiClient {
|
|
1621
1643
|
/**
|
|
1622
1644
|
* GET /api/projects/{project_id}/events/stats
|
|
@@ -2624,6 +2646,47 @@ var Storage = class extends HeyApiClient {
|
|
|
2624
2646
|
});
|
|
2625
2647
|
}
|
|
2626
2648
|
/**
|
|
2649
|
+
* GET /api/storage/compaction — whether the database file shrinks when data
|
|
2650
|
+
* is deleted, and the disk a one-off compaction needs.
|
|
2651
|
+
*/
|
|
2652
|
+
getCompaction(options) {
|
|
2653
|
+
return (options?.client ?? this.client).get({
|
|
2654
|
+
requestValidator: async (data) => await zod.object({
|
|
2655
|
+
body: zod.never().optional(),
|
|
2656
|
+
path: zod.never().optional(),
|
|
2657
|
+
query: zod.never().optional()
|
|
2658
|
+
}).parseAsync(data),
|
|
2659
|
+
responseValidator: async (data) => await require_zod_gen.zStorageGetCompactionResponse.parseAsync(data),
|
|
2660
|
+
security: [{
|
|
2661
|
+
scheme: "bearer",
|
|
2662
|
+
type: "http"
|
|
2663
|
+
}],
|
|
2664
|
+
url: "/api/storage/compaction",
|
|
2665
|
+
...options
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
/**
|
|
2669
|
+
* POST /api/storage/compaction — rewrites a SQLite file created before
|
|
2670
|
+
* incremental mode, so it gives freed space back from then on. Writes wait
|
|
2671
|
+
* while it runs; follow it with `GET /api/storage/cleanup/status`.
|
|
2672
|
+
*/
|
|
2673
|
+
compact(options) {
|
|
2674
|
+
return (options?.client ?? this.client).post({
|
|
2675
|
+
requestValidator: async (data) => await zod.object({
|
|
2676
|
+
body: zod.never().optional(),
|
|
2677
|
+
path: zod.never().optional(),
|
|
2678
|
+
query: zod.never().optional()
|
|
2679
|
+
}).parseAsync(data),
|
|
2680
|
+
responseValidator: async (data) => await require_zod_gen.zStorageCompactResponse.parseAsync(data),
|
|
2681
|
+
security: [{
|
|
2682
|
+
scheme: "bearer",
|
|
2683
|
+
type: "http"
|
|
2684
|
+
}],
|
|
2685
|
+
url: "/api/storage/compaction",
|
|
2686
|
+
...options
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2627
2690
|
* GET /api/storage/projects — per-project counts and estimated weight.
|
|
2628
2691
|
*/
|
|
2629
2692
|
getProjects(options) {
|
|
@@ -3328,6 +3391,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3328
3391
|
get events() {
|
|
3329
3392
|
return this._events ??= new Events({ client: this.client });
|
|
3330
3393
|
}
|
|
3394
|
+
_environments;
|
|
3395
|
+
get environments() {
|
|
3396
|
+
return this._environments ??= new Environments({ client: this.client });
|
|
3397
|
+
}
|
|
3331
3398
|
_stats;
|
|
3332
3399
|
get stats() {
|
|
3333
3400
|
return this._stats ??= new Stats({ client: this.client });
|
|
@@ -3402,6 +3469,7 @@ exports.Agents = Agents;
|
|
|
3402
3469
|
exports.AlertChannels = AlertChannels;
|
|
3403
3470
|
exports.AlertRules = AlertRules;
|
|
3404
3471
|
exports.Auth = Auth;
|
|
3472
|
+
exports.Environments = Environments;
|
|
3405
3473
|
exports.Events = Events;
|
|
3406
3474
|
exports.Feedback = Feedback;
|
|
3407
3475
|
exports.Github = Github;
|