@composio/core 0.5.5 → 0.6.1

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 (58) hide show
  1. package/dist/BaseProvider-QPPZprGx.d.mts +26875 -0
  2. package/dist/BaseProvider-dBg5sg9H.d.cts +26875 -0
  3. package/dist/FileToolModifier.utils.neutral-BN_L8usp.mjs +78 -0
  4. package/dist/FileToolModifier.utils.neutral-Bcl7LVf4.cjs +102 -0
  5. package/dist/Telemetry-Bn5VseVi.mjs +331 -0
  6. package/dist/Telemetry-DErMJqj0.cjs +337 -0
  7. package/dist/buffer-BFpVRahf.mjs +382 -0
  8. package/dist/buffer-CYf1Z6Sd.cjs +478 -0
  9. package/dist/composio-h_UeXpQT.d.cts +6325 -0
  10. package/dist/composio-ivOweCw4.d.mts +6325 -0
  11. package/dist/fileUtils.node-DLp53qm1.cjs +232 -0
  12. package/dist/fileUtils.node-MOEGtpnI.mjs +219 -0
  13. package/dist/index.cjs +273 -417
  14. package/dist/index.d.cts +6 -33161
  15. package/dist/index.d.mts +6 -33161
  16. package/dist/index.mjs +182 -325
  17. package/dist/models/Files.node.cjs +6 -4
  18. package/dist/models/Files.node.d.cts +1 -1
  19. package/dist/models/Files.node.d.mts +1 -1
  20. package/dist/models/Files.node.mjs +4 -2
  21. package/dist/models/Files.workerd.cjs +1 -1
  22. package/dist/models/Files.workerd.mjs +1 -1
  23. package/dist/platform/node.cjs +6 -3
  24. package/dist/platform/node.d.cts +1 -1
  25. package/dist/platform/node.d.mts +1 -1
  26. package/dist/platform/node.mjs +6 -3
  27. package/dist/platform/workerd.d.cts +1 -1
  28. package/dist/platform/workerd.d.mts +1 -1
  29. package/dist/{types-BaUqjuX3.d.mts → types-BF2OQZRP.d.cts} +8 -5
  30. package/dist/types-BXCpxUsu.d.cts +13 -0
  31. package/dist/{types-BrsW5suw.d.cts → types-Cvt_yFsu.d.mts} +8 -5
  32. package/dist/types-anOdQ7KW.d.mts +13 -0
  33. package/dist/utils/config-defaults/ConfigDefaults.node.cjs +10 -0
  34. package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +7 -0
  35. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +8 -0
  36. package/dist/utils/config-defaults/ConfigDefaults.node.mjs +9 -0
  37. package/dist/utils/config-defaults/ConfigDefaults.workerd.cjs +10 -0
  38. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +7 -0
  39. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +8 -0
  40. package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +9 -0
  41. package/dist/utils/modifiers/FileToolModifier.node.cjs +172 -0
  42. package/dist/utils/modifiers/FileToolModifier.node.d.cts +21 -0
  43. package/dist/utils/modifiers/FileToolModifier.node.d.mts +21 -0
  44. package/dist/utils/modifiers/FileToolModifier.node.mjs +173 -0
  45. package/dist/utils/modifiers/FileToolModifier.workerd.cjs +27 -0
  46. package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +20 -0
  47. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +20 -0
  48. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +27 -0
  49. package/package.json +25 -1
  50. package/src/platform/index.ts +1 -1
  51. package/src/platform/node.ts +17 -9
  52. package/src/platform/types.ts +9 -5
  53. package/src/platform/workerd.ts +7 -3
  54. package/dist/fileUtils-2bnnG7dq.cjs +0 -979
  55. package/dist/fileUtils-Dbn-fnh5.mjs +0 -900
  56. /package/dist/{chunk-0j-ceAHr.mjs → chunk-Dx2NuYGI.mjs} +0 -0
  57. /package/dist/{files.types-B7P5A1Z5.d.mts → files.types-BDqIUdfP.d.mts} +0 -0
  58. /package/dist/{files.types-D-RzIOHq.d.cts → files.types-nK6eTNnc.d.cts} +0 -0
