@serve.zone/interfaces 5.3.0 → 5.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/.smartconfig.json +32 -0
  2. package/changelog.md +22 -0
  3. package/dist_ts/00_commitinfo_data.js +9 -0
  4. package/{dist_ts_interfaces → dist_ts}/data/baremetal.js +1 -1
  5. package/{dist_ts_interfaces → dist_ts}/data/cloudlyconfig.js +1 -1
  6. package/{dist_ts_interfaces → dist_ts}/data/cluster.js +1 -1
  7. package/{dist_ts_interfaces → dist_ts}/data/clusternode.js +1 -1
  8. package/{dist_ts_interfaces → dist_ts}/data/config.js +1 -1
  9. package/{dist_ts_interfaces → dist_ts}/data/deployment.js +1 -1
  10. package/dist_ts/data/dns.d.ts +85 -0
  11. package/dist_ts/data/dns.js +2 -0
  12. package/{dist_ts_interfaces → dist_ts}/data/docker.js +1 -1
  13. package/dist_ts/data/domain.d.ts +102 -0
  14. package/dist_ts/data/domain.js +2 -0
  15. package/{dist_ts_interfaces → dist_ts}/data/event.js +1 -1
  16. package/dist_ts/data/externalregistry.d.ts +92 -0
  17. package/{dist_ts_interfaces → dist_ts}/data/externalregistry.js +1 -1
  18. package/{dist_ts_interfaces → dist_ts}/data/image.js +1 -1
  19. package/{dist_ts_interfaces → dist_ts}/data/index.d.ts +3 -0
  20. package/dist_ts/data/index.js +22 -0
  21. package/{dist_ts_interfaces → dist_ts}/data/secretbundle.js +1 -1
  22. package/{dist_ts_interfaces → dist_ts}/data/secretgroup.js +1 -1
  23. package/{dist_ts_interfaces → dist_ts}/data/server.js +1 -1
  24. package/{dist_ts_interfaces → dist_ts}/data/service.d.ts +14 -0
  25. package/{dist_ts_interfaces → dist_ts}/data/service.js +1 -1
  26. package/{dist_ts_interfaces → dist_ts}/data/settings.js +1 -1
  27. package/{dist_ts_interfaces → dist_ts}/data/status.js +1 -1
  28. package/dist_ts/data/taskexecution.d.ts +72 -0
  29. package/dist_ts/data/taskexecution.js +2 -0
  30. package/{dist_ts_interfaces → dist_ts}/data/traffic.js +1 -1
  31. package/{dist_ts_interfaces → dist_ts}/data/user.js +1 -1
  32. package/{dist_ts_interfaces → dist_ts}/data/version.js +1 -1
  33. package/{dist_ts_interfaces → dist_ts}/index.js +1 -1
  34. package/{dist_ts_interfaces → dist_ts}/platformservice/aibridge.js +1 -1
  35. package/dist_ts/platformservice/index.js +7 -0
  36. package/{dist_ts_interfaces → dist_ts}/platformservice/letter.js +1 -1
  37. package/{dist_ts_interfaces → dist_ts}/platformservice/mta.js +1 -1
  38. package/dist_ts/platformservice/pushnotification.js +2 -0
  39. package/{dist_ts_interfaces → dist_ts}/platformservice/sms.js +1 -1
  40. package/{dist_ts_interfaces → dist_ts}/plugins.js +1 -1
  41. package/{dist_ts_interfaces → dist_ts}/requests/admin.js +1 -1
  42. package/{dist_ts_interfaces → dist_ts}/requests/baremetal.js +1 -1
  43. package/{dist_ts_interfaces → dist_ts}/requests/certificate.js +1 -1
  44. package/{dist_ts_interfaces → dist_ts}/requests/cluster.js +1 -1
  45. package/{dist_ts_interfaces → dist_ts}/requests/config.js +1 -1
  46. package/{dist_ts_interfaces → dist_ts}/requests/deployment.js +1 -1
  47. package/dist_ts/requests/dns.d.ts +63 -0
  48. package/dist_ts/requests/dns.js +2 -0
  49. package/dist_ts/requests/domain.d.ts +69 -0
  50. package/dist_ts/requests/domain.js +2 -0
  51. package/{dist_ts_interfaces → dist_ts}/requests/externalregistry.d.ts +13 -0
  52. package/dist_ts/requests/externalregistry.js +4 -0
  53. package/{dist_ts_interfaces → dist_ts}/requests/identity.js +1 -1
  54. package/{dist_ts_interfaces → dist_ts}/requests/image.js +1 -1
  55. package/{dist_ts_interfaces → dist_ts}/requests/index.d.ts +5 -1
  56. package/dist_ts/requests/index.js +28 -0
  57. package/{dist_ts_interfaces → dist_ts}/requests/inform.js +1 -1
  58. package/{dist_ts_interfaces → dist_ts}/requests/log.js +1 -1
  59. package/{dist_ts_interfaces → dist_ts}/requests/network.js +1 -1
  60. package/{dist_ts_interfaces → dist_ts}/requests/node.js +1 -1
  61. package/{dist_ts_interfaces → dist_ts}/requests/routing.js +1 -1
  62. package/{dist_ts_interfaces → dist_ts}/requests/secretbundle.js +1 -1
  63. package/{dist_ts_interfaces → dist_ts}/requests/secretgroup.js +1 -1
  64. package/{dist_ts_interfaces → dist_ts}/requests/server.js +1 -1
  65. package/{dist_ts_interfaces → dist_ts}/requests/service.js +1 -1
  66. package/{dist_ts_interfaces → dist_ts}/requests/settings.js +1 -1
  67. package/{dist_ts_interfaces → dist_ts}/requests/status.js +1 -1
  68. package/dist_ts/requests/task.d.ts +65 -0
  69. package/dist_ts/requests/task.js +4 -0
  70. package/{dist_ts_interfaces → dist_ts}/requests/version.js +1 -1
  71. package/license +1 -1
  72. package/package.json +42 -17
  73. package/readme.md +13 -375
  74. package/{ts_interfaces → ts}/00_commitinfo_data.ts +2 -2
  75. package/ts/data/dns.ts +100 -0
  76. package/ts/data/domain.ts +124 -0
  77. package/ts/data/externalregistry.ts +110 -0
  78. package/{ts_interfaces → ts}/data/index.ts +3 -0
  79. package/{ts_interfaces → ts}/data/service.ts +14 -0
  80. package/ts/data/taskexecution.ts +84 -0
  81. package/ts/requests/dns.ts +93 -0
  82. package/ts/requests/domain.ts +99 -0
  83. package/{ts_interfaces → ts}/requests/externalregistry.ts +17 -0
  84. package/{ts_interfaces → ts}/requests/index.ts +8 -0
  85. package/ts/requests/task.ts +95 -0
  86. package/cli.js +0 -4
  87. package/dist_ts_interfaces/00_commitinfo_data.js +0 -9
  88. package/dist_ts_interfaces/data/externalregistry.d.ts +0 -10
  89. package/dist_ts_interfaces/data/index.js +0 -19
  90. package/dist_ts_interfaces/platformservice/index.js +0 -7
  91. package/dist_ts_interfaces/platformservice/pushnotification.js +0 -2
  92. package/dist_ts_interfaces/requests/externalregistry.js +0 -4
  93. package/dist_ts_interfaces/requests/index.js +0 -24
  94. package/ts_interfaces/data/externalregistry.ts +0 -12
  95. package/ts_interfaces/readme.md +0 -391
  96. package/ts_interfaces/tspublish.json +0 -13
  97. /package/{dist_ts_interfaces → dist_ts}/00_commitinfo_data.d.ts +0 -0
  98. /package/{dist_ts_interfaces → dist_ts}/data/baremetal.d.ts +0 -0
  99. /package/{dist_ts_interfaces → dist_ts}/data/cloudlyconfig.d.ts +0 -0
  100. /package/{dist_ts_interfaces → dist_ts}/data/cluster.d.ts +0 -0
  101. /package/{dist_ts_interfaces → dist_ts}/data/clusternode.d.ts +0 -0
  102. /package/{dist_ts_interfaces → dist_ts}/data/config.d.ts +0 -0
  103. /package/{dist_ts_interfaces → dist_ts}/data/deployment.d.ts +0 -0
  104. /package/{dist_ts_interfaces → dist_ts}/data/docker.d.ts +0 -0
  105. /package/{dist_ts_interfaces → dist_ts}/data/event.d.ts +0 -0
  106. /package/{dist_ts_interfaces → dist_ts}/data/image.d.ts +0 -0
  107. /package/{dist_ts_interfaces → dist_ts}/data/secretbundle.d.ts +0 -0
  108. /package/{dist_ts_interfaces → dist_ts}/data/secretgroup.d.ts +0 -0
  109. /package/{dist_ts_interfaces → dist_ts}/data/server.d.ts +0 -0
  110. /package/{dist_ts_interfaces → dist_ts}/data/settings.d.ts +0 -0
  111. /package/{dist_ts_interfaces → dist_ts}/data/status.d.ts +0 -0
  112. /package/{dist_ts_interfaces → dist_ts}/data/traffic.d.ts +0 -0
  113. /package/{dist_ts_interfaces → dist_ts}/data/user.d.ts +0 -0
  114. /package/{dist_ts_interfaces → dist_ts}/data/version.d.ts +0 -0
  115. /package/{dist_ts_interfaces → dist_ts}/index.d.ts +0 -0
  116. /package/{dist_ts_interfaces → dist_ts}/platformservice/aibridge.d.ts +0 -0
  117. /package/{dist_ts_interfaces → dist_ts}/platformservice/index.d.ts +0 -0
  118. /package/{dist_ts_interfaces → dist_ts}/platformservice/letter.d.ts +0 -0
  119. /package/{dist_ts_interfaces → dist_ts}/platformservice/mta.d.ts +0 -0
  120. /package/{dist_ts_interfaces → dist_ts}/platformservice/pushnotification.d.ts +0 -0
  121. /package/{dist_ts_interfaces → dist_ts}/platformservice/sms.d.ts +0 -0
  122. /package/{dist_ts_interfaces → dist_ts}/plugins.d.ts +0 -0
  123. /package/{dist_ts_interfaces → dist_ts}/requests/admin.d.ts +0 -0
  124. /package/{dist_ts_interfaces → dist_ts}/requests/baremetal.d.ts +0 -0
  125. /package/{dist_ts_interfaces → dist_ts}/requests/certificate.d.ts +0 -0
  126. /package/{dist_ts_interfaces → dist_ts}/requests/cluster.d.ts +0 -0
  127. /package/{dist_ts_interfaces → dist_ts}/requests/config.d.ts +0 -0
  128. /package/{dist_ts_interfaces → dist_ts}/requests/deployment.d.ts +0 -0
  129. /package/{dist_ts_interfaces → dist_ts}/requests/identity.d.ts +0 -0
  130. /package/{dist_ts_interfaces → dist_ts}/requests/image.d.ts +0 -0
  131. /package/{dist_ts_interfaces → dist_ts}/requests/inform.d.ts +0 -0
  132. /package/{dist_ts_interfaces → dist_ts}/requests/log.d.ts +0 -0
  133. /package/{dist_ts_interfaces → dist_ts}/requests/network.d.ts +0 -0
  134. /package/{dist_ts_interfaces → dist_ts}/requests/node.d.ts +0 -0
  135. /package/{dist_ts_interfaces → dist_ts}/requests/routing.d.ts +0 -0
  136. /package/{dist_ts_interfaces → dist_ts}/requests/secretbundle.d.ts +0 -0
  137. /package/{dist_ts_interfaces → dist_ts}/requests/secretgroup.d.ts +0 -0
  138. /package/{dist_ts_interfaces → dist_ts}/requests/server.d.ts +0 -0
  139. /package/{dist_ts_interfaces → dist_ts}/requests/service.d.ts +0 -0
  140. /package/{dist_ts_interfaces → dist_ts}/requests/settings.d.ts +0 -0
  141. /package/{dist_ts_interfaces → dist_ts}/requests/status.d.ts +0 -0
  142. /package/{dist_ts_interfaces → dist_ts}/requests/version.d.ts +0 -0
  143. /package/{ts_interfaces → ts}/data/baremetal.ts +0 -0
  144. /package/{ts_interfaces → ts}/data/cloudlyconfig.ts +0 -0
  145. /package/{ts_interfaces → ts}/data/cluster.ts +0 -0
  146. /package/{ts_interfaces → ts}/data/clusternode.ts +0 -0
  147. /package/{ts_interfaces → ts}/data/config.ts +0 -0
  148. /package/{ts_interfaces → ts}/data/deployment.ts +0 -0
  149. /package/{ts_interfaces → ts}/data/docker.ts +0 -0
  150. /package/{ts_interfaces → ts}/data/event.ts +0 -0
  151. /package/{ts_interfaces → ts}/data/image.ts +0 -0
  152. /package/{ts_interfaces → ts}/data/secretbundle.ts +0 -0
  153. /package/{ts_interfaces → ts}/data/secretgroup.ts +0 -0
  154. /package/{ts_interfaces → ts}/data/server.ts +0 -0
  155. /package/{ts_interfaces → ts}/data/settings.ts +0 -0
  156. /package/{ts_interfaces → ts}/data/status.ts +0 -0
  157. /package/{ts_interfaces → ts}/data/traffic.ts +0 -0
  158. /package/{ts_interfaces → ts}/data/user.ts +0 -0
  159. /package/{ts_interfaces → ts}/data/version.ts +0 -0
  160. /package/{ts_interfaces → ts}/index.ts +0 -0
  161. /package/{ts_interfaces → ts}/platformservice/00readme.md +0 -0
  162. /package/{ts_interfaces → ts}/platformservice/aibridge.ts +0 -0
  163. /package/{ts_interfaces → ts}/platformservice/index.ts +0 -0
  164. /package/{ts_interfaces → ts}/platformservice/letter.ts +0 -0
  165. /package/{ts_interfaces → ts}/platformservice/mta.ts +0 -0
  166. /package/{ts_interfaces → ts}/platformservice/pushnotification.ts +0 -0
  167. /package/{ts_interfaces → ts}/platformservice/sms.ts +0 -0
  168. /package/{ts_interfaces → ts}/plugins.ts +0 -0
  169. /package/{ts_interfaces → ts}/requests/admin.ts +0 -0
  170. /package/{ts_interfaces → ts}/requests/baremetal.ts +0 -0
  171. /package/{ts_interfaces → ts}/requests/certificate.ts +0 -0
  172. /package/{ts_interfaces → ts}/requests/cluster.ts +0 -0
  173. /package/{ts_interfaces → ts}/requests/config.ts +0 -0
  174. /package/{ts_interfaces → ts}/requests/deployment.ts +0 -0
  175. /package/{ts_interfaces → ts}/requests/identity.ts +0 -0
  176. /package/{ts_interfaces → ts}/requests/image.ts +0 -0
  177. /package/{ts_interfaces → ts}/requests/inform.ts +0 -0
  178. /package/{ts_interfaces → ts}/requests/log.ts +0 -0
  179. /package/{ts_interfaces → ts}/requests/network.ts +0 -0
  180. /package/{ts_interfaces → ts}/requests/node.ts +0 -0
  181. /package/{ts_interfaces → ts}/requests/routing.ts +0 -0
  182. /package/{ts_interfaces → ts}/requests/secretbundle.ts +0 -0
  183. /package/{ts_interfaces → ts}/requests/secretgroup.ts +0 -0
  184. /package/{ts_interfaces → ts}/requests/server.ts +0 -0
  185. /package/{ts_interfaces → ts}/requests/service.ts +0 -0
  186. /package/{ts_interfaces → ts}/requests/settings.ts +0 -0
  187. /package/{ts_interfaces → ts}/requests/status.ts +0 -0
  188. /package/{ts_interfaces → ts}/requests/version.ts +0 -0
@@ -0,0 +1,110 @@
1
+ import * as plugins from '../plugins.js';
2
+
3
+ export interface IExternalRegistry {
4
+ id: string;
5
+ data: {
6
+ /**
7
+ * Registry type
8
+ */
9
+ type: 'docker' | 'npm';
10
+
11
+ /**
12
+ * Human-readable name for the registry
13
+ */
14
+ name: string;
15
+
16
+ /**
17
+ * Registry URL (e.g., https://registry.gitlab.com, docker.io)
18
+ */
19
+ url: string;
20
+
21
+ /**
22
+ * Username for authentication (optional for token-based or public registries)
23
+ */
24
+ username?: string;
25
+
26
+ /**
27
+ * Password, access token, or API key for authentication (optional for public registries)
28
+ */
29
+ password?: string;
30
+
31
+ /**
32
+ * Optional description
33
+ */
34
+ description?: string;
35
+
36
+ /**
37
+ * Whether this is the default registry for its type
38
+ */
39
+ isDefault?: boolean;
40
+
41
+ /**
42
+ * Authentication type
43
+ */
44
+ authType?: 'none' | 'basic' | 'token' | 'oauth2';
45
+
46
+ /**
47
+ * Allow insecure registry connections (HTTP or self-signed certs)
48
+ */
49
+ insecure?: boolean;
50
+
51
+ /**
52
+ * Optional namespace/organization for the registry
53
+ */
54
+ namespace?: string;
55
+
56
+ /**
57
+ * Proxy configuration
58
+ */
59
+ proxy?: {
60
+ http?: string;
61
+ https?: string;
62
+ noProxy?: string;
63
+ };
64
+
65
+ /**
66
+ * Registry-specific configuration
67
+ */
68
+ config?: {
69
+ /**
70
+ * For Docker registries
71
+ */
72
+ dockerConfig?: {
73
+ email?: string;
74
+ serverAddress?: string;
75
+ };
76
+ /**
77
+ * For npm registries
78
+ */
79
+ npmConfig?: {
80
+ scope?: string;
81
+ alwaysAuth?: boolean;
82
+ };
83
+ };
84
+
85
+ /**
86
+ * Status of the registry connection
87
+ */
88
+ status?: 'active' | 'inactive' | 'error' | 'unverified';
89
+
90
+ /**
91
+ * Last error message if status is 'error'
92
+ */
93
+ lastError?: string;
94
+
95
+ /**
96
+ * Timestamp when the registry was last successfully verified
97
+ */
98
+ lastVerified?: number;
99
+
100
+ /**
101
+ * Timestamp when the registry was created
102
+ */
103
+ createdAt?: number;
104
+
105
+ /**
106
+ * Timestamp when the registry was last updated
107
+ */
108
+ updatedAt?: number;
109
+ };
110
+ }
@@ -2,7 +2,9 @@ export * from './cloudlyconfig.js';
2
2
  export * from './cluster.js';
3
3
  export * from './config.js';
4
4
  export * from './deployment.js';
5
+ export * from './dns.js';
5
6
  export * from './docker.js';
7
+ export * from './domain.js';
6
8
  export * from './event.js';
7
9
  export * from './externalregistry.js';
8
10
  export * from './image.js';
@@ -13,6 +15,7 @@ export * from './clusternode.js';
13
15
  export * from './settings.js';
14
16
  export * from './service.js';
15
17
  export * from './status.js';
18
+ export * from './taskexecution.js';
16
19
  export * from './traffic.js';
17
20
  export * from './user.js';
18
21
  export * from './version.js';
@@ -54,8 +54,22 @@ export interface IService {
54
54
  };
55
55
  resources?: IServiceRessources;
56
56
  domains: {
57
+ /**
58
+ * Optional domain ID to specify which domain to use
59
+ * If not specified, will use the default domain or require manual configuration
60
+ */
61
+ domainId?: string;
62
+ /**
63
+ * The subdomain name (e.g., 'api', 'www', '@' for root)
64
+ */
57
65
  name: string;
66
+ /**
67
+ * The port to expose (defaults to ports.web if not specified)
68
+ */
58
69
  port?: number;
70
+ /**
71
+ * The protocol for this domain entry
72
+ */
59
73
  protocol?: 'http' | 'https' | 'ssh';
60
74
  }[];
