@serve.zone/interfaces 5.3.0 → 5.4.3

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 +26 -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
@@ -1,12 +0,0 @@
1
- import * as plugins from '../plugins.js';
2
-
3
- export interface IExternalRegistry {
4
- id: string;
5
- data: {
6
- type: 'docker' | 'npm';
7
- name: string;
8
- url: string;
9
- username: string;
10
- password: string;
11
- };
12
- }
@@ -1,391 +0,0 @@
1
- # @serve.zone/interfaces 📋
2
-
3
- **TypeScript interfaces for the Cloudly ecosystem.** Type-safe contracts for multi-cloud infrastructure management.
4
-
5
- ## 🎯 What is @serve.zone/interfaces?
6
-
7
- This package provides the complete set of TypeScript interfaces that power the Cloudly platform. It ensures type safety and consistency across all components - from API requests to data models, from service definitions to infrastructure configurations.
8
-
9
- ## ✨ Features
10
-
11
- - **🔒 Type Safety** - Comprehensive TypeScript interfaces for all Cloudly operations
12
- - **📦 Modular Structure** - Organized by domain for easy navigation
13
- - **🔄 Version Compatibility** - Interfaces versioned with the platform
14
- - **📚 Well Documented** - Each interface includes JSDoc comments
15
- - **🎭 Multi-Purpose** - Used by API clients, CLI tools, and web interfaces
16
- - **✅ Validation Ready** - Compatible with runtime type checking libraries
17
-
18
- ## 🚀 Installation
19
-
20
- ```bash
21
- pnpm add @serve.zone/interfaces
22
- ```
23
-
24
- ## 🏗️ Interface Categories
25
-
26
- ### 📡 Request/Response Interfaces
27
-
28
- Typed contracts for API communication:
29
-
30
- ```typescript
31
- import {
32
- IRequest_GetAllImages,
33
- IRequest_CreateCluster,
34
- IRequest_DeployService
35
- } from '@serve.zone/interfaces';
36
-
37
- // Type-safe request
38
- const request: IRequest_GetAllImages['request'] = {
39
- identity: userIdentity,
40
- filters: {
41
- tag: 'production'
42
- }
43
- };
44
-
45
- // Type-safe response
46
- const response: IRequest_GetAllImages['response'] = {
47
- images: [...]
48
- };
49
- ```
50
-
51
- ### 📦 Data Models
52
-
53
- Core data structures for Cloudly entities:
54
-
55
- ```typescript
56
- import {
57
- ICluster,
58
- IService,
59
- IImage,
60
- ISecret,
61
- IServer
62
- } from '@serve.zone/interfaces';
63
-
64
- // Define a service
65
- const service: IService = {
66
- id: 'service-123',
67
- data: {
68
- name: 'api-service',
69
- imageId: 'image-456',
70
- imageVersion: '2.0.0',
71
- environment: {
72
- NODE_ENV: 'production'
73
- },
74
- scaleFactor: 3,
75
- balancingStrategy: 'round-robin',
76
- ports: {
77
- web: 80,
78
- metrics: 9090
79
- },
80
- domains: [
81
- { name: 'api.example.com' }
82
- ],
83
- deploymentIds: [],
84
- deploymentDirectiveIds: []
85
- }
86
- };
87
- ```
88
-
89
- ### 🔐 Authentication & Identity
90
-
91
- Identity management interfaces:
92
-
93
- ```typescript
94
- import {
95
- IIdentity,
96
- IServiceToken,
97
- IPermission
98
- } from '@serve.zone/interfaces';
99
-
100
- const identity: IIdentity = {
101
- id: 'user-789',
102
- name: 'service-account',
103
- type: 'service',
104
- permissions: ['cluster:read', 'service:write'],
105
- tokenHash: 'hashed-token',
106
- metadata: {
107
- createdAt: new Date(),
108
- lastAccess: new Date()
109
- }
110
- };
111
- ```
112
-
113
- ### 🌐 Network Configuration
114
-
115
- Networking and routing interfaces:
116
-
117
- ```typescript
118
- import {
119
- IReverseProxyConfig,
120
- IDomainConfig,
121
- ILoadBalancerConfig
122
- } from '@serve.zone/interfaces';
123
-
124
- const proxyConfig: IReverseProxyConfig = {
125
- domain: 'app.example.com',
126
- path: '/api',
127
- serviceAddress: 'http://api-service:3000',
128
- ssl: true,
129
- headers: {
130
- 'X-Real-IP': '$remote_addr'
131
- }
132
- };
133
- ```
134
-
135
- ### 📊 Monitoring & Metrics
136
-
137
- Observability interfaces:
138
-
139
- ```typescript
140
- import {
141
- IServerMetrics,
142
- IServiceMetrics,
143
- IClusterHealth
144
- } from '@serve.zone/interfaces';
145
-
146
- const metrics: IServerMetrics = {
147
- serverId: 'server-001',
148
- cpuUsageInPercent: 65,
149
- memoryUsageinMB: 3072,
150
- memoryAvailableInMB: 8192,
151
- diskUsageInPercent: 40,
152
- networkInMbps: 100,
153
- networkOutMbps: 150,
154
- containerCount: 12,
155
- containerMetrics: [...]
156
- };
157
- ```
158
-
159
- ### 🔒 Secret Management
160
-
161
- Security and credential interfaces:
162
-
163
- ```typescript
164
- import {
165
- ISecretGroup,
166
- ISecretBundle,
167
- IEncryptedData
168
- } from '@serve.zone/interfaces';
169
-
170
- const secretGroup: ISecretGroup = {
171
- id: 'secrets-123',
172
- name: 'database-credentials',
173
- secrets: [
174
- {
175
- key: 'DB_HOST',
176
- value: 'encrypted-value',
177
- encrypted: true
178
- },
179
- {
180
- key: 'DB_PASSWORD',
181
- value: 'encrypted-value',
182
- encrypted: true
183
- }
184
- ],
185
- metadata: {
186
- environment: 'production',
187
- service: 'api'
188
- }
189
- };
190
- ```
191
-
192
- ## 📚 Common Usage Patterns
193
-
194
- ### Creating Type-Safe API Clients
195
-
196
- ```typescript
197
- import {
198
- IRequest_CreateService,
199
- IService
200
- } from '@serve.zone/interfaces';
201
-
202
- class ServiceClient {
203
- async createService(
204
- serviceData: IService['data']
205
- ): Promise<IService> {
206
- const request: IRequest_CreateService['request'] = {
207
- identity: this.identity,
208
- serviceData
209
- };
210
-
211
- const response = await this.client.send<IRequest_CreateService>(
212
- 'createService',
213
- request
214
- );
215
-
216
- return response.service;
217
- }
218
- }
219
- ```
220
-
221
- ### Validating Incoming Data
222
-
223
- ```typescript
224
- import { ICluster } from '@serve.zone/interfaces';
225
- import { validateType } from 'your-validation-library';
226
-
227
- function validateClusterData(data: unknown): ICluster {
228
- if (!validateType<ICluster>(data)) {
229
- throw new Error('Invalid cluster data');
230
- }
231
- return data;
232
- }
233
- ```
234
-
235
- ### Building Configuration Objects
236
-
237
- ```typescript
238
- import {
239
- ICloudlyConfig,
240
- IMongoDescriptor
241
- } from '@serve.zone/interfaces';
242
-
243
- const config: ICloudlyConfig = {
244
- cfToken: process.env.CF_TOKEN!,
245
- hetznerToken: process.env.HETZNER_TOKEN!,
246
- environment: 'production',
247
- letsEncryptEmail: 'certs@example.com',
248
- publicUrl: 'cloudly.example.com',
249
- publicPort: 443,
250
- mongoDescriptor: {
251
- mongoDbUrl: process.env.MONGO_URL!,
252
- mongoDbName: 'cloudly',
253
- mongoDbUser: process.env.MONGO_USER!,
254
- mongoDbPass: process.env.MONGO_PASS!
255
- }
256
- };
257
- ```
258
-
259
- ## 🎯 Advanced Features
260
-
261
- ### Generic Request Handler
262
-
263
- ```typescript
264
- import { ITypedRequest } from '@serve.zone/interfaces';
265
-
266
- class RequestHandler {
267
- async handle<T extends ITypedRequest>(
268
- request: T['request']
269
- ): Promise<T['response']> {
270
- // Type-safe request handling
271
- return this.processRequest(request);
272
- }
273
- }
274
- ```
275
-
276
- ### Discriminated Unions
277
-
278
- ```typescript
279
- import { IDeploymentStatus } from '@serve.zone/interfaces';
280
-
281
- function handleStatus(status: IDeploymentStatus) {
282
- switch (status.type) {
283
- case 'pending':
284
- console.log('Deployment pending...');
285
- break;
286
- case 'running':
287
- console.log(`Running on ${status.serverId}`);
288
- break;
289
- case 'failed':
290
- console.log(`Failed: ${status.error}`);
291
- break;
292
- }
293
- }
294
- ```
295
-
296
- ### Extending Interfaces
297
-
298
- ```typescript
299
- import { IService } from '@serve.zone/interfaces';
300
-
301
- interface IExtendedService extends IService {
302
- customMetadata: {
303
- team: string;
304
- costCenter: string;
305
- sla: 'standard' | 'premium';
306
- };
307
- }
308
- ```
309
-
310
- ## 🔄 Version Compatibility
311
-
312
- | @serve.zone/interfaces | @serve.zone/cloudly | @serve.zone/api | @serve.zone/cli |
313
- |------------------------|---------------------|-----------------|-----------------|
314
- | 5.x | 5.x | 5.x | 5.x |
315
- | 4.x | 4.x | 4.x | 4.x |
316
- | 3.x | 3.x | 3.x | 3.x |
317
-
318
- ## 📖 Interface Documentation
319
-
320
- All interfaces include comprehensive JSDoc comments:
321
-
322
- ```typescript
323
- /**
324
- * Represents a cluster configuration
325
- * @interface ICluster
326
- */
327
- export interface ICluster {
328
- /**
329
- * Unique identifier for the cluster
330
- * @type {string}
331
- */
332
- id: string;
333
-
334
- /**
335
- * Cluster configuration data
336
- * @type {IClusterData}
337
- */
338
- data: IClusterData;
339
- }
340
- ```
341
-
342
- ## 🛠️ Development Tips
343
-
344
- ### Import Organization
345
-
346
- ```typescript
347
- // Group imports by category
348
- import {
349
- // Data models
350
- ICluster,
351
- IService,
352
- IImage,
353
-
354
- // Requests
355
- IRequest_CreateCluster,
356
- IRequest_DeployService,
357
-
358
- // Configuration
359
- ICloudlyConfig,
360
- IReverseProxyConfig
361
- } from '@serve.zone/interfaces';
362
- ```
363
-
364
- ### Type Guards
365
-
366
- ```typescript
367
- import { IService, ICluster } from '@serve.zone/interfaces';
368
-
369
- function isService(entity: IService | ICluster): entity is IService {
370
- return 'imageId' in entity.data;
371
- }
372
- ```
373
-
374
- ## License and Legal Information
375
-
376
- This repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository.
377
-
378
- **Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
379
-
380
- ### Trademarks
381
-
382
- This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.
383
-
384
- ### Company Information
385
-
386
- Task Venture Capital GmbH
387
- Registered at District court Bremen HRB 35230 HB, Germany
388
-
389
- For any legal inquiries or if you require further information, please contact us via email at hello@task.vc.
390
-
391
- By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
@@ -1,13 +0,0 @@
1
- {
2
- "order": 0,
3
- "name": "@serve.zone/interfaces",
4
- "dependencies": [
5
- "@api.global/typedrequest-interfaces",
6
- "@push.rocks/smartlog-interfaces",
7
- "@tsclass/tsclass"
8
- ],
9
- "registries": [
10
- "registry.npmjs.org:public",
11
- "verdaccio.lossless.digital:public"
12
- ]
13
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes