@sentry/api 0.391.0 → 0.393.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/zod.js CHANGED
@@ -1391,6 +1391,10 @@ var zCustomInboundFilter = z.object({
1391
1391
  })),
1392
1392
  dateCreated: z.string().datetime().readonly(),
1393
1393
  dateUpdated: z.string().datetime().readonly(),
1394
+ legacyFilter: z.union([
1395
+ z.string().readonly(),
1396
+ z.null()
1397
+ ]).readonly(),
1394
1398
  name: z.union([
1395
1399
  z.string().max(256),
1396
1400
  z.null()
@@ -11817,63 +11821,154 @@ var zRepositorySettings = z.object({
11817
11821
  enabledCodeReview: z.boolean().optional(),
11818
11822
  codeReviewTriggers: z.array(z.enum(["on_new_commit", "on_ready_for_review"])).optional()
11819
11823
  });
11820
- var zRetrieveOrganizationAiConversationResponse = z.object({
11821
- conversationId: z.string(),
11822
- title: z.union([
11823
- z.string(),
11824
- z.null()
11825
- ]),
11826
- projects: z.array(z.object({
11827
- id: z.number().int(),
11828
- name: z.string(),
11829
- slug: z.string()
11830
- })),
11831
- webUrl: z.string(),
11832
- spans: z.array(z.record(z.unknown())),
11833
- stats: z.union([
11834
- z.object({
11835
- endTimestamp: z.number().int(),
11836
- errors: z.number().int(),
11837
- generationDuration: z.number(),
11838
- inputTokens: z.number().int(),
11839
- llmCalls: z.number().int(),
11840
- outputTokens: z.number().int(),
11841
- startTimestamp: z.number().int(),
11842
- toolCalls: z.number().int(),
11843
- toolErrors: z.number().int(),
11844
- toolNames: z.array(z.string()),
11845
- totalCost: z.number(),
11846
- totalTokens: z.number().int(),
11847
- cacheReadTokens: z.number().int(),
11848
- cacheWriteTokens: z.number().int(),
11849
- errorToolNames: z.array(z.string()),
11850
- reasoningTokens: z.number().int(),
11851
- cacheReadCost: z.number(),
11852
- cacheWriteCost: z.number(),
11853
- reasoningCost: z.number(),
11854
- usageByModel: z.array(z.object({
11855
- model: z.union([
11856
- z.string(),
11857
- z.null()
11858
- ]),
11824
+ var zRetrieveOrganizationAiConversationResponse = z.union([
11825
+ z.object({
11826
+ conversationId: z.string(),
11827
+ title: z.union([
11828
+ z.string(),
11829
+ z.null()
11830
+ ]),
11831
+ projects: z.array(z.object({
11832
+ id: z.number().int(),
11833
+ name: z.string(),
11834
+ slug: z.string()
11835
+ })),
11836
+ webUrl: z.string(),
11837
+ spans: z.array(z.record(z.unknown())),
11838
+ stats: z.union([
11839
+ z.object({
11840
+ endTimestamp: z.number().int(),
11841
+ errors: z.number().int(),
11842
+ generationDuration: z.number(),
11843
+ inputTokens: z.number().int(),
11859
11844
  llmCalls: z.number().int(),
11845
+ outputTokens: z.number().int(),
11846
+ startTimestamp: z.number().int(),
11847
+ toolCalls: z.number().int(),
11848
+ toolErrors: z.number().int(),
11849
+ toolNames: z.array(z.string()),
11850
+ totalCost: z.number(),
11851
+ totalTokens: z.number().int(),
11852
+ cacheReadTokens: z.number().int(),
11853
+ cacheWriteTokens: z.number().int(),
11854
+ errorToolNames: z.array(z.string()),
11855
+ reasoningTokens: z.number().int(),
11856
+ cacheReadCost: z.number(),
11857
+ cacheWriteCost: z.number(),
11858
+ reasoningCost: z.number(),
11859
+ usageByModel: z.array(z.object({
11860
+ model: z.union([
11861
+ z.string(),
11862
+ z.null()
11863
+ ]),
11864
+ llmCalls: z.number().int(),
11865
+ inputTokens: z.number().int(),
11866
+ outputTokens: z.number().int(),
11867
+ totalTokens: z.number().int(),
11868
+ cacheReadTokens: z.number().int(),
11869
+ cacheWriteTokens: z.number().int(),
11870
+ reasoningTokens: z.number().int(),
11871
+ inputCost: z.number(),
11872
+ outputCost: z.number(),
11873
+ cacheReadCost: z.number(),
11874
+ cacheWriteCost: z.number(),
11875
+ reasoningCost: z.number(),
11876
+ totalCost: z.number()
11877
+ }))
11878
+ }),
11879
+ z.null()
11880
+ ])
11881
+ }),
11882
+ z.object({
11883
+ conversationId: z.string(),
11884
+ title: z.union([
11885
+ z.string(),
11886
+ z.null()
11887
+ ]),
11888
+ projects: z.array(z.object({
11889
+ id: z.number().int(),
11890
+ name: z.string(),
11891
+ slug: z.string()
11892
+ })),
11893
+ webUrl: z.string(),
11894
+ stats: z.union([
11895
+ z.object({
11896
+ endTimestamp: z.number().int(),
11897
+ errors: z.number().int(),
11898
+ generationDuration: z.number(),
11860
11899
  inputTokens: z.number().int(),
11900
+ llmCalls: z.number().int(),
11861
11901
  outputTokens: z.number().int(),
11902
+ startTimestamp: z.number().int(),
11903
+ toolCalls: z.number().int(),
11904
+ toolErrors: z.number().int(),
11905
+ toolNames: z.array(z.string()),
11906
+ totalCost: z.number(),
11862
11907
  totalTokens: z.number().int(),
11863
11908
  cacheReadTokens: z.number().int(),
11864
11909
  cacheWriteTokens: z.number().int(),
11910
+ errorToolNames: z.array(z.string()),
11865
11911
  reasoningTokens: z.number().int(),
11866
- inputCost: z.number(),
11867
- outputCost: z.number(),
11868
11912
  cacheReadCost: z.number(),
11869
11913
  cacheWriteCost: z.number(),
11870
11914
  reasoningCost: z.number(),
11871
- totalCost: z.number()
11872
- }))
11873
- }),
11874
- z.null()
11875
- ])
11876
- });
11915
+ usageByModel: z.array(z.object({
11916
+ model: z.union([
11917
+ z.string(),
11918
+ z.null()
11919
+ ]),
11920
+ llmCalls: z.number().int(),
11921
+ inputTokens: z.number().int(),
11922
+ outputTokens: z.number().int(),
11923
+ totalTokens: z.number().int(),
11924
+ cacheReadTokens: z.number().int(),
11925
+ cacheWriteTokens: z.number().int(),
11926
+ reasoningTokens: z.number().int(),
11927
+ inputCost: z.number(),
11928
+ outputCost: z.number(),
11929
+ cacheReadCost: z.number(),
11930
+ cacheWriteCost: z.number(),
11931
+ reasoningCost: z.number(),
11932
+ totalCost: z.number()
11933
+ }))
11934
+ }),
11935
+ z.null()
11936
+ ]),
11937
+ transcript: z.array(z.object({
11938
+ id: z.string(),
11939
+ role: z.enum([
11940
+ "user",
11941
+ "assistant",
11942
+ "embedding",
11943
+ "evaluation",
11944
+ "memory"
11945
+ ]),
11946
+ content: z.string(),
11947
+ timestamp: z.number(),
11948
+ nodeId: z.string(),
11949
+ traceId: z.string().optional(),
11950
+ projectId: z.string().optional(),
11951
+ userEmail: z.string().optional(),
11952
+ reasoning: z.string().optional(),
11953
+ agentName: z.string().optional(),
11954
+ modelName: z.string().optional(),
11955
+ duration: z.number().optional(),
11956
+ toolCalls: z.array(z.object({
11957
+ name: z.string(),
11958
+ nodeId: z.string(),
11959
+ hasError: z.boolean(),
11960
+ duration: z.number().optional()
11961
+ })).optional(),
11962
+ embeddingInput: z.string().optional(),
11963
+ embeddingTokens: z.number().optional(),
11964
+ embeddingHasError: z.boolean().optional(),
11965
+ evaluation: z.record(z.unknown()).optional(),
11966
+ memory: z.record(z.unknown()).optional()
11967
+ })),
11968
+ complete: z.boolean(),
11969
+ sourceSpanCount: z.number().int()
11970
+ })
11971
+ ]);
11877
11972
  var zScimListResourceTypesResponse = z.object({
11878
11973
  schemas: z.array(z.string()),
11879
11974
  totalResults: z.number().int(),
@@ -14544,66 +14639,158 @@ var zRetrieveOrganizationAiConversationData = z.object({
14544
14639
  start: z.string().datetime().optional(),
14545
14640
  end: z.string().datetime().optional(),
14546
14641
  cursor: z.string().min(1).optional(),
14547
- per_page: z.number().int().optional()
14642
+ per_page: z.number().int().optional(),
14643
+ view: z.enum(["timeline", "transcript"]).optional()
14548
14644
  }).optional()
14549
14645
  });
14550
- var zRetrieveOrganizationAiConversationResponse2 = z.object({
14551
- conversationId: z.string(),
14552
- title: z.union([
14553
- z.string(),
14554
- z.null()
14555
- ]),
14556
- projects: z.array(z.object({
14557
- id: z.number().int(),
14558
- name: z.string(),
14559
- slug: z.string()
14560
- })),
14561
- webUrl: z.string(),
14562
- spans: z.array(z.record(z.unknown())),
14563
- stats: z.union([
14564
- z.object({
14565
- endTimestamp: z.number().int(),
14566
- errors: z.number().int(),
14567
- generationDuration: z.number(),
14568
- inputTokens: z.number().int(),
14569
- llmCalls: z.number().int(),
14570
- outputTokens: z.number().int(),
14571
- startTimestamp: z.number().int(),
14572
- toolCalls: z.number().int(),
14573
- toolErrors: z.number().int(),
14574
- toolNames: z.array(z.string()),
14575
- totalCost: z.number(),
14576
- totalTokens: z.number().int(),
14577
- cacheReadTokens: z.number().int(),
14578
- cacheWriteTokens: z.number().int(),
14579
- errorToolNames: z.array(z.string()),
14580
- reasoningTokens: z.number().int(),
14581
- cacheReadCost: z.number(),
14582
- cacheWriteCost: z.number(),
14583
- reasoningCost: z.number(),
14584
- usageByModel: z.array(z.object({
14585
- model: z.union([
14586
- z.string(),
14587
- z.null()
14588
- ]),
14646
+ var zRetrieveOrganizationAiConversationResponse2 = z.union([
14647
+ z.object({
14648
+ conversationId: z.string(),
14649
+ title: z.union([
14650
+ z.string(),
14651
+ z.null()
14652
+ ]),
14653
+ projects: z.array(z.object({
14654
+ id: z.number().int(),
14655
+ name: z.string(),
14656
+ slug: z.string()
14657
+ })),
14658
+ webUrl: z.string(),
14659
+ spans: z.array(z.record(z.unknown())),
14660
+ stats: z.union([
14661
+ z.object({
14662
+ endTimestamp: z.number().int(),
14663
+ errors: z.number().int(),
14664
+ generationDuration: z.number(),
14665
+ inputTokens: z.number().int(),
14589
14666
  llmCalls: z.number().int(),
14667
+ outputTokens: z.number().int(),
14668
+ startTimestamp: z.number().int(),
14669
+ toolCalls: z.number().int(),
14670
+ toolErrors: z.number().int(),
14671
+ toolNames: z.array(z.string()),
14672
+ totalCost: z.number(),
14673
+ totalTokens: z.number().int(),
14674
+ cacheReadTokens: z.number().int(),
14675
+ cacheWriteTokens: z.number().int(),
14676
+ errorToolNames: z.array(z.string()),
14677
+ reasoningTokens: z.number().int(),
14678
+ cacheReadCost: z.number(),
14679
+ cacheWriteCost: z.number(),
14680
+ reasoningCost: z.number(),
14681
+ usageByModel: z.array(z.object({
14682
+ model: z.union([
14683
+ z.string(),
14684
+ z.null()
14685
+ ]),
14686
+ llmCalls: z.number().int(),
14687
+ inputTokens: z.number().int(),
14688
+ outputTokens: z.number().int(),
14689
+ totalTokens: z.number().int(),
14690
+ cacheReadTokens: z.number().int(),
14691
+ cacheWriteTokens: z.number().int(),
14692
+ reasoningTokens: z.number().int(),
14693
+ inputCost: z.number(),
14694
+ outputCost: z.number(),
14695
+ cacheReadCost: z.number(),
14696
+ cacheWriteCost: z.number(),
14697
+ reasoningCost: z.number(),
14698
+ totalCost: z.number()
14699
+ }))
14700
+ }),
14701
+ z.null()
14702
+ ])
14703
+ }),
14704
+ z.object({
14705
+ conversationId: z.string(),
14706
+ title: z.union([
14707
+ z.string(),
14708
+ z.null()
14709
+ ]),
14710
+ projects: z.array(z.object({
14711
+ id: z.number().int(),
14712
+ name: z.string(),
14713
+ slug: z.string()
14714
+ })),
14715
+ webUrl: z.string(),
14716
+ stats: z.union([
14717
+ z.object({
14718
+ endTimestamp: z.number().int(),
14719
+ errors: z.number().int(),
14720
+ generationDuration: z.number(),
14590
14721
  inputTokens: z.number().int(),
14722
+ llmCalls: z.number().int(),
14591
14723
  outputTokens: z.number().int(),
14724
+ startTimestamp: z.number().int(),
14725
+ toolCalls: z.number().int(),
14726
+ toolErrors: z.number().int(),
14727
+ toolNames: z.array(z.string()),
14728
+ totalCost: z.number(),
14592
14729
  totalTokens: z.number().int(),
14593
14730
  cacheReadTokens: z.number().int(),
14594
14731
  cacheWriteTokens: z.number().int(),
14732
+ errorToolNames: z.array(z.string()),
14595
14733
  reasoningTokens: z.number().int(),
14596
- inputCost: z.number(),
14597
- outputCost: z.number(),
14598
14734
  cacheReadCost: z.number(),
14599
14735
  cacheWriteCost: z.number(),
14600
14736
  reasoningCost: z.number(),
14601
- totalCost: z.number()
14602
- }))
14603
- }),
14604
- z.null()
14605
- ])
14606
- });
14737
+ usageByModel: z.array(z.object({
14738
+ model: z.union([
14739
+ z.string(),
14740
+ z.null()
14741
+ ]),
14742
+ llmCalls: z.number().int(),
14743
+ inputTokens: z.number().int(),
14744
+ outputTokens: z.number().int(),
14745
+ totalTokens: z.number().int(),
14746
+ cacheReadTokens: z.number().int(),
14747
+ cacheWriteTokens: z.number().int(),
14748
+ reasoningTokens: z.number().int(),
14749
+ inputCost: z.number(),
14750
+ outputCost: z.number(),
14751
+ cacheReadCost: z.number(),
14752
+ cacheWriteCost: z.number(),
14753
+ reasoningCost: z.number(),
14754
+ totalCost: z.number()
14755
+ }))
14756
+ }),
14757
+ z.null()
14758
+ ]),
14759
+ transcript: z.array(z.object({
14760
+ id: z.string(),
14761
+ role: z.enum([
14762
+ "user",
14763
+ "assistant",
14764
+ "embedding",
14765
+ "evaluation",
14766
+ "memory"
14767
+ ]),
14768
+ content: z.string(),
14769
+ timestamp: z.number(),
14770
+ nodeId: z.string(),
14771
+ traceId: z.string().optional(),
14772
+ projectId: z.string().optional(),
14773
+ userEmail: z.string().optional(),
14774
+ reasoning: z.string().optional(),
14775
+ agentName: z.string().optional(),
14776
+ modelName: z.string().optional(),
14777
+ duration: z.number().optional(),
14778
+ toolCalls: z.array(z.object({
14779
+ name: z.string(),
14780
+ nodeId: z.string(),
14781
+ hasError: z.boolean(),
14782
+ duration: z.number().optional()
14783
+ })).optional(),
14784
+ embeddingInput: z.string().optional(),
14785
+ embeddingTokens: z.number().optional(),
14786
+ embeddingHasError: z.boolean().optional(),
14787
+ evaluation: z.record(z.unknown()).optional(),
14788
+ memory: z.record(z.unknown()).optional()
14789
+ })),
14790
+ complete: z.boolean(),
14791
+ sourceSpanCount: z.number().int()
14792
+ })
14793
+ ]);
14607
14794
  var zListOrganizationCodeMappingsData = z.object({
14608
14795
  body: z.never().optional(),
14609
14796
  path: z.object({
@@ -27930,6 +28117,10 @@ var zListProjectCustomInboundFiltersResponse = z.array(z.object({
27930
28117
  })),
27931
28118
  dateCreated: z.string().datetime().readonly(),
27932
28119
  dateUpdated: z.string().datetime().readonly(),
28120
+ legacyFilter: z.union([
28121
+ z.string().readonly(),
28122
+ z.null()
28123
+ ]).readonly(),
27933
28124
  name: z.union([
27934
28125
  z.string().max(256),
27935
28126
  z.null()
@@ -27976,6 +28167,10 @@ var zCreateProjectCustomInboundFilterData = z.object({
27976
28167
  })),
27977
28168
  dateCreated: z.string().datetime().readonly(),
27978
28169
  dateUpdated: z.string().datetime().readonly(),
28170
+ legacyFilter: z.union([
28171
+ z.string().readonly(),
28172
+ z.null()
28173
+ ]).readonly(),
27979
28174
  name: z.union([
27980
28175
  z.string().max(256),
27981
28176
  z.null()
@@ -28027,6 +28222,10 @@ var zCreateProjectCustomInboundFilterResponse = z.object({
28027
28222
  })),
28028
28223
  dateCreated: z.string().datetime().readonly(),
28029
28224
  dateUpdated: z.string().datetime().readonly(),
28225
+ legacyFilter: z.union([
28226
+ z.string().readonly(),
28227
+ z.null()
28228
+ ]).readonly(),
28030
28229
  name: z.union([
28031
28230
  z.string().max(256),
28032
28231
  z.null()
@@ -28091,6 +28290,10 @@ var zGetProjectCustomInboundFilterResponse = z.object({
28091
28290
  })),
28092
28291
  dateCreated: z.string().datetime().readonly(),
28093
28292
  dateUpdated: z.string().datetime().readonly(),
28293
+ legacyFilter: z.union([
28294
+ z.string().readonly(),
28295
+ z.null()
28296
+ ]).readonly(),
28094
28297
  name: z.union([
28095
28298
  z.string().max(256),
28096
28299
  z.null()
@@ -28137,6 +28340,10 @@ var zUpdateProjectCustomInboundFilterData = z.object({
28137
28340
  })),
28138
28341
  dateCreated: z.string().datetime().readonly(),
28139
28342
  dateUpdated: z.string().datetime().readonly(),
28343
+ legacyFilter: z.union([
28344
+ z.string().readonly(),
28345
+ z.null()
28346
+ ]).readonly(),
28140
28347
  name: z.union([
28141
28348
  z.string().max(256),
28142
28349
  z.null()
@@ -28189,6 +28396,10 @@ var zUpdateProjectCustomInboundFilterResponse = z.object({
28189
28396
  })),
28190
28397
  dateCreated: z.string().datetime().readonly(),
28191
28398
  dateUpdated: z.string().datetime().readonly(),
28399
+ legacyFilter: z.union([
28400
+ z.string().readonly(),
28401
+ z.null()
28402
+ ]).readonly(),
28192
28403
  name: z.union([
28193
28404
  z.string().max(256),
28194
28405
  z.null()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.391.0",
3
+ "version": "0.393.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",