61
75
  deploymentIds: string[];
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Task execution tracking for the task management system
3
+ * Tasks themselves are hard-coded using @push.rocks/taskbuffer
4
+ * This interface tracks execution history and outcomes
5
+ */
6
+ export interface ITaskExecution {
7
+ id: string;
8
+ data: {
9
+ /**
10
+ * Name of the task being executed
11
+ */
12
+ taskName: string;
13
+
14
+ /**
15
+ * Optional description of what the task does
16
+ */
17
+ taskDescription?: string;
18
+
19
+ /**
20
+ * Category for grouping tasks
21
+ */
22
+ category?: 'maintenance' | 'deployment' | 'backup' | 'monitoring' | 'cleanup' | 'system' | 'security';
23
+
24
+ /**
25
+ * Timestamp when the task started
26
+ */
27
+ startedAt: number;
28
+
29
+ /**
30
+ * Timestamp when the task completed
31
+ */
32
+ completedAt?: number;
33
+
34
+ /**
35
+ * Current status of the task execution
36
+ */
37
+ status: 'running' | 'completed' | 'failed' | 'cancelled';
38
+
39
+ /**
40
+ * Duration in milliseconds
41
+ */
42
+ duration?: number;
43
+
44
+ /**
45
+ * How the task was triggered
46
+ */
47
+ triggeredBy: 'schedule' | 'manual' | 'system';
48
+
49
+ /**
50
+ * User ID if manually triggered
51
+ */
52
+ userId?: string;
53
+
54
+ /**
55
+ * Execution logs
56
+ */
57
+ logs: Array<{
58
+ timestamp: number;
59
+ message: string;
60
+ severity: 'info' | 'warning' | 'error' | 'success';
61
+ }>;
62
+
63
+ /**
64
+ * Task-specific metrics
65
+ */
66
+ metrics?: {
67
+ [key: string]: any;
68
+ };
69
+
70
+ /**
71
+ * Final result/output of the task
72
+ */
73
+ result?: any;
74
+
75
+ /**
76
+ * Error details if the task failed
77
+ */
78
+ error?: {
79
+ message: string;
80
+ stack?: string;
81
+ code?: string;
82
+ };
83
+ };
84
+ }
@@ -0,0 +1,93 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type { IDnsEntry } from '../data/dns.js';
3
+ import type { IIdentity } from '../data/user.js';
4
+
5
+ export interface IRequest_Any_Cloudly_GetDnsEntries
6
+ extends plugins.typedrequestInterfaces.implementsTR<
7
+ plugins.typedrequestInterfaces.ITypedRequest,
8
+ IRequest_Any_Cloudly_GetDnsEntries
9
+ > {
10
+ method: 'getDnsEntries';
11
+ request: {
12
+ identity: IIdentity;
13
+ zone?: string; // Optional filter by zone
14
+ };
15
+ response: {
16
+ dnsEntries: IDnsEntry[];
17
+ };
18
+ }
19
+
20
+ export interface IRequest_Any_Cloudly_GetDnsEntryById
21
+ extends plugins.typedrequestInterfaces.implementsTR<
22
+ plugins.typedrequestInterfaces.ITypedRequest,
23
+ IRequest_Any_Cloudly_GetDnsEntryById
24
+ > {
25
+ method: 'getDnsEntryById';
26
+ request: {
27
+ identity: IIdentity;
28
+ dnsEntryId: string;
29
+ };
30
+ response: {
31
+ dnsEntry: IDnsEntry;
32
+ };
33
+ }
34
+
35
+ export interface IRequest_Any_Cloudly_CreateDnsEntry
36
+ extends plugins.typedrequestInterfaces.implementsTR<
37
+ plugins.typedrequestInterfaces.ITypedRequest,
38
+ IRequest_Any_Cloudly_CreateDnsEntry
39
+ > {
40
+ method: 'createDnsEntry';
41
+ request: {
42
+ identity: IIdentity;
43
+ dnsEntryData: IDnsEntry['data'];
44
+ };
45
+ response: {
46
+ dnsEntry: IDnsEntry;
47
+ };
48
+ }
49
+
50
+ export interface IRequest_Any_Cloudly_UpdateDnsEntry
51
+ extends plugins.typedrequestInterfaces.implementsTR<
52
+ plugins.typedrequestInterfaces.ITypedRequest,
53
+ IRequest_Any_Cloudly_UpdateDnsEntry
54
+ > {
55
+ method: 'updateDnsEntry';
56
+ request: {
57
+ identity: IIdentity;
58
+ dnsEntryId: string;
59
+ dnsEntryData: IDnsEntry['data'];
60
+ };
61
+ response: {
62
+ dnsEntry: IDnsEntry;
63
+ };
64
+ }
65
+
66
+ export interface IRequest_Any_Cloudly_DeleteDnsEntry
67
+ extends plugins.typedrequestInterfaces.implementsTR<
68
+ plugins.typedrequestInterfaces.ITypedRequest,
69
+ IRequest_Any_Cloudly_DeleteDnsEntry
70
+ > {
71
+ method: 'deleteDnsEntry';
72
+ request: {
73
+ identity: IIdentity;
74
+ dnsEntryId: string;
75
+ };
76
+ response: {
77
+ success: boolean;
78
+ };
79
+ }
80
+
81
+ export interface IRequest_Any_Cloudly_GetDnsZones
82
+ extends plugins.typedrequestInterfaces.implementsTR<
83
+ plugins.typedrequestInterfaces.ITypedRequest,
84
+ IRequest_Any_Cloudly_GetDnsZones
85
+ > {
86
+ method: 'getDnsZones';
87
+ request: {
88
+ identity: IIdentity;
89
+ };
90
+ response: {
91
+ zones: string[];
92
+ };
93
+ }
@@ -0,0 +1,99 @@
1
+ import * as plugins from '../plugins.js';
2
+ import type { IDomain } from '../data/domain.js';
3
+ import type { IIdentity } from '../data/user.js';
4
+
5
+ export interface IRequest_Any_Cloudly_GetDomains
6
+ extends plugins.typedrequestInterfaces.implementsTR<
7
+ plugins.typedrequestInterfaces.ITypedRequest,
8
+ IRequest_Any_Cloudly_GetDomains
9
+ > {
10
+ method: 'getDomains';
11
+ request: {
12
+ identity: IIdentity;
13
+ };
14
+ response: {
15
+ domains: IDomain[];
16
+ };
17
+ }
18
+
19
+ export interface IRequest_Any_Cloudly_GetDomainById
20
+ extends plugins.typedrequestInterfaces.implementsTR<
21
+ plugins.typedrequestInterfaces.ITypedRequest,
22
+ IRequest_Any_Cloudly_GetDomainById
23
+ > {
24
+ method: 'getDomainById';
25
+ request: {
26
+ identity: IIdentity;
27
+ domainId: string;
28
+ };
29
+ response: {
30
+ domain: IDomain;
31
+ };
32
+ }
33
+
34
+ export interface IRequest_Any_Cloudly_CreateDomain
35
+ extends plugins.typedrequestInterfaces.implementsTR<
36
+ plugins.typedrequestInterfaces.ITypedRequest,
37
+ IRequest_Any_Cloudly_CreateDomain
38
+ > {
39
+ method: 'createDomain';
40
+ request: {
41
+ identity: IIdentity;
42
+ domainData: IDomain['data'];
43
+ };
44
+ response: {
45
+ domain: IDomain;
46
+ };
47
+ }
48
+
49
+ export interface IRequest_Any_Cloudly_UpdateDomain
50
+ extends plugins.typedrequestInterfaces.implementsTR<
51
+ plugins.typedrequestInterfaces.ITypedRequest,
52
+ IRequest_Any_Cloudly_UpdateDomain
53
+ > {
54
+ method: 'updateDomain';
55
+ request: {
56
+ identity: IIdentity;
57
+ domainId: string;
58
+ domainData: IDomain['data'];
59
+ };
60
+ response: {
61
+ domain: IDomain;
62
+ };
63
+ }
64
+
65
+ export interface IRequest_Any_Cloudly_DeleteDomain
66
+ extends plugins.typedrequestInterfaces.implementsTR<
67
+ plugins.typedrequestInterfaces.ITypedRequest,
68
+ IRequest_Any_Cloudly_DeleteDomain
69
+ > {
70
+ method: 'deleteDomain';
71
+ request: {
72
+ identity: IIdentity;
73
+ domainId: string;
74
+ };
75
+ response: {
76
+ success: boolean;
77
+ };
78
+ }
79
+
80
+ export interface IRequest_Any_Cloudly_VerifyDomain
81
+ extends plugins.typedrequestInterfaces.implementsTR<
82
+ plugins.typedrequestInterfaces.ITypedRequest,
83
+ IRequest_Any_Cloudly_VerifyDomain
84
+ > {
85
+ method: 'verifyDomain';
86
+ request: {
87
+ identity: IIdentity;
88
+ domainId: string;
89
+ verificationMethod?: 'dns' | 'http' | 'email' | 'manual';
90
+ };
91
+ response: {
92
+ domain: IDomain;
93
+ verificationResult: {
94
+ success: boolean;
95
+ message?: string;
96
+ details?: any;
97
+ };
98
+ };
99
+ }
@@ -50,6 +50,7 @@ export interface IReq_UpdateRegistry extends plugins.typedrequestInterfaces.impl
50
50
  method: 'updateExternalRegistry';
