@rustrak/client 0.21.0 → 0.21.1

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/README.md CHANGED
@@ -446,6 +446,8 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
446
446
 
447
447
  | Method | Endpoint | Description |
448
448
  |---|---|---|
449
+ | `debugFiles.assemble({ path, body })` | `POST /api/0/projects/{org_slug}/{project_slug}/files/difs/assemble/` | Assemble uploaded chunks into debug information files (ProGuard mappings, JVM source bundles). |
450
+ | `debugFiles.upload({ path, body })` | `POST /api/0/projects/{org_slug}/{project_slug}/files/dsyms/` | Upload a zip of debug information files (the path `sentry-cli upload-proguard` takes). |
449
451
  | `sourceMaps.artifactBundleAssemble({ path, body })` | `POST /api/0/organizations/{org_slug}/artifactbundle/assemble/` | |
450
452
  | `sourceMaps.chunkUpload({ path, body })` | `POST /api/0/organizations/{org_slug}/chunk-upload/` | |
451
453
  | `sourceMaps.chunkUploadCapability({ path })` | `GET /api/0/organizations/{org_slug}/chunk-upload/` | |
@@ -344,6 +344,63 @@ var SourceMaps = class extends HeyApiClient {
344
344
  });
345
345
  }
346
346
  };
347
+ var DebugFiles = class extends HeyApiClient {
348
+ /**
349
+ * Assemble uploaded chunks into debug information files (ProGuard mappings, JVM source bundles).
350
+ *
351
+ * Sentry's `DifAssembleEndpoint`: the body maps each file's SHA-1 to its
352
+ * name, chunks and optional debug ID, and the answer maps it to its state.
353
+ */
354
+ assemble(options) {
355
+ return (options.client ?? this.client).post({
356
+ requestValidator: async (data) => await zod.object({
357
+ body: require_zod_gen.zDebugFilesAssembleBody,
358
+ path: require_zod_gen.zDebugFilesAssemblePath,
359
+ query: zod.never().optional()
360
+ }).parseAsync(data),
361
+ responseValidator: async (data) => await require_zod_gen.zDebugFilesAssembleResponse.parseAsync(data),
362
+ security: [{
363
+ scheme: "bearer",
364
+ type: "http"
365
+ }],
366
+ url: "/api/0/projects/{org_slug}/{project_slug}/files/difs/assemble/",
367
+ ...options,
368
+ headers: {
369
+ "Content-Type": "application/json",
370
+ ...options.headers
371
+ }
372
+ });
373
+ }
374
+ /**
375
+ * Upload a zip of debug information files (the path `sentry-cli upload-proguard` takes).
376
+ *
377
+ * Sentry's `DebugFilesEndpoint.post` processes the zip in the request.
378
+ * Here each file goes through the assembly worker instead, the same as a
379
+ * chunked upload, because building a ProGuard cache can take gigabytes.
380
+ * Only ProGuard mappings are recognised; other entries are skipped.
381
+ */
382
+ upload(options) {
383
+ return (options.client ?? this.client).post({
384
+ ...require_bodySerializer_gen.formDataBodySerializer,
385
+ requestValidator: async (data) => await zod.object({
386
+ body: require_zod_gen.zDebugFilesUploadBody,
387
+ path: require_zod_gen.zDebugFilesUploadPath,
388
+ query: zod.never().optional()
389
+ }).parseAsync(data),
390
+ responseValidator: async (data) => await require_zod_gen.zDebugFilesUploadResponse.parseAsync(data),
391
+ security: [{
392
+ scheme: "bearer",
393
+ type: "http"
394
+ }],
395
+ url: "/api/0/projects/{org_slug}/{project_slug}/files/dsyms/",
396
+ ...options,
397
+ headers: {
398
+ "Content-Type": null,
399
+ ...options.headers
400
+ }
401
+ });
402
+ }
403
+ };
347
404
  var Releases = class extends HeyApiClient {
348
405
  /**
349
406
  * POST /api/0/projects/{org_slug}/{project_slug}/releases/
@@ -3355,6 +3412,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3355
3412
  get sourceMaps() {
3356
3413
  return this._sourceMaps ??= new SourceMaps({ client: this.client });
3357
3414
  }
3415
+ _debugFiles;
3416
+ get debugFiles() {
3417
+ return this._debugFiles ??= new DebugFiles({ client: this.client });
3418
+ }
3358
3419
  _releases;
3359
3420
  get releases() {
3360
3421
  return this._releases ??= new Releases({ client: this.client });
@@ -3469,6 +3530,7 @@ exports.Agents = Agents;
3469
3530
  exports.AlertChannels = AlertChannels;
3470
3531
  exports.AlertRules = AlertRules;
3471
3532
  exports.Auth = Auth;
3533
+ exports.DebugFiles = DebugFiles;
3472
3534
  exports.Environments = Environments;
3473
3535
  exports.Events = Events;
3474
3536
  exports.Feedback = Feedback;