Guest User

Untitled

a guest
Dec 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.75 KB | None | 0 0
  1. // File has been generated automatically by Eclipse Che TypeScript DTO generator
  2.  
  3.  
  4. export namespace che.git {
  5.  
  6. export interface CheckoutRequest {
  7. noTrack?: boolean;
  8. name?: string;
  9. startPoint?: string;
  10. files?: string[];
  11. trackBranch?: string;
  12. createNew?: boolean;
  13. }
  14.  
  15. export interface DiffCommitFile {
  16. changeType?: string;
  17. oldPath?: string;
  18. newPath?: string;
  19. }
  20.  
  21. export interface LogResponse {
  22. commits?: Revision[];
  23. textLog?: string;
  24. }
  25.  
  26. export interface RevertResult {
  27. newHead?: string;
  28. conflicts?: { [key: string]: string; };
  29. revertedCommits?: string[];
  30. }
  31.  
  32. export interface ConfigRequest {
  33. configEntries?: { [key: string]: string; };
  34. }
  35.  
  36. export interface PushResponse {
  37. commandOutput?: string;
  38. updates?: Map<string,string>[];
  39. }
  40.  
  41. export interface RmRequest {
  42. cached?: boolean;
  43. recursively?: boolean;
  44. items?: string[];
  45. }
  46.  
  47. export interface Branch {
  48. displayName?: string;
  49. name?: string;
  50. active?: boolean;
  51. remote?: boolean;
  52. }
  53.  
  54. export interface StatusChangedEvent {
  55. modifiedFiles?: { [key: string]: EditedRegion[]; };
  56. projectName?: string;
  57. status?: Status;
  58. }
  59.  
  60. export interface ShowFileContentResponse {
  61. commits?: Revision[];
  62. content?: string;
  63. }
  64.  
  65. export interface FileChangedEvent {
  66. path?: string;
  67. editedRegions?: EditedRegion[];
  68. status?: string;
  69. }
  70.  
  71. export interface CloneRequest {
  72. password?: string;
  73. branchesToFetch?: string[];
  74. remoteUri?: string;
  75. workingDir?: string;
  76. recursive?: boolean;
  77. timeout?: number;
  78. username?: string;
  79. remoteName?: string;
  80. }
  81.  
  82. export interface MoveRequest {
  83. source?: string;
  84. target?: string;
  85. }
  86.  
  87. export interface BranchCreateRequest {
  88. name?: string;
  89. startPoint?: string;
  90. }
  91.  
  92. export interface ConflictExceptionError {
  93. conflictingPaths?: string[];
  94. message?: string;
  95. }
  96.  
  97. export interface GitUser {
  98. name?: string;
  99. email?: string;
  100. }
  101.  
  102. export interface ResetRequest {
  103. filePattern?: string[];
  104. commit?: string;
  105. type?: string;
  106. }
  107.  
  108. export interface PushRequest {
  109. password?: string;
  110. force?: boolean;
  111. refSpec?: string[];
  112. remote?: string;
  113. timeout?: number;
  114. username?: string;
  115. }
  116.  
  117. export interface RepoInfo {
  118. remoteUri?: string;
  119. }
  120.  
  121. export interface IndexFile {
  122. path?: string;
  123. indexed?: boolean;
  124. }
  125.  
  126. export interface Commiters {
  127. commiters?: GitUser[];
  128. }
  129.  
  130. export interface RemoteReference {
  131. commitId?: string;
  132. referenceName?: string;
  133. }
  134.  
  135. export interface RevertRequest {
  136. commit?: string;
  137. }
  138.  
  139. export interface Remote {
  140. name?: string;
  141. url?: string;
  142. }
  143.  
  144. export interface PullResponse {
  145. commandOutput?: string;
  146. }
  147.  
  148. export interface CommitRequest {
  149. all?: boolean;
  150. amend?: boolean;
  151. files?: string[];
  152. message?: string;
  153. }
  154.  
  155. export interface MergeRequest {
  156. commit?: string;
  157. }
  158.  
  159. export interface EditedRegion {
  160. endLine?: number;
  161. beginLine?: number;
  162. type?: string;
  163. }
  164.  
  165. export interface RemoteUpdateRequest {
  166. removeUrl?: string[];
  167. removePushUrl?: string[];
  168. addPushUrl?: string[];
  169. addBranches?: boolean;
  170. addUrl?: string[];
  171. name?: string;
  172. branches?: string[];
  173. }
  174.  
  175. export interface RebaseRequest {
  176. branch?: string;
  177. operation?: string;
  178. }
  179.  
  180. export interface AddRequest {
  181. filePattern?: string[];
  182. update?: boolean;
  183. }
  184.  
  185. export interface GitUrlVendorInfo {
  186. vendorBaseHost?: string;
  187. givenUrlSSH?: boolean;
  188. oAuthScopes?: string[];
  189. vendorName?: string;
  190. }
  191.  
  192. export interface FetchRequest {
  193. password?: string;
  194. removeDeletedRefs?: boolean;
  195. refSpec?: string[];
  196. remote?: string;
  197. timeout?: number;
  198. username?: string;
  199. }
  200.  
  201. export interface Revision {
  202. commitParent?: string[];
  203. committer?: GitUser;
  204. commitTime?: number;
  205. author?: GitUser;
  206. fake?: boolean;
  207. id?: string;
  208. message?: string;
  209. branches?: Branch[];
  210. diffCommitFile?: DiffCommitFile[];
  211. branch?: string;
  212. }
  213.  
  214. export interface Tag {
  215. name?: string;
  216. }
  217.  
  218. export interface TagCreateRequest {
  219. commit?: string;
  220. name?: string;
  221. force?: boolean;
  222. message?: string;
  223. }
  224.  
  225. export interface RemoteAddRequest {
  226. name?: string;
  227. branches?: string[];
  228. url?: string;
  229. }
  230.  
  231. export interface RepositoryInitializedEvent {
  232. projectName?: string;
  233. }
  234.  
  235. export interface RebaseResponse {
  236. conflicts?: string[];
  237. failed?: string[];
  238. status?: string;
  239. }
  240.  
  241. export interface RepositoryDeletedEvent {
  242. projectName?: string;
  243. }
  244.  
  245. export interface MergeResult {
  246. newHead?: string;
  247. mergedCommits?: string[];
  248. conflicts?: string[];
  249. failed?: string[];
  250. mergeStatus?: string;
  251. }
  252.  
  253. export interface PullRequest {
  254. rebase?: boolean;
  255. password?: string;
  256. refSpec?: string;
  257. remote?: string;
  258. timeout?: number;
  259. username?: string;
  260. }
  261.  
  262. export interface Status {
  263. conflicting?: string[];
  264. removed?: string[];
  265. added?: string[];
  266. untrackedFolders?: string[];
  267. missing?: string[];
  268. branchName?: string;
  269. modified?: string[];
  270. untracked?: string[];
  271. refName?: string;
  272. clean?: boolean;
  273. changed?: string[];
  274. repositoryState?: string;
  275. }
  276.  
  277. export interface Log {
  278. commits?: Revision[];
  279. }
  280.  
  281. }
  282.  
  283. export namespace che.workspace.stack {
  284.  
  285. export interface StackComponent {
  286. name?: string;
  287. version?: string;
  288. }
  289.  
  290. export interface Stack {
  291. components?: StackComponent[];
  292. creator?: string;
  293. scope?: string;
  294. name?: string;
  295. description?: string;
  296. links?: che.core.rest.Link[];
  297. id?: string;
  298. workspaceConfig?: che.workspace.WorkspaceConfig;
  299. tags?: string[];
  300. }
  301.  
  302. }
  303.  
  304. export namespace che.installer {
  305.  
  306. export interface Installer {
  307. servers?: { [key: string]: che.workspace.ServerConfig; };
  308. name?: string;
  309. description?: string;
  310. id?: string;
  311. version?: string;
  312. properties?: { [key: string]: string; };
  313. script?: string;
  314. dependencies?: string[];
  315. }
  316.  
  317. }
  318.  
  319. export namespace che.project {
  320.  
  321. export interface Attribute {
  322. name?: string;
  323. variable?: boolean;
  324. projectType?: string;
  325. description?: string;
  326. id?: string;
  327. value?: Value;
  328. required?: boolean;
  329. }
  330.  
  331. export interface CopyOptions {
  332. name?: string;
  333. overWrite?: boolean;
  334. }
  335.  
  336. export interface TreeElement {
  337. node?: ItemReference;
  338. children?: TreeElement[];
  339. }
  340.  
  341. export interface ProjectType {
  342. primaryable?: boolean;
  343. displayName?: string;
  344. attributes?: Attribute[];
  345. mixable?: boolean;
  346. id?: string;
  347. persisted?: boolean;
  348. ancestors?: string[];
  349. parents?: string[];
  350. }
  351.  
  352. export interface ServerError {
  353. code?: number;
  354. message?: string;
  355. }
  356.  
  357. export interface ProjectSearchRequest {
  358. path?: string;
  359. maxItems?: number;
  360. name?: string;
  361. text?: string;
  362. skipCount?: number;
  363. }
  364.  
  365. export interface AttributeDescriptor {
  366. values?: string[];
  367. variable?: boolean;
  368. name?: string;
  369. description?: string;
  370. required?: boolean;
  371. }
  372.  
  373. export interface SourceEstimation {
  374. matched?: boolean;
  375. attributes?: { [key: string]: string[]; };
  376. type?: string;
  377. resolution?: string;
  378. }
  379.  
  380. export interface EditorChanges {
  381. offset?: number;
  382. removedCharCount?: number;
  383. projectPath?: string;
  384. length?: number;
  385. text?: string;
  386. fileLocation?: string;
  387. type?: string;
  388. }
  389.  
  390. export interface SearchOccurrence {
  391. score?: number;
  392. endOffset?: number;
  393. startOffset?: number;
  394. phrase?: string;
  395. lineNumber?: number;
  396. lineContent?: string;
  397. }
  398.  
  399. export interface SearchResult {
  400. itemReference?: ItemReference;
  401. searchOccurrences?: SearchOccurrence[];
  402. }
  403.  
  404. export interface ProjectUpdate {
  405. mixins?: string[];
  406. visibility?: string;
  407. contentRoot?: string;
  408. recipe?: string;
  409. description?: string;
  410. attributes?: { [key: string]: string[]; };
  411. type?: string;
  412. }
  413.  
  414. export interface NewProjectConfig {
  415. path?: string;
  416. mixins?: string[];
  417. options?: { [key: string]: string; };
  418. name?: string;
  419. description?: string;
  420. attributes?: { [key: string]: string[]; };
  421. links?: che.core.rest.Link[];
  422. source?: che.workspace.SourceStorage;
  423. type?: string;
  424. problems?: che.workspace.ProjectProblem[];
  425. }
  426.  
  427. export interface ProjectImporterData {
  428. importers?: ProjectImporterDescriptor[];
  429. configuration?: { [key: string]: string; };
  430. }
  431.  
  432. export interface MoveOptions {
  433. name?: string;
  434. overWrite?: boolean;
  435. }
  436.  
  437. export interface ProjectSearchResponse {
  438. itemReferences?: SearchResult[];
  439. totalHits?: number;
  440. }
  441.  
  442. export interface RegisteredProject {
  443. synced?: boolean;
  444. description?: string;
  445. source?: che.workspace.SourceStorage;
  446. type?: string;
  447. persistableAttributes?: { [key: string]: string[]; };
  448. path?: string;
  449. mixins?: string[];
  450. baseFolder?: string;
  451. name?: string;
  452. detected?: boolean;
  453. attributes?: { [key: string]: string[]; };
  454. links?: che.core.rest.Link[];
  455. problems?: che.workspace.ProjectProblem[];
  456. }
  457.  
  458. export interface Value {
  459. string?: string;
  460. list?: string[];
  461. empty?: boolean;
  462. }
  463.  
  464. export interface ItemReference {
  465. path?: string;
  466. projectConfig?: che.workspace.ProjectConfig;
  467. name?: string;
  468. project?: string;
  469. modified?: number;
  470. contentLength?: number;
  471. attributes?: { [key: string]: string; };
  472. links?: che.core.rest.Link[];
  473. type?: string;
  474. }
  475.  
  476. export interface ProjectImporterDescriptor {
  477. internal?: boolean;
  478. description?: string;
  479. attributes?: { [key: string]: string; };
  480. id?: string;
  481. category?: string;
  482. }
  483.  
  484. export interface GeneratorDescription {
  485. options?: { [key: string]: string; };
  486. }
  487.  
  488. export interface ImportProgressRecord {
  489. line?: string;
  490. num?: number;
  491. projectName?: string;
  492. }
  493.  
  494. }
  495.  
  496. export namespace che.user {
  497.  
  498. export interface User {
  499. password?: string;
  500. aliases?: string[];
  501. name?: string;
  502. links?: che.core.rest.Link[];
  503. id?: string;
  504. email?: string;
  505. }
  506.  
  507. export interface Profile {
  508. attributes?: { [key: string]: string; };
  509. links?: che.core.rest.Link[];
  510. userId?: string;
  511. email?: string;
  512. }
  513.  
  514. }
  515.  
  516. export namespace che.core.notification {
  517.  
  518. export interface EventSubscription {
  519. method?: string;
  520. scope?: { [key: string]: string; };
  521. }
  522.  
  523. }
  524.  
  525. export namespace che.workspace.event {
  526.  
  527. export interface BrokerLogEvent {
  528. text?: string;
  529. time?: string;
  530. runtimeId?: che.workspace.RuntimeIdentity;
  531. }
  532.  
  533. export interface WorkspaceStatusEvent {
  534. prevStatus?: string;
  535. error?: string;
  536. status?: string;
  537. workspaceId?: string;
  538. }
  539.  
  540. export interface InstallerLogEvent {
  541. installer?: string;
  542. stream?: string;
  543. text?: string;
  544. time?: string;
  545. machineName?: string;
  546. runtimeId?: che.workspace.RuntimeIdentity;
  547. }
  548.  
  549. export interface BootstrapperStatusEvent {
  550. time?: string;
  551. error?: string;
  552. machineName?: string;
  553. runtimeId?: che.workspace.RuntimeIdentity;
  554. status?: string;
  555. }
  556.  
  557. export interface RuntimeStatusEvent {
  558. prevStatus?: string;
  559. identity?: che.workspace.RuntimeIdentity;
  560. failed?: boolean;
  561. error?: string;
  562. status?: string;
  563. }
  564.  
  565. export interface MachineStatusEvent {
  566. identity?: che.workspace.RuntimeIdentity;
  567. eventType?: string;
  568. error?: string;
  569. machineName?: string;
  570. }
  571.  
  572. export interface ServerStatusEvent {
  573. identity?: che.workspace.RuntimeIdentity;
  574. serverUrl?: string;
  575. serverName?: string;
  576. machineName?: string;
  577. status?: string;
  578. }
  579.  
  580. export interface BrokerStatusChangedEvent {
  581. tooling?: string;
  582. error?: string;
  583. runtimeId?: che.workspace.RuntimeIdentity;
  584. status?: string;
  585. }
  586.  
  587. export interface RuntimeLogEvent {
  588. stream?: string;
  589. text?: string;
  590. time?: string;
  591. machineName?: string;
  592. runtimeId?: che.workspace.RuntimeIdentity;
  593. }
  594.  
  595. export interface InstallerStatusEvent {
  596. installer?: string;
  597. time?: string;
  598. error?: string;
  599. machineName?: string;
  600. runtimeId?: che.workspace.RuntimeIdentity;
  601. status?: string;
  602. }
  603.  
  604. export interface MachineLogEvent {
  605. stream?: string;
  606. text?: string;
  607. time?: string;
  608. machineName?: string;
  609. runtimeId?: che.workspace.RuntimeIdentity;
  610. }
  611.  
  612. }
  613.  
  614. export namespace che.core.rest {
  615.  
  616. export interface ServiceError {
  617. message?: string;
  618. }
  619.  
  620. export interface ExtendedError {
  621. errorCode?: number;
  622. attributes?: { [key: string]: string; };
  623. message?: string;
  624. }
  625.  
  626. export interface ServiceDescriptor {
  627. description?: string;
  628. links?: Link[];
  629. href?: string;
  630. version?: string;
  631. }
  632.  
  633. export interface Link {
  634. method?: string;
  635. requestBody?: RequestBodyDescriptor;
  636. produces?: string;
  637. rel?: string;
  638. href?: string;
  639. parameters?: LinkParameter[];
  640. consumes?: string;
  641. }
  642.  
  643. export interface ApiInfo {
  644. specificationVendor?: string;
  645. ideVersion?: string;
  646. specificationTitle?: string;
  647. implementationVersion?: string;
  648. implementationVendor?: string;
  649. scmRevision?: string;
  650. specificationVersion?: string;
  651. }
  652.  
  653. export interface LinkParameter {
  654. valid?: string[];
  655. defaultValue?: string;
  656. name?: string;
  657. description?: string;
  658. type?: string;
  659. required?: boolean;
  660. }
  661.  
  662. export interface RequestBodyDescriptor {
  663. description?: string;
  664. }
  665.  
  666. export interface Hyperlinks {
  667. links?: Link[];
  668. }
  669.  
  670. }
  671.  
  672. export namespace che.git.event {
  673.  
  674. export interface GitRepositoryDeletedEvent {
  675. projectPath?: string;
  676. projectName?: string;
  677. }
  678.  
  679. export interface GitCommitEvent {
  680. modifiedFiles?: { [key: string]: che.git.EditedRegion[]; };
  681. projectName?: string;
  682. status?: che.git.Status;
  683. }
  684.  
  685. export interface GitCheckoutEvent {
  686. branchRef?: string;
  687. projectName?: string;
  688. checkoutOnly?: boolean;
  689. workspaceId?: string;
  690. }
  691.  
  692. export interface GitRepositoryInitializedEvent {
  693. projectName?: string;
  694. }
  695.  
  696. }
  697.  
  698. export namespace che.debug.event {
  699.  
  700. export interface DisconnectEvent {
  701. type?: string;
  702. }
  703.  
  704. export interface DebuggerEvent {
  705. type?: string;
  706. }
  707.  
  708. export interface BreakpointActivatedEvent {
  709. type?: string;
  710. breakpoint?: che.debug.Breakpoint;
  711. }
  712.  
  713. export interface SuspendEvent {
  714. suspendPolicy?: string;
  715. location?: che.debug.Location;
  716. type?: string;
  717. }
  718.  
  719. }
  720.  
  721. export namespace che.project.service {
  722.  
  723. export interface UpdateRequest {
  724. options?: { [key: string]: string; };
  725. wsPath?: string;
  726. config?: che.workspace.ProjectConfig;
  727. }
  728.  
  729. export interface ImportResponse {
  730. config?: che.workspace.ProjectConfig;
  731. }
  732.  
  733. export interface RecognizeRequest {
  734. wsPath?: string;
  735. }
  736.  
  737. export interface DeleteRequest {
  738. wsPath?: string;
  739. }
  740.  
  741. export interface GetResponse {
  742. config?: che.workspace.ProjectConfig;
  743. }
  744.  
  745. export interface ImportRequest {
  746. sourceStorage?: che.workspace.SourceStorage;
  747. wsPath?: string;
  748. }
  749.  
  750. export interface DeleteResponse {
  751. config?: che.workspace.ProjectConfig;
  752. }
  753.  
  754. export interface CreateRequest {
  755. options?: { [key: string]: string; };
  756. wsPath?: string;
  757. config?: che.workspace.ProjectConfig;
  758. }
  759.  
  760. export interface CreateResponse {
  761. config?: che.workspace.ProjectConfig;
  762. }
  763.  
  764. export interface VerifyResponse {
  765. sourceEstimation?: che.project.SourceEstimation;
  766. }
  767.  
  768. export interface VerifyRequest {
  769. wsPath?: string;
  770. type?: string;
  771. }
  772.  
  773. export interface CreateBatchProjectsRequest {
  774. newProjectConfigs?: che.project.NewProjectConfig[];
  775. rewrite?: boolean;
  776. }
  777.  
  778. export interface RecognizeResponse {
  779. sourceEstimations?: che.project.SourceEstimation[];
  780. }
  781.  
  782. export interface UpdateResponse {
  783. config?: che.workspace.ProjectConfig;
  784. }
  785.  
  786. export interface GetRequest {
  787. wsPath?: string;
  788. }
  789.  
  790. }
  791.  
  792. export namespace che.debug {
  793.  
  794. export interface BreakpointConfiguration {
  795. condition?: string;
  796. hitCount?: number;
  797. suspendPolicy?: string;
  798. conditionEnabled?: boolean;
  799. hitCountEnabled?: boolean;
  800. }
  801.  
  802. export interface SimpleValue {
  803. variables?: Variable[];
  804. string?: string;
  805. }
  806.  
  807. export interface Method {
  808. name?: string;
  809. argumentsObj?: Variable[];
  810. }
  811.  
  812. export interface Location {
  813. threadId?: number;
  814. method?: Method;
  815. externalResourceId?: string;
  816. externalResource?: boolean;
  817. resourceProjectPath?: string;
  818. lineNumber?: number;
  819. target?: string;
  820. }
  821.  
  822. export interface Variable {
  823. variablePath?: VariablePath;
  824. primitive?: boolean;
  825. name?: string;
  826. type?: string;
  827. value?: SimpleValue;
  828. }
  829.  
  830. export interface Field {
  831. isStatic?: boolean;
  832. variablePath?: VariablePath;
  833. primitive?: boolean;
  834. name?: string;
  835. isVolatile?: boolean;
  836. isFinal?: boolean;
  837. type?: string;
  838. isTransient?: boolean;
  839. value?: SimpleValue;
  840. }
  841.  
  842. export interface DebugSession {
  843. id?: string;
  844. breakpoints?: Breakpoint[];
  845. type?: string;
  846. debuggerInfo?: DebuggerInfo;
  847. }
  848.  
  849. export interface StackFrameDump {
  850. variables?: Variable[];
  851. location?: Location;
  852. fields?: Field[];
  853. }
  854.  
  855. export interface ThreadState {
  856. groupName?: string;
  857. frames?: StackFrameDump[];
  858. name?: string;
  859. id?: number;
  860. suspended?: boolean;
  861. status?: string;
  862. }
  863.  
  864. export interface VariablePath {
  865. path?: string[];
  866. }
  867.  
  868. export interface DebuggerInfo {
  869. file?: string;
  870. port?: number;
  871. host?: string;
  872. name?: string;
  873. pid?: number;
  874. version?: string;
  875. }
  876.  
  877. export interface Breakpoint {
  878. breakpointConfiguration?: BreakpointConfiguration;
  879. location?: Location;
  880. enabled?: boolean;
  881. }
  882.  
  883. }
  884.  
  885. export namespace che.factory {
  886.  
  887. export interface OnAppClosed {
  888. actions?: IdeAction[];
  889. }
  890.  
  891. export interface OnProjectsLoaded {
  892. actions?: IdeAction[];
  893. }
  894.  
  895. export interface ButtonAttributes {
  896. color?: string;
  897. logo?: string;
  898. style?: string;
  899. counter?: boolean;
  900. }
  901.  
  902. export interface IdeAction {
  903. id?: string;
  904. properties?: { [key: string]: string; };
  905. }
  906.  
  907. export interface Author {
  908. created?: number;
  909. name?: string;
  910. userId?: string;
  911. email?: string;
  912. }
  913.  
  914. export interface Policies {
  915. referer?: string;
  916. create?: string;
  917. until?: number;
  918. since?: number;
  919. }
  920.  
  921. export interface Ide {
  922. onAppLoaded?: OnAppLoaded;
  923. onProjectsLoaded?: OnProjectsLoaded;
  924. onAppClosed?: OnAppClosed;
  925. }
  926.  
  927. export interface OnAppLoaded {
  928. actions?: IdeAction[];
  929. }
  930.  
  931. export interface Button {
  932. attributes?: ButtonAttributes;
  933. type?: string;
  934. }
  935.  
  936. export interface Factory {
  937. button?: Button;
  938. workspace?: che.workspace.WorkspaceConfig;
  939. creator?: Author;
  940. v?: string;
  941. name?: string;
  942. policies?: Policies;
  943. links?: che.core.rest.Link[];
  944. id?: string;
  945. ide?: Ide;
  946. }
  947.  
  948. }
  949.  
  950. export namespace che.system {
  951.  
  952. export interface SystemServiceEvent {
  953. service?: string;
  954. type?: string;
  955. }
  956.  
  957. export interface SystemStatusChangedEvent {
  958. prevStatus?: string;
  959. type?: string;
  960. status?: string;
  961. }
  962.  
  963. export interface SystemEvent {
  964. type?: string;
  965. }
  966.  
  967. export interface SystemServiceItemStoppedEvent {
  968. total?: number;
  969. item?: string;
  970. current?: number;
  971. service?: string;
  972. type?: string;
  973. }
  974.  
  975. export interface SystemState {
  976. links?: che.core.rest.Link[];
  977. status?: string;
  978. }
  979.  
  980. }
  981.  
  982. export namespace che.workspace {
  983.  
  984. export interface ServerConfig {
  985. path?: string;
  986. protocol?: string;
  987. port?: string;
  988. attributes?: { [key: string]: string; };
  989. }
  990.  
  991. export interface ProjectConfig {
  992. path?: string;
  993. mixins?: string[];
  994. name?: string;
  995. description?: string;
  996. attributes?: { [key: string]: string[]; };
  997. links?: che.core.rest.Link[];
  998. source?: SourceStorage;
  999. type?: string;
  1000. problems?: ProjectProblem[];
  1001. }
  1002.  
  1003. export interface Command {
  1004. name?: string;
  1005. attributes?: { [key: string]: string; };
  1006. commandLine?: string;
  1007. type?: string;
  1008. }
  1009.  
  1010. export interface Environment {
  1011. recipe?: Recipe;
  1012. machines?: { [key: string]: MachineConfig; };
  1013. }
  1014.  
  1015. export interface Workspace {
  1016. temporary?: boolean;
  1017. namespace?: string;
  1018. runtime?: Runtime;
  1019. attributes?: { [key: string]: string; };
  1020. links?: { [key: string]: string; };
  1021. id?: string;
  1022. config?: WorkspaceConfig;
  1023. status?: string;
  1024. }
  1025.  
  1026. export interface RuntimeIdentity {
  1027. envName?: string;
  1028. ownerId?: string;
  1029. workspaceId?: string;
  1030. }
  1031.  
  1032. export interface Recipe {
  1033. location?: string;
  1034. type?: string;
  1035. contentType?: string;
  1036. content?: string;
  1037. }
  1038.  
  1039. export interface Server {
  1040. attributes?: { [key: string]: string; };
  1041. url?: string;
  1042. status?: string;
  1043. }
  1044.  
  1045. export interface Warning {
  1046. code?: number;
  1047. message?: string;
  1048. }
  1049.  
  1050. export interface Machine {
  1051. servers?: { [key: string]: Server; };
  1052. attributes?: { [key: string]: string; };
  1053. status?: string;
  1054. }
  1055.  
  1056. export interface Volume {
  1057. path?: string;
  1058. }
  1059.  
  1060. export interface SourceStorage {
  1061. location?: string;
  1062. type?: string;
  1063. parameters?: { [key: string]: string; };
  1064. }
  1065.  
  1066. export interface MachineConfig {
  1067. installers?: string[];
  1068. servers?: { [key: string]: ServerConfig; };
  1069. volumes?: { [key: string]: Volume; };
  1070. attributes?: { [key: string]: string; };
  1071. env?: { [key: string]: string; };
  1072. }
  1073.  
  1074. export interface ProjectProblem {
  1075. code?: number;
  1076. message?: string;
  1077. }
  1078.  
  1079. export interface WorkspaceConfig {
  1080. projects?: ProjectConfig[];
  1081. environments?: { [key: string]: Environment; };
  1082. name?: string;
  1083. description?: string;
  1084. attributes?: { [key: string]: string; };
  1085. links?: che.core.rest.Link[];
  1086. commands?: Command[];
  1087. defaultEnv?: string;
  1088. }
  1089.  
  1090. export interface Runtime {
  1091. owner?: string;
  1092. warnings?: Warning[];
  1093. machineToken?: string;
  1094. activeEnv?: string;
  1095. links?: che.core.rest.Link[];
  1096. machines?: { [key: string]: Machine; };
  1097. commands?: Command[];
  1098. }
  1099.  
  1100. }
  1101.  
  1102. export namespace che.project.templates {
  1103.  
  1104. export interface ProjectTemplateDescriptor {
  1105. projects?: che.workspace.ProjectConfig[];
  1106. displayName?: string;
  1107. projectType?: string;
  1108. description?: string;
  1109. source?: che.workspace.SourceStorage;
  1110. tags?: string[];
  1111. path?: string;
  1112. mixins?: string[];
  1113. options?: { [key: string]: string; };
  1114. name?: string;
  1115. attributes?: { [key: string]: string[]; };
  1116. links?: che.core.rest.Link[];
  1117. category?: string;
  1118. commands?: che.workspace.Command[];
  1119. problems?: che.workspace.ProjectProblem[];
  1120. }
  1121.  
  1122. }
  1123.  
  1124. export namespace che.ssh {
  1125.  
  1126. export interface GenerateSshPairRequest {
  1127. service?: string;
  1128. name?: string;
  1129. }
  1130.  
  1131. export interface SshPair {
  1132. privateKey?: string;
  1133. service?: string;
  1134. name?: string;
  1135. links?: che.core.rest.Link[];
  1136. publicKey?: string;
  1137. }
  1138.  
  1139. }
  1140.  
  1141. export namespace che.project.event {
  1142.  
  1143. export interface ProjectTreeTrackingOperation {
  1144. path?: string;
  1145. type?: string;
  1146. }
  1147.  
  1148. export interface VfsWatchEvent {
  1149. path?: string;
  1150. file?: boolean;
  1151. type?: string;
  1152. }
  1153.  
  1154. export interface ProjectTreeStateUpdate {
  1155. path?: string;
  1156. file?: boolean;
  1157. type?: string;
  1158. }
  1159.  
  1160. export interface PomModifiedEvent {
  1161. path?: string;
  1162. }
  1163.  
  1164. export interface FileStateUpdate {
  1165. path?: string;
  1166. hashCode?: string;
  1167. type?: string;
  1168. }
  1169.  
  1170. export interface GitCheckoutEvent {
  1171. name?: string;
  1172. type?: string;
  1173. projectName?: string;
  1174. }
  1175.  
  1176. export interface FileTrackingOperation {
  1177. path?: string;
  1178. oldPath?: string;
  1179. type?: string;
  1180. }
  1181.  
  1182. }
  1183.  
  1184. export namespace che.debug.action {
  1185.  
  1186. export interface Action {
  1187. type?: string;
  1188. }
  1189.  
  1190. export interface SuspendAction {
  1191. type?: string;
  1192. }
  1193.  
  1194. export interface ResumeAction {
  1195. type?: string;
  1196. }
  1197.  
  1198. export interface StepIntoAction {
  1199. suspendPolicy?: string;
  1200. type?: string;
  1201. }
  1202.  
  1203. export interface StepOutAction {
  1204. suspendPolicy?: string;
  1205. type?: string;
  1206. }
  1207.  
  1208. export interface StepOverAction {
  1209. suspendPolicy?: string;
  1210. type?: string;
  1211. }
  1212.  
  1213. export interface StartAction {
  1214. breakpoints?: che.debug.Breakpoint[];
  1215. type?: string;
  1216. }
  1217.  
  1218. }
Add Comment
Please, Sign In to add comment