51
51
  request: {
52
52
  identity: userInterfaces.IIdentity;
53
+ registryId: string;
53
54
  registryData: data.IExternalRegistry['data'];
54
55
  };
55
56
  response: {
@@ -69,4 +70,20 @@ export interface IReq_DeleteRegistryById extends plugins.typedrequestInterfaces.
69
70
  response: {
70
71
  ok: boolean;
71
72
  };
73
+ }
74
+
75
+ export interface IReq_VerifyRegistry extends plugins.typedrequestInterfaces.implementsTR<
76
+ plugins.typedrequestInterfaces.ITypedRequest,
77
+ IReq_VerifyRegistry
78
+ > {
79
+ method: 'verifyExternalRegistry';
80
+ request: {
81
+ identity: userInterfaces.IIdentity;
82
+ registryId: string;
83
+ };
84
+ response: {
85
+ success: boolean;
86
+ message?: string;
87
+ registry?: data.IExternalRegistry;
88
+ };
72
89
  }
@@ -5,6 +5,9 @@ import * as baremetalRequests from './baremetal.js';
5
5
  import * as certificateRequests from './certificate.js';
6
6
  import * as clusterRequests from './cluster.js';
7
7
  import * as configRequests from './config.js';
8
+ import * as deploymentRequests from './deployment.js';
9
+ import * as dnsRequests from './dns.js';
10
+ import * as domainRequests from './domain.js';
8
11
  import * as externalRegistryRequests from './externalregistry.js';
