artifact.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class Artifact extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: Artifact.Types.ClientConfiguration)
  13. config: Config & Artifact.Types.ClientConfiguration;
  14. /**
  15. * Get the account settings for Artifact.
  16. */
  17. getAccountSettings(params: Artifact.Types.GetAccountSettingsRequest, callback?: (err: AWSError, data: Artifact.Types.GetAccountSettingsResponse) => void): Request<Artifact.Types.GetAccountSettingsResponse, AWSError>;
  18. /**
  19. * Get the account settings for Artifact.
  20. */
  21. getAccountSettings(callback?: (err: AWSError, data: Artifact.Types.GetAccountSettingsResponse) => void): Request<Artifact.Types.GetAccountSettingsResponse, AWSError>;
  22. /**
  23. * Get the content for a single report.
  24. */
  25. getReport(params: Artifact.Types.GetReportRequest, callback?: (err: AWSError, data: Artifact.Types.GetReportResponse) => void): Request<Artifact.Types.GetReportResponse, AWSError>;
  26. /**
  27. * Get the content for a single report.
  28. */
  29. getReport(callback?: (err: AWSError, data: Artifact.Types.GetReportResponse) => void): Request<Artifact.Types.GetReportResponse, AWSError>;
  30. /**
  31. * Get the metadata for a single report.
  32. */
  33. getReportMetadata(params: Artifact.Types.GetReportMetadataRequest, callback?: (err: AWSError, data: Artifact.Types.GetReportMetadataResponse) => void): Request<Artifact.Types.GetReportMetadataResponse, AWSError>;
  34. /**
  35. * Get the metadata for a single report.
  36. */
  37. getReportMetadata(callback?: (err: AWSError, data: Artifact.Types.GetReportMetadataResponse) => void): Request<Artifact.Types.GetReportMetadataResponse, AWSError>;
  38. /**
  39. * Get the Term content associated with a single report.
  40. */
  41. getTermForReport(params: Artifact.Types.GetTermForReportRequest, callback?: (err: AWSError, data: Artifact.Types.GetTermForReportResponse) => void): Request<Artifact.Types.GetTermForReportResponse, AWSError>;
  42. /**
  43. * Get the Term content associated with a single report.
  44. */
  45. getTermForReport(callback?: (err: AWSError, data: Artifact.Types.GetTermForReportResponse) => void): Request<Artifact.Types.GetTermForReportResponse, AWSError>;
  46. /**
  47. * List available reports.
  48. */
  49. listReports(params: Artifact.Types.ListReportsRequest, callback?: (err: AWSError, data: Artifact.Types.ListReportsResponse) => void): Request<Artifact.Types.ListReportsResponse, AWSError>;
  50. /**
  51. * List available reports.
  52. */
  53. listReports(callback?: (err: AWSError, data: Artifact.Types.ListReportsResponse) => void): Request<Artifact.Types.ListReportsResponse, AWSError>;
  54. /**
  55. * Put the account settings for Artifact.
  56. */
  57. putAccountSettings(params: Artifact.Types.PutAccountSettingsRequest, callback?: (err: AWSError, data: Artifact.Types.PutAccountSettingsResponse) => void): Request<Artifact.Types.PutAccountSettingsResponse, AWSError>;
  58. /**
  59. * Put the account settings for Artifact.
  60. */
  61. putAccountSettings(callback?: (err: AWSError, data: Artifact.Types.PutAccountSettingsResponse) => void): Request<Artifact.Types.PutAccountSettingsResponse, AWSError>;
  62. }
  63. declare namespace Artifact {
  64. export type AcceptanceType = "PASSTHROUGH"|"EXPLICIT"|string;
  65. export interface AccountSettings {
  66. /**
  67. * Notification subscription status of the customer.
  68. */
  69. notificationSubscriptionStatus?: NotificationSubscriptionStatus;
  70. }
  71. export interface GetAccountSettingsRequest {
  72. }
  73. export interface GetAccountSettingsResponse {
  74. accountSettings?: AccountSettings;
  75. }
  76. export interface GetReportMetadataRequest {
  77. /**
  78. * Unique resource ID for the report resource.
  79. */
  80. reportId: ReportId;
  81. /**
  82. * Version for the report resource.
  83. */
  84. reportVersion?: VersionAttribute;
  85. }
  86. export interface GetReportMetadataResponse {
  87. /**
  88. * Report resource detail.
  89. */
  90. reportDetails?: ReportDetail;
  91. }
  92. export interface GetReportRequest {
  93. /**
  94. * Unique resource ID for the report resource.
  95. */
  96. reportId: ReportId;
  97. /**
  98. * Version for the report resource.
  99. */
  100. reportVersion?: VersionAttribute;
  101. /**
  102. * Unique download token provided by GetTermForReport API.
  103. */
  104. termToken: ShortStringAttribute;
  105. }
  106. export interface GetReportResponse {
  107. /**
  108. * Presigned S3 url to access the report content.
  109. */
  110. documentPresignedUrl?: GetReportResponseDocumentPresignedUrlString;
  111. }
  112. export type GetReportResponseDocumentPresignedUrlString = string;
  113. export interface GetTermForReportRequest {
  114. /**
  115. * Unique resource ID for the report resource.
  116. */
  117. reportId: ReportId;
  118. /**
  119. * Version for the report resource.
  120. */
  121. reportVersion?: VersionAttribute;
  122. }
  123. export interface GetTermForReportResponse {
  124. /**
  125. * Presigned S3 url to access the term content.
  126. */
  127. documentPresignedUrl?: GetTermForReportResponseDocumentPresignedUrlString;
  128. /**
  129. * Unique token representing this request event.
  130. */
  131. termToken?: String;
  132. }
  133. export type GetTermForReportResponseDocumentPresignedUrlString = string;
  134. export interface ListReportsRequest {
  135. /**
  136. * Maximum number of resources to return in the paginated response.
  137. */
  138. maxResults?: MaxResultsAttribute;
  139. /**
  140. * Pagination token to request the next page of resources.
  141. */
  142. nextToken?: NextTokenAttribute;
  143. }
  144. export interface ListReportsResponse {
  145. /**
  146. * Pagination token to request the next page of resources.
  147. */
  148. nextToken?: NextTokenAttribute;
  149. /**
  150. * List of report resources.
  151. */
  152. reports?: ReportsList;
  153. }
  154. export type LongStringAttribute = string;
  155. export type MaxResultsAttribute = number;
  156. export type NextTokenAttribute = string;
  157. export type NotificationSubscriptionStatus = "SUBSCRIBED"|"NOT_SUBSCRIBED"|string;
  158. export type PublishedState = "PUBLISHED"|"UNPUBLISHED"|string;
  159. export interface PutAccountSettingsRequest {
  160. /**
  161. * Desired notification subscription status.
  162. */
  163. notificationSubscriptionStatus?: NotificationSubscriptionStatus;
  164. }
  165. export interface PutAccountSettingsResponse {
  166. accountSettings?: AccountSettings;
  167. }
  168. export interface ReportDetail {
  169. /**
  170. * Acceptance type for report.
  171. */
  172. acceptanceType?: AcceptanceType;
  173. /**
  174. * ARN for the report resource.
  175. */
  176. arn?: LongStringAttribute;
  177. /**
  178. * Category for the report resource.
  179. */
  180. category?: ShortStringAttribute;
  181. /**
  182. * Associated company name for the report resource.
  183. */
  184. companyName?: ShortStringAttribute;
  185. /**
  186. * Timestamp indicating when the report resource was created.
  187. */
  188. createdAt?: TimestampAttribute;
  189. /**
  190. * Timestamp indicating when the report resource was deleted.
  191. */
  192. deletedAt?: TimestampAttribute;
  193. /**
  194. * Description for the report resource.
  195. */
  196. description?: LongStringAttribute;
  197. /**
  198. * Unique resource ID for the report resource.
  199. */
  200. id?: ReportId;
  201. /**
  202. * Timestamp indicating when the report resource was last modified.
  203. */
  204. lastModifiedAt?: TimestampAttribute;
  205. /**
  206. * Name for the report resource.
  207. */
  208. name?: ShortStringAttribute;
  209. /**
  210. * Timestamp indicating the report resource effective end.
  211. */
  212. periodEnd?: TimestampAttribute;
  213. /**
  214. * Timestamp indicating the report resource effective start.
  215. */
  216. periodStart?: TimestampAttribute;
  217. /**
  218. * Associated product name for the report resource.
  219. */
  220. productName?: ShortStringAttribute;
  221. /**
  222. * Sequence number to enforce optimistic locking.
  223. */
  224. sequenceNumber?: SequenceNumberAttribute;
  225. /**
  226. * Series for the report resource.
  227. */
  228. series?: ShortStringAttribute;
  229. /**
  230. * Current state of the report resource
  231. */
  232. state?: PublishedState;
  233. /**
  234. * The message associated with the current upload state.
  235. */
  236. statusMessage?: StatusMessage;
  237. /**
  238. * Unique resource ARN for term resource.
  239. */
  240. termArn?: LongStringAttribute;
  241. /**
  242. * The current state of the document upload.
  243. */
  244. uploadState?: UploadState;
  245. /**
  246. * Version for the report resource.
  247. */
  248. version?: VersionAttribute;
  249. }
  250. export type ReportId = string;
  251. export interface ReportSummary {
  252. /**
  253. * ARN for the report resource.
  254. */
  255. arn?: LongStringAttribute;
  256. /**
  257. * Category for the report resource.
  258. */
  259. category?: ShortStringAttribute;
  260. /**
  261. * Associated company name for the report resource.
  262. */
  263. companyName?: ShortStringAttribute;
  264. /**
  265. * Description for the report resource.
  266. */
  267. description?: LongStringAttribute;
  268. /**
  269. * Unique resource ID for the report resource.
  270. */
  271. id?: ReportId;
  272. /**
  273. * Name for the report resource.
  274. */
  275. name?: ShortStringAttribute;
  276. /**
  277. * Timestamp indicating the report resource effective end.
  278. */
  279. periodEnd?: TimestampAttribute;
  280. /**
  281. * Timestamp indicating the report resource effective start.
  282. */
  283. periodStart?: TimestampAttribute;
  284. /**
  285. * Associated product name for the report resource.
  286. */
  287. productName?: ShortStringAttribute;
  288. /**
  289. * Series for the report resource.
  290. */
  291. series?: ShortStringAttribute;
  292. /**
  293. * Current state of the report resource.
  294. */
  295. state?: PublishedState;
  296. /**
  297. * The message associated with the current upload state.
  298. */
  299. statusMessage?: StatusMessage;
  300. /**
  301. * The current state of the document upload.
  302. */
  303. uploadState?: UploadState;
  304. /**
  305. * Version for the report resource.
  306. */
  307. version?: VersionAttribute;
  308. }
  309. export type ReportsList = ReportSummary[];
  310. export type SequenceNumberAttribute = number;
  311. export type ShortStringAttribute = string;
  312. export type StatusMessage = string;
  313. export type String = string;
  314. export type TimestampAttribute = Date;
  315. export type UploadState = "PROCESSING"|"COMPLETE"|"FAILED"|"FAULT"|string;
  316. export type VersionAttribute = number;
  317. /**
  318. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  319. */
  320. export type apiVersion = "2018-05-10"|"latest"|string;
  321. export interface ClientApiVersions {
  322. /**
  323. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  324. */
  325. apiVersion?: apiVersion;
  326. }
  327. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  328. /**
  329. * Contains interfaces for use with the Artifact client.
  330. */
  331. export import Types = Artifact;
  332. }
  333. export = Artifact;