@@ -0,0 +1,478 @@
1
+ const require_chunk = require('./chunk-CQwRTUmo.cjs');
2
+ let _composio_client = require("@composio/client");
3
+ let zod_v3 = require("zod/v3");
4
+ let chalk = require("chalk");
5
+ chalk = require_chunk.__toESM(chalk);
6
+
7
+ //#region src/utils/env.ts
8
+ const getEnvVariable = (name, defaultValue = void 0) => {
9
+ try {
10
+ return process.env[name] || defaultValue;
11
+ } catch (_e) {
12
+ return defaultValue;
13
+ }
14
+ };
15
+ /**
16
+ * Method to return all the envs based on a specific prefix
17
+ * @param prefix
18
+ * @example
19
+ * COMPOSIO_TOOLKIT_VERSION_GITHUB=20250902_00
20
+ * COMPOSIO_TOOLKIT_VERSION_SLACK=20250902_00
21
+ * COMPOSIO_TOOLKIT_VERSION_GMAIL=latest
22
+ * @returns {Record<string, unknown>}
23
+ * @returns
24
+ */
25
+ const getEnvsWithPrefix = (prefix) => {
26
+ try {
27
+ if (process && process.env) return Object.fromEntries(Object.entries(process.env).filter(([key]) => key.startsWith(prefix)));
28
+ else return {};
29
+ } catch (error) {
30
+ return {};
31
+ }
32
+ };
33
+
34
+ //#endregion
35
+ //#region src/utils/constants.ts
36
+ var constants_exports = /* @__PURE__ */ require_chunk.__exportAll({
37
+ CLIENT_PUSHER_KEY: () => CLIENT_PUSHER_KEY,
38
+ COMPOSIO_DIR: () => COMPOSIO_DIR,
39
+ COMPOSIO_LOG_LEVEL: () => COMPOSIO_LOG_LEVEL,
40
+ DEFAULT_BASE_URL: () => DEFAULT_BASE_URL,
41
+ DEFAULT_WEB_URL: () => DEFAULT_WEB_URL,
42
+ IS_DEVELOPMENT_OR_CI: () => IS_DEVELOPMENT_OR_CI,
43
+ TELEMETRY_URL: () => TELEMETRY_URL,
44
+ TEMP_FILES_DIRECTORY_NAME: () => TEMP_FILES_DIRECTORY_NAME,
45
+ USER_DATA_FILE_NAME: () => USER_DATA_FILE_NAME
46
+ });
47
+ const COMPOSIO_DIR = ".composio";
48
+ const USER_DATA_FILE_NAME = "user_data.json";
49
+ const TEMP_FILES_DIRECTORY_NAME = "files";
50
+ const DEFAULT_BASE_URL = "https://backend.composio.dev";
51
+ const DEFAULT_WEB_URL = "https://platform.composio.dev";
52
+ const TELEMETRY_URL = "https://app.composio.dev";
53
+ const CLIENT_PUSHER_KEY = getEnvVariable("CLIENT_PUSHER_KEY") || "ff9f18c208855d77a152";
54
+ const COMPOSIO_LOG_LEVEL = getEnvVariable("COMPOSIO_LOG_LEVEL");
55
+ const IS_DEVELOPMENT_OR_CI = getEnvVariable("DEVELOPMENT") || getEnvVariable("CI") || false;
56
+
57
+ //#endregion
58
+ //#region src/utils/logger.ts
59
+ const LOG_LEVELS = {
60
+ silent: -1,
61
+ error: 0,
62
+ warn: 1,
63
+ info: 2,
64
+ debug: 3
65
+ };
66
+ /**
67
+ * Get the current log level from environment variables.
68
+ * Defaults to 'info' if not set or invalid.
69
+ * @returns {LogLevel} The current log level
70
+ */
71
+ const getLogLevel = () => {
72
+ const envLevel = (COMPOSIO_LOG_LEVEL ?? "info")?.toLowerCase();
73
+ return envLevel && envLevel in LOG_LEVELS ? envLevel : "info";
74
+ };
75
+ var Logger = class {
76
+ level;
77
+ includeTimestamp;
78
+ console;
79
+ constructor(options = {}) {
80
+ this.level = options.level ?? getLogLevel();
81
+ this.includeTimestamp = options.includeTimestamp ?? true;
82
+ this.console = console;
83
+ }
84
+ formatMessage(args) {
85
+ const formattedArgs = args.map((arg, index) => {
86
+ if (typeof arg === "object") return JSON.stringify(arg);
87
+ else {
88
+ if (index === 0) if (args.length > 1) return chalk.default.yellow(`${arg}`);
89
+ else return String(arg);
90
+ return String(arg);
91
+ }
92
+ }).join("\n");
93
+ if (!this.includeTimestamp) return formattedArgs;
94
+ const timestamp = (/* @__PURE__ */ new Date()).toISOString();
95
+ return `${chalk.default.gray(timestamp)} - ${formattedArgs}`;
96
+ }
97
+ shouldLog(level) {
98
+ return LOG_LEVELS[level] <= LOG_LEVELS[this.level];
99
+ }
100
+ error(...args) {
101
+ if (this.shouldLog("error")) this.console.error(this.formatMessage(args));
102
+ }
103
+ warn(...args) {
104
+ if (this.shouldLog("warn")) this.console.warn(this.formatMessage(args));
105
+ }
106
+ info(...args) {
107
+ if (this.shouldLog("info")) this.console.info(this.formatMessage(args));
108
+ }
109
+ debug(...args) {
110
+ if (this.shouldLog("debug")) this.console.debug(this.formatMessage(args));
111
+ }
112
+ };
113
+ const logger = new Logger();
114
+ var logger_default = logger;
115
+
116
+ //#endregion
117
+ //#region src/errors/ComposioError.ts
118
+ /**
119
+ * @fileoverview Error class for Composio.
120
+ *
121
+ * This error class is used to create custom errors for Composio.
122
+ * It extends the built-in Error class and adds additional properties for code, status code, cause, meta, and possible fixes.
123
+ *
124
+ * @author Musthaq Ahamad <musthaq@composio.dev>
125
+ * @module errors/ComposioError
126
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error}
127
+ */
128
+ /**
129
+ * Base error class for all Composio errors
130
+ */
131
+ var ComposioError = class ComposioError extends Error {
132
+ /** @readonly Error name */
133
+ name = "ComposioError";
134
+ code;
135
+ possibleFixes;
136
+ errorId;
137
+ /**
138
+ * Creates a new ComposioError
139
+ * @param message Error message
140
+ * @param options Additional error options
141
+ */
142
+ constructor(message, options = {}) {
143
+ super(message);
144
+ if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
145
+ const statusCode = options.statusCode || (options.cause instanceof _composio_client.BadRequestError ? options.cause.status : void 0);
146
+ this.code = `TS-SDK::${options.code}`;
147
+ this.possibleFixes = options.possibleFixes;
148
+ this.definePropertyIfExists("statusCode", statusCode);
149
+ this.definePropertyIfExists("cause", options.cause);
150
+ const combinedStack = options.cause instanceof Error ? ComposioError.combineStackTraces(options.cause.stack, this.stack) : options.stack ?? this.stack;
151
+ this.definePropertyIfExists("stack", combinedStack);
152
+ if (options.meta && Object.keys(options.meta).length > 0) this.definePropertyIfExists("meta", options.meta);
153
+ }
154
+ /**
155
+ * Helper method to define a property only if it has a value
156
+ * @param propertyName Name of the property to define
157
+ * @param value Value to assign to the property
158
+ * @private
159
+ */
160
+ definePropertyIfExists(propertyName, value) {
161
+ if (value !== void 0) Object.defineProperty(this, propertyName, {
162
+ value,
163
+ enumerable: true,
164
+ writable: false,
165
+ configurable: true
166
+ });
167
+ }
168
+ /**
169
+ * Helper method to combine stack traces when wrapping errors
170
+ * This ensures the full call chain is preserved
171
+ * @param originalStack The stack of the error being wrapped
172
+ * @param currentStack The stack of the wrapper error
173
+ * @returns Combined stack trace
174
+ * @private
175
+ */
176
+ static combineStackTraces(originalStack, currentStack) {
177
+ if (!originalStack) return currentStack;
178
+ if (!currentStack) return originalStack;
179
+ const currentHeader = currentStack.split("\n")[0];
180
+ const originalStackBody = originalStack.split("\n").slice(1).join("\n");
181
+ return `${currentHeader}\n${currentStack.split("\n").slice(1).join("\n")}\n\nCaused by:\n${originalStackBody}`;
182
+ }
183
+ /**
184
+ * Extract and normalize error data for formatting
185
+ * @param includeStack Whether to include stack trace information
186
+ * @returns Structured error data for formatting
187
+ * @private
188
+ */
189
+ getErrorData(includeStack = false) {
190
+ const data = {
191
+ name: this.name,
192
+ message: this.message
193
+ };
194
+ const { cause, code, stack, statusCode, meta, possibleFixes } = this;
195
+ if (cause !== void 0) {
196
+ const rawCause = cause;
197
+ data.cause = rawCause instanceof Error ? rawCause.message : String(rawCause);
198
+ }
199
+ if (code) data.code = code;
200
+ if (statusCode !== void 0) data.statusCode = statusCode;
201
+ if (meta) data.meta = meta;
202
+ if (possibleFixes) data.possibleFixes = possibleFixes;
203
+ if (includeStack && stack) if (stack.includes("Caused by:")) {
204
+ const [currentStack, causeStack] = stack.split("Caused by:");
205
+ data.stack = [
206
+ ...currentStack.split("\n").slice(1),
207
+ "Caused by:",
208
+ ...causeStack.split("\n")
209
+ ];
210
+ } else data.stack = stack.split("\n").slice(1);
211
+ return data;
212
+ }
213
+ /**
214
+ * Prints a user-friendly, colorful representation of the error to the logger
215
+ * @param includeStack Whether to include the stack trace in the output (default: false)
216
+ */
217
+ prettyPrint(includeStack = false) {
218
+ const data = this.getErrorData(includeStack);
219
+ let output = "\n" + chalk.default.bgRed.white.bold(" ERROR ") + " " + chalk.default.white.bold(data.message) + "\n";
220
+ if (data.code) output += chalk.default.yellow(`Error Code: ${data.code}`) + "\n";
221
+ if (data.statusCode !== void 0) output += chalk.default.yellow(`Status: ${data.statusCode}`) + "\n";
222
+ if (data.cause) {
223
+ output += chalk.default.gray("Reason:") + "\n";
224
+ output += " " + chalk.default.white(data.cause) + "\n";
225
+ }
226
+ if (data.meta) {
227
+ output += chalk.default.gray("Additional Information:") + "\n";
228
+ output += " " + chalk.default.white(JSON.stringify(data.meta, null, 2).replace(/\n/g, "\n ")) + "\n";
229
+ }
230
+ if (data.possibleFixes?.length) {
231
+ output += "\n" + chalk.default.cyan.bold("Try the following:") + "\n";
232
+ const fixes = data.possibleFixes?.map((fix, index) => ` ${index + 1}. ` + chalk.default.white(fix));
233
+ output += fixes?.join("\n") + "\n";
234
+ }
235
+ if (data.stack?.length) {
236
+ output += "\n" + chalk.default.gray("Stack Trace:") + "\n";
237
+ output += chalk.default.gray(data.stack.join("\n")) + "\n";
238
+ }
239
+ output += "\n";
240
+ logger_default.error(output);
241
+ }
242
+ /**
243
+ * Static factory method to create and pretty print an error in one step
244
+ * @param message Error message
245
+ * @param options Error options
246
+ * @param includeStack Whether to include the stack trace in the output
247
+ * @returns The created error instance
248
+ */
249
+ static createAndPrint(message, options = {}, includeStack = false) {
250
+ const error = new ComposioError(message, options);
251
+ error.prettyPrint(includeStack);
252
+ return error;
253
+ }
254
+ /**
255
+ * Utility function to handle errors in a consistent way
256
+ * This properly displays the error without throwing
257
+ * @param error The error to handle
258
+ * @param options Options for error handling
259
+ */
260
+ static handle(error, options = {}) {
261
+ const { includeStack = false, exitProcess = false } = options;
262
+ if (error instanceof ComposioError) error.prettyPrint(includeStack);
263
+ else if (error instanceof zod_v3.ZodError) this.handleZodError(error, includeStack);
264
+ else if (error instanceof Error) this.handleStandardError(error, includeStack);
265
+ else this.handleUnknownError(error);
266
+ if (exitProcess) this.throwError(error);
267
+ }
268
+ /**
269
+ * Utility function to handle errors and then throw them
270
+ * This properly displays the error and then throws it, allowing callers to catch it.
271
+ * Use this for fatal errors that should stop execution.
272
+ * @param error The error to handle and throw
273
+ * @param includeStack Whether to include the stack trace in the output
274
+ * @throws ComposioError - Always throws after displaying the error
275
+ */
276
+ static handleAndThrow(error, includeStack = false) {
277
+ this.handle(error, { includeStack });
278
+ this.throwError(error);
279
+ }
280
+ /**
281
+ * Helper method to throw an error as a ComposioError
282
+ * @param error The error to throw
283
+ * @private
284
+ */
285
+ static throwError(error) {
286
+ if (error instanceof ComposioError) throw error;
287
+ else if (error instanceof Error) throw new ComposioError(error.message, { cause: error });
288
+ else throw new ComposioError(String(error));
289
+ }
290
+ /**
291
+ * Helper method to handle Zod validation errors
292
+ * @param error The Zod error to handle
293
+ * @param includeStack Whether to include the stack trace
294
+ * @private
295
+ */
296
+ static handleZodError(error, includeStack) {
297
+ logger_default.error("\n" + chalk.default.bgRed.white.bold(" ERROR ") + " " + chalk.default.white.bold(error.message));
298
+ logger_default.error(chalk.default.gray("Invalid parameters:"));
299
+ error.errors.forEach((err) => {
300
+ logger_default.error(chalk.default.yellow(err.path.join(".")) + " " + chalk.default.white(err.message));
301
+ });
302
+ logger_default.error(chalk.default.gray("Expected parameters:"));
303
+ error.errors.forEach((err) => {
304
+ logger_default.error(chalk.default.yellow(err.path.join(".")) + " " + chalk.default.white(err.message));
305
+ });
306
+ if (includeStack) {
307
+ logger_default.error("\n" + chalk.default.gray("Validation Errors:"));
308
+ error.errors.forEach((err) => {
309
+ const path = err.path.join(".");
310
+ logger_default.error(chalk.default.gray(" • ") + chalk.default.yellow(path ? `${path}: ` : "") + chalk.default.white(err.message));
311
+ });
312
+ if (error.stack) {
313
+ logger_default.error("\n" + chalk.default.gray("Stack Trace:"));
314
+ const stackLines = error.stack.split("\n").slice(1);
315
+ logger_default.error(chalk.default.gray(stackLines.join("\n")));
316
+ }
317
+ }
318
+ logger_default.error("");
319
+ }
320
+ /**
321
+ * Helper method to handle standard Error objects
322
+ * @param error The standard error to handle
323
+ * @param includeStack Whether to include the stack trace
324
+ * @private
325
+ */
326
+ static handleStandardError(error, includeStack) {
327
+ logger_default.error("\n" + chalk.default.bgRed.white.bold(" ERROR ") + " " + chalk.default.white.bold(error.message));
328
+ if (includeStack && error.stack) {
329
+ logger_default.error("\n" + chalk.default.gray("Stack Trace:"));
330
+ const stackLines = error.stack.split("\n").slice(1);
331
+ logger_default.error(chalk.default.gray(stackLines.join("\n")));
332
+ }
333
+ logger_default.error("");
334
+ }
335
+ /**
336
+ * Helper method to handle unknown error types
337
+ * @param error The unknown error value
338
+ * @private
339
+ */
340
+ static handleUnknownError(error) {
341
+ logger_default.error("\n" + chalk.default.bgRed.white.bold(" ERROR ") + " " + chalk.default.white.bold("Unknown error occurred"));
342
+ if (error !== null && error !== void 0) {
343
+ logger_default.error(chalk.default.gray("Error details:"));
344
+ logger_default.error(" " + chalk.default.white(String(error)));
345
+ }
346
+ logger_default.error("");
347
+ }
348
+ };
349
+
350
+ //#endregion
351
+ //#region src/utils/uuid.ts
352
+ function getRandomUUID() {
353
+ return globalThis.crypto.randomUUID();
354
+ }
355
+ function getRandomShortId() {
356
+ return getRandomUUID().slice(0, 8).replace(/-/g, "");
357
+ }
358
+
359
+ //#endregion
360
+ //#region src/utils/buffer.ts
361
+ /**
362
+ * Convert ArrayBuffer to base64.
363
+ */
364
+ function arrayBufferToBase64(buffer) {
365
+ const bytes = new Uint8Array(buffer);
366
+ let binary = "";
367
+ for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
368
+ return btoa(binary);
369
+ }
370
+ const base64ToUint8Array = (base64) => {
371
+ const binary = atob(base64);
372
+ const bytes = new Uint8Array(binary.length);
373
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
374
+ return bytes;
375
+ };
376
+ const uint8ArrayToBase64 = (bytes) => {
377
+ let binary = "";
378
+ for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
379
+ return btoa(binary);
380
+ };
381
+
382
+ //#endregion
383
+ Object.defineProperty(exports, 'COMPOSIO_DIR', {
384
+ enumerable: true,
385
+ get: function () {
386
+ return COMPOSIO_DIR;
387
+ }
388
+ });
389
+ Object.defineProperty(exports, 'COMPOSIO_LOG_LEVEL', {
390
+ enumerable: true,
391
+ get: function () {
392
+ return COMPOSIO_LOG_LEVEL;
393
+ }
394
+ });
395
+ Object.defineProperty(exports, 'ComposioError', {
396
+ enumerable: true,
397
+ get: function () {
398
+ return ComposioError;
399
+ }
400
+ });
401
+ Object.defineProperty(exports, 'DEFAULT_BASE_URL', {
402
+ enumerable: true,
403
+ get: function () {
404
+ return DEFAULT_BASE_URL;
405
+ }
406
+ });
407
+ Object.defineProperty(exports, 'IS_DEVELOPMENT_OR_CI', {
408
+ enumerable: true,
409
+ get: function () {
410
+ return IS_DEVELOPMENT_OR_CI;
411
+ }
412
+ });
413
+ Object.defineProperty(exports, 'TEMP_FILES_DIRECTORY_NAME', {
414
+ enumerable: true,
415
+ get: function () {
416
+ return TEMP_FILES_DIRECTORY_NAME;
417
+ }
418
+ });
419
+ Object.defineProperty(exports, 'USER_DATA_FILE_NAME', {
420
+ enumerable: true,
421
+ get: function () {
422
+ return USER_DATA_FILE_NAME;
423
+ }
424
+ });
425
+ Object.defineProperty(exports, 'arrayBufferToBase64', {
426
+ enumerable: true,
427
+ get: function () {
428
+ return arrayBufferToBase64;
429
+ }
430
+ });
431
+ Object.defineProperty(exports, 'base64ToUint8Array', {
432
+ enumerable: true,
433
+ get: function () {
434
+ return base64ToUint8Array;
435
+ }
436
+ });
437
+ Object.defineProperty(exports, 'constants_exports', {
438
+ enumerable: true,
439
+ get: function () {
440
+ return constants_exports;
441
+ }
442
+ });
443
+ Object.defineProperty(exports, 'getEnvVariable', {
444
+ enumerable: true,
445
+ get: function () {
446
+ return getEnvVariable;
447
+ }
448
+ });
449
+ Object.defineProperty(exports, 'getEnvsWithPrefix', {
450
+ enumerable: true,
451
+ get: function () {
452
+ return getEnvsWithPrefix;
453
+ }
454
+ });
455
+ Object.defineProperty(exports, 'getRandomShortId', {
456
+ enumerable: true,
457
+ get: function () {
458
+ return getRandomShortId;
459
+ }
460
+ });
461
+ Object.defineProperty(exports, 'getRandomUUID', {
462
+ enumerable: true,
463
+ get: function () {
464
+ return getRandomUUID;
465
+ }
466
+ });
467
+ Object.defineProperty(exports, 'logger_default', {
468
+ enumerable: true,
469
+ get: function () {
470
+ return logger_default;
471
+ }
472
+ });
473
+ Object.defineProperty(exports, 'uint8ArrayToBase64', {
474
+ enumerable: true,
475
+ get: function () {
476
+ return uint8ArrayToBase64;
477
+ }
478
+ });