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