@sentry/api 0.365.0 → 0.367.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.
@@ -75,9 +75,11 @@ export declare function createSentryClient(config?: Config): {
75
75
  * Message, tool, and response attributes contain their recorded string values.
76
76
  * `stats.errors` counts spans whose status is not `ok`, `cancelled`, or `unknown`.
77
77
  * `stats.errorToolNames` lists tools used by those spans.
78
- * `stats.inputTokens` includes cache-read and cache-write tokens. Stats are returned
79
- * on the first page only. Without an explicit range, Sentry widens the search across
80
- * available retention. A missing conversation returns an empty `spans` list.
78
+ * `stats.inputTokens` includes cache-read and cache-write tokens. In `stats.usageByModel`,
79
+ * `inputCost` includes cache-read and cache-write costs, and `outputCost` includes
80
+ * reasoning cost. These cost breakdowns are not added to `totalCost`.
81
+ * Stats are returned on the first page only. Without an explicit range, Sentry widens
82
+ * the search across available retention. A missing conversation returns an empty `spans` list.
81
83
  */
82
84
  readonly retrieveOrganizationAiConversation: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.RetrieveOrganizationAiConversationData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.RetrieveOrganizationAiConversationResponses, types.RetrieveOrganizationAiConversationErrors, ThrowOnError, "fields">;
83
85
  /**
@@ -1723,6 +1725,12 @@ export declare function createSentryClient(config?: Config): {
1723
1725
  * returns 200 if the link already exists, 201 if created.
1724
1726
  */
1725
1727
  readonly linkProjectRepository: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.LinkProjectRepositoryData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.LinkProjectRepositoryResponses, types.LinkProjectRepositoryErrors, ThrowOnError, "fields">;
1728
+ /**
1729
+ * Get a Source Code Link for a Stack Trace Frame
1730
+ *
1731
+ * Resolve a stack trace filename to its linked source file using the project's code mappings and connected source code integrations.
1732
+ */
1733
+ readonly getProjectStacktraceLink: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.GetProjectStacktraceLinkData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.GetProjectStacktraceLinkResponses, types.GetProjectStacktraceLinkErrors, ThrowOnError, "fields">;
1726
1734
  /**
1727
1735
  * Retrieve Event Counts for a Project
1728
1736
  *
@@ -4830,6 +4838,9 @@ export declare function createSentryClient(config?: Config): {
4830
4838
  cacheWriteTokens: number;
4831
4839
  errorToolNames: Array<string>;
4832
4840
  reasoningTokens: number;
4841
+ cacheReadCost: number;
4842
+ cacheWriteCost: number;
4843
+ reasoningCost: number;
4833
4844
  usageByModel: Array<{
4834
4845
  model: string | null;
4835
4846
  llmCalls: number;
@@ -4841,6 +4852,9 @@ export declare function createSentryClient(config?: Config): {
4841
4852
  reasoningTokens: number;
4842
4853
  inputCost: number;
4843
4854
  outputCost: number;
4855
+ cacheReadCost: number;
4856
+ cacheWriteCost: number;
4857
+ reasoningCost: number;
4844
4858
  totalCost: number;
4845
4859
  }>;
4846
4860
  } | null;
@@ -9799,6 +9799,9 @@ export type RetrieveOrganizationAiConversationResponse = {
9799
9799
  cacheWriteTokens: number;
9800
9800
  errorToolNames: Array<string>;
9801
9801
  reasoningTokens: number;
9802
+ cacheReadCost: number;
9803
+ cacheWriteCost: number;
9804
+ reasoningCost: number;
9802
9805
  usageByModel: Array<{
9803
9806
  model: string | null;
9804
9807
  llmCalls: number;
@@ -9810,6 +9813,9 @@ export type RetrieveOrganizationAiConversationResponse = {
9810
9813
  reasoningTokens: number;
9811
9814
  inputCost: number;
9812
9815
  outputCost: number;
9816
+ cacheReadCost: number;
9817
+ cacheWriteCost: number;
9818
+ reasoningCost: number;
9813
9819
  totalCost: number;
9814
9820
  }>;
9815
9821
  } | null;
@@ -10935,6 +10941,61 @@ export type SourceMapDebug = {
10935
10941
  sdk_debug_id_support: 'not-supported' | 'unofficial-sdk' | 'needs-upgrade' | 'full';
10936
10942
  has_scraping_data: boolean;
10937
10943
  };
10944
+ export type StacktraceLinkResponse = {
10945
+ sourcePath?: string | null;
10946
+ attemptedUrl?: string | null;
10947
+ error: string | null;
10948
+ config: {
10949
+ id: string;
10950
+ projectId: string;
10951
+ projectSlug: string;
10952
+ repoId: string;
10953
+ repoName: string;
10954
+ integrationId: string | null;
10955
+ provider: {
10956
+ key: string;
10957
+ slug: string;
10958
+ name: string;
10959
+ canAdd: boolean;
10960
+ canDisable: boolean;
10961
+ features: Array<string>;
10962
+ aspects: {
10963
+ [key: string]: unknown;
10964
+ };
10965
+ } | null;
10966
+ stackRoot: string;
10967
+ sourceRoot: string;
10968
+ defaultBranch: string | null;
10969
+ automaticallyGenerated: boolean;
10970
+ hasCodeOwner: boolean;
10971
+ } | null;
10972
+ sourceUrl: string | null;
10973
+ integrations: Array<{
10974
+ id: string;
10975
+ name: string;
10976
+ icon: string | null;
10977
+ domainName: string | null;
10978
+ accountType: string | null;
10979
+ scopes: Array<string> | null;
10980
+ outOfDate: boolean | null;
10981
+ missingFeatures: Array<{
10982
+ key: string;
10983
+ description: string;
10984
+ }> | null;
10985
+ status: string;
10986
+ provider: {
10987
+ key: string;
10988
+ slug: string;
10989
+ name: string;
10990
+ canAdd: boolean;
10991
+ canDisable: boolean;
10992
+ features: Array<string>;
10993
+ aspects: {
10994
+ [key: string]: unknown;
10995
+ };
10996
+ };
10997
+ }>;
10998
+ };
10938
10999
  export type StarSegment = {
10939
11000
  /**
10940
11001
  * The name of the service span to star or unstar.
@@ -13122,6 +13183,9 @@ export type RetrieveOrganizationAiConversationResponses = {
13122
13183
  cacheWriteTokens: number;
13123
13184
  errorToolNames: Array<string>;
13124
13185
  reasoningTokens: number;
13186
+ cacheReadCost: number;
13187
+ cacheWriteCost: number;
13188
+ reasoningCost: number;
13125
13189
  usageByModel: Array<{
13126
13190
  model: string | null;
13127
13191
  llmCalls: number;
@@ -13133,6 +13197,9 @@ export type RetrieveOrganizationAiConversationResponses = {
13133
13197
  reasoningTokens: number;
13134
13198
  inputCost: number;
13135
13199
  outputCost: number;
13200
+ cacheReadCost: number;
13201
+ cacheWriteCost: number;
13202
+ reasoningCost: number;
13136
13203
  totalCost: number;
13137
13204
  }>;
13138
13205
  } | null;
@@ -34856,6 +34923,134 @@ export type LinkProjectRepositoryResponses = {
34856
34923
  };
34857
34924
  };
34858
34925
  export type LinkProjectRepositoryResponse = LinkProjectRepositoryResponses[keyof LinkProjectRepositoryResponses];
34926
+ export type GetProjectStacktraceLinkData = {
34927
+ body?: never;
34928
+ path: {
34929
+ /**
34930
+ * The ID or slug of the organization the resource belongs to.
34931
+ */
34932
+ organization_id_or_slug: string;
34933
+ /**
34934
+ * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
34935
+ */
34936
+ project_id_or_slug: string;
34937
+ };
34938
+ query: {
34939
+ /**
34940
+ * The file path from the stack trace frame.
34941
+ */
34942
+ file: string;
34943
+ /**
34944
+ * The platform associated with the frame.
34945
+ */
34946
+ platform?: string;
34947
+ /**
34948
+ * The absolute path of the stack frame, if known.
34949
+ */
34950
+ absPath?: string;
34951
+ /**
34952
+ * The commit ID associated with the event.
34953
+ */
34954
+ commitId?: string;
34955
+ /**
34956
+ * The SDK name associated with the event.
34957
+ */
34958
+ sdkName?: string;
34959
+ /**
34960
+ * The module name, if known.
34961
+ */
34962
+ module?: string;
34963
+ /**
34964
+ * The package name, if known.
34965
+ */
34966
+ package?: string;
34967
+ /**
34968
+ * The source line number, if known.
34969
+ */
34970
+ lineNo?: string;
34971
+ /**
34972
+ * The issue ID, if known.
34973
+ */
34974
+ groupId?: string;
34975
+ };
34976
+ url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/stacktrace-link/';
34977
+ };
34978
+ export type GetProjectStacktraceLinkErrors = {
34979
+ /**
34980
+ * Bad Request
34981
+ */
34982
+ 400: unknown;
34983
+ /**
34984
+ * Unauthorized
34985
+ */
34986
+ 401: unknown;
34987
+ /**
34988
+ * Forbidden
34989
+ */
34990
+ 403: unknown;
34991
+ /**
34992
+ * Not Found
34993
+ */
34994
+ 404: unknown;
34995
+ };
34996
+ export type GetProjectStacktraceLinkResponses = {
34997
+ 200: {
34998
+ sourcePath?: string | null;
34999
+ attemptedUrl?: string | null;
35000
+ error: string | null;
35001
+ config: {
35002
+ id: string;
35003
+ projectId: string;
35004
+ projectSlug: string;
35005
+ repoId: string;
35006
+ repoName: string;
35007
+ integrationId: string | null;
35008
+ provider: {
35009
+ key: string;
35010
+ slug: string;
35011
+ name: string;
35012
+ canAdd: boolean;
35013
+ canDisable: boolean;
35014
+ features: Array<string>;
35015
+ aspects: {
35016
+ [key: string]: unknown;
35017
+ };
35018
+ } | null;
35019
+ stackRoot: string;
35020
+ sourceRoot: string;
35021
+ defaultBranch: string | null;
35022
+ automaticallyGenerated: boolean;
35023
+ hasCodeOwner: boolean;
35024
+ } | null;
35025
+ sourceUrl: string | null;
35026
+ integrations: Array<{
35027
+ id: string;
35028
+ name: string;
35029
+ icon: string | null;
35030
+ domainName: string | null;
35031
+ accountType: string | null;
35032
+ scopes: Array<string> | null;
35033
+ outOfDate: boolean | null;
35034
+ missingFeatures: Array<{
35035
+ key: string;
35036
+ description: string;
35037
+ }> | null;
35038
+ status: string;
35039
+ provider: {
35040
+ key: string;
35041
+ slug: string;
35042
+ name: string;
35043
+ canAdd: boolean;
35044
+ canDisable: boolean;
35045
+ features: Array<string>;
35046
+ aspects: {
35047
+ [key: string]: unknown;
35048
+ };
35049
+ };
35050
+ }>;
35051
+ };
35052
+ };
35053
+ export type GetProjectStacktraceLinkResponse = GetProjectStacktraceLinkResponses[keyof GetProjectStacktraceLinkResponses];
34859
35054
  export type ListProjectStatsData = {
34860
35055
  body?: never;
34861
35056
  path: {
@@ -5968,6 +5968,9 @@ export declare const vRetrieveOrganizationAiConversationResponse: v.ObjectSchema
5968
5968
  readonly cacheWriteTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
5969
5969
  readonly errorToolNames: v.ArraySchema<v.StringSchema<undefined>, undefined>;
5970
5970
  readonly reasoningTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
5971
+ readonly cacheReadCost: v.NumberSchema<undefined>;
5972
+ readonly cacheWriteCost: v.NumberSchema<undefined>;
5973
+ readonly reasoningCost: v.NumberSchema<undefined>;
5971
5974
  readonly usageByModel: v.ArraySchema<v.ObjectSchema<{
5972
5975
  readonly model: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
5973
5976
  readonly llmCalls: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
@@ -5979,6 +5982,9 @@ export declare const vRetrieveOrganizationAiConversationResponse: v.ObjectSchema
5979
5982
  readonly reasoningTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
5980
5983
  readonly inputCost: v.NumberSchema<undefined>;
5981
5984
  readonly outputCost: v.NumberSchema<undefined>;
5985
+ readonly cacheReadCost: v.NumberSchema<undefined>;
5986
+ readonly cacheWriteCost: v.NumberSchema<undefined>;
5987
+ readonly reasoningCost: v.NumberSchema<undefined>;
5982
5988
  readonly totalCost: v.NumberSchema<undefined>;
5983
5989
  }, undefined>, undefined>;
5984
5990
  }, undefined>, v.NullSchema<undefined>], undefined>;
