@rustrak/client 0.3.10 → 0.3.12

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/index.d.cts CHANGED
@@ -289,6 +289,7 @@ declare const sortOrderSchema: z.ZodEnum<{
289
289
  declare const issueSortSchema: z.ZodEnum<{
290
290
  digest_order: "digest_order";
291
291
  last_seen: "last_seen";
292
+ event_count: "event_count";
292
293
  }>;
293
294
  declare const issueFilterSchema: z.ZodEnum<{
294
295
  open: "open";
@@ -323,6 +324,7 @@ interface ListIssuesOptions {
323
324
  sort?: IssueSort;
324
325
  order?: SortOrder;
325
326
  filter?: IssueFilter;
327
+ q?: string;
326
328
  }
327
329
  interface ListEventsOptions {
328
330
  order?: SortOrder;
@@ -382,27 +384,184 @@ declare const eventDetailSchema: z.ZodObject<{
382
384
  type Event = z.infer<typeof eventSchema>;
383
385
  type EventDetail = z.infer<typeof eventDetailSchema>;
384
386
 
387
+ declare const issueStatusSchema: z.ZodEnum<{
388
+ resolved: "resolved";
389
+ unresolved: "unresolved";
390
+ ignored: "ignored";
391
+ }>;
392
+ declare const issuePrioritySchema: z.ZodEnum<{
393
+ low: "low";
394
+ medium: "medium";
395
+ high: "high";
396
+ }>;
385
397
  declare const issueSchema: z.ZodObject<{
386
398
  id: z.ZodString;
387
399
  project_id: z.ZodNumber;
388
400
  short_id: z.ZodString;
389
401
  title: z.ZodString;
390
402
  value: z.ZodString;
403
+ culprit: z.ZodString;
404
+ logger: z.ZodString;
391
405
  first_seen: z.ZodString;
392
406
  last_seen: z.ZodString;
393
407
  event_count: z.ZodNumber;
394
408
  level: z.ZodNullable<z.ZodString>;
395
409
  platform: z.ZodNullable<z.ZodString>;
410
+ status: z.ZodEnum<{
411
+ resolved: "resolved";
412
+ unresolved: "unresolved";
413
+ ignored: "ignored";
414
+ }>;
415
+ substatus: z.ZodNullable<z.ZodString>;
416
+ priority: z.ZodNullable<z.ZodEnum<{
417
+ low: "low";
418
+ medium: "medium";
419
+ high: "high";
420
+ }>>;
421
+ assigned_to: z.ZodNullable<z.ZodNumber>;
422
+ assignee_type: z.ZodNullable<z.ZodString>;
423
+ issue_type: z.ZodString;
424
+ issue_category: z.ZodString;
425
+ first_release: z.ZodString;
426
+ last_release: z.ZodString;
427
+ status_details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
428
+ user_report_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
429
+ is_bookmarked: z.ZodOptional<z.ZodBoolean>;
430
+ is_subscribed: z.ZodOptional<z.ZodBoolean>;
431
+ has_seen: z.ZodOptional<z.ZodBoolean>;
432
+ user_count: z.ZodOptional<z.ZodNumber>;
433
+ trend: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
396
434
  is_resolved: z.ZodBoolean;
397
435
  is_muted: z.ZodBoolean;
398
436
  }, z.core.$strip>;
399
437
  declare const updateIssueStateSchema: z.ZodObject<{
438
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
439
+ resolved: "resolved";
440
+ unresolved: "unresolved";
441
+ ignored: "ignored";
442
+ }>, z.ZodLiteral<"resolvedInNextRelease">]>>;
443
+ substatus: z.ZodOptional<z.ZodString>;
444
+ priority: z.ZodOptional<z.ZodEnum<{
445
+ low: "low";
446
+ medium: "medium";
447
+ high: "high";
448
+ }>>;
449
+ assigned_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
450
+ assignee_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
451
  is_resolved: z.ZodOptional<z.ZodBoolean>;
401
452
  is_muted: z.ZodOptional<z.ZodBoolean>;
402
453
  }, z.core.$strip>;
454
+ declare const issueHashSchema: z.ZodObject<{
455
+ id: z.ZodNumber;
456
+ project_id: z.ZodNumber;
457
+ issue_id: z.ZodString;
458
+ grouping_key: z.ZodString;
459
+ grouping_key_hash: z.ZodString;
460
+ created_at: z.ZodString;
461
+ }, z.core.$strip>;
462
+ declare const tagValueCountSchema: z.ZodObject<{
463
+ value: z.ZodString;
464
+ count: z.ZodNumber;
465
+ }, z.core.$strip>;
466
+ declare const issueTagValueSchema: z.ZodObject<{
467
+ key: z.ZodString;
468
+ name: z.ZodString;
469
+ value: z.ZodString;
470
+ count: z.ZodNumber;
471
+ first_seen: z.ZodString;
472
+ last_seen: z.ZodString;
473
+ }, z.core.$strip>;
474
+ declare const tagSummarySchema: z.ZodObject<{
475
+ key: z.ZodString;
476
+ total_values: z.ZodNumber;
477
+ top_values: z.ZodArray<z.ZodObject<{
478
+ value: z.ZodString;
479
+ count: z.ZodNumber;
480
+ }, z.core.$strip>>;
481
+ }, z.core.$strip>;
482
+ declare const issueAggregatesSchema: z.ZodObject<{
483
+ user_count: z.ZodNumber;
484
+ tags: z.ZodArray<z.ZodObject<{
485
+ key: z.ZodString;
486
+ total_values: z.ZodNumber;
487
+ top_values: z.ZodArray<z.ZodObject<{
488
+ value: z.ZodString;
489
+ count: z.ZodNumber;
490
+ }, z.core.$strip>>;
491
+ }, z.core.$strip>>;
492
+ }, z.core.$strip>;
493
+ declare const issueStatsWindowSchema: z.ZodEnum<{
494
+ "24h": "24h";
495
+ "30d": "30d";
496
+ }>;
497
+ declare const issueStatsSchema: z.ZodObject<{
498
+ data: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
499
+ }, z.core.$strip>;
500
+ declare const activityEntrySchema: z.ZodObject<{
501
+ id: z.ZodString;
502
+ issue_id: z.ZodString;
503
+ user_id: z.ZodNullable<z.ZodNumber>;
504
+ type: z.ZodString;
505
+ data: z.ZodString;
506
+ created_at: z.ZodString;
507
+ }, z.core.$strip>;
508
+ declare const userReportSchema: z.ZodObject<{
509
+ id: z.ZodString;
510
+ project_id: z.ZodNumber;
511
+ issue_id: z.ZodNullable<z.ZodString>;
512
+ event_id: z.ZodNullable<z.ZodString>;
513
+ name: z.ZodString;
514
+ email: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>;
515
+ comments: z.ZodString;
516
+ created_at: z.ZodString;
517
+ }, z.core.$strip>;
518
+ declare const createCommentSchema: z.ZodObject<{
519
+ text: z.ZodString;
520
+ }, z.core.$strip>;
521
+ declare const createUserReportSchema: z.ZodObject<{
522
+ name: z.ZodOptional<z.ZodString>;
523
+ email: z.ZodOptional<z.ZodEmail>;
524
+ comments: z.ZodOptional<z.ZodString>;
525
+ event_id: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strip>;
527
+ declare const bulkUpdateIssuesSchema: z.ZodObject<{
528
+ ids: z.ZodArray<z.ZodString>;
529
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
530
+ resolved: "resolved";
531
+ unresolved: "unresolved";
532
+ ignored: "ignored";
533
+ }>, z.ZodLiteral<"resolvedInNextRelease">]>>;
534
+ priority: z.ZodOptional<z.ZodEnum<{
535
+ low: "low";
536
+ medium: "medium";
537
+ high: "high";
538
+ }>>;
539
+ }, z.core.$strip>;
540
+ declare const bulkDeleteIssuesSchema: z.ZodObject<{
541
+ ids: z.ZodArray<z.ZodString>;
542
+ }, z.core.$strip>;
543
+ declare const createDeploySchema: z.ZodObject<{
544
+ version: z.ZodString;
545
+ }, z.core.$strip>;
403
546
 
404
547
  type Issue = z.infer<typeof issueSchema>;
548
+ type IssueStatus = z.infer<typeof issueStatusSchema>;
549
+ type IssuePriority = z.infer<typeof issuePrioritySchema>;
405
550
  type UpdateIssueState = z.infer<typeof updateIssueStateSchema>;
551
+ type IssueHash = z.infer<typeof issueHashSchema>;
552
+ type TagValueCount = z.infer<typeof tagValueCountSchema>;
553
+ type IssueTagValue = z.infer<typeof issueTagValueSchema>;
554
+ type TagSummary = z.infer<typeof tagSummarySchema>;
555
+ type IssueAggregates = z.infer<typeof issueAggregatesSchema>;
556
+ type IssueStats = z.infer<typeof issueStatsSchema>;
557
+ type ActivityEntry = z.infer<typeof activityEntrySchema>;
558
+ type UserReport = z.infer<typeof userReportSchema>;
559
+ type CreateComment = z.infer<typeof createCommentSchema>;
560
+ type CreateUserReport = z.infer<typeof createUserReportSchema>;
561
+ type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
562
+ type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
563
+ type CreateDeploy = z.infer<typeof createDeploySchema>;
564
+ type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
406
565
 
407
566
  declare const logSchema: z.ZodObject<{
408
567
  id: z.ZodString;
@@ -456,6 +615,7 @@ declare const projectSchema: z.ZodObject<{
456
615
  digested_event_count: z.ZodNumber;
457
616
  created_at: z.ZodString;
458
617
  updated_at: z.ZodString;
618
+ platform: z.ZodNullable<z.ZodString>;
459
619
  }, z.core.$strip>;
460
620
  declare const createProjectSchema: z.ZodObject<{
461
621
  name: z.ZodString;
@@ -491,9 +651,33 @@ declare const releaseHealthSchema: z.ZodArray<z.ZodObject<{
491
651
  crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
492
652
  crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
493
653
  }, z.core.$strip>>;
654
+ declare const sessionSummarySchema: z.ZodObject<{
655
+ total: z.ZodNumber;
656
+ errored: z.ZodNumber;
657
+ crashed: z.ZodNumber;
658
+ abnormal: z.ZodNumber;
659
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
660
+ crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
661
+ active_releases: z.ZodNumber;
662
+ }, z.core.$strip>;
663
+ declare const sessionTimeseriesPointSchema: z.ZodObject<{
664
+ bucket: z.ZodString;
665
+ total: z.ZodNumber;
666
+ crashed: z.ZodNumber;
667
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
668
+ }, z.core.$strip>;
669
+ declare const sessionTimeseriesSchema: z.ZodArray<z.ZodObject<{
670
+ bucket: z.ZodString;
671
+ total: z.ZodNumber;
672
+ crashed: z.ZodNumber;
673
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
674
+ }, z.core.$strip>>;
494
675
 
495
676
  type ReleaseHealthRow = z.infer<typeof releaseHealthRowSchema>;
496
677
  type ReleaseHealth = z.infer<typeof releaseHealthSchema>;
678
+ type SessionSummary = z.infer<typeof sessionSummarySchema>;
679
+ type SessionTimeseriesPoint = z.infer<typeof sessionTimeseriesPointSchema>;
680
+ type SessionTimeseries = z.infer<typeof sessionTimeseriesSchema>;
497
681
 
498
682
  declare const chunkUploadCapabilitySchema: z.ZodObject<{
499
683
  url: z.ZodString;
@@ -713,7 +897,35 @@ declare class IssuesResource extends BaseResource {
713
897
  list(projectId: number, options?: ListIssuesOptions): Promise<OffsetPaginatedResponse<Issue>>;
714
898
  get(projectId: number, issueId: string): Promise<Issue>;
715
899
  updateState(projectId: number, issueId: string, input: UpdateIssueState): Promise<Issue>;
900
+ resolveInNextRelease(projectId: number, issueId: string): Promise<Issue>;
716
901
  delete(projectId: number, issueId: string): Promise<void>;
902
+ bulkUpdate(projectId: number, input: BulkUpdateIssues): Promise<{
903
+ updated: number;
904
+ }>;
905
+ bulkDelete(projectId: number, input: BulkDeleteIssues): Promise<{
906
+ deleted: number;
907
+ }>;
908
+ getHashes(projectId: number, issueId: string): Promise<IssueHash[]>;
909
+ getTagValues(projectId: number, issueId: string, key: string): Promise<IssueTagValue[]>;
910
+ getAggregates(projectId: number, issueId: string): Promise<IssueAggregates>;
911
+ getStats(projectId: number, issueId: string, window?: IssueStatsWindow): Promise<IssueStats>;
912
+ getActivity(projectId: number, issueId: string): Promise<ActivityEntry[]>;
913
+ addComment(projectId: number, issueId: string, input: CreateComment): Promise<ActivityEntry>;
914
+ setBookmark(projectId: number, issueId: string, enabled: boolean): Promise<{
915
+ is_bookmarked: boolean;
916
+ }>;
917
+ setSubscription(projectId: number, issueId: string, enabled: boolean): Promise<{
918
+ is_subscribed: boolean;
919
+ }>;
920
+ markSeen(projectId: number, issueId: string): Promise<{
921
+ has_seen: boolean;
922
+ }>;
923
+ listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
924
+ createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
925
+ createDeploy(projectId: number, input: CreateDeploy): Promise<{
926
+ version: string;
927
+ finalized: number;
928
+ }>;
717
929
  }
718
930
 
719
931
  declare class LogsResource extends BaseResource {
@@ -734,8 +946,14 @@ declare class ProjectsResource extends BaseResource {
734
946
  delete(id: number): Promise<void>;
735
947
  }
736
948
 
949
+ declare class ReleasesResource extends BaseResource {
950
+ newIssues(projectId: number, release: string, limit?: number): Promise<Issue[]>;
951
+ }
952
+
737
953
  declare class SessionsResource extends BaseResource {
738
- stats(projectId: number, period?: string): Promise<ReleaseHealth>;
954
+ stats(projectId: number, period?: string, release?: string): Promise<ReleaseHealth>;
955
+ summary(projectId: number, period?: string): Promise<SessionSummary>;
956
+ timeseries(projectId: number, period?: string, interval?: number): Promise<SessionTimeseries>;
739
957
  }
740
958
 
741
959
  declare class SourceMapsResource extends BaseResource {
@@ -795,6 +1013,7 @@ declare class RustrakClient {
795
1013
  readonly invitations: InvitationsResource;
796
1014
  readonly members: MembersResource;
797
1015
  readonly sessions: SessionsResource;
1016
+ readonly releases: ReleasesResource;
798
1017
  readonly transactions: TransactionsResource;
799
1018
  readonly logs: LogsResource;
800
1019
  readonly storage: StorageResource;
@@ -842,4 +1061,4 @@ declare class ValidationError extends RustrakError {
842
1061
  getValidationDetails(): string;
843
1062
  }
844
1063
 
845
- export { type AcceptInvitation, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueFilter, type IssueSort, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, ValidationError };
1064
+ export { type AcceptInvitation, type ActivityEntry, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type BulkDeleteIssues, type BulkUpdateIssues, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateDeploy, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueHash, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, ValidationError };
package/dist/index.d.ts CHANGED
@@ -289,6 +289,7 @@ declare const sortOrderSchema: z.ZodEnum<{
289
289
  declare const issueSortSchema: z.ZodEnum<{
290
290
  digest_order: "digest_order";
291
291
  last_seen: "last_seen";
292
+ event_count: "event_count";
292
293
  }>;
293
294
  declare const issueFilterSchema: z.ZodEnum<{
294
295
  open: "open";
@@ -323,6 +324,7 @@ interface ListIssuesOptions {
323
324
  sort?: IssueSort;
324
325
  order?: SortOrder;
325
326
  filter?: IssueFilter;
327
+ q?: string;
326
328
  }
327
329
  interface ListEventsOptions {
328
330
  order?: SortOrder;
@@ -382,27 +384,184 @@ declare const eventDetailSchema: z.ZodObject<{
382
384
  type Event = z.infer<typeof eventSchema>;
383
385
  type EventDetail = z.infer<typeof eventDetailSchema>;
384
386
 
387
+ declare const issueStatusSchema: z.ZodEnum<{
388
+ resolved: "resolved";
389
+ unresolved: "unresolved";
390
+ ignored: "ignored";
391
+ }>;
392
+ declare const issuePrioritySchema: z.ZodEnum<{
393
+ low: "low";
394
+ medium: "medium";
395
+ high: "high";
396
+ }>;
385
397
  declare const issueSchema: z.ZodObject<{
386
398
  id: z.ZodString;
387
399
  project_id: z.ZodNumber;
388
400
  short_id: z.ZodString;
389
401
  title: z.ZodString;
390
402
  value: z.ZodString;
403
+ culprit: z.ZodString;
404
+ logger: z.ZodString;
391
405
  first_seen: z.ZodString;
392
406
  last_seen: z.ZodString;
393
407
  event_count: z.ZodNumber;
394
408
  level: z.ZodNullable<z.ZodString>;
395
409
  platform: z.ZodNullable<z.ZodString>;
410
+ status: z.ZodEnum<{
411
+ resolved: "resolved";
412
+ unresolved: "unresolved";
413
+ ignored: "ignored";
414
+ }>;
415
+ substatus: z.ZodNullable<z.ZodString>;
416
+ priority: z.ZodNullable<z.ZodEnum<{
417
+ low: "low";
418
+ medium: "medium";
419
+ high: "high";
420
+ }>>;
421
+ assigned_to: z.ZodNullable<z.ZodNumber>;
422
+ assignee_type: z.ZodNullable<z.ZodString>;
423
+ issue_type: z.ZodString;
424
+ issue_category: z.ZodString;
425
+ first_release: z.ZodString;
426
+ last_release: z.ZodString;
427
+ status_details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
428
+ user_report_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
429
+ is_bookmarked: z.ZodOptional<z.ZodBoolean>;
430
+ is_subscribed: z.ZodOptional<z.ZodBoolean>;
431
+ has_seen: z.ZodOptional<z.ZodBoolean>;
432
+ user_count: z.ZodOptional<z.ZodNumber>;
433
+ trend: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
396
434
  is_resolved: z.ZodBoolean;
397
435
  is_muted: z.ZodBoolean;
398
436
  }, z.core.$strip>;
399
437
  declare const updateIssueStateSchema: z.ZodObject<{
438
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
439
+ resolved: "resolved";
440
+ unresolved: "unresolved";
441
+ ignored: "ignored";
442
+ }>, z.ZodLiteral<"resolvedInNextRelease">]>>;
443
+ substatus: z.ZodOptional<z.ZodString>;
444
+ priority: z.ZodOptional<z.ZodEnum<{
445
+ low: "low";
446
+ medium: "medium";
447
+ high: "high";
448
+ }>>;
449
+ assigned_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
450
+ assignee_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
451
  is_resolved: z.ZodOptional<z.ZodBoolean>;
401
452
  is_muted: z.ZodOptional<z.ZodBoolean>;
402
453
  }, z.core.$strip>;
454
+ declare const issueHashSchema: z.ZodObject<{
455
+ id: z.ZodNumber;
456
+ project_id: z.ZodNumber;
457
+ issue_id: z.ZodString;
458
+ grouping_key: z.ZodString;
459
+ grouping_key_hash: z.ZodString;
460
+ created_at: z.ZodString;
461
+ }, z.core.$strip>;
462
+ declare const tagValueCountSchema: z.ZodObject<{
463
+ value: z.ZodString;
464
+ count: z.ZodNumber;
465
+ }, z.core.$strip>;
466
+ declare const issueTagValueSchema: z.ZodObject<{
467
+ key: z.ZodString;
468
+ name: z.ZodString;
469
+ value: z.ZodString;
470
+ count: z.ZodNumber;
471
+ first_seen: z.ZodString;
472
+ last_seen: z.ZodString;
473
+ }, z.core.$strip>;
474
+ declare const tagSummarySchema: z.ZodObject<{
475
+ key: z.ZodString;
476
+ total_values: z.ZodNumber;
477
+ top_values: z.ZodArray<z.ZodObject<{
478
+ value: z.ZodString;
479
+ count: z.ZodNumber;
480
+ }, z.core.$strip>>;
481
+ }, z.core.$strip>;
482
+ declare const issueAggregatesSchema: z.ZodObject<{
483
+ user_count: z.ZodNumber;
484
+ tags: z.ZodArray<z.ZodObject<{
485
+ key: z.ZodString;
486
+ total_values: z.ZodNumber;
487
+ top_values: z.ZodArray<z.ZodObject<{
488
+ value: z.ZodString;
489
+ count: z.ZodNumber;
490
+ }, z.core.$strip>>;
491
+ }, z.core.$strip>>;
492
+ }, z.core.$strip>;
493
+ declare const issueStatsWindowSchema: z.ZodEnum<{
494
+ "24h": "24h";
495
+ "30d": "30d";
496
+ }>;
497
+ declare const issueStatsSchema: z.ZodObject<{
498
+ data: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
499
+ }, z.core.$strip>;
500
+ declare const activityEntrySchema: z.ZodObject<{
501
+ id: z.ZodString;
502
+ issue_id: z.ZodString;
503
+ user_id: z.ZodNullable<z.ZodNumber>;
504
+ type: z.ZodString;
505
+ data: z.ZodString;
506
+ created_at: z.ZodString;
507
+ }, z.core.$strip>;
508
+ declare const userReportSchema: z.ZodObject<{
509
+ id: z.ZodString;
510
+ project_id: z.ZodNumber;
511
+ issue_id: z.ZodNullable<z.ZodString>;
512
+ event_id: z.ZodNullable<z.ZodString>;
513
+ name: z.ZodString;
514
+ email: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>;
515
+ comments: z.ZodString;
516
+ created_at: z.ZodString;
517
+ }, z.core.$strip>;
518
+ declare const createCommentSchema: z.ZodObject<{
519
+ text: z.ZodString;
520
+ }, z.core.$strip>;
521
+ declare const createUserReportSchema: z.ZodObject<{
522
+ name: z.ZodOptional<z.ZodString>;
523
+ email: z.ZodOptional<z.ZodEmail>;
524
+ comments: z.ZodOptional<z.ZodString>;
525
+ event_id: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strip>;
527
+ declare const bulkUpdateIssuesSchema: z.ZodObject<{
528
+ ids: z.ZodArray<z.ZodString>;
529
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
530
+ resolved: "resolved";
531
+ unresolved: "unresolved";
532
+ ignored: "ignored";
533
+ }>, z.ZodLiteral<"resolvedInNextRelease">]>>;
534
+ priority: z.ZodOptional<z.ZodEnum<{
535
+ low: "low";
536
+ medium: "medium";
537
+ high: "high";
538
+ }>>;
539
+ }, z.core.$strip>;
540
+ declare const bulkDeleteIssuesSchema: z.ZodObject<{
541
+ ids: z.ZodArray<z.ZodString>;
542
+ }, z.core.$strip>;
543
+ declare const createDeploySchema: z.ZodObject<{
544
+ version: z.ZodString;
545
+ }, z.core.$strip>;
403
546
 
404
547
  type Issue = z.infer<typeof issueSchema>;
548
+ type IssueStatus = z.infer<typeof issueStatusSchema>;
549
+ type IssuePriority = z.infer<typeof issuePrioritySchema>;
405
550
  type UpdateIssueState = z.infer<typeof updateIssueStateSchema>;
551
+ type IssueHash = z.infer<typeof issueHashSchema>;
552
+ type TagValueCount = z.infer<typeof tagValueCountSchema>;
553
+ type IssueTagValue = z.infer<typeof issueTagValueSchema>;
554
+ type TagSummary = z.infer<typeof tagSummarySchema>;
555
+ type IssueAggregates = z.infer<typeof issueAggregatesSchema>;
556
+ type IssueStats = z.infer<typeof issueStatsSchema>;
557
+ type ActivityEntry = z.infer<typeof activityEntrySchema>;
558
+ type UserReport = z.infer<typeof userReportSchema>;
559
+ type CreateComment = z.infer<typeof createCommentSchema>;
560
+ type CreateUserReport = z.infer<typeof createUserReportSchema>;
561
+ type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
562
+ type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
563
+ type CreateDeploy = z.infer<typeof createDeploySchema>;
564
+ type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
406
565
 
407
566
  declare const logSchema: z.ZodObject<{
408
567
  id: z.ZodString;
@@ -456,6 +615,7 @@ declare const projectSchema: z.ZodObject<{
456
615
  digested_event_count: z.ZodNumber;
457
616
  created_at: z.ZodString;
458
617
  updated_at: z.ZodString;
618
+ platform: z.ZodNullable<z.ZodString>;
459
619
  }, z.core.$strip>;
460
620
  declare const createProjectSchema: z.ZodObject<{
461
621
  name: z.ZodString;
@@ -491,9 +651,33 @@ declare const releaseHealthSchema: z.ZodArray<z.ZodObject<{
491
651
  crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
492
652
  crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
493
653
  }, z.core.$strip>>;
654
+ declare const sessionSummarySchema: z.ZodObject<{
655
+ total: z.ZodNumber;
656
+ errored: z.ZodNumber;
657
+ crashed: z.ZodNumber;
658
+ abnormal: z.ZodNumber;
659
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
660
+ crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
661
+ active_releases: z.ZodNumber;
662
+ }, z.core.$strip>;
663
+ declare const sessionTimeseriesPointSchema: z.ZodObject<{
664
+ bucket: z.ZodString;
665
+ total: z.ZodNumber;
666
+ crashed: z.ZodNumber;
667
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
668
+ }, z.core.$strip>;
669
+ declare const sessionTimeseriesSchema: z.ZodArray<z.ZodObject<{
670
+ bucket: z.ZodString;
671
+ total: z.ZodNumber;
672
+ crashed: z.ZodNumber;
673
+ crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
674
+ }, z.core.$strip>>;
494
675
 
495
676
  type ReleaseHealthRow = z.infer<typeof releaseHealthRowSchema>;
496
677
  type ReleaseHealth = z.infer<typeof releaseHealthSchema>;
678
+ type SessionSummary = z.infer<typeof sessionSummarySchema>;
679
+ type SessionTimeseriesPoint = z.infer<typeof sessionTimeseriesPointSchema>;
680
+ type SessionTimeseries = z.infer<typeof sessionTimeseriesSchema>;
497
681
 
498
682
  declare const chunkUploadCapabilitySchema: z.ZodObject<{
499
683
  url: z.ZodString;
@@ -713,7 +897,35 @@ declare class IssuesResource extends BaseResource {
713
897
  list(projectId: number, options?: ListIssuesOptions): Promise<OffsetPaginatedResponse<Issue>>;
714
898
  get(projectId: number, issueId: string): Promise<Issue>;
715
899
  updateState(projectId: number, issueId: string, input: UpdateIssueState): Promise<Issue>;
900
+ resolveInNextRelease(projectId: number, issueId: string): Promise<Issue>;
716
901
  delete(projectId: number, issueId: string): Promise<void>;
902
+ bulkUpdate(projectId: number, input: BulkUpdateIssues): Promise<{
903
+ updated: number;
904
+ }>;
905
+ bulkDelete(projectId: number, input: BulkDeleteIssues): Promise<{
906
+ deleted: number;
907
+ }>;
908
+ getHashes(projectId: number, issueId: string): Promise<IssueHash[]>;
909
+ getTagValues(projectId: number, issueId: string, key: string): Promise<IssueTagValue[]>;
910
+ getAggregates(projectId: number, issueId: string): Promise<IssueAggregates>;
911
+ getStats(projectId: number, issueId: string, window?: IssueStatsWindow): Promise<IssueStats>;
912
+ getActivity(projectId: number, issueId: string): Promise<ActivityEntry[]>;
913
+ addComment(projectId: number, issueId: string, input: CreateComment): Promise<ActivityEntry>;
914
+ setBookmark(projectId: number, issueId: string, enabled: boolean): Promise<{
915
+ is_bookmarked: boolean;
916
+ }>;
917
+ setSubscription(projectId: number, issueId: string, enabled: boolean): Promise<{
918
+ is_subscribed: boolean;
919
+ }>;
920
+ markSeen(projectId: number, issueId: string): Promise<{
921
+ has_seen: boolean;
922
+ }>;
923
+ listUserReports(projectId: number, issueId: string): Promise<UserReport[]>;
924
+ createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<UserReport>;
925
+ createDeploy(projectId: number, input: CreateDeploy): Promise<{
926
+ version: string;
927
+ finalized: number;
928
+ }>;
717
929
  }
718
930
 
719
931
  declare class LogsResource extends BaseResource {
@@ -734,8 +946,14 @@ declare class ProjectsResource extends BaseResource {
734
946
  delete(id: number): Promise<void>;
735
947
  }
736
948
 
949
+ declare class ReleasesResource extends BaseResource {
950
+ newIssues(projectId: number, release: string, limit?: number): Promise<Issue[]>;
951
+ }
952
+
737
953
  declare class SessionsResource extends BaseResource {
738
- stats(projectId: number, period?: string): Promise<ReleaseHealth>;
954
+ stats(projectId: number, period?: string, release?: string): Promise<ReleaseHealth>;
955
+ summary(projectId: number, period?: string): Promise<SessionSummary>;
956
+ timeseries(projectId: number, period?: string, interval?: number): Promise<SessionTimeseries>;
739
957
  }
740
958
 
741
959
  declare class SourceMapsResource extends BaseResource {
@@ -795,6 +1013,7 @@ declare class RustrakClient {
795
1013
  readonly invitations: InvitationsResource;
796
1014
  readonly members: MembersResource;
797
1015
  readonly sessions: SessionsResource;
1016
+ readonly releases: ReleasesResource;
798
1017
  readonly transactions: TransactionsResource;
799
1018
  readonly logs: LogsResource;
800
1019
  readonly storage: StorageResource;
@@ -842,4 +1061,4 @@ declare class ValidationError extends RustrakError {
842
1061
  getValidationDetails(): string;
843
1062
  }
844
1063
 
845
- export { type AcceptInvitation, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueFilter, type IssueSort, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, ValidationError };
1064
+ export { type AcceptInvitation, type ActivityEntry, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, AuthenticationError, AuthorizationError, BadRequestError, type BulkDeleteIssues, type BulkUpdateIssues, type ChannelType, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type ClientConfig, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateDeploy, type CreateInvitation, type CreateNotificationChannel, type CreateProject, type CreateUserReport, type Event, type EventDetail, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueHash, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, NetworkError, NotFoundError, type NotificationChannel, type OffsetPaginatedResponse, type PaginatedResponse, type Project, type ProjectMember, type ProjectRole, type ProjectStorage, type ProviderType, RateLimitError, type RegisterRequest, type ReleaseHealth, type ReleaseHealthRow, type RoutingOverride, RustrakClient, RustrakError, ServerError, type ServerVersion, type SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type StorageSummary, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateNotificationChannel, type UpdateProject, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, ValidationError };