@osaas/client-services 0.4.0 → 0.5.0

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.
@@ -0,0 +1,308 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ '/': {
7
+ /** Say hello */
8
+ get: {
9
+ responses: {
10
+ /** The magical words! */
11
+ 200: {
12
+ schema: string;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ '/checkmateinstance': {
18
+ /** List all running checkmate instances */
19
+ get: {
20
+ responses: {
21
+ /** Default Response */
22
+ 200: {
23
+ schema: {
24
+ /** @description Name of the checkmate instance */
25
+ name: string;
26
+ /** @description URL to instance API */
27
+ url: string;
28
+ resources: {
29
+ license: {
30
+ /** @description URL to license information */
31
+ url: string;
32
+ };
33
+ apiDocs?: {
34
+ /** @description URL to instance API documentation */
35
+ url: string;
36
+ };
37
+ app?: {
38
+ /** @description URL to instance application (GUI) */
39
+ url: string;
40
+ };
41
+ };
42
+ }[];
43
+ };
44
+ /** Default Response */
45
+ 500: {
46
+ schema: {
47
+ /** @description Reason why something failed */
48
+ reason: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ /** Launch a new checkmate instance */
54
+ post: {
55
+ parameters: {
56
+ body: {
57
+ body?: {
58
+ /** @description Name of the checkmate instance */
59
+ name: string;
60
+ };
61
+ };
62
+ };
63
+ responses: {
64
+ /** Default Response */
65
+ 200: {
66
+ schema: {
67
+ /** @description Name of the checkmate instance */
68
+ name: string;
69
+ /** @description URL to instance API */
70
+ url: string;
71
+ resources: {
72
+ license: {
73
+ /** @description URL to license information */
74
+ url: string;
75
+ };
76
+ apiDocs?: {
77
+ /** @description URL to instance API documentation */
78
+ url: string;
79
+ };
80
+ app?: {
81
+ /** @description URL to instance application (GUI) */
82
+ url: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ /** Default Response */
88
+ 403: {
89
+ schema: {
90
+ /** @description Reason why something failed */
91
+ reason: string;
92
+ };
93
+ };
94
+ /** Default Response */
95
+ 409: {
96
+ schema: {
97
+ /** @description Reason why something failed */
98
+ reason: string;
99
+ };
100
+ };
101
+ /** Default Response */
102
+ 500: {
103
+ schema: {
104
+ /** @description Reason why something failed */
105
+ reason: string;
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ '/checkmateinstance/{id}': {
112
+ /** Obtain status and resource URLs for an checkmate instance */
113
+ get: {
114
+ parameters: {
115
+ path: {
116
+ /** Name of the checkmate instance */
117
+ id: string;
118
+ };
119
+ };
120
+ responses: {
121
+ /** Default Response */
122
+ 200: {
123
+ schema: {
124
+ /** @description Name of the checkmate instance */
125
+ name: string;
126
+ /** @description URL to instance API */
127
+ url: string;
128
+ resources: {
129
+ license: {
130
+ /** @description URL to license information */
131
+ url: string;
132
+ };
133
+ apiDocs?: {
134
+ /** @description URL to instance API documentation */
135
+ url: string;
136
+ };
137
+ app?: {
138
+ /** @description URL to instance application (GUI) */
139
+ url: string;
140
+ };
141
+ };
142
+ };
143
+ };
144
+ /** Default Response */
145
+ 404: {
146
+ schema: {
147
+ /** @description Reason why something failed */
148
+ reason: string;
149
+ };
150
+ };
151
+ /** Default Response */
152
+ 500: {
153
+ schema: {
154
+ /** @description Reason why something failed */
155
+ reason: string;
156
+ };
157
+ };
158
+ };
159
+ };
160
+ /** Stop and remove an checkmate instance */
161
+ delete: {
162
+ parameters: {
163
+ path: {
164
+ /** Name of the checkmate instance */
165
+ id: string;
166
+ };
167
+ };
168
+ responses: {
169
+ /** Default Response */
170
+ 204: {
171
+ schema: string;
172
+ };
173
+ /** Default Response */
174
+ 500: {
175
+ schema: {
176
+ /** @description Reason why something failed */
177
+ reason: string;
178
+ };
179
+ };
180
+ };
181
+ };
182
+ };
183
+ '/health/{id}': {
184
+ /** Return status of checkmate instance */
185
+ get: {
186
+ parameters: {
187
+ path: {
188
+ /** Name of the checkmate instance */
189
+ id: string;
190
+ };
191
+ };
192
+ responses: {
193
+ /** Default Response */
194
+ 200: {
195
+ schema: {
196
+ /** @enum {string} */
197
+ status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
198
+ };
199
+ };
200
+ /** Default Response */
201
+ 500: {
202
+ schema: {
203
+ /** @description Reason why something failed */
204
+ reason: string;
205
+ };
206
+ };
207
+ };
208
+ };
209
+ };
210
+ '/logs/{id}': {
211
+ /** Return the latest logs from the checkmate instance */
212
+ get: {
213
+ parameters: {
214
+ query: {
215
+ timestamps?: boolean;
216
+ sinceSeconds?: number;
217
+ };
218
+ path: {
219
+ /** Name of the checkmate instance */
220
+ id: string;
221
+ };
222
+ };
223
+ responses: {
224
+ /** Default Response */
225
+ 200: {
226
+ schema: string;
227
+ };
228
+ /** Default Response */
229
+ 500: {
230
+ schema: {
231
+ /** @description Reason why something failed */
232
+ reason: string;
233
+ };
234
+ };
235
+ };
236
+ };
237
+ };
238
+ '/ports/{id}': {
239
+ /** Return the exposed extra ports for checkmate instance */
240
+ get: {
241
+ parameters: {
242
+ path: {
243
+ /** Name of the checkmate instance */
244
+ id: string;
245
+ };
246
+ };
247
+ responses: {
248
+ /** Default Response */
249
+ 200: {
250
+ schema: {
251
+ externalIp: string;
252
+ externalPort: number;
253
+ internalPort: number;
254
+ }[];
255
+ };
256
+ /** Default Response */
257
+ 500: {
258
+ schema: {
259
+ /** @description Reason why something failed */
260
+ reason: string;
261
+ };
262
+ };
263
+ };
264
+ };
265
+ };
266
+ }
267
+ export interface definitions {
268
+ }
269
+ export interface operations {
270
+ }
271
+ export interface external {
272
+ }
273
+ export type BluewaveLabsCheckmate = paths['/checkmateinstance/{id}']['get']['responses']['200']['schema'];
274
+ export type BluewaveLabsCheckmateConfig = paths['/checkmateinstance']['post']['parameters']['body']['body'];
275
+ import { Context } from '@osaas/client-core';
276
+ /**
277
+ * Create a new Checkmate instance
278
+ *
279
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
280
+ * @param {Context} context - Open Source Cloud configuration context
281
+ * @param {BluewaveLabsCheckmateConfig}} body - Service instance configuration
282
+ * @returns {BluewaveLabsCheckmate} - Service instance
283
+ * @example
284
+ * import { Context, createBluewaveLabsCheckmateInstance } from '@osaas/client-services';
285
+ *
286
+ * const ctx = new Context();
287
+ * const instance = await createBluewaveLabsCheckmateInstance(ctx, { name: 'myinstance' });
288
+ * console.log(instance.url);
289
+ */
290
+ export declare function createBluewaveLabsCheckmateInstance(ctx: Context, body: BluewaveLabsCheckmateConfig): Promise<BluewaveLabsCheckmate>;
291
+ /**
292
+ * Remove a Checkmate instance
293
+ *
294
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
295
+ * @param {Context} context - Open Source Cloud configuration context
296
+ * @param {string} name - Name of the monitor to be removed
297
+ */
298
+ export declare function removeBluewaveLabsCheckmateInstance(ctx: Context, name: string): Promise<void>;
299
+ /**
300
+ * Get a Checkmate instance
301
+ *
302
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
303
+ * @param {Context} context - Open Source Cloud configuration context
304
+ * @param {string} name - Name of the monitor to be retrieved
305
+ * @returns {BluewaveLabsCheckmate} - Service instance
306
+ */
307
+ export declare function getBluewaveLabsCheckmateInstance(ctx: Context, name: string): Promise<BluewaveLabsCheckmate>;
308
+ //# sourceMappingURL=bluewave-labs-checkmate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bluewave-labs-checkmate.d.ts","sourceRoot":"","sources":["../../src/generated/bluewave-labs-checkmate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE;QACH,gBAAgB;QAChB,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,yBAAyB;gBACzB,GAAG,EAAE;oB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AAC;AAEpE,OAAO,EACL,OAAO,EAKR,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,qBAAqB,CAAC,CAYhC;AAED;;;;;;GAMG;AACH,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;;;;GAOG;AACH,wBAAsB,gCAAgC,CACpD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,qBAAqB,CAAC,CAUhC"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by openapi-typescript.
4
+ * Do not make direct changes to the file.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.getBluewaveLabsCheckmateInstance = exports.removeBluewaveLabsCheckmateInstance = exports.createBluewaveLabsCheckmateInstance = void 0;
8
+ const client_core_1 = require("@osaas/client-core");
9
+ /**
10
+ * Create a new Checkmate instance
11
+ *
12
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
13
+ * @param {Context} context - Open Source Cloud configuration context
14
+ * @param {BluewaveLabsCheckmateConfig}} body - Service instance configuration
15
+ * @returns {BluewaveLabsCheckmate} - Service instance
16
+ * @example
17
+ * import { Context, createBluewaveLabsCheckmateInstance } from '@osaas/client-services';
18
+ *
19
+ * const ctx = new Context();
20
+ * const instance = await createBluewaveLabsCheckmateInstance(ctx, { name: 'myinstance' });
21
+ * console.log(instance.url);
22
+ */
23
+ async function createBluewaveLabsCheckmateInstance(ctx, body) {
24
+ const serviceAccessToken = await ctx.getServiceAccessToken('bluewave-labs-checkmate');
25
+ const instance = await (0, client_core_1.createInstance)(ctx, 'bluewave-labs-checkmate', serviceAccessToken, body);
26
+ await (0, client_core_1.waitForInstanceReady)('bluewave-labs-checkmate', instance.name, ctx);
27
+ return instance;
28
+ }
29
+ exports.createBluewaveLabsCheckmateInstance = createBluewaveLabsCheckmateInstance;
30
+ /**
31
+ * Remove a Checkmate instance
32
+ *
33
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
34
+ * @param {Context} context - Open Source Cloud configuration context
35
+ * @param {string} name - Name of the monitor to be removed
36
+ */
37
+ async function removeBluewaveLabsCheckmateInstance(ctx, name) {
38
+ const serviceAccessToken = await ctx.getServiceAccessToken('bluewave-labs-checkmate');
39
+ await (0, client_core_1.removeInstance)(ctx, 'bluewave-labs-checkmate', name, serviceAccessToken);
40
+ }
41
+ exports.removeBluewaveLabsCheckmateInstance = removeBluewaveLabsCheckmateInstance;
42
+ /**
43
+ * Get a Checkmate instance
44
+ *
45
+ * @description Monitor servers effortlessly with Checkmate—a powerful open-source tool for tracking server and website performance. Enjoy real-time alerts, in-depth insights, and manage over 1000 servers seamlessly!
46
+ * @param {Context} context - Open Source Cloud configuration context
47
+ * @param {string} name - Name of the monitor to be retrieved
48
+ * @returns {BluewaveLabsCheckmate} - Service instance
49
+ */
50
+ async function getBluewaveLabsCheckmateInstance(ctx, name) {
51
+ const serviceAccessToken = await ctx.getServiceAccessToken('bluewave-labs-checkmate');
52
+ return await (0, client_core_1.getInstance)(ctx, 'bluewave-labs-checkmate', name, serviceAccessToken);
53
+ }
54
+ exports.getBluewaveLabsCheckmateInstance = getBluewaveLabsCheckmateInstance;
55
+ //# sourceMappingURL=bluewave-labs-checkmate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bluewave-labs-checkmate.js","sourceRoot":"","sources":["../../src/generated/bluewave-labs-checkmate.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAqRH,oDAM4B;AAE5B;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,mCAAmC,CACvD,GAAY,EACZ,IAAiC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAc,EACnC,GAAG,EACH,yBAAyB,EACzB,kBAAkB,EAClB,IAAI,CACL,CAAC;IACF,MAAM,IAAA,kCAAoB,EAAC,yBAAyB,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1E,OAAO,QAAQ,CAAC;AAClB,CAAC;AAfD,kFAeC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,mCAAmC,CACvD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,MAAM,IAAA,4BAAc,EAClB,GAAG,EACH,yBAAyB,EACzB,IAAI,EACJ,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAbD,kFAaC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,gCAAgC,CACpD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,OAAO,MAAM,IAAA,yBAAW,EACtB,GAAG,EACH,yBAAyB,EACzB,IAAI,EACJ,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAbD,4EAaC"}
@@ -0,0 +1,308 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ '/': {
7
+ /** Say hello */
8
+ get: {
9
+ responses: {
10
+ /** The magical words! */
11
+ 200: {
12
+ schema: string;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ '/diceinstance': {
18
+ /** List all running dice instances */
19
+ get: {
20
+ responses: {
21
+ /** Default Response */
22
+ 200: {
23
+ schema: {
24
+ /** @description Name of the dice instance */
25
+ name: string;
26
+ /** @description URL to instance API */
27
+ url: string;
28
+ resources: {
29
+ license: {
30
+ /** @description URL to license information */
31
+ url: string;
32
+ };
33
+ apiDocs?: {
34
+ /** @description URL to instance API documentation */
35
+ url: string;
36
+ };
37
+ app?: {
38
+ /** @description URL to instance application (GUI) */
39
+ url: string;
40
+ };
41
+ };
42
+ }[];
43
+ };
44
+ /** Default Response */
45
+ 500: {
46
+ schema: {
47
+ /** @description Reason why something failed */
48
+ reason: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ /** Launch a new dice instance */
54
+ post: {
55
+ parameters: {
56
+ body: {
57
+ body?: {
58
+ /** @description Name of the dice instance */
59
+ name: string;
60
+ };
61
+ };
62
+ };
63
+ responses: {
64
+ /** Default Response */
65
+ 200: {
66
+ schema: {
67
+ /** @description Name of the dice instance */
68
+ name: string;
69
+ /** @description URL to instance API */
70
+ url: string;
71
+ resources: {
72
+ license: {
73
+ /** @description URL to license information */
74
+ url: string;
75
+ };
76
+ apiDocs?: {
77
+ /** @description URL to instance API documentation */
78
+ url: string;
79
+ };
80
+ app?: {
81
+ /** @description URL to instance application (GUI) */
82
+ url: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ /** Default Response */
88
+ 403: {
89
+ schema: {
90
+ /** @description Reason why something failed */
91
+ reason: string;
92
+ };
93
+ };
94
+ /** Default Response */
95
+ 409: {
96
+ schema: {
97
+ /** @description Reason why something failed */
98
+ reason: string;
99
+ };
100
+ };
101
+ /** Default Response */
102
+ 500: {
103
+ schema: {
104
+ /** @description Reason why something failed */
105
+ reason: string;
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ '/diceinstance/{id}': {
112
+ /** Obtain status and resource URLs for an dice instance */
113
+ get: {
114
+ parameters: {
115
+ path: {
116
+ /** Name of the dice instance */
117
+ id: string;
118
+ };
119
+ };
120
+ responses: {
121
+ /** Default Response */
122
+ 200: {
123
+ schema: {
124
+ /** @description Name of the dice instance */
125
+ name: string;
126
+ /** @description URL to instance API */
127
+ url: string;
128
+ resources: {
129
+ license: {
130
+ /** @description URL to license information */
131
+ url: string;
132
+ };
133
+ apiDocs?: {
134
+ /** @description URL to instance API documentation */
135
+ url: string;
136
+ };
137
+ app?: {
138
+ /** @description URL to instance application (GUI) */
139
+ url: string;
140
+ };
141
+ };
142
+ };
143
+ };
144
+ /** Default Response */
145
+ 404: {
146
+ schema: {
147
+ /** @description Reason why something failed */
148
+ reason: string;
149
+ };
150
+ };
151
+ /** Default Response */
152
+ 500: {
153
+ schema: {
154
+ /** @description Reason why something failed */
155
+ reason: string;
156
+ };
157
+ };
158
+ };
159
+ };
160
+ /** Stop and remove an dice instance */
161
+ delete: {
162
+ parameters: {
163
+ path: {
164
+ /** Name of the dice instance */
165
+ id: string;
166
+ };
167
+ };
168
+ responses: {
169
+ /** Default Response */
170
+ 204: {
171
+ schema: string;
172
+ };
173
+ /** Default Response */
174
+ 500: {
175
+ schema: {
176
+ /** @description Reason why something failed */
177
+ reason: string;
178
+ };
179
+ };
180
+ };
181
+ };
182
+ };
183
+ '/health/{id}': {
184
+ /** Return status of dice instance */
185
+ get: {
186
+ parameters: {
187
+ path: {
188
+ /** Name of the dice instance */
189
+ id: string;
190
+ };
191
+ };
192
+ responses: {
193
+ /** Default Response */
194
+ 200: {
195
+ schema: {
196
+ /** @enum {string} */
197
+ status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
198
+ };
199
+ };
200
+ /** Default Response */
201
+ 500: {
202
+ schema: {
203
+ /** @description Reason why something failed */
204
+ reason: string;
205
+ };
206
+ };
207
+ };
208
+ };
209
+ };
210
+ '/logs/{id}': {
211
+ /** Return the latest logs from the dice instance */
212
+ get: {
213
+ parameters: {
214
+ query: {
215
+ timestamps?: boolean;
216
+ sinceSeconds?: number;
217
+ };
218
+ path: {
219
+ /** Name of the dice instance */
220
+ id: string;
221
+ };
222
+ };
223
+ responses: {
224
+ /** Default Response */
225
+ 200: {
226
+ schema: string;
227
+ };
228
+ /** Default Response */
229
+ 500: {
230
+ schema: {
231
+ /** @description Reason why something failed */
232
+ reason: string;
233
+ };
234
+ };
235
+ };
236
+ };
237
+ };
238
+ '/ports/{id}': {
239
+ /** Return the exposed extra ports for dice instance */
240
+ get: {
241
+ parameters: {
242
+ path: {
243
+ /** Name of the dice instance */
244
+ id: string;
245
+ };
246
+ };
247
+ responses: {
248
+ /** Default Response */
249
+ 200: {
250
+ schema: {
251
+ externalIp: string;
252
+ externalPort: number;
253
+ internalPort: number;
254
+ }[];
255
+ };
256
+ /** Default Response */
257
+ 500: {
258
+ schema: {
259
+ /** @description Reason why something failed */
260
+ reason: string;
261
+ };
262
+ };
263
+ };
264
+ };
265
+ };
266
+ }
267
+ export interface definitions {
268
+ }
269
+ export interface operations {
270
+ }
271
+ export interface external {
272
+ }
273
+ export type DicedbDice = paths['/diceinstance/{id}']['get']['responses']['200']['schema'];
274
+ export type DicedbDiceConfig = paths['/diceinstance']['post']['parameters']['body']['body'];
275
+ import { Context } from '@osaas/client-core';
276
+ /**
277
+ * Create a new Dice DB instance
278
+ *
279
+ * @description Experience real-time data management with DiceDB, the open-source, redis-compliant, reactive cache. Its scalable and multithreaded architecture enhances modern hardware utilization, perfect for cutting-edge applications.
280
+ * @param {Context} context - Open Source Cloud configuration context
281
+ * @param {DicedbDiceConfig}} body - Service instance configuration
282
+ * @returns {DicedbDice} - Service instance
283
+ * @example
284
+ * import { Context, createDicedbDiceInstance } from '@osaas/client-services';
285
+ *
286
+ * const ctx = new Context();
287
+ * const instance = await createDicedbDiceInstance(ctx, { name: 'myinstance' });
288
+ * console.log(instance.url);
289
+ */
290
+ export declare function createDicedbDiceInstance(ctx: Context, body: DicedbDiceConfig): Promise<DicedbDice>;
291
+ /**
292
+ * Remove a Dice DB instance
293
+ *
294
+ * @description Experience real-time data management with DiceDB, the open-source, redis-compliant, reactive cache. Its scalable and multithreaded architecture enhances modern hardware utilization, perfect for cutting-edge applications.
295
+ * @param {Context} context - Open Source Cloud configuration context
296
+ * @param {string} name - Name of the dice to be removed
297
+ */
298
+ export declare function removeDicedbDiceInstance(ctx: Context, name: string): Promise<void>;
299
+ /**
300
+ * Get a Dice DB instance
301
+ *
302
+ * @description Experience real-time data management with DiceDB, the open-source, redis-compliant, reactive cache. Its scalable and multithreaded architecture enhances modern hardware utilization, perfect for cutting-edge applications.
303
+ * @param {Context} context - Open Source Cloud configuration context
304
+ * @param {string} name - Name of the dice to be retrieved
305
+ * @returns {DicedbDice} - Service instance
306
+ */
307
+ export declare function getDicedbDiceInstance(ctx: Context, name: string): Promise<DicedbDice>;
308
+ //# sourceMappingURL=dicedb-dice.d.ts.map