@bugspotter/sdk 1.1.0 → 2.0.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.
@@ -16,12 +16,11 @@ export declare class AuthenticationError extends Error {
16
16
  constructor(message: string);
17
17
  }
18
18
  /**
19
- * Authentication configuration - API key only
19
+ * Authentication configuration - API key only.
20
+ * The API key is scoped to specific projects server-side.
20
21
  */
21
22
  export type AuthConfig = {
22
- type: 'api-key';
23
23
  apiKey: string;
24
- projectId: string;
25
24
  };
26
25
  export interface RetryConfig {
27
26
  /** Maximum number of retry attempts (default: 3) */
@@ -5,7 +5,6 @@
5
5
  export interface DirectUploadConfig {
6
6
  apiEndpoint: string;
7
7
  apiKey: string;
8
- projectId: string;
9
8
  bugId: string;
10
9
  }
11
10
  export interface UploadProgress {
@@ -97,7 +97,6 @@ class DirectUploader {
97
97
  'x-api-key': this.config.apiKey,
98
98
  },
99
99
  body: JSON.stringify({
100
- projectId: this.config.projectId,
101
100
  bugId: this.config.bugId,
102
101
  fileType,
103
102
  filename,
package/dist/index.esm.js CHANGED
@@ -2944,7 +2944,7 @@ const MAX_RECOMMENDED_REPLAY_DURATION_SECONDS = 30;
2944
2944
  * This file is automatically generated during the build process.
2945
2945
  * To update the version, modify package.json
2946
2946
  */
2947
- const VERSION = '1.1.0';
2947
+ const VERSION = '2.0.0';
2948
2948
 
2949
2949
  /**
2950
2950
  * Configuration Validation Utilities
@@ -2966,15 +2966,9 @@ function validateAuthConfig(context) {
2966
2966
  if (!context.auth) {
2967
2967
  throw new Error('API key authentication is required');
2968
2968
  }
2969
- if (context.auth.type !== 'api-key') {
2970
- throw new Error('API key authentication is required');
2971
- }
2972
2969
  if (!context.auth.apiKey) {
2973
2970
  throw new Error('API key is required in auth configuration');
2974
2971
  }
2975
- if (!context.auth.projectId) {
2976
- throw new Error('Project ID is required in auth configuration');
2977
- }
2978
2972
  }
2979
2973
  /**
2980
2974
  * Validate deduplication configuration
@@ -16960,7 +16954,6 @@ class DirectUploader {
16960
16954
  'x-api-key': this.config.apiKey,
16961
16955
  },
16962
16956
  body: JSON.stringify({
16963
- projectId: this.config.projectId,
16964
16957
  bugId: this.config.bugId,
16965
16958
  fileType,
16966
16959
  filename,