@mappa-ai/mappa-node 1.2.1 → 1.2.2

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/index.d.cts CHANGED
@@ -260,6 +260,18 @@ type ReportOutputEntry<OutputType extends ReportOutputType, Template extends Rep
260
260
  };
261
261
  type ReportOutputForType<OutputType extends ReportOutputType> = ReportOutputEntry<OutputType, "sales_playbook"> | ReportOutputEntry<OutputType, "general_report"> | ReportOutputEntry<OutputType, "hiring_report"> | ReportOutputEntry<OutputType, "profile_alignment">;
262
262
  type ReportOutput = ReportOutputForType<"markdown"> | ReportOutputForType<"json"> | ReportOutputForType<"pdf"> | ReportOutputForType<"url">;
263
+ /**
264
+ * Report output configuration constrained to a specific output type.
265
+ * When T is a specific literal like "markdown", only markdown output configs are allowed.
266
+ * When T is the full union (ReportOutputType), all output configs are allowed.
267
+ *
268
+ * @example
269
+ * ```typescript
270
+ * type MarkdownOutput = ReportOutputFor<"markdown">; // Only markdown configs
271
+ * type AnyOutput = ReportOutputFor<ReportOutputType>; // All configs (same as ReportOutput)
272
+ * ```
273
+ */
274
+ type ReportOutputFor<T extends ReportOutputType> = T extends "markdown" ? ReportOutputForType<"markdown"> : T extends "json" ? ReportOutputForType<"json"> : T extends "pdf" ? ReportOutputForType<"pdf"> : T extends "url" ? ReportOutputForType<"url"> : ReportOutput;
263
275
  type TargetStrategy = "dominant" | "timerange" | "entity_id" | "magic_hint";
264
276
  type TargetOnMiss = "fallback_dominant" | "error";
