@sentry/api 0.392.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
@@ -11821,63 +11821,154 @@ var zRepositorySettings = z.object({
11821
11821
  enabledCodeReview: z.boolean().optional(),
11822
11822
  codeReviewTriggers: z.array(z.enum(["on_new_commit", "on_ready_for_review"])).optional()
11823
11823
  });
11824
- var zRetrieveOrganizationAiConversationResponse = z.object({
11825
- conversationId: z.string(),
11826
- title: z.union([
11827
- z.string(),
11828
- z.null()
11829
- ]),
11830
- projects: z.array(z.object({
11831
- id: z.number().int(),
11832
- name: z.string(),
11833
- slug: z.string()
11834
- })),
11835
- webUrl: z.string(),
11836
- spans: z.array(z.record(z.unknown())),
11837
- stats: z.union([
11838
- z.object({
11839
- endTimestamp: z.number().int(),
11840
- errors: z.number().int(),
11841
- generationDuration: z.number(),
11842
- inputTokens: z.number().int(),
11843
- llmCalls: z.number().int(),
11844
- outputTokens: z.number().int(),
11845
- startTimestamp: z.number().int(),
11846
- toolCalls: z.number().int(),
11847
- toolErrors: z.number().int(),
11848
- toolNames: z.array(z.string()),
11849
- totalCost: z.number(),
11850
- totalTokens: z.number().int(),
11851
- cacheReadTokens: z.number().int(),
11852
- cacheWriteTokens: z.number().int(),
11853
- errorToolNames: z.array(z.string()),
11854
- reasoningTokens: z.number().int(),
11855
- cacheReadCost: z.number(),
11856
- cacheWriteCost: z.number(),
11857
- reasoningCost: z.number(),
11858
- usageByModel: z.array(z.object({
11859
- model: z.union([
11860
- z.string(),
11861
- z.null()
11862
- ]),
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(),
11863
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(),
11864
11899
  inputTokens: z.number().int(),
11900
+ llmCalls: z.number().int(),
11865
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(),
11866
11907
  totalTokens: z.number().int(),
11867
11908
  cacheReadTokens: z.number().int(),
11868
11909
  cacheWriteTokens: z.number().int(),
11910
+ errorToolNames: z.array(z.string()),
11869
11911
  reasoningTokens: z.number().int(),
11870
- inputCost: z.number(),
11871
- outputCost: z.number(),
11872
11912
  cacheReadCost: z.number(),
11873
11913
  cacheWriteCost: z.number(),
11874
11914
  reasoningCost: z.number(),
11875
- totalCost: z.number()
11876
- }))
11877
- }),
11878
- z.null()
11879
- ])
11880
- });
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
+ ]);
11881
11972
  var zScimListResourceTypesResponse = z.object({
11882
11973
  schemas: z.array(z.string()),
11883
11974
  totalResults: z.number().int(),
@@ -14548,66 +14639,158 @@ var zRetrieveOrganizationAiConversationData = z.object({
14548
14639
  start: z.string().datetime().optional(),
14549
14640
  end: z.string().datetime().optional(),
14550
14641
  cursor: z.string().min(1).optional(),
14551
- per_page: z.number().int().optional()
14642
+ per_page: z.number().int().optional(),
14643
+ view: z.enum(["timeline", "transcript"]).optional()
14552
14644
  }).optional()
14553
14645
  });
14554
- var zRetrieveOrganizationAiConversationResponse2 = z.object({
14555
- conversationId: z.string(),
14556
- title: z.union([
14557
- z.string(),
14558
- z.null()
14559
- ]),
14560
- projects: z.array(z.object({
14561
- id: z.number().int(),
14562
- name: z.string(),
14563
- slug: z.string()
14564
- })),
14565
- webUrl: z.string(),
14566
- spans: z.array(z.record(z.unknown())),
14567
- stats: z.union([
14568
- z.object({
14569
- endTimestamp: z.number().int(),
14570
- errors: z.number().int(),
14571
- generationDuration: z.number(),
14572
- inputTokens: z.number().int(),
14573
- llmCalls: z.number().int(),
14574
- outputTokens: z.number().int(),
14575
- startTimestamp: z.number().int(),
14576
- toolCalls: z.number().int(),
14577
- toolErrors: z.number().int(),
14578
- toolNames: z.array(z.string()),
14579
- totalCost: z.number(),
14580
- totalTokens: z.number().int(),
14581
- cacheReadTokens: z.number().int(),
14582
- cacheWriteTokens: z.number().int(),
14583
- errorToolNames: z.array(z.string()),
14584
- reasoningTokens: z.number().int(),
14585
- cacheReadCost: z.number(),
14586
- cacheWriteCost: z.number(),
14587
- reasoningCost: z.number(),
14588
- usageByModel: z.array(z.object({
14589
- model: z.union([
14590
- z.string(),
14591
- z.null()
14592
- ]),
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(),
14593
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(),
14594
14721
  inputTokens: z.number().int(),
14722
+ llmCalls: z.number().int(),
14595
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(),
14596
14729
  totalTokens: z.number().int(),
14597
14730
  cacheReadTokens: z.number().int(),
14598
14731
  cacheWriteTokens: z.number().int(),
14732
+ errorToolNames: z.array(z.string()),
14599
14733
  reasoningTokens: z.number().int(),
14600
- inputCost: z.number(),
14601
- outputCost: z.number(),
14602
14734
  cacheReadCost: z.number(),
14603
14735
  cacheWriteCost: z.number(),
14604
14736
  reasoningCost: z.number(),
14605
- totalCost: z.number()
14606
- }))
14607
- }),
14608
- z.null()
14609
- ])
14610
- });
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
+ ]);
14611
14794
  var zListOrganizationCodeMappingsData = z.object({
14612
14795
  body: z.never().optional(),
14613
14796
  path: z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.392.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",