@revenexx/cli 0.0.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 (130) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +293 -0
  3. package/dist/cli.cjs +104461 -0
  4. package/dist/cli.d.ts +4 -0
  5. package/dist/cli.d.ts.map +1 -0
  6. package/dist/index.cjs +36040 -0
  7. package/dist/index.d.ts +9 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +36021 -0
  10. package/dist/lib/client.d.ts +108 -0
  11. package/dist/lib/client.d.ts.map +1 -0
  12. package/dist/lib/commands/about.d.ts +8 -0
  13. package/dist/lib/commands/about.d.ts.map +1 -0
  14. package/dist/lib/commands/apps-aliases.d.ts +67 -0
  15. package/dist/lib/commands/apps-aliases.d.ts.map +1 -0
  16. package/dist/lib/commands/config-validations.d.ts +55 -0
  17. package/dist/lib/commands/config-validations.d.ts.map +1 -0
  18. package/dist/lib/commands/config.d.ts +591 -0
  19. package/dist/lib/commands/config.d.ts.map +1 -0
  20. package/dist/lib/commands/errors.d.ts +68 -0
  21. package/dist/lib/commands/errors.d.ts.map +1 -0
  22. package/dist/lib/commands/generate.d.ts +12 -0
  23. package/dist/lib/commands/generate.d.ts.map +1 -0
  24. package/dist/lib/commands/generators/base.d.ts +92 -0
  25. package/dist/lib/commands/generators/base.d.ts.map +1 -0
  26. package/dist/lib/commands/generators/index.d.ts +26 -0
  27. package/dist/lib/commands/generators/index.d.ts.map +1 -0
  28. package/dist/lib/commands/generators/language-detector.d.ts +42 -0
  29. package/dist/lib/commands/generators/language-detector.d.ts.map +1 -0
  30. package/dist/lib/commands/generators/typescript/databases.d.ts +35 -0
  31. package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -0
  32. package/dist/lib/commands/generic.d.ts +42 -0
  33. package/dist/lib/commands/generic.d.ts.map +1 -0
  34. package/dist/lib/commands/services/apps.d.ts +3 -0
  35. package/dist/lib/commands/services/apps.d.ts.map +1 -0
  36. package/dist/lib/commands/services/avatars.d.ts +3 -0
  37. package/dist/lib/commands/services/avatars.d.ts.map +1 -0
  38. package/dist/lib/commands/services/carts.d.ts +3 -0
  39. package/dist/lib/commands/services/carts.d.ts.map +1 -0
  40. package/dist/lib/commands/services/channels.d.ts +3 -0
  41. package/dist/lib/commands/services/channels.d.ts.map +1 -0
  42. package/dist/lib/commands/services/customers.d.ts +3 -0
  43. package/dist/lib/commands/services/customers.d.ts.map +1 -0
  44. package/dist/lib/commands/services/greetings.d.ts +3 -0
  45. package/dist/lib/commands/services/greetings.d.ts.map +1 -0
  46. package/dist/lib/commands/services/locale.d.ts +3 -0
  47. package/dist/lib/commands/services/locale.d.ts.map +1 -0
  48. package/dist/lib/commands/services/markets.d.ts +3 -0
  49. package/dist/lib/commands/services/markets.d.ts.map +1 -0
  50. package/dist/lib/commands/services/messaging.d.ts +3 -0
  51. package/dist/lib/commands/services/messaging.d.ts.map +1 -0
  52. package/dist/lib/commands/services/products.d.ts +3 -0
  53. package/dist/lib/commands/services/products.d.ts.map +1 -0
  54. package/dist/lib/commands/services/search.d.ts +3 -0
  55. package/dist/lib/commands/services/search.d.ts.map +1 -0
  56. package/dist/lib/commands/services/sites.d.ts +3 -0
  57. package/dist/lib/commands/services/sites.d.ts.map +1 -0
  58. package/dist/lib/commands/services/storage.d.ts +3 -0
  59. package/dist/lib/commands/services/storage.d.ts.map +1 -0
  60. package/dist/lib/commands/services/tokens.d.ts +3 -0
  61. package/dist/lib/commands/services/tokens.d.ts.map +1 -0
  62. package/dist/lib/commands/tenants.d.ts +25 -0
  63. package/dist/lib/commands/tenants.d.ts.map +1 -0
  64. package/dist/lib/commands/types.d.ts +3 -0
  65. package/dist/lib/commands/types.d.ts.map +1 -0
  66. package/dist/lib/commands/update.d.ts +3 -0
  67. package/dist/lib/commands/update.d.ts.map +1 -0
  68. package/dist/lib/commands/utils/deployment.d.ts +6 -0
  69. package/dist/lib/commands/utils/deployment.d.ts.map +1 -0
  70. package/dist/lib/config.d.ts +119 -0
  71. package/dist/lib/config.d.ts.map +1 -0
  72. package/dist/lib/constants.d.ts +15 -0
  73. package/dist/lib/constants.d.ts.map +1 -0
  74. package/dist/lib/id.d.ts +7 -0
  75. package/dist/lib/id.d.ts.map +1 -0
  76. package/dist/lib/json.d.ts +8 -0
  77. package/dist/lib/json.d.ts.map +1 -0
  78. package/dist/lib/parser.d.ts +32 -0
  79. package/dist/lib/parser.d.ts.map +1 -0
  80. package/dist/lib/project-config.d.ts +26 -0
  81. package/dist/lib/project-config.d.ts.map +1 -0
  82. package/dist/lib/questions.d.ts +19 -0
  83. package/dist/lib/questions.d.ts.map +1 -0
  84. package/dist/lib/sdks.d.ts +3 -0
  85. package/dist/lib/sdks.d.ts.map +1 -0
  86. package/dist/lib/shared/typescript-type-utils.d.ts +39 -0
  87. package/dist/lib/shared/typescript-type-utils.d.ts.map +1 -0
  88. package/dist/lib/spinner.d.ts +28 -0
  89. package/dist/lib/spinner.d.ts.map +1 -0
  90. package/dist/lib/type-generation/attribute.d.ts +21 -0
  91. package/dist/lib/type-generation/attribute.d.ts.map +1 -0
  92. package/dist/lib/type-generation/languages/csharp.d.ts +7 -0
  93. package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -0
  94. package/dist/lib/type-generation/languages/dart.d.ts +9 -0
  95. package/dist/lib/type-generation/languages/dart.d.ts.map +1 -0
  96. package/dist/lib/type-generation/languages/java.d.ts +7 -0
  97. package/dist/lib/type-generation/languages/java.d.ts.map +1 -0
  98. package/dist/lib/type-generation/languages/javascript.d.ts +9 -0
  99. package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -0
  100. package/dist/lib/type-generation/languages/kotlin.d.ts +7 -0
  101. package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -0
  102. package/dist/lib/type-generation/languages/language.d.ts +43 -0
  103. package/dist/lib/type-generation/languages/language.d.ts.map +1 -0
  104. package/dist/lib/type-generation/languages/php.d.ts +7 -0
  105. package/dist/lib/type-generation/languages/php.d.ts.map +1 -0
  106. package/dist/lib/type-generation/languages/swift.d.ts +7 -0
  107. package/dist/lib/type-generation/languages/swift.d.ts.map +1 -0
  108. package/dist/lib/type-generation/languages/typescript.d.ts +9 -0
  109. package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -0
  110. package/dist/lib/types.d.ts +66 -0
  111. package/dist/lib/types.d.ts.map +1 -0
  112. package/dist/lib/utils.d.ts +25 -0
  113. package/dist/lib/utils.d.ts.map +1 -0
  114. package/dist/lib/validations.d.ts +2 -0
  115. package/dist/lib/validations.d.ts.map +1 -0
  116. package/dist/tests/api-key-probe.test.d.ts +2 -0
  117. package/dist/tests/api-key-probe.test.d.ts.map +1 -0
  118. package/dist/tests/apps-manifest.test.d.ts +2 -0
  119. package/dist/tests/apps-manifest.test.d.ts.map +1 -0
  120. package/dist/tests/auth-hint.test.d.ts +2 -0
  121. package/dist/tests/auth-hint.test.d.ts.map +1 -0
  122. package/dist/tests/project-config.test.d.ts +2 -0
  123. package/dist/tests/project-config.test.d.ts.map +1 -0
  124. package/dist/tests/redact.test.d.ts +2 -0
  125. package/dist/tests/redact.test.d.ts.map +1 -0
  126. package/dist/tests/tenants.test.d.ts +2 -0
  127. package/dist/tests/tenants.test.d.ts.map +1 -0
  128. package/dist/vitest.config.d.ts +3 -0
  129. package/dist/vitest.config.d.ts.map +1 -0
  130. package/package.json +104 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../lib/commands/generate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,KAAK,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAuID,eAAO,MAAM,QAAQ,SAwCkB,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { ConfigType } from "../config.js";
