debugFiles.tsx 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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?: {type: DebugFileType; features: DebugFileFeature[]};
  32. };
  33. // Custom Repository
  34. export enum CustomRepoType {
  35. HTTP = 'http',
  36. S3 = 's3',
  37. GCS = 'gcs',
  38. APP_STORE_CONNECT = 'appStoreConnect',
  39. }
  40. export type AppStoreConnectValidationError = {
  41. code:
  42. | 'app-connect-authentication-error'
  43. | 'app-connect-forbidden-error'
  44. | 'app-connect-multiple-sources-error';
  45. };
  46. export type AppStoreConnectCredentialsStatus =
  47. | {status: 'valid'}
  48. | ({status: 'invalid'} & AppStoreConnectValidationError);
  49. export type AppStoreConnectStatusData = {
  50. credentials: AppStoreConnectCredentialsStatus;
  51. /**
  52. * Indicates the number of downloads waiting to be processed and completed,
  53. * or the number of downloads waiting for valid credentials to be completed if applicable.
  54. */
  55. pendingDownloads: number;
  56. /**
  57. * The build number of the latest build recognized by sentry. This does not
  58. * imply the dSYMs for this build have been fetched. The contents of this
  59. * string is just a number. This will be null if no builds can be found.
  60. */
  61. latestBuildNumber: string | null;
  62. /**
  63. * A human-readable string representing the latest build recognized by
  64. * sentry. i.e. 3.4.0. This does not imply the dSYMs for this build have been
  65. * fetched. This will be null if no builds can be found.
  66. */
  67. latestBuildVersion: string | null;
  68. lastCheckedBuilds: string | null;
  69. updateAlertMessage?: string;
  70. };
  71. export type CustomRepoAppStoreConnect = {
  72. type: CustomRepoType.APP_STORE_CONNECT;
  73. appId: string;
  74. appName: string;
  75. appconnectIssuer: string;
  76. appconnectKey: string;
  77. bundleId: string;
  78. id: string;
  79. name: string;
  80. appconnectPrivateKey: Secret;
  81. details?: AppStoreConnectStatusData;
  82. };
  83. export type CustomRepoHttp = {
  84. type: CustomRepoType.HTTP;
  85. id: string;
  86. layout: {casing: string; type: string};
  87. name: string;
  88. url: string;
  89. username: string;
  90. password: Secret;
  91. };
  92. type CustomRepoS3 = {
  93. type: CustomRepoType.S3;
  94. bucket: string;
  95. id: string;
  96. layout: {type: string; casing: string};
  97. name: string;
  98. region: string;
  99. access_key: string;
  100. secret_key: Secret;
  101. };
  102. type CustomRepoGCS = {
  103. type: CustomRepoType.GCS;
  104. bucket: string;
  105. client_email: string;
  106. id: string;
  107. layout: {type: string; casing: string};
  108. name: string;
  109. prefix: string;
  110. private_key: Secret;
  111. };
  112. export type CustomRepo =
  113. | CustomRepoAppStoreConnect
  114. | CustomRepoHttp
  115. | CustomRepoS3
  116. | CustomRepoGCS;