@@ -6748,6 +6754,57 @@ export declare const vSourceMapDebug: v.ObjectSchema<{
6748
6754
  readonly sdk_debug_id_support: v.PicklistSchema<["not-supported", "unofficial-sdk", "needs-upgrade", "full"], undefined>;
6749
6755
  readonly has_scraping_data: v.BooleanSchema<undefined>;
6750
6756
  }, undefined>;
6757
+ export declare const vStacktraceLinkResponse: v.ObjectSchema<{
6758
+ readonly sourcePath: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
6759
+ readonly attemptedUrl: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
6760
+ readonly error: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6761
+ readonly config: v.UnionSchema<[v.ObjectSchema<{
6762
+ readonly id: v.StringSchema<undefined>;
6763
+ readonly projectId: v.StringSchema<undefined>;
6764
+ readonly projectSlug: v.StringSchema<undefined>;
6765
+ readonly repoId: v.StringSchema<undefined>;
6766
+ readonly repoName: v.StringSchema<undefined>;
6767
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6768
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
6769
+ readonly key: v.StringSchema<undefined>;
6770
+ readonly slug: v.StringSchema<undefined>;
6771
+ readonly name: v.StringSchema<undefined>;
6772
+ readonly canAdd: v.BooleanSchema<undefined>;
6773
+ readonly canDisable: v.BooleanSchema<undefined>;
6774
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
6775
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
6776
+ }, undefined>, v.NullSchema<undefined>], undefined>;
6777
+ readonly stackRoot: v.StringSchema<undefined>;
6778
+ readonly sourceRoot: v.StringSchema<undefined>;
6779
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6780
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
6781
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
6782
+ }, undefined>, v.NullSchema<undefined>], undefined>;
6783
+ readonly sourceUrl: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6784
+ readonly integrations: v.ArraySchema<v.ObjectSchema<{
6785
+ readonly id: v.StringSchema<undefined>;
6786
+ readonly name: v.StringSchema<undefined>;
6787
+ readonly icon: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6788
+ readonly domainName: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6789
+ readonly accountType: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
6790
+ readonly scopes: v.UnionSchema<[v.ArraySchema<v.StringSchema<undefined>, undefined>, v.NullSchema<undefined>], undefined>;
6791
+ readonly outOfDate: v.UnionSchema<[v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>;
6792
+ readonly missingFeatures: v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
6793
+ readonly key: v.StringSchema<undefined>;
6794
+ readonly description: v.StringSchema<undefined>;
6795
+ }, undefined>, undefined>, v.NullSchema<undefined>], undefined>;
6796
+ readonly status: v.StringSchema<undefined>;
6797
+ readonly provider: v.ObjectSchema<{
6798
+ readonly key: v.StringSchema<undefined>;
6799
+ readonly slug: v.StringSchema<undefined>;
6800
+ readonly name: v.StringSchema<undefined>;
6801
+ readonly canAdd: v.BooleanSchema<undefined>;
6802
+ readonly canDisable: v.BooleanSchema<undefined>;
6803
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
6804
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
6805
+ }, undefined>;
6806
+ }, undefined>, undefined>;
6807
+ }, undefined>;
6751
6808
  export declare const vStarSegment: v.ObjectSchema<{
6752
6809
  readonly service_span: v.StringSchema<undefined>;
6753
6810
  readonly project_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -7575,6 +7632,9 @@ export declare const vRetrieveOrganizationAiConversationResponse2: v.ObjectSchem
7575
7632
  readonly cacheWriteTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7576
7633
  readonly errorToolNames: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7577
7634
  readonly reasoningTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7635
+ readonly cacheReadCost: v.NumberSchema<undefined>;
7636
+ readonly cacheWriteCost: v.NumberSchema<undefined>;
7637
+ readonly reasoningCost: v.NumberSchema<undefined>;
7578
7638
  readonly usageByModel: v.ArraySchema<v.ObjectSchema<{
7579
7639
  readonly model: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
7580
7640
  readonly llmCalls: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
@@ -7586,6 +7646,9 @@ export declare const vRetrieveOrganizationAiConversationResponse2: v.ObjectSchem
7586
7646
  readonly reasoningTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7587
7647
  readonly inputCost: v.NumberSchema<undefined>;
7588
7648
  readonly outputCost: v.NumberSchema<undefined>;
7649
+ readonly cacheReadCost: v.NumberSchema<undefined>;
7650
+ readonly cacheWriteCost: v.NumberSchema<undefined>;
7651
+ readonly reasoningCost: v.NumberSchema<undefined>;
7589
7652
  readonly totalCost: v.NumberSchema<undefined>;
7590
7653
  }, undefined>, undefined>;
7591
7654
  }, undefined>, v.NullSchema<undefined>], undefined>;
