debugFiles.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. export enum DebugFileType {
  2. EXE = 'exe',
  3. DBG = 'dbg',
  4. LIB = 'lib',
  5. }
  6. export enum DebugFileFeature {
  7. SYMTAB = 'symtab',
  8. DEBUG = 'debug',
  9. UNWIND = 'unwind',
  10. SOURCES = 'sources',
  11. }
  12. type Secret = {'hidden-secret': boolean};
  13. export type BuiltinSymbolSource = {
  14. hidden: boolean;
  15. id: string;
  16. name: string;
  17. sentry_key: string;
  18. };
  19. export type DebugFile = {
  20. codeId: string;
  21. cpuName: string;
  22. dateCreated: string;
  23. debugId: string;
  24. headers: Record<string, string>;
  25. id: string;
  26. objectName: string;
  27. sha1: string;
  28. size: number;
  29. symbolType: string;
  30. uuid: string;
  31. data?: {features: DebugFileFeature[]; type: DebugFileType};
  32. };
  33. // Custom Repository
  34. export enum CustomRepoType {
  35. HTTP = 'http',
  36. S3 = 's3',
  37. GCS = 'gcs',
  38. }
  39. export type CustomRepoHttp = {
  40. id: string;
  41. layout: {casing: string; type: string};
  42. name: string;
  43. password: Secret;
  44. type: CustomRepoType.HTTP;
  45. url: string;
  46. username: string;
  47. };
  48. type CustomRepoS3 = {
  49. access_key: string;
  50. bucket: string;
  51. id: string;
  52. layout: {casing: string; type: string};
  53. name: string;
  54. region: string;
  55. secret_key: Secret;
  56. type: CustomRepoType.S3;
  57. };
  58. type CustomRepoGCS = {
  59. bucket: string;
  60. client_email: string;
  61. id: string;
  62. layout: {casing: string; type: string};
  63. name: string;
  64. prefix: string;
  65. private_key: Secret;
  66. type: CustomRepoType.GCS;
  67. };
  68. export type CustomRepo = CustomRepoHttp | CustomRepoS3 | CustomRepoGCS;