@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
|
@@ -297,6 +297,10 @@ const zCleanupCounts = zod.object({
|
|
|
297
297
|
*/
|
|
298
298
|
const zCleanupFrequency = zod.enum(["daily", "weekly"]);
|
|
299
299
|
/**
|
|
300
|
+
* What the job is doing: deleting old data, or compacting the SQLite file.
|
|
301
|
+
*/
|
|
302
|
+
const zCleanupKind = zod.enum(["cleanup", "compaction"]);
|
|
303
|
+
/**
|
|
300
304
|
* Request body for a cleanup (preview or execute): remove data older than
|
|
301
305
|
* `older_than_days`, optionally scoped to a single project (omit for all).
|
|
302
306
|
*
|
|
@@ -328,6 +332,7 @@ const zCleanupState = zod.enum([
|
|
|
328
332
|
const zCleanupStatus = zod.object({
|
|
329
333
|
error: zod.string().nullable(),
|
|
330
334
|
finished_at: zod.iso.datetime({ offset: true }).nullable(),
|
|
335
|
+
kind: zCleanupKind,
|
|
331
336
|
removed: zCleanupCounts,
|
|
332
337
|
started_at: zod.iso.datetime({ offset: true }).nullable(),
|
|
333
338
|
state: zCleanupState
|
|
@@ -343,6 +348,23 @@ const zCodeMapping = zod.object({
|
|
|
343
348
|
* Body for creating an issue comment (note).
|
|
344
349
|
*/
|
|
345
350
|
const zCommentRequest = zod.object({ text: zod.string() });
|
|
351
|
+
/**
|
|
352
|
+
* Whether the SQLite file can give the space a cleanup frees back to the
|
|
353
|
+
* disk, and what compacting it once would take.
|
|
354
|
+
*
|
|
355
|
+
* A database created before Rustrak set `auto_vacuum = INCREMENTAL` keeps
|
|
356
|
+
* SQLite's default, `NONE`: its freed pages are reused but the file never
|
|
357
|
+
* shrinks. One `VACUUM` rewrites it in incremental mode. Always
|
|
358
|
+
* `needed: false` on Postgres, whose autovacuum gives the space back.
|
|
359
|
+
*/
|
|
360
|
+
const zCompaction = zod.object({
|
|
361
|
+
file_bytes: zod.int(),
|
|
362
|
+
free_disk_bytes: zod.int().nullable(),
|
|
363
|
+
live_bytes: zod.int(),
|
|
364
|
+
needed: zod.boolean(),
|
|
365
|
+
reclaimable_bytes: zod.int(),
|
|
366
|
+
required_disk_bytes: zod.int()
|
|
367
|
+
});
|
|
346
368
|
const zConfirmSsoLinkRequest = zod.object({ password: zod.string() });
|
|
347
369
|
/**
|
|
348
370
|
* DTO for creating an alert rule
|
|
@@ -834,7 +856,7 @@ const zProjectResponse = zod.object({
|
|
|
834
856
|
rate_limit_per_hour: zod.int().nullable(),
|
|
835
857
|
rate_limit_per_minute: zod.int().nullable(),
|
|
836
858
|
rate_limited_event_count: zod.int(),
|
|
837
|
-
sentry_key: zod.
|
|
859
|
+
sentry_key: zod.string(),
|
|
838
860
|
slug: zod.string(),
|
|
839
861
|
stats: zProjectListStats.nullish(),
|
|
840
862
|
stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
@@ -1322,6 +1344,7 @@ const zSpanDetailResponse = zSpanResponse.and(zod.object({
|
|
|
1322
1344
|
}));
|
|
1323
1345
|
const zSsoConfigResponse = zod.object({
|
|
1324
1346
|
enabled: zod.boolean(),
|
|
1347
|
+
password_login_enabled: zod.boolean(),
|
|
1325
1348
|
provider_name: zod.string().nullable()
|
|
1326
1349
|
});
|
|
1327
1350
|
const zSsoLinkResponse = zod.object({
|
|
@@ -1609,6 +1632,10 @@ const zUserResponse = zod.object({
|
|
|
1609
1632
|
role: zUserRole,
|
|
1610
1633
|
timezone: zod.string().nullable()
|
|
1611
1634
|
});
|
|
1635
|
+
const zAcceptInvitationResponse = zod.object({
|
|
1636
|
+
signed_in: zod.boolean(),
|
|
1637
|
+
user: zUserResponse
|
|
1638
|
+
});
|
|
1612
1639
|
const zAuthResponse = zod.object({ user: zUserResponse });
|
|
1613
1640
|
const zVersionResponse = zod.object({ version: zod.string() });
|
|
1614
1641
|
const zSentryGetIssuePath = zod.object({ issue_id: zod.string().regex(/^[0-9]+$/) });
|
|
@@ -1682,7 +1709,8 @@ const zSentryListIssuesQuery = zod.object({
|
|
|
1682
1709
|
sort: zod.string().nullish(),
|
|
1683
1710
|
limit: zod.string().nullish(),
|
|
1684
1711
|
cursor: zod.string().nullish(),
|
|
1685
|
-
statsPeriod: zod.string().nullish()
|
|
1712
|
+
statsPeriod: zod.string().nullish(),
|
|
1713
|
+
environment: zod.string().nullish()
|
|
1686
1714
|
});
|
|
1687
1715
|
/**
|
|
1688
1716
|
* Issues; paginated by the `Link` header
|
|
@@ -1853,7 +1881,7 @@ const zProjectsListResponse = zod.object({
|
|
|
1853
1881
|
rate_limit_per_hour: zod.int().nullable(),
|
|
1854
1882
|
rate_limit_per_minute: zod.int().nullable(),
|
|
1855
1883
|
rate_limited_event_count: zod.int(),
|
|
1856
|
-
sentry_key: zod.
|
|
1884
|
+
sentry_key: zod.string(),
|
|
1857
1885
|
slug: zod.string(),
|
|
1858
1886
|
stats: zProjectListStats.nullish(),
|
|
1859
1887
|
stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
@@ -2043,6 +2071,11 @@ const zEventsDownloadAttachmentPath = zod.object({
|
|
|
2043
2071
|
* The file: inline when its bytes are a PNG, JPEG, GIF or WebP image, a download otherwise
|
|
2044
2072
|
*/
|
|
2045
2073
|
const zEventsDownloadAttachmentResponse = zAttachmentBytes;
|
|
2074
|
+
const zEnvironmentsListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
|
|
2075
|
+
/**
|
|
2076
|
+
* Environments the project's issues have been seen in
|
|
2077
|
+
*/
|
|
2078
|
+
const zEnvironmentsListResponse = zod.array(zod.string());
|
|
2046
2079
|
const zEventsGetBySentryIdPath = zod.object({
|
|
2047
2080
|
project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2048
2081
|
event_id: zod.string()
|
|
@@ -2121,7 +2154,8 @@ const zIssuesListQuery = zod.object({
|
|
|
2121
2154
|
order: zSortOrder.optional(),
|
|
2122
2155
|
filter: zIssueFilter.optional(),
|
|
2123
2156
|
category: zIssueCategory.optional(),
|
|
2124
|
-
q: zod.string().nullish()
|
|
2157
|
+
q: zod.string().nullish(),
|
|
2158
|
+
environment: zod.string().nullish()
|
|
2125
2159
|
});
|
|
2126
2160
|
/**
|
|
2127
2161
|
* Offset-based paginated response wrapper
|
|
@@ -2235,7 +2269,8 @@ const zEventsListPath = zod.object({
|
|
|
2235
2269
|
});
|
|
2236
2270
|
const zEventsListQuery = zod.object({
|
|
2237
2271
|
order: zSortOrder.optional(),
|
|
2238
|
-
cursor: zod.string().nullish()
|
|
2272
|
+
cursor: zod.string().nullish(),
|
|
2273
|
+
environment: zod.string().nullish()
|
|
2239
2274
|
});
|
|
2240
2275
|
/**
|
|
2241
2276
|
* Paginated response wrapper (cursor-based)
|
|
@@ -2751,6 +2786,14 @@ const zStoragePreviewCleanupResponse = zCleanupCounts;
|
|
|
2751
2786
|
*/
|
|
2752
2787
|
const zStorageGetCleanupStatusResponse = zCleanupStatus;
|
|
2753
2788
|
/**
|
|
2789
|
+
* Whether the SQLite file gives freed space back, and what compacting it takes
|
|
2790
|
+
*/
|
|
2791
|
+
const zStorageGetCompactionResponse = zCompaction;
|
|
2792
|
+
/**
|
|
2793
|
+
* Compaction started in the background; poll the cleanup status
|
|
2794
|
+
*/
|
|
2795
|
+
const zStorageCompactResponse = zCleanupStatus;
|
|
2796
|
+
/**
|
|
2754
2797
|
* Per-project storage breakdown
|
|
2755
2798
|
*/
|
|
2756
2799
|
const zStorageGetProjectsResponse = zod.array(zod.object({
|
|
@@ -2836,9 +2879,9 @@ const zTokensGetPath = zod.object({ id: zod.int().min(-2147483648, { error: "Inv
|
|
|
2836
2879
|
const zTokensGetResponse = zAuthTokenCreatedResponse;
|
|
2837
2880
|
const zAuthAcceptInvitationBody = zAcceptInvitation;
|
|
2838
2881
|
/**
|
|
2839
|
-
* Invitation accepted
|
|
2882
|
+
* Invitation accepted and user created; signed in unless password login is disabled
|
|
2840
2883
|
*/
|
|
2841
|
-
const zAuthAcceptInvitationResponse =
|
|
2884
|
+
const zAuthAcceptInvitationResponse = zAcceptInvitationResponse;
|
|
2842
2885
|
const zAuthGetInvitationPath = zod.object({ token: zod.string() });
|
|
2843
2886
|
/**
|
|
2844
2887
|
* Invitation info
|
|
@@ -2913,6 +2956,7 @@ const zSentryOpenIssuePath = zod.object({
|
|
|
2913
2956
|
});
|
|
2914
2957
|
//#endregion
|
|
2915
2958
|
exports.zAcceptInvitation = zAcceptInvitation;
|
|
2959
|
+
exports.zAcceptInvitationResponse = zAcceptInvitationResponse;
|
|
2916
2960
|
exports.zActivityEntry = zActivityEntry;
|
|
2917
2961
|
exports.zAgentDurationPoint = zAgentDurationPoint;
|
|
2918
2962
|
exports.zAgentModelRow = zAgentModelRow;
|
|
@@ -3027,11 +3071,13 @@ exports.zChunkUploadBody = zChunkUploadBody;
|
|
|
3027
3071
|
exports.zChunkUploadOptions = zChunkUploadOptions;
|
|
3028
3072
|
exports.zCleanupCounts = zCleanupCounts;
|
|
3029
3073
|
exports.zCleanupFrequency = zCleanupFrequency;
|
|
3074
|
+
exports.zCleanupKind = zCleanupKind;
|
|
3030
3075
|
exports.zCleanupRequest = zCleanupRequest;
|
|
3031
3076
|
exports.zCleanupState = zCleanupState;
|
|
3032
3077
|
exports.zCleanupStatus = zCleanupStatus;
|
|
3033
3078
|
exports.zCodeMapping = zCodeMapping;
|
|
3034
3079
|
exports.zCommentRequest = zCommentRequest;
|
|
3080
|
+
exports.zCompaction = zCompaction;
|
|
3035
3081
|
exports.zConfirmSsoLinkRequest = zConfirmSsoLinkRequest;
|
|
3036
3082
|
exports.zCreateAlertIntegration = zCreateAlertIntegration;
|
|
3037
3083
|
exports.zCreateAlertRule = zCreateAlertRule;
|
|
@@ -3042,6 +3088,8 @@ exports.zCreateMonitor = zCreateMonitor;
|
|
|
3042
3088
|
exports.zCreateProject = zCreateProject;
|
|
3043
3089
|
exports.zCreateRelease = zCreateRelease;
|
|
3044
3090
|
exports.zCreateUserRequest = zCreateUserRequest;
|
|
3091
|
+
exports.zEnvironmentsListPath = zEnvironmentsListPath;
|
|
3092
|
+
exports.zEnvironmentsListResponse = zEnvironmentsListResponse;
|
|
3045
3093
|
exports.zErrorDetail = zErrorDetail;
|
|
3046
3094
|
exports.zEventDetailResponse = zEventDetailResponse;
|
|
3047
3095
|
exports.zEventTimeseriesPoint = zEventTimeseriesPoint;
|
|
@@ -3342,11 +3390,13 @@ exports.zStatsGetSummaryPath = zStatsGetSummaryPath;
|
|
|
3342
3390
|
exports.zStatsGetSummaryQuery = zStatsGetSummaryQuery;
|
|
3343
3391
|
exports.zStatsGetSummaryResponse = zStatsGetSummaryResponse;
|
|
3344
3392
|
exports.zStorageAge = zStorageAge;
|
|
3393
|
+
exports.zStorageCompactResponse = zStorageCompactResponse;
|
|
3345
3394
|
exports.zStorageExecuteCleanupBody = zStorageExecuteCleanupBody;
|
|
3346
3395
|
exports.zStorageExecuteCleanupResponse = zStorageExecuteCleanupResponse;
|
|
3347
3396
|
exports.zStorageGcSourceMapsResponse = zStorageGcSourceMapsResponse;
|
|
3348
3397
|
exports.zStorageGetAgeResponse = zStorageGetAgeResponse;
|
|
3349
3398
|
exports.zStorageGetCleanupStatusResponse = zStorageGetCleanupStatusResponse;
|
|
3399
|
+
exports.zStorageGetCompactionResponse = zStorageGetCompactionResponse;
|
|
3350
3400
|
exports.zStorageGetProjectsResponse = zStorageGetProjectsResponse;
|
|
3351
3401
|
exports.zStorageGetRetentionResponse = zStorageGetRetentionResponse;
|
|
3352
3402
|
exports.zStorageGetSummaryResponse = zStorageGetSummaryResponse;
|