265
277
  type TargetTimeRange = {
@@ -378,7 +390,7 @@ type WebhookConfig = {
378
390
  url: string;
379
391
  headers?: Record<string, string>;
380
392
  };
381
- type ReportCreateJobRequest = {
393
+ type ReportCreateJobRequest<T extends ReportOutputType = ReportOutputType> = {
382
394
  subject?: Subject;
383
395
  /**
384
396
  * Reference to already-uploaded media.
@@ -387,7 +399,7 @@ type ReportCreateJobRequest = {
387
399
  * use helper methods like `reports.createJobFromUrl()` / `reports.createJobFromFile()`.
388
400
  */
389
401
  media: MediaIdRef;
390
- output: ReportOutput;
402
+ output: ReportOutputFor<T>;
391
403
  /**
392
404
  * Select the target entity for analysis.
393
405
  *
@@ -468,13 +480,25 @@ type UrlReport = ReportBase & {
468
480
  reportUrl: string;
469
481
  };
470
482
  type Report = MarkdownReport | JsonReport | PdfReport | UrlReport;
471
- type ReportJobReceipt = {
483
+ /**
484
+ * Maps an output type to its corresponding report type.
485
+ * Used for type-safe inference in generate methods.
486
+ *
487
+ * @example
488
+ * ```typescript
489
+ * type R = ReportForOutputType<"markdown">; // MarkdownReport
490
+ * type R = ReportForOutputType<"json">; // JsonReport
491
+ * type R = ReportForOutputType<ReportOutputType>; // Report (union)
492
+ * ```
493
+ */
494
+ type ReportForOutputType<T extends ReportOutputType> = T extends "markdown" ? MarkdownReport : T extends "json" ? JsonReport : T extends "pdf" ? PdfReport : T extends "url" ? UrlReport : Report;
495
+ type ReportJobReceipt<T extends ReportOutputType = ReportOutputType> = {
472
496
  jobId: string;
473
497
  status: "queued" | "running";
474
498
  stage?: JobStage;
475
499
  estimatedWaitSec?: number;
476
500
  requestId?: string;
477
- handle?: ReportRunHandle;
501
+ handle?: ReportRunHandle<T>;
478
502
  };
479
503
  type FeedbackReceipt = {
480
504
  id: string;
@@ -594,16 +618,16 @@ type WaitOptions = {
594
618
  */
595
619
  signal?: AbortSignal;
596
620
  };
597
- type ReportRunHandle = {
621
+ type ReportRunHandle<T extends ReportOutputType = ReportOutputType> = {
598
622
  jobId: string;
599
623
  stream(opts?: {
600
624
  signal?: AbortSignal;
601
625
  onEvent?: (e: JobEvent) => void;
602
626
  }): AsyncIterable<JobEvent>;
603
- wait(opts?: WaitOptions): Promise<Report>;
627
+ wait(opts?: WaitOptions): Promise<ReportForOutputType<T>>;
604
628
  cancel(): Promise<Job>;
605
629
  job(): Promise<Job>;
606
- report(): Promise<Report | null>;
630
+ report(): Promise<ReportForOutputType<T> | null>;
607
631
  };
608
632
  /**
609
633
  * Type guard for MarkdownReport.
@@ -1102,7 +1126,7 @@ declare class JobsResource {
1102
1126
  * - `signal` (from {@link UploadRequest}) is applied to the upload request.
1103
1127
  * Job creation only runs after a successful upload.
1104
1128
  */
1105
- type ReportCreateJobFromFileRequest = Omit<ReportCreateJobRequest, "media" | "idempotencyKey" | "requestId"> & Omit<UploadRequest, "filename"> & {
1129
+ type ReportCreateJobFromFileRequest<T extends ReportOutputType = ReportOutputType> = Omit<ReportCreateJobRequest<T>, "media" | "idempotencyKey" | "requestId"> & Omit<UploadRequest, "filename"> & {
1106
1130
  /**
1107
1131
  * Optional filename to attach to the upload.
1108
1132
  *
@@ -1130,7 +1154,7 @@ type ReportCreateJobFromFileRequest = Omit<ReportCreateJobRequest, "media" | "id
1130
1154
  * - `idempotencyKey` applies to the *whole* download + upload + create-job sequence.
1131
1155
  * - `requestId` is forwarded to both upload and job creation calls.
1132
1156
  */
1133
- type ReportCreateJobFromUrlRequest = Omit<ReportCreateJobRequest, "media" | "idempotencyKey" | "requestId"> & {
1157
+ type ReportCreateJobFromUrlRequest<T extends ReportOutputType = ReportOutputType> = Omit<ReportCreateJobRequest<T>, "media" | "idempotencyKey" | "requestId"> & {
1134
1158
  url: string;
1135
1159
  contentType?: string;
1136
1160
  filename?: string;
@@ -1176,14 +1200,14 @@ declare class ReportsResource {
1176
1200
  * - wait for completion and fetch the final report
1177
1201
  * - cancel the job, or fetch job/report metadata
1178
1202
  */
1179
- createJob(req: ReportCreateJobRequest): Promise<ReportJobReceipt>;
1203
+ createJob<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobRequest<T>): Promise<ReportJobReceipt<T>>;
1180
1204
  /**
1181
1205
  * Upload a file and create a report job in one call.
1182
1206
  *
1183
1207
  * Keeps `createJob()` strict about `media: { mediaId }` while offering a
1184
1208
  * convenient helper when you start from raw bytes.
1185
1209
  */
1186
- createJobFromFile(req: ReportCreateJobFromFileRequest): Promise<ReportJobReceipt>;
1210
+ createJobFromFile<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromFileRequest<T>): Promise<ReportJobReceipt<T>>;
1187
1211
  /**
1188
1212
  * Download a file from a URL, upload it, and create a report job.
1189
1213
  *
@@ -1200,7 +1224,7 @@ declare class ReportsResource {
1200
1224
  * - Only allows `http:` and `https:` URLs.
1201
1225
  * - Requires a resolvable `contentType` (from `req.contentType` or response header).
1202
1226
  */
1203
- createJobFromUrl(req: ReportCreateJobFromUrlRequest): Promise<ReportJobReceipt>;
1227
+ createJobFromUrl<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromUrlRequest<T>): Promise<ReportJobReceipt<T>>;
1204
1228
  get(reportId: string, opts?: {
1205
1229
  requestId?: string;
1206
1230
  signal?: AbortSignal;
@@ -1213,24 +1237,24 @@ declare class ReportsResource {
1213
1237
  * Convenience wrapper: createJob + wait + get
1214
1238
  * Use for scripts; for production prefer createJob + webhooks/stream.
1215
1239
  */
1216
- generate(req: ReportCreateJobRequest, opts?: {
1240
+ generate<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobRequest<T>, opts?: {
1217
1241
  wait?: WaitOptions;
1218
- }): Promise<Report>;
1242
+ }): Promise<ReportForOutputType<T>>;
1219
1243
  /**
1220
1244
  * Convenience wrapper: createJobFromFile + wait + get.
1221
1245
  * Use for scripts; for production prefer createJobFromFile + webhooks/stream.
1222
1246
  */
1223
- generateFromFile(req: ReportCreateJobFromFileRequest, opts?: {
1247
+ generateFromFile<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromFileRequest<T>, opts?: {
1224
1248
  wait?: WaitOptions;
1225
- }): Promise<Report>;
1249
+ }): Promise<ReportForOutputType<T>>;
1226
1250
  /**
1227
1251
  * Convenience wrapper: createJobFromUrl + wait + get.
1228
1252
  * Use for scripts; for production prefer createJobFromUrl + webhooks/stream.
1229
1253
  */
1230
- generateFromUrl(req: ReportCreateJobFromUrlRequest, opts?: {
1254
+ generateFromUrl<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromUrlRequest<T>, opts?: {
1231
1255
  wait?: WaitOptions;
1232
- }): Promise<Report>;
1233
- makeHandle(jobId: string): ReportRunHandle;
1256
+ }): Promise<ReportForOutputType<T>>;
1257
+ makeHandle<T extends ReportOutputType = ReportOutputType>(jobId: string): ReportRunHandle<T>;
1234
1258
  private defaultIdempotencyKey;
1235
1259
  private normalizeJobRequest;
1236
1260
  }
@@ -1350,5 +1374,5 @@ declare function isMappaError(err: unknown): err is MappaError;
1350
1374
  */
1351
1375
  declare function isInsufficientCreditsError(err: unknown): err is InsufficientCreditsError;
1352
1376
  //#endregion
1353
- export { ApiError, AuthError, CreditBalance, CreditTransaction, CreditTransactionType, CreditUsage, CursorPage, CursorPaginationParams, Entity, EntityTagsResult, FeedbackReceipt, FileDeleteReceipt, InsufficientCreditsError, Job, JobCanceledError, JobCreditReservation, JobEvent, JobFailedError, JobStage, JobStatus, JsonReport, JsonValue, ListEntitiesOptions, ListEntitiesResponse, Mappa, MappaError, MarkdownReport, MediaFile, MediaIdRef, MediaObject, MediaProcessingStatus, MediaRef, MediaRetention, OffsetPage, OffsetPaginationParams, PdfReport, RateLimitError, Report, ReportBase, ReportCreateJobRequest, ReportJobReceipt, ReportOutput, ReportOutputType, ReportRunHandle, ReportTemplateId, ReportTemplateParamsMap, RetentionLockResult, Subject, TargetDominant, TargetEntityId, TargetFor, TargetMagicHint, TargetOnMiss, TargetSelector, TargetStrategy, TargetStrategyMap, TargetTimeRange, TargetTimeRangeStrategy, UrlReport, Usage, ValidationError, WaitOptions, WebhookConfig, hasEntity, isInsufficientCreditsError, isJsonReport, isMappaError, isMarkdownReport, isPdfReport, isUrlReport };
1377
+ export { ApiError, AuthError, CreditBalance, CreditTransaction, CreditTransactionType, CreditUsage, CursorPage, CursorPaginationParams, Entity, EntityTagsResult, FeedbackReceipt, FileDeleteReceipt, InsufficientCreditsError, Job, JobCanceledError, JobCreditReservation, JobEvent, JobFailedError, JobStage, JobStatus, JsonReport, JsonValue, ListEntitiesOptions, ListEntitiesResponse, Mappa, MappaError, MarkdownReport, MediaFile, MediaIdRef, MediaObject, MediaProcessingStatus, MediaRef, MediaRetention, OffsetPage, OffsetPaginationParams, PdfReport, RateLimitError, Report, ReportBase, ReportCreateJobRequest, ReportForOutputType, ReportJobReceipt, ReportOutput, ReportOutputFor, ReportOutputType, ReportRunHandle, ReportTemplateId, ReportTemplateParamsMap, RetentionLockResult, Subject, TargetDominant, TargetEntityId, TargetFor, TargetMagicHint, TargetOnMiss, TargetSelector, TargetStrategy, TargetStrategyMap, TargetTimeRange, TargetTimeRangeStrategy, UrlReport, Usage, ValidationError, WaitOptions, WebhookConfig, hasEntity, isInsufficientCreditsError, isJsonReport, isMappaError, isMarkdownReport, isPdfReport, isUrlReport };
1354
1378
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -260,6 +260,18 @@ type ReportOutputEntry<OutputType extends ReportOutputType, Template extends Rep
260
260
  };
261
261
  type ReportOutputForType<OutputType extends ReportOutputType> = ReportOutputEntry<OutputType, "sales_playbook"> | ReportOutputEntry<OutputType, "general_report"> | ReportOutputEntry<OutputType, "hiring_report"> | ReportOutputEntry<OutputType, "profile_alignment">;
262
262
  type ReportOutput = ReportOutputForType<"markdown"> | ReportOutputForType<"json"> | ReportOutputForType<"pdf"> | ReportOutputForType<"url">;
263
+ /**
264
+ * Report output configuration constrained to a specific output type.
265
+ * When T is a specific literal like "markdown", only markdown output configs are allowed.
266
+ * When T is the full union (ReportOutputType), all output configs are allowed.
267
+ *
268
+ * @example
269
+ * ```typescript
270
+ * type MarkdownOutput = ReportOutputFor<"markdown">; // Only markdown configs
271
+ * type AnyOutput = ReportOutputFor<ReportOutputType>; // All configs (same as ReportOutput)
272
+ * ```
273
+ */
274
+ type ReportOutputFor<T extends ReportOutputType> = T extends "markdown" ? ReportOutputForType<"markdown"> : T extends "json" ? ReportOutputForType<"json"> : T extends "pdf" ? ReportOutputForType<"pdf"> : T extends "url" ? ReportOutputForType<"url"> : ReportOutput;
263
275
  type TargetStrategy = "dominant" | "timerange" | "entity_id" | "magic_hint";
264
276
  type TargetOnMiss = "fallback_dominant" | "error";
265
277
  type TargetTimeRange = {
@@ -378,7 +390,7 @@ type WebhookConfig = {
378
390
  url: string;
379
391
  headers?: Record<string, string>;
380
392
  };
381
- type ReportCreateJobRequest = {
393
+ type ReportCreateJobRequest<T extends ReportOutputType = ReportOutputType> = {
382
394
  subject?: Subject;
383
395
  /**
384
396
  * Reference to already-uploaded media.
@@ -387,7 +399,7 @@ type ReportCreateJobRequest = {
387
399
  * use helper methods like `reports.createJobFromUrl()` / `reports.createJobFromFile()`.
388
400
  */
389
401
  media: MediaIdRef;
390
- output: ReportOutput;
402
+ output: ReportOutputFor<T>;
391
403
  /**
392
404
  * Select the target entity for analysis.
393
405
  *
@@ -468,13 +480,25 @@ type UrlReport = ReportBase & {
468
480
  reportUrl: string;
469
481
  };
470
482
  type Report = MarkdownReport | JsonReport | PdfReport | UrlReport;
471
- type ReportJobReceipt = {
483
+ /**
484
+ * Maps an output type to its corresponding report type.
485
+ * Used for type-safe inference in generate methods.
486
+ *
487
+ * @example
488
+ * ```typescript
489
+ * type R = ReportForOutputType<"markdown">; // MarkdownReport
490
+ * type R = ReportForOutputType<"json">; // JsonReport
491
+ * type R = ReportForOutputType<ReportOutputType>; // Report (union)
492
+ * ```
493
+ */
494
+ type ReportForOutputType<T extends ReportOutputType> = T extends "markdown" ? MarkdownReport : T extends "json" ? JsonReport : T extends "pdf" ? PdfReport : T extends "url" ? UrlReport : Report;
495
+ type ReportJobReceipt<T extends ReportOutputType = ReportOutputType> = {
472
496
  jobId: string;
473
497
  status: "queued" | "running";
474
498
  stage?: JobStage;
475
499
  estimatedWaitSec?: number;
476
500
  requestId?: string;
477
- handle?: ReportRunHandle;
501
+ handle?: ReportRunHandle<T>;
478
502
  };
479
503
  type FeedbackReceipt = {
480
504
  id: string;
@@ -594,16 +618,16 @@ type WaitOptions = {
594
618
  */
595
619
  signal?: AbortSignal;
596
620
  };
597
- type ReportRunHandle = {
621
+ type ReportRunHandle<T extends ReportOutputType = ReportOutputType> = {
598
622
  jobId: string;
599
623
  stream(opts?: {
600
624
  signal?: AbortSignal;
601
625
  onEvent?: (e: JobEvent) => void;
602
626
  }): AsyncIterable<JobEvent>;
603
- wait(opts?: WaitOptions): Promise<Report>;
627
+ wait(opts?: WaitOptions): Promise<ReportForOutputType<T>>;
604
628
  cancel(): Promise<Job>;
605
629
  job(): Promise<Job>;
606
- report(): Promise<Report | null>;
630
+ report(): Promise<ReportForOutputType<T> | null>;
607
631
  };
608
632
  /**
609
633
  * Type guard for MarkdownReport.
@@ -1102,7 +1126,7 @@ declare class JobsResource {
1102
1126
  * - `signal` (from {@link UploadRequest}) is applied to the upload request.
1103
1127
  * Job creation only runs after a successful upload.
1104
1128
  */
1105
- type ReportCreateJobFromFileRequest = Omit<ReportCreateJobRequest, "media" | "idempotencyKey" | "requestId"> & Omit<UploadRequest, "filename"> & {
1129
+ type ReportCreateJobFromFileRequest<T extends ReportOutputType = ReportOutputType> = Omit<ReportCreateJobRequest<T>, "media" | "idempotencyKey" | "requestId"> & Omit<UploadRequest, "filename"> & {
1106
1130
  /**
1107
1131
  * Optional filename to attach to the upload.
1108
1132
  *
@@ -1130,7 +1154,7 @@ type ReportCreateJobFromFileRequest = Omit<ReportCreateJobRequest, "media" | "id
1130
1154
  * - `idempotencyKey` applies to the *whole* download + upload + create-job sequence.
1131
1155
  * - `requestId` is forwarded to both upload and job creation calls.
1132
1156
  */
1133
- type ReportCreateJobFromUrlRequest = Omit<ReportCreateJobRequest, "media" | "idempotencyKey" | "requestId"> & {
1157
+ type ReportCreateJobFromUrlRequest<T extends ReportOutputType = ReportOutputType> = Omit<ReportCreateJobRequest<T>, "media" | "idempotencyKey" | "requestId"> & {
1134
1158
  url: string;
1135
1159
  contentType?: string;
1136
1160
  filename?: string;
@@ -1176,14 +1200,14 @@ declare class ReportsResource {
1176
1200
  * - wait for completion and fetch the final report
1177
1201
  * - cancel the job, or fetch job/report metadata
1178
1202
  */
1179
- createJob(req: ReportCreateJobRequest): Promise<ReportJobReceipt>;
1203
+ createJob<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobRequest<T>): Promise<ReportJobReceipt<T>>;
1180
1204
  /**
1181
1205
  * Upload a file and create a report job in one call.
1182
1206
  *
1183
1207
  * Keeps `createJob()` strict about `media: { mediaId }` while offering a
1184
1208
  * convenient helper when you start from raw bytes.
1185
1209
  */
1186
- createJobFromFile(req: ReportCreateJobFromFileRequest): Promise<ReportJobReceipt>;
1210
+ createJobFromFile<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromFileRequest<T>): Promise<ReportJobReceipt<T>>;
1187
1211
  /**
1188
1212
  * Download a file from a URL, upload it, and create a report job.
1189
1213
  *
@@ -1200,7 +1224,7 @@ declare class ReportsResource {
1200
1224
  * - Only allows `http:` and `https:` URLs.
1201
1225
  * - Requires a resolvable `contentType` (from `req.contentType` or response header).
1202
1226
  */
1203
- createJobFromUrl(req: ReportCreateJobFromUrlRequest): Promise<ReportJobReceipt>;
1227
+ createJobFromUrl<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromUrlRequest<T>): Promise<ReportJobReceipt<T>>;
1204
1228
  get(reportId: string, opts?: {
1205
1229
  requestId?: string;
1206
1230
  signal?: AbortSignal;
@@ -1213,24 +1237,24 @@ declare class ReportsResource {
1213
1237
  * Convenience wrapper: createJob + wait + get
1214
1238
  * Use for scripts; for production prefer createJob + webhooks/stream.
1215
1239
  */
1216
- generate(req: ReportCreateJobRequest, opts?: {
1240
+ generate<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobRequest<T>, opts?: {
1217
1241
  wait?: WaitOptions;
1218
- }): Promise<Report>;
1242
+ }): Promise<ReportForOutputType<T>>;
1219
1243
  /**
1220
1244
  * Convenience wrapper: createJobFromFile + wait + get.
1221
1245
  * Use for scripts; for production prefer createJobFromFile + webhooks/stream.
1222
1246
  */
1223
- generateFromFile(req: ReportCreateJobFromFileRequest, opts?: {
1247
+ generateFromFile<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromFileRequest<T>, opts?: {
1224
1248
  wait?: WaitOptions;
1225
- }): Promise<Report>;
1249
+ }): Promise<ReportForOutputType<T>>;
1226
1250
  /**
1227
1251
  * Convenience wrapper: createJobFromUrl + wait + get.
1228
1252
  * Use for scripts; for production prefer createJobFromUrl + webhooks/stream.
1229
1253
  */
1230
- generateFromUrl(req: ReportCreateJobFromUrlRequest, opts?: {
1254
+ generateFromUrl<T extends ReportOutputType = ReportOutputType>(req: ReportCreateJobFromUrlRequest<T>, opts?: {
1231
1255
  wait?: WaitOptions;
1232
- }): Promise<Report>;
1233
- makeHandle(jobId: string): ReportRunHandle;
1256
+ }): Promise<ReportForOutputType<T>>;
1257
+ makeHandle<T extends ReportOutputType = ReportOutputType>(jobId: string): ReportRunHandle<T>;
1234
1258
  private defaultIdempotencyKey;
1235
1259
  private normalizeJobRequest;
1236
1260
  }
@@ -1350,5 +1374,5 @@ declare function isMappaError(err: unknown): err is MappaError;
1350
1374
  */
1351
1375
  declare function isInsufficientCreditsError(err: unknown): err is InsufficientCreditsError;
1352
1376
  //#endregion
1353
- export { ApiError, AuthError, CreditBalance, CreditTransaction, CreditTransactionType, CreditUsage, CursorPage, CursorPaginationParams, Entity, EntityTagsResult, FeedbackReceipt, FileDeleteReceipt, InsufficientCreditsError, Job, JobCanceledError, JobCreditReservation, JobEvent, JobFailedError, JobStage, JobStatus, JsonReport, JsonValue, ListEntitiesOptions, ListEntitiesResponse, Mappa, MappaError, MarkdownReport, MediaFile, MediaIdRef, MediaObject, MediaProcessingStatus, MediaRef, MediaRetention, OffsetPage, OffsetPaginationParams, PdfReport, RateLimitError, Report, ReportBase, ReportCreateJobRequest, ReportJobReceipt, ReportOutput, ReportOutputType, ReportRunHandle, ReportTemplateId, ReportTemplateParamsMap, RetentionLockResult, Subject, TargetDominant, TargetEntityId, TargetFor, TargetMagicHint, TargetOnMiss, TargetSelector, TargetStrategy, TargetStrategyMap, TargetTimeRange, TargetTimeRangeStrategy, UrlReport, Usage, ValidationError, WaitOptions, WebhookConfig, hasEntity, isInsufficientCreditsError, isJsonReport, isMappaError, isMarkdownReport, isPdfReport, isUrlReport };
1377
+ export { ApiError, AuthError, CreditBalance, CreditTransaction, CreditTransactionType, CreditUsage, CursorPage, CursorPaginationParams, Entity, EntityTagsResult, FeedbackReceipt, FileDeleteReceipt, InsufficientCreditsError, Job, JobCanceledError, JobCreditReservation, JobEvent, JobFailedError, JobStage, JobStatus, JsonReport, JsonValue, ListEntitiesOptions, ListEntitiesResponse, Mappa, MappaError, MarkdownReport, MediaFile, MediaIdRef, MediaObject, MediaProcessingStatus, MediaRef, MediaRetention, OffsetPage, OffsetPaginationParams, PdfReport, RateLimitError, Report, ReportBase, ReportCreateJobRequest, ReportForOutputType, ReportJobReceipt, ReportOutput, ReportOutputFor, ReportOutputType, ReportRunHandle, ReportTemplateId, ReportTemplateParamsMap, RetentionLockResult, Subject, TargetDominant, TargetEntityId, TargetFor, TargetMagicHint, TargetOnMiss, TargetSelector, TargetStrategy, TargetStrategyMap, TargetTimeRange, TargetTimeRangeStrategy, UrlReport, Usage, ValidationError, WaitOptions, WebhookConfig, hasEntity, isInsufficientCreditsError, isJsonReport, isMappaError, isMarkdownReport, isPdfReport, isUrlReport };
1354
1378
  //# sourceMappingURL=index.d.mts.map