9
12
  import * as identityRequests from './identity.js';
10
13
  import * as imageRequests from './image.js';
@@ -19,6 +22,7 @@ import * as serverRequests from './server.js';
19
22
  import * as serviceRequests from './service.js';
20
23
  import * as settingsRequests from './settings.js';
21
24
  import * as statusRequests from './status.js';
25
+ import * as taskRequests from './task.js';
22
26
  import * as versionRequests from './version.js';
23
27
 
24
28
  export {
@@ -27,6 +31,9 @@ export {
27
31
  certificateRequests as certificate,
28
32
  clusterRequests as cluster,
29
33
  configRequests as config,
34
+ deploymentRequests as deployment,
35
+ dnsRequests as dns,
36
+ domainRequests as domain,
30
37
  externalRegistryRequests as externalRegistry,
31
38
  identityRequests as identity,
32
39
  imageRequests as image,
@@ -41,6 +48,7 @@ export {
41
48
  serviceRequests as service,
42
49
  settingsRequests as settings,
43
50
  statusRequests as status,
51
+ taskRequests as task,
44
52
  versionRequests as version,
45
53
  };
46
54
 
@@ -0,0 +1,95 @@
1
+ import * as plugins from '../plugins.js';
2
+ import * as data from '../data/index.js';
3
+ import * as userInterfaces from '../data/user.js';
4
+
5
+ // Get all tasks
6
+ export interface IRequest_Any_Cloudly_GetTasks
7
+ extends plugins.typedrequestInterfaces.implementsTR<
8
+ plugins.typedrequestInterfaces.ITypedRequest,
9
+ IRequest_Any_Cloudly_GetTasks
10
+ > {
11
+ method: 'getTasks';
12
+ request: {
13
+ identity: userInterfaces.IIdentity;
14
+ };
15
+ response: {
16
+ tasks: Array<{
17
+ name: string;
18
+ description: string;
19
+ category: 'maintenance' | 'deployment' | 'backup' | 'monitoring' | 'cleanup' | 'system' | 'security';
20
+ schedule?: string;
21
+ lastRun?: number;
22
+ enabled: boolean;
23
+ }>;
24
+ };
25
+ }
26
+
27
+ // Get task executions
28
+ export interface IRequest_Any_Cloudly_GetTaskExecutions
29
+ extends plugins.typedrequestInterfaces.implementsTR<
30
+ plugins.typedrequestInterfaces.ITypedRequest,
31
+ IRequest_Any_Cloudly_GetTaskExecutions
32
+ > {
33
+ method: 'getTaskExecutions';
34
+ request: {
35
+ identity: userInterfaces.IIdentity;
36
+ filter?: {
37
+ taskName?: string;
38
+ status?: string;
39
+ startedAfter?: number;
40
+ startedBefore?: number;
41
+ };
42
+ };
43
+ response: {
44
+ executions: data.ITaskExecution[];
45
+ };
46
+ }
47
+
48
+ // Get task execution by ID
49
+ export interface IRequest_Any_Cloudly_GetTaskExecutionById
50
+ extends plugins.typedrequestInterfaces.implementsTR<
51
+ plugins.typedrequestInterfaces.ITypedRequest,
52
+ IRequest_Any_Cloudly_GetTaskExecutionById
53
+ > {
54
+ method: 'getTaskExecutionById';
55
+ request: {
56
+ identity: userInterfaces.IIdentity;
57
+ executionId: string;
58
+ };
59
+ response: {
60
+ execution: data.ITaskExecution;
61
+ };
62
+ }
63
+
64
+ // Trigger task manually
65
+ export interface IRequest_Any_Cloudly_TriggerTask
66
+ extends plugins.typedrequestInterfaces.implementsTR<
67
+ plugins.typedrequestInterfaces.ITypedRequest,
68
+ IRequest_Any_Cloudly_TriggerTask
69
+ > {
70
+ method: 'triggerTask';
71
+ request: {
72
+ identity: userInterfaces.IIdentity;
73
+ taskName: string;
74
+ userId?: string;
75
+ };
76
+ response: {
77
+ execution: data.ITaskExecution;
78
+ };
79
+ }
80
+
81
+ // Cancel a running task
82
+ export interface IRequest_Any_Cloudly_CancelTask
83
+ extends plugins.typedrequestInterfaces.implementsTR<
84
+ plugins.typedrequestInterfaces.ITypedRequest,
85
+ IRequest_Any_Cloudly_CancelTask
86
+ > {
87
+ method: 'cancelTask';
88
+ request: {
89
+ identity: userInterfaces.IIdentity;
90
+ executionId: string;
91
+ };
92
+ response: {
93
+ success: boolean;
94
+ };
95
+ }
package/cli.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- process.env.CLI_CALL = 'true';
3
- const cliTool = await import('./dist_ts_interfaces/index.js');
4
- cliTool.runCli();
@@ -1,9 +0,0 @@
1
- /**
2
- * autocreated commitinfo by @push.rocks/commitinfo
3
- */
4
- export const commitinfo = {
5
- name: '@serve.zone/interfaces',
6
- version: '1.1.2',
7
- description: 'interfaces for working with containers'
8
- };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfaW50ZXJmYWNlcy8wMF9jb21taXRpbmZvX2RhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUc7SUFDeEIsSUFBSSxFQUFFLHdCQUF3QjtJQUM5QixPQUFPLEVBQUUsT0FBTztJQUNoQixXQUFXLEVBQUUsd0NBQXdDO0NBQ3RELENBQUEifQ==
@@ -1,10 +0,0 @@
1
- export interface IExternalRegistry {
2
- id: string;
3
- data: {
4
- type: 'docker' | 'npm';
5
- name: string;
6
- url: string;
7
- username: string;
8
- password: string;
9
- };
10
- }
@@ -1,19 +0,0 @@
1
- export * from './cloudlyconfig.js';
2
- export * from './cluster.js';
3
- export * from './config.js';
4
- export * from './deployment.js';
5
- export * from './docker.js';
6
- export * from './event.js';
7
- export * from './externalregistry.js';
8
- export * from './image.js';
9
- export * from './secretbundle.js';
10
- export * from './secretgroup.js';
11
- export * from './baremetal.js';
12
- export * from './clusternode.js';
13
- export * from './settings.js';
14
- export * from './service.js';
15
- export * from './status.js';
16
- export * from './traffic.js';
17
- export * from './user.js';
18
- export * from './version.js';
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL2RhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQyJ9
@@ -1,7 +0,0 @@
1
- import * as aibridge from './aibridge.js';
2
- import * as letter from './letter.js';
3
- import * as mta from './mta.js';
4
- import * as pushnotification from './pushnotification.js';
5
- import * as sms from './sms.js';
6
- export { aibridge, letter, mta, pushnotification, sms, };
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3BsYXRmb3Jtc2VydmljZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssUUFBUSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEtBQUssTUFBTSxNQUFNLGFBQWEsQ0FBQztBQUN0QyxPQUFPLEtBQUssR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUNoQyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sdUJBQXVCLENBQUM7QUFDMUQsT0FBTyxLQUFLLEdBQUcsTUFBTSxVQUFVLENBQUM7QUFFaEMsT0FBTyxFQUNMLFFBQVEsRUFDUixNQUFNLEVBQ04sR0FBRyxFQUNILGdCQUFnQixFQUNoQixHQUFHLEdBQ0osQ0FBQSJ9
@@ -1,2 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVzaG5vdGlmaWNhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcGxhdGZvcm1zZXJ2aWNlL3B1c2hub3RpZmljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
@@ -1,4 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- import * as data from '../data/index.js';
3
- import * as userInterfaces from '../data/user.js';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWxyZWdpc3RyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcmVxdWVzdHMvZXh0ZXJuYWxyZWdpc3RyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEtBQUssSUFBSSxNQUFNLGtCQUFrQixDQUFDO0FBQ3pDLE9BQU8sS0FBSyxjQUFjLE1BQU0saUJBQWlCLENBQUMifQ==
@@ -1,24 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
- import * as adminRequests from './admin.js';
3
- import * as baremetalRequests from './baremetal.js';
4
- import * as certificateRequests from './certificate.js';
5
- import * as clusterRequests from './cluster.js';
6
- import * as configRequests from './config.js';
7
- import * as externalRegistryRequests from './externalregistry.js';
8
- import * as identityRequests from './identity.js';
9
- import * as imageRequests from './image.js';
10
- import * as informRequests from './inform.js';
11
- import * as logRequests from './log.js';
12
- import * as networkRequests from './network.js';
13
- import * as nodeRequests from './node.js';
14
- import * as routingRequests from './routing.js';
15
- import * as secretBundleRequests from './secretbundle.js';
16
- import * as secretGroupRequests from './secretgroup.js';
17
- import * as serverRequests from './server.js';
18
- import * as serviceRequests from './service.js';
19
- import * as settingsRequests from './settings.js';
20
- import * as statusRequests from './status.js';
21
- import * as versionRequests from './version.js';
22
- export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, versionRequests as version, };
23
- export * from './inform.js';
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sS0FBSyxhQUFhLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxpQkFBaUIsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRCxPQUFPLEtBQUssbUJBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFDeEQsT0FBTyxLQUFLLGVBQWUsTUFBTSxjQUFjLENBQUM7QUFDaEQsT0FBTyxLQUFLLGNBQWMsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxLQUFLLHdCQUF3QixNQUFNLHVCQUF1QixDQUFDO0FBQ2xFLE9BQU8sS0FBSyxnQkFBZ0IsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxLQUFLLGFBQWEsTUFBTSxZQUFZLENBQUM7QUFDNUMsT0FBTyxLQUFLLGNBQWMsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxLQUFLLFdBQVcsTUFBTSxVQUFVLENBQUM7QUFDeEMsT0FBTyxLQUFLLGVBQWUsTUFBTSxjQUFjLENBQUM7QUFDaEQsT0FBTyxLQUFLLFlBQVksTUFBTSxXQUFXLENBQUM7QUFDMUMsT0FBTyxLQUFLLGVBQWUsTUFBTSxjQUFjLENBQUM7QUFDaEQsT0FBTyxLQUFLLG9CQUFvQixNQUFNLG1CQUFtQixDQUFDO0FBQzFELE9BQU8sS0FBSyxtQkFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUN4RCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBRWhELE9BQU8sRUFDTCxhQUFhLElBQUksS0FBSyxFQUN0QixpQkFBaUIsSUFBSSxTQUFTLEVBQzlCLG1CQUFtQixJQUFJLFdBQVcsRUFDbEMsZUFBZSxJQUFJLE9BQU8sRUFDMUIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsd0JBQXdCLElBQUksZ0JBQWdCLEVBQzVDLGdCQUFnQixJQUFJLFFBQVEsRUFDNUIsYUFBYSxJQUFJLEtBQUssRUFDdEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsV0FBVyxJQUFJLEdBQUcsRUFDbEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsWUFBWSxJQUFJLElBQUksRUFDcEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsb0JBQW9CLElBQUksWUFBWSxFQUNwQyxtQkFBbUIsSUFBSSxXQUFXLEVBQ2xDLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGdCQUFnQixJQUFJLFFBQVEsRUFDNUIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sR0FDM0IsQ0FBQztBQUVGLGNBQWMsYUFBYSxDQUFDIn0=