2
+ /**
3
+ * Supported programming languages for SDK generation.
4
+ * Add new languages here as they are implemented.
5
+ */
6
+ export type SupportedLanguage = "typescript";
7
+ /**
8
+ * Result of the generation process.
9
+ * Each language generator should return named content fields with fixed output filenames
10
+ * under `<output>/<sdk-title-lower>/`.
11
+ *
12
+ * - `dbContent` -> `databases.ts`
13
+ * - `typesContent` -> `types.ts`
14
+ * - `indexContent` -> `index.ts` (entrypoint to import `databases` and exported types)
15
+ * - `constantsContent` -> `constants.ts`
16
+ */
17
+ export interface GenerateResult {
18
+ dbContent: string;
19
+ typesContent: string;
20
+ indexContent: string;
21
+ constantsContent: string;
22
+ }
23
+ /**
24
+ * Options for overriding auto-detected generation settings.
25
+ */
26
+ export interface GenerateOptions {
27
+ /**
28
+ * Override the Revenexx SDK import source used in generated files.
29
+ * Auto-detected from package.json/deno.json if not provided.
30
+ * Examples: "node-appwrite", "appwrite"
31
+ */
32
+ sdkImportSource?: string;
33
+ /**
34
+ * Override the import file extension used in generated files.
35
+ * Auto-detected from package.json "type" field / deno.json if not provided.
36
+ * Use ".js" for ESM projects or "" for CJS/unknown projects.
37
+ */
38
+ importExtension?: string;
39
+ }
40
+ /**
41
+ * Base interface for all language-specific database generators.
42
+ * Implement this interface to add support for new languages.
43
+ */
44
+ export interface IDatabasesGenerator {
45
+ /**
46
+ * The language this generator produces code for.
47
+ */
48
+ readonly language: SupportedLanguage;
49
+ /**
50
+ * File extension for the generated files (e.g., "ts", "py", "go").
51
+ */
52
+ readonly fileExtension: string;
53
+ /**
54
+ * Generate the SDK files from the configuration.
55
+ * @param config - The project configuration containing tables/collections
56
+ * @param options - Optional overrides for auto-detected settings (e.g. import source, extension)
57
+ * @returns Promise resolving to named file contents:
58
+ * `dbContent` (`databases.ts`), `typesContent` (`types.ts`),
59
+ * `indexContent` (`index.ts`), and `constantsContent` (`constants.ts`).
60
+ * Import your generated SDK from `index.ts` (or `index.js` after transpilation).
61
+ */
62
+ generate(config: ConfigType, options?: GenerateOptions): Promise<GenerateResult>;
63
+ /**
64
+ * Write the generated files to disk.
65
+ * @param outputDir - The base output directory
66
+ * @param result - The generation result containing files to write
67
+ */
68
+ writeFiles(outputDir: string, result: GenerateResult): Promise<void>;
69
+ /**
70
+ * Get the list of generated file paths (relative to output directory).
71
+ * Used for displaying success messages.
72
+ * @param result - The generation result
73
+ */
74
+ getGeneratedFilePaths(result: GenerateResult): string[];
75
+ /**
76
+ * Optional method to override server-side generation behavior.
77
+ * @param override - The override value
78
+ */
79
+ setServerSideOverride?(override: "auto" | "true" | "false"): void;
80
+ }
81
+ /**
82
+ * Abstract base class providing common functionality for database generators.
83
+ * Extend this class to implement language-specific generators.
84
+ */
85
+ export declare abstract class BaseDatabasesGenerator implements IDatabasesGenerator {
86
+ abstract readonly language: SupportedLanguage;
87
+ abstract readonly fileExtension: string;
88
+ abstract generate(config: ConfigType, options?: GenerateOptions): Promise<GenerateResult>;
89
+ writeFiles(outputDir: string, result: GenerateResult): Promise<void>;
90
+ getGeneratedFilePaths(_result: GenerateResult): string[];
91
+ }
92
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../lib/commands/generators/base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;;;;;;;OAQG;IACH,QAAQ,CACN,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;;;OAIG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErE;;;;OAIG;IACH,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,EAAE,CAAC;IAExD;;;OAGG;IACH,qBAAqB,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;CACnE;AAED;;;GAGG;AACH,8BAAsB,sBAAuB,YAAW,mBAAmB;IACzE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAExC,QAAQ,CAAC,QAAQ,CACf,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,cAAc,CAAC;IAEpB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA6B1E,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,EAAE;CAQzD"}
@@ -0,0 +1,26 @@
1
+ import { IDatabasesGenerator, SupportedLanguage } from "./base.js";
2
+ import { LanguageDetectionResult } from "./language-detector.js";
3
+ export { IDatabasesGenerator, SupportedLanguage, GenerateResult, GenerateOptions, } from "./base.js";
4
+ export { LanguageDetector, LanguageDetectionResult, } from "./language-detector.js";
5
+ /**
6
+ * Create a database generator for the specified language.
7
+ * @param language - The target language
8
+ * @returns The appropriate generator instance
9
+ * @throws Error if the language is not supported
10
+ */
11
+ export declare function createGenerator(language: SupportedLanguage): IDatabasesGenerator;
12
+ /**
13
+ * Create a database generator by auto-detecting the project language.
14
+ * @param cwd - The working directory to detect language from (defaults to process.cwd())
15
+ * @returns Object containing the generator and detection result
16
+ * @throws Error if no supported language is detected
17
+ */
18
+ export declare function createGeneratorFromDetection(cwd?: string): {
19
+ generator: IDatabasesGenerator;
20
+ detection: LanguageDetectionResult;
21
+ };
22
+ /**
23
+ * Get all supported languages.
24
+ */
25
+ export declare function getSupportedLanguages(): SupportedLanguage[];
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/generators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAEL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,eAAe,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAmBhC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,iBAAiB,GAC1B,mBAAmB,CASrB;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG;IAC1D,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,uBAAuB,CAAC;CACpC,CAiBA;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,iBAAiB,EAAE,CAE3D"}
@@ -0,0 +1,42 @@
1
+ import { SupportedLanguage } from "./base.js";
2
+ /**
3
+ * Language detection result with confidence level.
4
+ */
5
+ export interface LanguageDetectionResult {
6
+ language: SupportedLanguage;
7
+ confidence: "high" | "medium" | "low";
8
+ reason: string;
9
+ }
10
+ /**
11
+ * Detects the programming language of a project based on its directory contents.
12
+ */
13
+ export declare class LanguageDetector {
14
+ private cwd;
15
+ constructor(cwd?: string);
16
+ /**
17
+ * Detect the primary language of the project.
18
+ * @returns The detected language and confidence level, or null if no supported language detected
19
+ */
20
+ detect(): LanguageDetectionResult | null;
21
+ /**
22
+ * Check if a specific language is detected in the project.
23
+ */
24
+ private checkLanguage;
25
+ /**
26
+ * Check if a file exists in the project directory.
27
+ */
28
+ private fileExists;
29
+ /**
30
+ * Check if files with specific extensions exist in the current directory.
31
+ */
32
+ private hasFilesWithExtensions;
33
+ /**
34
+ * Get all supported languages.
35
+ */
36
+ static getSupportedLanguages(): SupportedLanguage[];
37
+ /**
38
+ * Check if a language is supported.
39
+ */
40
+ static isSupported(language: string): language is SupportedLanguage;
41
+ }
42
+ //# sourceMappingURL=language-detector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language-detector.d.ts","sourceRoot":"","sources":["../../../../lib/commands/generators/language-detector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAqDD;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,GAAG,CAAS;gBAER,GAAG,GAAE,MAAsB;IAIvC;;;OAGG;IACH,MAAM,IAAI,uBAAuB,GAAG,IAAI;IAWxC;;OAEG;IACH,OAAO,CAAC,aAAa;IAsCrB;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,iBAAiB,EAAE;IAInD;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,iBAAiB;CAGpE"}
@@ -0,0 +1,35 @@
1
+ import { ConfigType } from "../../config.js";
2
+ import { BaseDatabasesGenerator, GenerateOptions, GenerateResult, SupportedLanguage } from "../base.js";
3
+ /**
4
+ * TypeScript-specific database generator.
5
+ * Generates type-safe SDK files for TypeScript/JavaScript projects.
6
+ */
7
+ export declare class TypeScriptDatabasesGenerator extends BaseDatabasesGenerator {
8
+ readonly language: SupportedLanguage;
9
+ readonly fileExtension = "ts";
10
+ private readonly meta;
11
+ private serverSideOverride;
12
+ setServerSideOverride(override: "auto" | "true" | "false"): void;
13
+ private getFields;
14
+ /**
15
+ * Checks if an entity has relationship columns.
16
+ * Used to disable bulk methods for tables with relationships.
17
+ */
18
+ private hasRelationshipColumns;
19
+ private generateTableType;
20
+ private buildAttributes;
21
+ private generateEnums;
22
+ private groupEntitiesByDb;
23
+ private generateDatabaseTablesType;
24
+ private generateTypesFile;
25
+ private generateTableIdMap;
26
+ private generateTablesWithRelationships;
27
+ private generateBulkMethods;
28
+ private generateBulkCheck;
29
+ private generateBulkRemoval;
30
+ private generateDatabasesFile;
31
+ private generateIndexFile;
32
+ private generateConstantsFile;
33
+ generate(config: ConfigType, options?: GenerateOptions): Promise<GenerateResult>;
34
+ }
35
+ //# sourceMappingURL=databases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../../../../lib/commands/generators/typescript/databases.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAmB,MAAM,iBAAiB,CAAC;AAI9D,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAiCpB;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,sBAAsB;IACtE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAgB;IACpD,QAAQ,CAAC,aAAa,QAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoB;IACzC,OAAO,CAAC,kBAAkB,CAAqC;IAE/D,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI;IAIhE,OAAO,CAAC,SAAS;IAQjB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,iBAAiB;IAwCzB,OAAO,CAAC,eAAe;IA6BvB,OAAO,CAAC,aAAa;IA4BrB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,0BAA0B;IA6ElC,OAAO,CAAC,iBAAiB;IA2BzB,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,+BAA+B;IAsBvC,OAAO,CAAC,mBAAmB;IA4B3B,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,qBAAqB;IA8B7B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,qBAAqB;IAiBvB,QAAQ,CACZ,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,cAAc,CAAC;CAgC3B"}
@@ -0,0 +1,42 @@
1
+ import { Command } from "commander";
2
+ /**
3
+ * Validate an API key against the gateway by probing `/locale` — a cheap,
4
+ * always-routed endpoint. The gateway answers 200 for a valid key and 401
5
+ * (`invalid api key` / `not authenticated`) for a bogus one. Older
6
+ * self-hosted servers answer a scope-error (`general_unauthorized_scope`)
7
+ * instead, which we also accept as proof the key was recognised.
8
+ */
9
+ export type ApiKeyProbeFailureKind = "invalid-key" | "invalid-tenant" | "missing-tenant" | "other";
10
+ export type ApiKeyValidationResult = {
11
+ ok: true;
12
+ reason?: undefined;
13
+ kind?: undefined;
14
+ } | {
15
+ ok: false;
16
+ reason: string;
17
+ kind: ApiKeyProbeFailureKind;
18
+ };
19
+ /**
20
+ * Pure classifier — translates the probe response (success or thrown error)
21
+ * into the validation verdict. Extracted so it can be unit-tested without an
22
+ * HTTP layer.
23
+ *
24
+ * The gateway answers with typeless `{"error":true,"message":"…"}` bodies, so
25
+ * the message strings are matched directly; the `type`-based rules below them
26
+ * cover older self-hosted servers that still send structured error types.
27
+ */
28
+ export declare const classifyApiKeyProbe: (err: unknown | null, tenant: string) => ApiKeyValidationResult;
29
+ export declare const validateApiKey: (apiKey: string, endpoint: string, tenant: string) => Promise<ApiKeyValidationResult>;
30
+ export declare const loginCommand: ({ endpoint, key, token, tenant, }: {
31
+ endpoint?: string;
32
+ key?: string;
33
+ token?: string;
34
+ tenant?: string;
35
+ }) => Promise<void>;
36
+ export declare const whoami: Command;
37
+ export declare const register: Command;
38
+ export declare const login: Command;
39
+ export declare const logout: Command;
40
+ export declare const client: Command;
41
+ export declare const migrate: () => Promise<void>;
42
+ //# sourceMappingURL=generic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../lib/commands/generic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiEpC;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,gBAAgB,GAChB,gBAAgB,GAChB,OAAO,CAAC;AAEZ,MAAM,MAAM,sBAAsB,GAC9B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,GAClD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAC9B,KAAK,OAAO,GAAG,IAAI,EACnB,QAAQ,MAAM,KACb,sBAgDF,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,UAAU,MAAM,EAChB,QAAQ,MAAM,KACb,OAAO,CAAC,sBAAsB,CAWhC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,mCAKhC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KAAG,OAAO,CAAC,IAAI,CA8Df,CAAC;AAEF,eAAO,MAAM,MAAM,SAwChB,CAAC;AAEJ,eAAO,MAAM,QAAQ,SAMlB,CAAC;AAEJ,eAAO,MAAM,KAAK,SAkBmB,CAAC;AAEtC,eAAO,MAAM,MAAM,SA6DhB,CAAC;AAWJ,eAAO,MAAM,MAAM,SAwIhB,CAAC;AAEJ,eAAO,MAAM,OAAO,QAAa,OAAO,CAAC,IAAI,CAmB5C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const apps: Command;
3
+ //# sourceMappingURL=apps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,IAAI,SAIb,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const avatars: Command;
3
+ //# sourceMappingURL=avatars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/avatars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,OAAO,SAIhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const carts: Command;
3
+ //# sourceMappingURL=carts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carts.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/carts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,KAAK,SAId,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const channels: Command;
3
+ //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,QAAQ,SAIjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const customers: Command;
3
+ //# sourceMappingURL=customers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,SAAS,SAIlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const greetings: Command;
3
+ //# sourceMappingURL=greetings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greetings.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/greetings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,SAAS,SAIlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const locale: Command;
3
+ //# sourceMappingURL=locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,MAAM,SAIf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const markets: Command;
3
+ //# sourceMappingURL=markets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,OAAO,SAIhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const messaging: Command;
3
+ //# sourceMappingURL=messaging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,SAAS,SAIlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const products: Command;
3
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,QAAQ,SAIjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const search: Command;
3
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,eAAO,MAAM,MAAM,SAIf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const sites: Command;
3
+ //# sourceMappingURL=sites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/sites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,KAAK,SAId,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const storage: Command;
3
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,OAAO,SAIhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const tokens: Command;
3
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,eAAO,MAAM,MAAM,SAIf,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { Command } from "commander";
2
+ export declare const defaultTenantFile: () => string;
3
+ export declare const readActiveTenant: (file?: string) => string;
4
+ export declare const writeActiveTenant: (slug: string, file?: string) => void;
5
+ export interface KnownTenant {
6
+ slug: string;
7
+ sources: string[];
8
+ active: boolean;
9
+ }
10
+ export interface TenantSources {
11
+ env?: string;
12
+ flag?: string;
13
+ projectFile?: string;
14
+ tenantFile?: string;
15
+ /** Session emails from the global config; `apikey:<tenant>` entries count. */
16
+ sessionEmails?: string[];
17
+ active?: string;
18
+ }
19
+ /**
20
+ * Pure aggregation of every place the CLI can learn a tenant slug from.
21
+ * Extracted so it can be unit-tested without touching the filesystem.
22
+ */
23
+ export declare const collectKnownTenants: (sources: TenantSources) => KnownTenant[];
24
+ export declare const tenants: Command;
25
+ //# sourceMappingURL=tenants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../lib/commands/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC,eAAO,MAAM,iBAAiB,QAAO,MACW,CAAC;AAEjD,eAAO,MAAM,gBAAgB,GAAI,OAAM,MAA4B,KAAG,MAUrE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,MAAM,EACZ,OAAM,MAA4B,KACjC,IAGF,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,aAAa,KAAG,WAAW,EA0BvE,CAAC;AA2BF,eAAO,MAAM,OAAO,SAIhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const types: Command;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/commands/types.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAoB,MAAM,WAAW,CAAC;AA8NtD,eAAO,MAAM,KAAK,SAKK,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare const update: Command;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../lib/commands/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuPpC,eAAO,MAAM,MAAM,SAMe,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Resolve a file path (file or directory) into a File object for upload.
3
+ * Directories are packaged into a tar.gz archive.
4
+ */
5
+ export declare function resolveFileParam(filePath: string): Promise<File>;
6
+ //# sourceMappingURL=deployment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../../lib/commands/utils/deployment.ts"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWtE"}
@@ -0,0 +1,119 @@
1
+ import type { BucketType, CollectionType, FunctionType, ConfigType, SettingsType, SiteType, TableType, TeamType, TopicType } from "./commands/config.js";
2
+ import type { SessionData, ConfigData, Entity, GlobalConfigData } from "./types.js";
3
+ declare const KeysSite: Set<string>;
4
+ declare const KeysFunction: Set<string>;
5
+ declare const KeysCollection: Set<string>;
6
+ declare const KeysTable: Set<string>;
7
+ declare const KeysStorage: Set<string>;
8
+ declare const KeysTopics: Set<string>;
9
+ declare const KeysTeams: Set<string>;
10
+ declare const KeysAttributes: Set<string>;
11
+ declare function whitelistKeys<T = any>(value: T, keys: Set<string>, nestedKeys?: Record<string, Set<string>>): T;
12
+ declare class Config<T extends ConfigData = ConfigData> {
13
+ readonly path: string;
14
+ protected data: T;
15
+ constructor(path: string);
16
+ read(): void;
17
+ write(): void;
18
+ get<K extends keyof T>(key: K): T[K];
19
+ set<K extends keyof T>(key: K, value: T[K]): void;
20
+ delete(key: string): void;
21
+ clear(): void;
22
+ has(key: string): boolean;
23
+ keys(): string[];
24
+ values(): unknown[];
25
+ toString(): string;
26
+ protected _getDBEntities(entityType: string): Entity[];
27
+ protected _getDBEntity(entityType: string, $id: string): Entity | Record<string, never>;
28
+ protected _addDBEntity(entityType: string, props: Entity, keysSet: Set<string>, nestedKeys?: Record<string, Set<string>>): void;
29
+ }
30
+ declare class Local extends Config<ConfigType> {
31
+ static CONFIG_FILE_PATH: string;
32
+ static CONFIG_FILE_PATH_LEGACY: string;
33
+ configDirectoryPath: string;
34
+ constructor(path?: string, legacyPath?: string);
35
+ write(): void;
36
+ static findConfigFile(filename: string): string | null;
37
+ getDirname(): string;
38
+ getEndpoint(): string;
39
+ setEndpoint(endpoint: string): void;
40
+ getSites(): SiteType[];
41
+ getSite($id: string): SiteType | Record<string, never>;
42
+ addSite(props: SiteType): void;
43
+ getFunctions(): FunctionType[];
44
+ getFunction($id: string): FunctionType | Record<string, never>;
45
+ addFunction(props: FunctionType): void;
46
+ getCollections(): CollectionType[];
47
+ getCollection($id: string): CollectionType | Record<string, never>;
48
+ addCollection(props: CollectionType): void;
49
+ getTables(): TableType[];
50
+ getTable($id: string): TableType | Record<string, never>;
51
+ addTable(props: TableType): void;
52
+ getBuckets(): BucketType[];
53
+ getBucket($id: string): BucketType | Record<string, never>;
54
+ addBucket(props: BucketType): void;
55
+ getMessagingTopics(): TopicType[];
56
+ getMessagingTopic($id: string): TopicType | Record<string, never>;
57
+ addMessagingTopic(props: TopicType): void;
58
+ getTablesDBs(): any[];
59
+ getTablesDB($id: string): any;
60
+ addTablesDB(props: any): void;
61
+ getDatabases(): any[];
62
+ getDatabase($id: string): any;
63
+ addDatabase(props: any): void;
64
+ getTeams(): TeamType[];
65
+ getTeam($id: string): TeamType | Record<string, never>;
66
+ addTeam(props: TeamType): void;
67
+ getProject(): {
68
+ projectId?: string;
69
+ projectName?: string;
70
+ projectSettings?: SettingsType;
71
+ };
72
+ setProject(projectId: string, projectName?: string): void;
73
+ }
74
+ declare class Global extends Config<GlobalConfigData> {
75
+ static CONFIG_FILE_PATH: string;
76
+ static PREFERENCE_CURRENT: "current";
77
+ static PREFERENCE_ENDPOINT: "endpoint";
78
+ static PREFERENCE_EMAIL: "email";
79
+ static PREFERENCE_SELF_SIGNED: "selfSigned";
80
+ static PREFERENCE_COOKIE: "cookie";
81
+ static PREFERENCE_PROJECT: "project";
82
+ static PREFERENCE_KEY: "key";
83
+ static PREFERENCE_LOCALE: "locale";
84
+ static PREFERENCE_MODE: "mode";
85
+ static IGNORE_ATTRIBUTES: readonly string[];
86
+ static MODE_ADMIN: string;
87
+ static MODE_DEFAULT: string;
88
+ static PROJECT_CONSOLE: string;
89
+ constructor(path?: string);
90
+ getCurrentSession(): string;
91
+ setCurrentSession(session: string): void;
92
+ getSessionIds(): string[];
93
+ getSessions(): Array<{
94
+ id: string;
95
+ endpoint: string;
96
+ email: string;
97
+ }>;
98
+ addSession(session: string, data: SessionData): void;
99
+ removeSession(session: string): void;
100
+ getEmail(): string;
101
+ setEmail(email: string): void;
102
+ getEndpoint(): string;
103
+ setEndpoint(endpoint: string): void;
104
+ getSelfSigned(): boolean;
105
+ setSelfSigned(selfSigned: boolean): void;
106
+ getCookie(): string;
107
+ setCookie(cookie: string): void;
108
+ getProject(): string;
109
+ setProject(project: string): void;
110
+ getKey(): string;
111
+ setKey(key: string): void;
112
+ hasFrom(key: string): boolean;
113
+ getFrom(key: string): any;
114
+ setTo(key: string, value: any): void;
115
+ }
116
+ export declare const localConfig: Local;
117
+ export declare const globalConfig: Global;
118
+ export { KeysAttributes, KeysSite, KeysFunction, KeysTopics, KeysStorage, KeysTeams, KeysCollection, KeysTable, whitelistKeys, };
119
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACV,MAAM,sBAAsB,CAAC;AAe9B,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,gBAAgB,EACjB,MAAM,YAAY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IAAI,MAAM;IAOnB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,IAAI,MAAM;IAOpB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC,MAAM,IAAI,MAAM;IAOhB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAW7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IAUzB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;CAUrC;AAED,eAAO,MAAM,WAAW,OAAc,CAAC;AACvC,eAAO,MAAM,YAAY,QAAe,CAAC;AACzC,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,SAAS,EACT,aAAa,GACd,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const SDK_TITLE = "RevenexxAPIRevenexx";
2
+ export declare const SDK_TITLE_LOWER = "revenexx api \u2014 revenexx";
3
+ export declare const SDK_VERSION = "0.0.1";
4
+ export declare const SDK_NAME = "Revenexx CLI";
5
+ export declare const SDK_PLATFORM = "";
6
+ export declare const SDK_LANGUAGE = "cli";
7
+ export declare const SDK_LOGO = "\n /$$$$$$$\n| $$__ $$\n| $$ \\ $$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$\n| $$$$$$$/ /$$__ $$| $$ /$$//$$__ $$| $$__ $$ /$$__ $$| $$ /$$/| $$ /$$/\n| $$__ $$| $$$$$$$$ \\ $$$$$$/ | $$$$$$$$| $$ \\ $$| $$$$$$$$ \\ $$$$/ \\ $$$$/\n| $$ \\ $$| $$_____/ \\ $$$/ | $$_____/| $$ | $$| $$_____/ >$$ $$ >$$ $$\n| $$ | $$| $$$$$$$ \\ $/ | $$$$$$$| $$ | $$| $$$$$$$ /$$$\\\\ $$ /$$$\\\\ $$\n|__/ |__/ \\_______/ \\_/ \\_______/|__/ |__/ \\_______/|__/ \\__/|__/ \\__/\n CLI\n\n";
8
+ export declare const EXECUTABLE_NAME = "revenexx";
9
+ export declare const NPM_PACKAGE_NAME = "@revenexx/cli";
10
+ export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/@revenexx/cli/latest";
11
+ export declare const GITHUB_REPO = "revenexx-sdks/cli";
12
+ export declare const GITHUB_RELEASES_URL = "https://github.com/revenexx-sdks/cli/releases";
13
+ export declare const DEFAULT_ENDPOINT = "https://api.revenexx.com/v1";
14
+ export declare const REGISTER_URL = "https://revenexx.com/register";
15
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAC/C,eAAO,MAAM,eAAe,iCAA4B,CAAC;AACzD,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,YAAY,QAAQ,CAAC;AAClC,eAAO,MAAM,QAAQ,+mBAA0pB,CAAC;AAGhrB,eAAO,MAAM,eAAe,aAAa,CAAC;AAG1C,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,gBAAgB,oDAA0D,CAAC;AAGxF,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,kDAA+C,CAAC;AAGhF,eAAO,MAAM,gBAAgB,gCAAgC,CAAC;AAC9D,eAAO,MAAM,YAAY,kCAAkC,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare class ID {
2
+ #private;
3
+ static custom(id: string): string;
4
+ static unique(padding?: number): string;
5
+ }
6
+ export default ID;
7
+ //# sourceMappingURL=id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../lib/id.ts"],"names":[],"mappings":"AAAA,cAAM,EAAE;;IAaN,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAIjC,MAAM,CAAC,MAAM,CAAC,OAAO,GAAE,MAAU,GAAG,MAAM;CAU3C;AAED,eAAe,EAAE,CAAC"}