@@ -16765,6 +16828,75 @@ export declare const vLinkProjectRepositoryResponse: v.ObjectSchema<{
16765
16828
  readonly source: v.StringSchema<undefined>;
16766
16829
  readonly created: v.BooleanSchema<undefined>;
16767
16830
  }, undefined>;
16831
+ export declare const vGetProjectStacktraceLinkData: v.ObjectSchema<{
16832
+ readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
16833
+ readonly path: v.ObjectSchema<{
16834
+ readonly organization_id_or_slug: v.StringSchema<undefined>;
16835
+ readonly project_id_or_slug: v.StringSchema<undefined>;
16836
+ }, undefined>;
16837
+ readonly query: v.ObjectSchema<{
16838
+ readonly file: v.StringSchema<undefined>;
16839
+ readonly platform: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16840
+ readonly absPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16841
+ readonly commitId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16842
+ readonly sdkName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16843
+ readonly module: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16844
+ readonly package: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16845
+ readonly lineNo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16846
+ readonly groupId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16847
+ }, undefined>;
16848
+ }, undefined>;
16849
+ export declare const vGetProjectStacktraceLinkResponse: v.ObjectSchema<{
16850
+ readonly sourcePath: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
16851
+ readonly attemptedUrl: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
16852
+ readonly error: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16853
+ readonly config: v.UnionSchema<[v.ObjectSchema<{
16854
+ readonly id: v.StringSchema<undefined>;
16855
+ readonly projectId: v.StringSchema<undefined>;
16856
+ readonly projectSlug: v.StringSchema<undefined>;
16857
+ readonly repoId: v.StringSchema<undefined>;
16858
+ readonly repoName: v.StringSchema<undefined>;
16859
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16860
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
16861
+ readonly key: v.StringSchema<undefined>;
16862
+ readonly slug: v.StringSchema<undefined>;
16863
+ readonly name: v.StringSchema<undefined>;
16864
+ readonly canAdd: v.BooleanSchema<undefined>;
16865
+ readonly canDisable: v.BooleanSchema<undefined>;
16866
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
16867
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
16868
+ }, undefined>, v.NullSchema<undefined>], undefined>;
16869
+ readonly stackRoot: v.StringSchema<undefined>;
16870
+ readonly sourceRoot: v.StringSchema<undefined>;
16871
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16872
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
16873
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
16874
+ }, undefined>, v.NullSchema<undefined>], undefined>;
16875
+ readonly sourceUrl: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16876
+ readonly integrations: v.ArraySchema<v.ObjectSchema<{
16877
+ readonly id: v.StringSchema<undefined>;
16878
+ readonly name: v.StringSchema<undefined>;
16879
+ readonly icon: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16880
+ readonly domainName: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16881
+ readonly accountType: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
16882
+ readonly scopes: v.UnionSchema<[v.ArraySchema<v.StringSchema<undefined>, undefined>, v.NullSchema<undefined>], undefined>;
16883
+ readonly outOfDate: v.UnionSchema<[v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>;
16884
+ readonly missingFeatures: v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
16885
+ readonly key: v.StringSchema<undefined>;
16886
+ readonly description: v.StringSchema<undefined>;
16887
+ }, undefined>, undefined>, v.NullSchema<undefined>], undefined>;
16888
+ readonly status: v.StringSchema<undefined>;
16889
+ readonly provider: v.ObjectSchema<{
16890
+ readonly key: v.StringSchema<undefined>;
16891
+ readonly slug: v.StringSchema<undefined>;
16892
+ readonly name: v.StringSchema<undefined>;
16893
+ readonly canAdd: v.BooleanSchema<undefined>;
16894
+ readonly canDisable: v.BooleanSchema<undefined>;
16895
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
16896
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
16897
+ }, undefined>;
16898
+ }, undefined>, undefined>;
16899
+ }, undefined>;
16768
16900
  export declare const vListProjectStatsData: v.ObjectSchema<{
16769
16901
  readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
16770
16902
  readonly path: v.ObjectSchema<{
package/dist/valibot.js CHANGED
@@ -7553,6 +7553,9 @@ var vRetrieveOrganizationAiConversationResponse = v.object({
7553
7553
  cacheWriteTokens: v.pipe(v.number(), v.integer()),
7554
7554
  errorToolNames: v.array(v.string()),
7555
7555
  reasoningTokens: v.pipe(v.number(), v.integer()),
7556
+ cacheReadCost: v.number(),
7557
+ cacheWriteCost: v.number(),
7558
+ reasoningCost: v.number(),
7556
7559
  usageByModel: v.array(v.object({
7557
7560
  model: v.union([v.string(), v.null()]),
7558
7561
  llmCalls: v.pipe(v.number(), v.integer()),
@@ -7564,6 +7567,9 @@ var vRetrieveOrganizationAiConversationResponse = v.object({
7564
7567
  reasoningTokens: v.pipe(v.number(), v.integer()),
7565
7568
  inputCost: v.number(),
7566
7569
  outputCost: v.number(),
7570
+ cacheReadCost: v.number(),
7571
+ cacheWriteCost: v.number(),
7572
+ reasoningCost: v.number(),
7567
7573
  totalCost: v.number()
7568
7574
  }))
7569
7575
  }), v.null()])
@@ -8465,6 +8471,57 @@ var vSourceMapDebug = v.object({
8465
8471
  ]),
8466
8472
  has_scraping_data: v.boolean()
8467
8473
  });
