@pierre/storage 1.0.1 → 1.0.3

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
@@ -324,6 +324,8 @@ declare const diffFileRawSchema: z.ZodObject<{
324
324
  raw: z.ZodString;
325
325
  bytes: z.ZodNumber;
326
326
  is_eof: z.ZodBoolean;
327
+ additions: z.ZodOptional<z.ZodNumber>;
328
+ deletions: z.ZodOptional<z.ZodNumber>;
327
329
  }, "strip", z.ZodTypeAny, {
328
330
  path: string;
329
331
  state: string;
@@ -331,6 +333,8 @@ declare const diffFileRawSchema: z.ZodObject<{
331
333
  bytes: number;
332
334
  is_eof: boolean;
333
335
  old_path?: string | null | undefined;
336
+ additions?: number | undefined;
337
+ deletions?: number | undefined;
334
338
  }, {
335
339
  path: string;
336
340
  state: string;
@@ -338,6 +342,8 @@ declare const diffFileRawSchema: z.ZodObject<{
338
342
  bytes: number;
339
343
  is_eof: boolean;
340
344
  old_path?: string | null | undefined;
345
+ additions?: number | undefined;
346
+ deletions?: number | undefined;
341
347
  }>;
342
348
  declare const filteredFileRawSchema: z.ZodObject<{
343
349
  path: z.ZodString;
@@ -367,14 +373,14 @@ declare const branchDiffResponseSchema: z.ZodObject<{
367
373
  deletions: z.ZodNumber;
368
374
  changes: z.ZodNumber;
369
375
  }, "strip", z.ZodTypeAny, {
370
- files: number;
371
376
  additions: number;
372
377
  deletions: number;
378
+ files: number;
373
379
  changes: number;
374
380
  }, {
375
- files: number;
376
381
  additions: number;
377
382
  deletions: number;
383
+ files: number;
378
384
  changes: number;
379
385
  }>;
380
386
  files: z.ZodArray<z.ZodObject<{
@@ -384,6 +390,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
384
390
  raw: z.ZodString;
385
391
  bytes: z.ZodNumber;
386
392
  is_eof: z.ZodBoolean;
393
+ additions: z.ZodOptional<z.ZodNumber>;
394
+ deletions: z.ZodOptional<z.ZodNumber>;
387
395
  }, "strip", z.ZodTypeAny, {
388
396
  path: string;
389
397
  state: string;
@@ -391,6 +399,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
391
399
  bytes: number;
392
400
  is_eof: boolean;
393
401
  old_path?: string | null | undefined;
402
+ additions?: number | undefined;
403
+ deletions?: number | undefined;
394
404
  }, {
395
405
  path: string;
396
406
  state: string;
@@ -398,6 +408,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
398
408
  bytes: number;
399
409
  is_eof: boolean;
400
410
  old_path?: string | null | undefined;
411
+ additions?: number | undefined;
412
+ deletions?: number | undefined;
401
413
  }>, "many">;
402
414
  filtered_files: z.ZodArray<z.ZodObject<{
403
415
  path: z.ZodString;
@@ -428,11 +440,13 @@ declare const branchDiffResponseSchema: z.ZodObject<{
428
440
  bytes: number;
429
441
  is_eof: boolean;
430
442
  old_path?: string | null | undefined;
443
+ additions?: number | undefined;
444
+ deletions?: number | undefined;
431
445
  }[];
432
446
  stats: {
433
- files: number;
434
447
  additions: number;
435
448
  deletions: number;
449
+ files: number;
436
450
  changes: number;
437
451
  };
438
452
  filtered_files: {
@@ -452,11 +466,13 @@ declare const branchDiffResponseSchema: z.ZodObject<{
452
466
  bytes: number;
453
467
  is_eof: boolean;
454
468
  old_path?: string | null | undefined;
469
+ additions?: number | undefined;
470
+ deletions?: number | undefined;
455
471
  }[];
456
472
  stats: {
457
- files: number;
458
473
  additions: number;
459
474
  deletions: number;
475
+ files: number;
460
476
  changes: number;
461
477
  };
462
478
  filtered_files: {
@@ -475,14 +491,14 @@ declare const commitDiffResponseSchema: z.ZodObject<{
475
491
  deletions: z.ZodNumber;
476
492
  changes: z.ZodNumber;
477
493
  }, "strip", z.ZodTypeAny, {
478
- files: number;
479
494
  additions: number;
480
495
  deletions: number;
496
+ files: number;
481
497
  changes: number;
482
498
  }, {
483
- files: number;
484
499
  additions: number;
485
500
  deletions: number;
501
+ files: number;
486
502
  changes: number;
487
503
  }>;
488
504
  files: z.ZodArray<z.ZodObject<{
@@ -492,6 +508,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
492
508
  raw: z.ZodString;
493
509
  bytes: z.ZodNumber;
494
510
  is_eof: z.ZodBoolean;
511
+ additions: z.ZodOptional<z.ZodNumber>;
512
+ deletions: z.ZodOptional<z.ZodNumber>;
495
513
  }, "strip", z.ZodTypeAny, {
496
514
  path: string;
497
515
  state: string;
@@ -499,6 +517,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
499
517
  bytes: number;
500
518
  is_eof: boolean;
501
519
  old_path?: string | null | undefined;
520
+ additions?: number | undefined;
521
+ deletions?: number | undefined;
502
522
  }, {
503
523
  path: string;
504
524
  state: string;
@@ -506,6 +526,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
506
526
  bytes: number;
507
527
  is_eof: boolean;
508
528
  old_path?: string | null | undefined;
529
+ additions?: number | undefined;
530
+ deletions?: number | undefined;
509
531
  }>, "many">;
510
532
  filtered_files: z.ZodArray<z.ZodObject<{
511
533
  path: z.ZodString;
@@ -535,11 +557,13 @@ declare const commitDiffResponseSchema: z.ZodObject<{
535
557
  bytes: number;
536
558
  is_eof: boolean;
537
559
  old_path?: string | null | undefined;
560
+ additions?: number | undefined;
561
+ deletions?: number | undefined;
538
562
  }[];
539
563
  stats: {
540
- files: number;
541
564
  additions: number;
542
565
  deletions: number;
566
+ files: number;
543
567
  changes: number;
544
568
  };
545
569
  filtered_files: {
@@ -558,11 +582,13 @@ declare const commitDiffResponseSchema: z.ZodObject<{
558
582
  bytes: number;
559
583
  is_eof: boolean;
560
584
  old_path?: string | null | undefined;
585
+ additions?: number | undefined;
586
+ deletions?: number | undefined;
561
587
  }[];
562
588
  stats: {
563
- files: number;
564
589
  additions: number;
565
590
  deletions: number;
591
+ files: number;
566
592
  changes: number;
567
593
  };
568
594
  filtered_files: {
@@ -664,6 +690,12 @@ interface FindOneOptions {
664
690
  id: string;
665
691
  }
666
692
  type SupportedRepoProvider = 'github';
693
+ interface PublicGitHubBaseRepoAuth {
694
+ /**
695
+ * Force public GitHub mode (no GitHub App installation required).
696
+ */
697
+ authType: 'public';
698
+ }
667
699
  interface GitHubBaseRepo {
668
700
  /**
669
701
  * @default github
@@ -672,6 +704,7 @@ interface GitHubBaseRepo {
672
704
  owner: string;
673
705
  name: string;
674
706
  defaultBranch?: string;
707
+ auth?: PublicGitHubBaseRepoAuth;
675
708
  }
676
709
  interface ForkBaseRepo {
677
710
  id: string;
@@ -929,6 +962,8 @@ interface DiffFileBase {
929
962
  }
930
963
  interface FileDiff extends DiffFileBase {
931
964
  raw: string;
965
+ additions: number;
966
+ deletions: number;
932
967
  }
933
968
  interface FilteredFile extends DiffFileBase {
934
969
  }
@@ -1227,4 +1262,4 @@ declare function createClient(options: GitStorageOptions): GitStorage;
1227
1262
 
1228
1263
  type StorageOptions = GitStorageOptions;
1229
1264
 
1230
- export { ApiError, type AppendNoteOptions, type ArchiveOptions, type BaseRepo, type BlobLike, type BranchInfo, GitStorage as CodeStorage, type CommitBuilder, type CommitFileOptions, type CommitFileSource, type CommitInfo, type CommitResult, type CommitSignature, type CommitTextFileOptions, type CreateBranchOptions, type CreateBranchResponse, type CreateBranchResult, type CreateCommitBranchOptions, type CreateCommitFromDiffOptions, type CreateCommitOptions, type CreateNoteOptions, type CreateRepoOptions, type DeleteNoteOptions, type DeleteRepoOptions, type DeleteRepoResult, type DiffFileBase, type DiffFileState, type DiffSource, type DiffStats, type FileDiff, type FileLike, type FilteredFile, type FindOneOptions, type ForkBaseRepo, type GetBranchDiffOptions, type GetBranchDiffResponse, type GetBranchDiffResult, type GetCommitDiffOptions, type GetCommitDiffResponse, type GetCommitDiffResult, type GetFileOptions, type GetNoteOptions, type GetNoteResponse, type GetNoteResult, type GetRemoteURLOptions, type GitFileMode, type GitHubBaseRepo, GitStorage, type GitStorageOptions, type GrepFileMatch, type GrepLine, type GrepOptions, type GrepResult, type LegacyCreateCommitOptions, type ListBranchesOptions, type ListBranchesResponse, type ListBranchesResult, type ListCommitsOptions, type ListCommitsResponse, type ListCommitsResult, type ListFilesOptions, type ListFilesResponse, type ListFilesResult, type ListReposOptions, type ListReposResponse, type ListReposResult, type NoteWriteResponse, type NoteWriteResult, type NoteWriteResultPayload, type OverrideableGitStorageOptions, type ParsedWebhookSignature, type PullUpstreamOptions, type RawBranchInfo, type RawCommitInfo, type RawFileDiff, type RawFilteredFile, type RawRepoBaseInfo, type RawRepoInfo, type RawWebhookPushEvent, type ReadableStreamLike, type ReadableStreamReaderLike, type RefUpdate, RefUpdateError, type RefUpdateReason, type Repo, type RepoBaseInfo, type RepoInfo, type RestoreCommitOptions, type RestoreCommitResult, type StorageOptions, type SupportedRepoProvider, type TextEncoding, type ValidAPIVersion, type ValidMethod, type ValidPath, type WebhookEventPayload, type WebhookPushEvent, type WebhookUnknownEvent, type WebhookValidationOptions, type WebhookValidationResult, createClient, parseSignatureHeader, validateWebhook, validateWebhookSignature };
1265
+ export { ApiError, type AppendNoteOptions, type ArchiveOptions, type BaseRepo, type BlobLike, type BranchInfo, GitStorage as CodeStorage, type CommitBuilder, type CommitFileOptions, type CommitFileSource, type CommitInfo, type CommitResult, type CommitSignature, type CommitTextFileOptions, type CreateBranchOptions, type CreateBranchResponse, type CreateBranchResult, type CreateCommitBranchOptions, type CreateCommitFromDiffOptions, type CreateCommitOptions, type CreateNoteOptions, type CreateRepoOptions, type DeleteNoteOptions, type DeleteRepoOptions, type DeleteRepoResult, type DiffFileBase, type DiffFileState, type DiffSource, type DiffStats, type FileDiff, type FileLike, type FilteredFile, type FindOneOptions, type ForkBaseRepo, type GetBranchDiffOptions, type GetBranchDiffResponse, type GetBranchDiffResult, type GetCommitDiffOptions, type GetCommitDiffResponse, type GetCommitDiffResult, type GetFileOptions, type GetNoteOptions, type GetNoteResponse, type GetNoteResult, type GetRemoteURLOptions, type GitFileMode, type GitHubBaseRepo, GitStorage, type GitStorageOptions, type GrepFileMatch, type GrepLine, type GrepOptions, type GrepResult, type LegacyCreateCommitOptions, type ListBranchesOptions, type ListBranchesResponse, type ListBranchesResult, type ListCommitsOptions, type ListCommitsResponse, type ListCommitsResult, type ListFilesOptions, type ListFilesResponse, type ListFilesResult, type ListReposOptions, type ListReposResponse, type ListReposResult, type NoteWriteResponse, type NoteWriteResult, type NoteWriteResultPayload, type OverrideableGitStorageOptions, type ParsedWebhookSignature, type PublicGitHubBaseRepoAuth, type PullUpstreamOptions, type RawBranchInfo, type RawCommitInfo, type RawFileDiff, type RawFilteredFile, type RawRepoBaseInfo, type RawRepoInfo, type RawWebhookPushEvent, type ReadableStreamLike, type ReadableStreamReaderLike, type RefUpdate, RefUpdateError, type RefUpdateReason, type Repo, type RepoBaseInfo, type RepoInfo, type RestoreCommitOptions, type RestoreCommitResult, type StorageOptions, type SupportedRepoProvider, type TextEncoding, type ValidAPIVersion, type ValidMethod, type ValidPath, type WebhookEventPayload, type WebhookPushEvent, type WebhookUnknownEvent, type WebhookValidationOptions, type WebhookValidationResult, createClient, parseSignatureHeader, validateWebhook, validateWebhookSignature };
package/dist/index.d.ts CHANGED
@@ -324,6 +324,8 @@ declare const diffFileRawSchema: z.ZodObject<{
324
324
  raw: z.ZodString;
325
325
  bytes: z.ZodNumber;
326
326
  is_eof: z.ZodBoolean;
327
+ additions: z.ZodOptional<z.ZodNumber>;
328
+ deletions: z.ZodOptional<z.ZodNumber>;
327
329
  }, "strip", z.ZodTypeAny, {
328
330
  path: string;
329
331
  state: string;
@@ -331,6 +333,8 @@ declare const diffFileRawSchema: z.ZodObject<{
331
333
  bytes: number;
332
334
  is_eof: boolean;
333
335
  old_path?: string | null | undefined;
336
+ additions?: number | undefined;
337
+ deletions?: number | undefined;
334
338
  }, {
335
339
  path: string;
336
340
  state: string;
@@ -338,6 +342,8 @@ declare const diffFileRawSchema: z.ZodObject<{
338
342
  bytes: number;
339
343
  is_eof: boolean;
340
344
  old_path?: string | null | undefined;
345
+ additions?: number | undefined;
346
+ deletions?: number | undefined;
341
347
  }>;
342
348
  declare const filteredFileRawSchema: z.ZodObject<{
343
349
  path: z.ZodString;
@@ -367,14 +373,14 @@ declare const branchDiffResponseSchema: z.ZodObject<{
367
373
  deletions: z.ZodNumber;
368
374
  changes: z.ZodNumber;
369
375
  }, "strip", z.ZodTypeAny, {
370
- files: number;
371
376
  additions: number;
372
377
  deletions: number;
378
+ files: number;
373
379
  changes: number;
374
380
  }, {
375
- files: number;
376
381
  additions: number;
377
382
  deletions: number;
383
+ files: number;
378
384
  changes: number;
379
385
  }>;
380
386
  files: z.ZodArray<z.ZodObject<{
@@ -384,6 +390,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
384
390
  raw: z.ZodString;
385
391
  bytes: z.ZodNumber;
386
392
  is_eof: z.ZodBoolean;
393
+ additions: z.ZodOptional<z.ZodNumber>;
394
+ deletions: z.ZodOptional<z.ZodNumber>;
387
395
  }, "strip", z.ZodTypeAny, {
388
396
  path: string;
389
397
  state: string;
@@ -391,6 +399,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
391
399
  bytes: number;
392
400
  is_eof: boolean;
393
401
  old_path?: string | null | undefined;
402
+ additions?: number | undefined;
403
+ deletions?: number | undefined;
394
404
  }, {
395
405
  path: string;
396
406
  state: string;
@@ -398,6 +408,8 @@ declare const branchDiffResponseSchema: z.ZodObject<{
398
408
  bytes: number;
399
409
  is_eof: boolean;
400
410
  old_path?: string | null | undefined;
411
+ additions?: number | undefined;
412
+ deletions?: number | undefined;
401
413
  }>, "many">;
402
414
  filtered_files: z.ZodArray<z.ZodObject<{
403
415
  path: z.ZodString;
@@ -428,11 +440,13 @@ declare const branchDiffResponseSchema: z.ZodObject<{
428
440
  bytes: number;
429
441
  is_eof: boolean;
430
442
  old_path?: string | null | undefined;
443
+ additions?: number | undefined;
444
+ deletions?: number | undefined;
431
445
  }[];
432
446
  stats: {
433
- files: number;
434
447
  additions: number;
435
448
  deletions: number;
449
+ files: number;
436
450
  changes: number;
437
451
  };
438
452
  filtered_files: {
@@ -452,11 +466,13 @@ declare const branchDiffResponseSchema: z.ZodObject<{
452
466
  bytes: number;
453
467
  is_eof: boolean;
454
468
  old_path?: string | null | undefined;
469
+ additions?: number | undefined;
470
+ deletions?: number | undefined;
455
471
  }[];
456
472
  stats: {
457
- files: number;
458
473
  additions: number;
459
474
  deletions: number;
475
+ files: number;
460
476
  changes: number;
461
477
  };
462
478
  filtered_files: {
@@ -475,14 +491,14 @@ declare const commitDiffResponseSchema: z.ZodObject<{
475
491
  deletions: z.ZodNumber;
476
492
  changes: z.ZodNumber;
477
493
  }, "strip", z.ZodTypeAny, {
478
- files: number;
479
494
  additions: number;
480
495
  deletions: number;
496
+ files: number;
481
497
  changes: number;
482
498
  }, {
483
- files: number;
484
499
  additions: number;
485
500
  deletions: number;
501
+ files: number;
486
502
  changes: number;
487
503
  }>;
488
504
  files: z.ZodArray<z.ZodObject<{
@@ -492,6 +508,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
492
508
  raw: z.ZodString;
493
509
  bytes: z.ZodNumber;
494
510
  is_eof: z.ZodBoolean;
511
+ additions: z.ZodOptional<z.ZodNumber>;
512
+ deletions: z.ZodOptional<z.ZodNumber>;
495
513
  }, "strip", z.ZodTypeAny, {
496
514
  path: string;
497
515
  state: string;
@@ -499,6 +517,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
499
517
  bytes: number;
500
518
  is_eof: boolean;
501
519
  old_path?: string | null | undefined;
520
+ additions?: number | undefined;
521
+ deletions?: number | undefined;
502
522
  }, {
503
523
  path: string;
504
524
  state: string;
@@ -506,6 +526,8 @@ declare const commitDiffResponseSchema: z.ZodObject<{
506
526
  bytes: number;
507
527
  is_eof: boolean;
508
528
  old_path?: string | null | undefined;
529
+ additions?: number | undefined;
530
+ deletions?: number | undefined;
509
531
  }>, "many">;
510
532
  filtered_files: z.ZodArray<z.ZodObject<{
511
533
  path: z.ZodString;
@@ -535,11 +557,13 @@ declare const commitDiffResponseSchema: z.ZodObject<{
535
557
  bytes: number;
536
558
  is_eof: boolean;
537
559
  old_path?: string | null | undefined;
560
+ additions?: number | undefined;
561
+ deletions?: number | undefined;
538
562
  }[];
539
563
  stats: {
540
- files: number;
541
564
  additions: number;
542
565
  deletions: number;
566
+ files: number;
543
567
  changes: number;
544
568
  };
545
569
  filtered_files: {
@@ -558,11 +582,13 @@ declare const commitDiffResponseSchema: z.ZodObject<{
558
582
  bytes: number;
559
583
  is_eof: boolean;
560
584
  old_path?: string | null | undefined;
585
+ additions?: number | undefined;
586
+ deletions?: number | undefined;
561
587
  }[];
562
588
  stats: {
563
- files: number;
564
589
  additions: number;
565
590
  deletions: number;
591
+ files: number;
566
592
  changes: number;
567
593
  };
568
594
  filtered_files: {
@@ -664,6 +690,12 @@ interface FindOneOptions {
664
690
  id: string;
665
691
  }
666
692
  type SupportedRepoProvider = 'github';
693
+ interface PublicGitHubBaseRepoAuth {
694
+ /**
695
+ * Force public GitHub mode (no GitHub App installation required).
696
+ */
697
+ authType: 'public';
698
+ }
667
699
  interface GitHubBaseRepo {
668
700
  /**
669
701
  * @default github
@@ -672,6 +704,7 @@ interface GitHubBaseRepo {
672
704
  owner: string;
673
705
  name: string;
674
706
  defaultBranch?: string;
707
+ auth?: PublicGitHubBaseRepoAuth;
675
708
  }
676
709
  interface ForkBaseRepo {
677
710
  id: string;
@@ -929,6 +962,8 @@ interface DiffFileBase {
929
962
  }
930
963
  interface FileDiff extends DiffFileBase {
931
964
  raw: string;
965
+ additions: number;
966
+ deletions: number;
932
967
  }
933
968
  interface FilteredFile extends DiffFileBase {
934
969
  }
@@ -1227,4 +1262,4 @@ declare function createClient(options: GitStorageOptions): GitStorage;
1227
1262
 
1228
1263
  type StorageOptions = GitStorageOptions;
1229
1264
 
1230
- export { ApiError, type AppendNoteOptions, type ArchiveOptions, type BaseRepo, type BlobLike, type BranchInfo, GitStorage as CodeStorage, type CommitBuilder, type CommitFileOptions, type CommitFileSource, type CommitInfo, type CommitResult, type CommitSignature, type CommitTextFileOptions, type CreateBranchOptions, type CreateBranchResponse, type CreateBranchResult, type CreateCommitBranchOptions, type CreateCommitFromDiffOptions, type CreateCommitOptions, type CreateNoteOptions, type CreateRepoOptions, type DeleteNoteOptions, type DeleteRepoOptions, type DeleteRepoResult, type DiffFileBase, type DiffFileState, type DiffSource, type DiffStats, type FileDiff, type FileLike, type FilteredFile, type FindOneOptions, type ForkBaseRepo, type GetBranchDiffOptions, type GetBranchDiffResponse, type GetBranchDiffResult, type GetCommitDiffOptions, type GetCommitDiffResponse, type GetCommitDiffResult, type GetFileOptions, type GetNoteOptions, type GetNoteResponse, type GetNoteResult, type GetRemoteURLOptions, type GitFileMode, type GitHubBaseRepo, GitStorage, type GitStorageOptions, type GrepFileMatch, type GrepLine, type GrepOptions, type GrepResult, type LegacyCreateCommitOptions, type ListBranchesOptions, type ListBranchesResponse, type ListBranchesResult, type ListCommitsOptions, type ListCommitsResponse, type ListCommitsResult, type ListFilesOptions, type ListFilesResponse, type ListFilesResult, type ListReposOptions, type ListReposResponse, type ListReposResult, type NoteWriteResponse, type NoteWriteResult, type NoteWriteResultPayload, type OverrideableGitStorageOptions, type ParsedWebhookSignature, type PullUpstreamOptions, type RawBranchInfo, type RawCommitInfo, type RawFileDiff, type RawFilteredFile, type RawRepoBaseInfo, type RawRepoInfo, type RawWebhookPushEvent, type ReadableStreamLike, type ReadableStreamReaderLike, type RefUpdate, RefUpdateError, type RefUpdateReason, type Repo, type RepoBaseInfo, type RepoInfo, type RestoreCommitOptions, type RestoreCommitResult, type StorageOptions, type SupportedRepoProvider, type TextEncoding, type ValidAPIVersion, type ValidMethod, type ValidPath, type WebhookEventPayload, type WebhookPushEvent, type WebhookUnknownEvent, type WebhookValidationOptions, type WebhookValidationResult, createClient, parseSignatureHeader, validateWebhook, validateWebhookSignature };
1265
+ export { ApiError, type AppendNoteOptions, type ArchiveOptions, type BaseRepo, type BlobLike, type BranchInfo, GitStorage as CodeStorage, type CommitBuilder, type CommitFileOptions, type CommitFileSource, type CommitInfo, type CommitResult, type CommitSignature, type CommitTextFileOptions, type CreateBranchOptions, type CreateBranchResponse, type CreateBranchResult, type CreateCommitBranchOptions, type CreateCommitFromDiffOptions, type CreateCommitOptions, type CreateNoteOptions, type CreateRepoOptions, type DeleteNoteOptions, type DeleteRepoOptions, type DeleteRepoResult, type DiffFileBase, type DiffFileState, type DiffSource, type DiffStats, type FileDiff, type FileLike, type FilteredFile, type FindOneOptions, type ForkBaseRepo, type GetBranchDiffOptions, type GetBranchDiffResponse, type GetBranchDiffResult, type GetCommitDiffOptions, type GetCommitDiffResponse, type GetCommitDiffResult, type GetFileOptions, type GetNoteOptions, type GetNoteResponse, type GetNoteResult, type GetRemoteURLOptions, type GitFileMode, type GitHubBaseRepo, GitStorage, type GitStorageOptions, type GrepFileMatch, type GrepLine, type GrepOptions, type GrepResult, type LegacyCreateCommitOptions, type ListBranchesOptions, type ListBranchesResponse, type ListBranchesResult, type ListCommitsOptions, type ListCommitsResponse, type ListCommitsResult, type ListFilesOptions, type ListFilesResponse, type ListFilesResult, type ListReposOptions, type ListReposResponse, type ListReposResult, type NoteWriteResponse, type NoteWriteResult, type NoteWriteResultPayload, type OverrideableGitStorageOptions, type ParsedWebhookSignature, type PublicGitHubBaseRepoAuth, type PullUpstreamOptions, type RawBranchInfo, type RawCommitInfo, type RawFileDiff, type RawFilteredFile, type RawRepoBaseInfo, type RawRepoInfo, type RawWebhookPushEvent, type ReadableStreamLike, type ReadableStreamReaderLike, type RefUpdate, RefUpdateError, type RefUpdateReason, type Repo, type RepoBaseInfo, type RepoInfo, type RestoreCommitOptions, type RestoreCommitResult, type StorageOptions, type SupportedRepoProvider, type TextEncoding, type ValidAPIVersion, type ValidMethod, type ValidPath, type WebhookEventPayload, type WebhookPushEvent, type WebhookUnknownEvent, type WebhookValidationOptions, type WebhookValidationResult, createClient, parseSignatureHeader, validateWebhook, validateWebhookSignature };
package/dist/index.js CHANGED
@@ -116,7 +116,9 @@ var diffFileRawSchema = z.object({
116
116
  old_path: z.string().nullable().optional(),
117
117
  raw: z.string(),
118
118
  bytes: z.number(),
119
- is_eof: z.boolean()
119
+ is_eof: z.boolean(),
120
+ additions: z.number().optional(),
121
+ deletions: z.number().optional()
120
122
  });
121
123
  var filteredFileRawSchema = z.object({
122
124
  path: z.string(),
@@ -506,7 +508,7 @@ function concatChunks(a, b) {
506
508
 
507
509
  // package.json
508
510
  var package_default = {
509
- version: "1.0.1"};
511
+ version: "1.0.3"};
510
512
 
511
513
  // src/version.ts
512
514
  var PACKAGE_NAME = "code-storage-sdk";
@@ -1592,7 +1594,9 @@ function transformFileDiff(raw) {
1592
1594
  oldPath: raw.old_path ?? void 0,
1593
1595
  raw: raw.raw,
1594
1596
  bytes: raw.bytes,
1595
- isEof: raw.is_eof
1597
+ isEof: raw.is_eof,
1598
+ additions: raw.additions ?? 0,
1599
+ deletions: raw.deletions ?? 0
1596
1600
  };
1597
1601
  }
1598
1602
  function transformFilteredFile(raw) {