8474
+ var vStacktraceLinkResponse = v.object({
8475
+ sourcePath: v.optional(v.union([v.string(), v.null()])),
8476
+ attemptedUrl: v.optional(v.union([v.string(), v.null()])),
8477
+ error: v.union([v.string(), v.null()]),
8478
+ config: v.union([v.object({
8479
+ id: v.string(),
8480
+ projectId: v.string(),
8481
+ projectSlug: v.string(),
8482
+ repoId: v.string(),
8483
+ repoName: v.string(),
8484
+ integrationId: v.union([v.string(), v.null()]),
8485
+ provider: v.union([v.object({
8486
+ key: v.string(),
8487
+ slug: v.string(),
8488
+ name: v.string(),
8489
+ canAdd: v.boolean(),
8490
+ canDisable: v.boolean(),
8491
+ features: v.array(v.string()),
8492
+ aspects: v.record(v.string(), v.unknown())
8493
+ }), v.null()]),
8494
+ stackRoot: v.string(),
8495
+ sourceRoot: v.string(),
8496
+ defaultBranch: v.union([v.string(), v.null()]),
8497
+ automaticallyGenerated: v.boolean(),
8498
+ hasCodeOwner: v.boolean()
8499
+ }), v.null()]),
8500
+ sourceUrl: v.union([v.string(), v.null()]),
8501
+ integrations: v.array(v.object({
8502
+ id: v.string(),
8503
+ name: v.string(),
8504
+ icon: v.union([v.string(), v.null()]),
8505
+ domainName: v.union([v.string(), v.null()]),
8506
+ accountType: v.union([v.string(), v.null()]),
8507
+ scopes: v.union([v.array(v.string()), v.null()]),
8508
+ outOfDate: v.union([v.boolean(), v.null()]),
8509
+ missingFeatures: v.union([v.array(v.object({
8510
+ key: v.string(),
8511
+ description: v.string()
8512
+ })), v.null()]),
8513
+ status: v.string(),
8514
+ provider: v.object({
8515
+ key: v.string(),
8516
+ slug: v.string(),
8517
+ name: v.string(),
8518
+ canAdd: v.boolean(),
8519
+ canDisable: v.boolean(),
8520
+ features: v.array(v.string()),
8521
+ aspects: v.record(v.string(), v.unknown())
8522
+ })
8523
+ }))
8524
+ });
8468
8525
  var vStarSegment = v.object({
8469
8526
  service_span: v.string(),
8470
8527
  project_id: v.pipe(v.number(), v.integer(), v.minValue(1))
@@ -9353,6 +9410,9 @@ var vRetrieveOrganizationAiConversationResponse2 = v.object({
9353
9410
  cacheWriteTokens: v.pipe(v.number(), v.integer()),
9354
9411
  errorToolNames: v.array(v.string()),
9355
9412
  reasoningTokens: v.pipe(v.number(), v.integer()),
9413
+ cacheReadCost: v.number(),
9414
+ cacheWriteCost: v.number(),
9415
+ reasoningCost: v.number(),
9356
9416
  usageByModel: v.array(v.object({
9357
9417
  model: v.union([v.string(), v.null()]),
9358
9418
  llmCalls: v.pipe(v.number(), v.integer()),
@@ -9364,6 +9424,9 @@ var vRetrieveOrganizationAiConversationResponse2 = v.object({
9364
9424
  reasoningTokens: v.pipe(v.number(), v.integer()),
9365
9425
  inputCost: v.number(),
9366
9426
  outputCost: v.number(),
9427
+ cacheReadCost: v.number(),
9428
+ cacheWriteCost: v.number(),
9429
+ reasoningCost: v.number(),
9367
9430
  totalCost: v.number()
9368
9431
  }))
9369
9432
  }), v.null()])
@@ -21081,6 +21144,75 @@ var vLinkProjectRepositoryResponse = v.object({
21081
21144
  source: v.string(),
21082
21145
  created: v.boolean()
21083
21146
  });
21147
+ var vGetProjectStacktraceLinkData = v.object({
21148
+ body: v.optional(v.never()),
21149
+ path: v.object({
21150
+ organization_id_or_slug: v.string(),
21151
+ project_id_or_slug: v.string()
21152
+ }),
21153
+ query: v.object({
21154
+ file: v.string(),
21155
+ platform: v.optional(v.string()),
21156
+ absPath: v.optional(v.string()),
21157
+ commitId: v.optional(v.string()),
21158
+ sdkName: v.optional(v.string()),
21159
+ module: v.optional(v.string()),
21160
+ package: v.optional(v.string()),
21161
+ lineNo: v.optional(v.string()),
21162
+ groupId: v.optional(v.string())
21163
+ })
21164
+ });
21165
+ var vGetProjectStacktraceLinkResponse = v.object({
21166
+ sourcePath: v.optional(v.union([v.string(), v.null()])),
21167
+ attemptedUrl: v.optional(v.union([v.string(), v.null()])),
21168
+ error: v.union([v.string(), v.null()]),
21169
+ config: v.union([v.object({
21170
+ id: v.string(),
21171
+ projectId: v.string(),
21172
+ projectSlug: v.string(),
21173
+ repoId: v.string(),
21174
+ repoName: v.string(),
21175
+ integrationId: v.union([v.string(), v.null()]),
21176
+ provider: v.union([v.object({
21177
+ key: v.string(),
21178
+ slug: v.string(),
21179
+ name: v.string(),
21180
+ canAdd: v.boolean(),
21181
+ canDisable: v.boolean(),
21182
+ features: v.array(v.string()),
21183
+ aspects: v.record(v.string(), v.unknown())
21184
+ }), v.null()]),
21185
+ stackRoot: v.string(),
21186
+ sourceRoot: v.string(),
21187
+ defaultBranch: v.union([v.string(), v.null()]),
21188
+ automaticallyGenerated: v.boolean(),
21189
+ hasCodeOwner: v.boolean()
21190
+ }), v.null()]),
21191
+ sourceUrl: v.union([v.string(), v.null()]),
21192
+ integrations: v.array(v.object({
21193
+ id: v.string(),
21194
+ name: v.string(),
21195
+ icon: v.union([v.string(), v.null()]),
21196
+ domainName: v.union([v.string(), v.null()]),
21197
+ accountType: v.union([v.string(), v.null()]),
21198
+ scopes: v.union([v.array(v.string()), v.null()]),
21199
+ outOfDate: v.union([v.boolean(), v.null()]),
21200
+ missingFeatures: v.union([v.array(v.object({
21201
+ key: v.string(),
21202
+ description: v.string()
21203
+ })), v.null()]),
21204
+ status: v.string(),
21205
+ provider: v.object({
21206
+ key: v.string(),
21207
+ slug: v.string(),
21208
+ name: v.string(),
21209
+ canAdd: v.boolean(),
21210
+ canDisable: v.boolean(),
21211
+ features: v.array(v.string()),
21212
+ aspects: v.record(v.string(), v.unknown())
21213
+ })
21214
+ }))
21215
+ });
21084
21216
  var vListProjectStatsData = v.object({
21085
21217
  body: v.optional(v.never()),
21086
21218
  path: v.object({
@@ -24180,6 +24312,7 @@ export {
24180
24312
  vStartOrganizationIssueAutofixData,
24181
24313
  vStarSegment,
24182
24314
  vStarOrganizationServiceSpanData,
24315
+ vStacktraceLinkResponse,
24183
24316
  vSourceMapDebug,
24184
24317
  vSource,
24185
24318
  vSnapshotImageDetailResponse,
@@ -24523,6 +24656,8 @@ export {
24523
24656
  vGetReplayRecordingSegment,
24524
24657
  vGetReplayDeletionJob,
24525
24658
  vGetReplay,
24659
+ vGetProjectStacktraceLinkResponse,
24660
+ vGetProjectStacktraceLinkData,
24526
24661
  vGetProjectResponse,
24527
24662
  vGetProjectReplayRecordingSegmentResponse,
24528
24663
  vGetProjectReplayRecordingSegmentData,