@xylex-group/athena 3.0.3 → 3.3.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.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/dist/admin.cjs +55 -1
  3. package/dist/admin.cjs.map +1 -1
  4. package/dist/admin.d.cts +32 -8
  5. package/dist/admin.d.ts +32 -8
  6. package/dist/admin.js +54 -2
  7. package/dist/admin.js.map +1 -1
  8. package/dist/athena-auth-url-C1FbVmN6.d.cts +200 -0
  9. package/dist/athena-auth-url-C1FbVmN6.d.ts +200 -0
  10. package/dist/{athena-request-headers-C7Jy-c_D.d.ts → athena-request-headers-DzimbvOA.d.ts} +48 -200
  11. package/dist/{athena-request-headers-DujFFyMU.d.cts → athena-request-headers-Lr_m8xCV.d.cts} +48 -200
  12. package/dist/billing.cjs +1 -1
  13. package/dist/billing.cjs.map +1 -1
  14. package/dist/billing.js +1 -1
  15. package/dist/billing.js.map +1 -1
  16. package/dist/browser.cjs +912 -5
  17. package/dist/browser.cjs.map +1 -1
  18. package/dist/browser.d.cts +8 -7
  19. package/dist/browser.d.ts +8 -7
  20. package/dist/browser.js +881 -6
  21. package/dist/browser.js.map +1 -1
  22. package/dist/cli/index.cjs +7909 -7061
  23. package/dist/cli/index.cjs.map +1 -1
  24. package/dist/cli/index.d.cts +17 -10
  25. package/dist/cli/index.d.ts +17 -10
  26. package/dist/cli/index.js +7911 -7063
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/env.cjs +130 -0
  29. package/dist/env.cjs.map +1 -0
  30. package/dist/env.d.cts +70 -0
  31. package/dist/env.d.ts +70 -0
  32. package/dist/env.js +122 -0
  33. package/dist/env.js.map +1 -0
  34. package/dist/index.cjs +1570 -98
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +31 -8
  37. package/dist/index.d.ts +31 -8
  38. package/dist/index.js +1532 -100
  39. package/dist/index.js.map +1 -1
  40. package/dist/model-form-3Gr8rkdT.d.cts +281 -0
  41. package/dist/model-form-CotpEL7z.d.ts +281 -0
  42. package/dist/{module-CPG3ULxQ.d.cts → module-CQmOaDzP.d.cts} +4 -4
  43. package/dist/{module-BruTcxe0.d.ts → module-CWkUTcUc.d.ts} +4 -4
  44. package/dist/next/client.cjs +123 -7
  45. package/dist/next/client.cjs.map +1 -1
  46. package/dist/next/client.d.cts +4 -3
  47. package/dist/next/client.d.ts +4 -3
  48. package/dist/next/client.js +123 -7
  49. package/dist/next/client.js.map +1 -1
  50. package/dist/next/server.cjs +1130 -364
  51. package/dist/next/server.cjs.map +1 -1
  52. package/dist/next/server.d.cts +121 -8
  53. package/dist/next/server.d.ts +121 -8
  54. package/dist/next/server.js +1120 -365
  55. package/dist/next/server.js.map +1 -1
  56. package/dist/pipeline-BnRKO_Pd.d.cts +93 -0
  57. package/dist/pipeline-sWCmlFqu.d.ts +93 -0
  58. package/dist/{proxy-request-headers-m4D2Tduy.d.ts → proxy-request-headers-CttlcuRb.d.ts} +1 -1
  59. package/dist/{proxy-request-headers-DGxdoyA0.d.cts → proxy-request-headers-pIBSn1Fw.d.cts} +1 -1
  60. package/dist/react.cjs +672 -16
  61. package/dist/react.cjs.map +1 -1
  62. package/dist/react.d.cts +123 -8
  63. package/dist/react.d.ts +123 -8
  64. package/dist/react.js +671 -17
  65. package/dist/react.js.map +1 -1
  66. package/dist/schema-handlers-BtT_IQFi.d.cts +138 -0
  67. package/dist/schema-handlers-VjFDhIMw.d.ts +138 -0
  68. package/dist/social-providers.d.cts +1 -1
  69. package/dist/social-providers.d.ts +1 -1
  70. package/dist/{types-D6tZ9aoq.d.ts → types-BDX8zS7w.d.ts} +40 -1
  71. package/dist/{types-AOY-GLu8.d.cts → types-BVKpQmfY.d.cts} +11 -0
  72. package/dist/{types-AOY-GLu8.d.ts → types-BVKpQmfY.d.ts} +11 -0
  73. package/dist/{types-DFr2cL1N.d.cts → types-D-Am7YSd.d.cts} +40 -1
  74. package/dist/utils.cjs +30 -0
  75. package/dist/utils.cjs.map +1 -1
  76. package/dist/utils.d.cts +3 -2
  77. package/dist/utils.d.ts +3 -2
  78. package/dist/utils.js +30 -1
  79. package/dist/utils.js.map +1 -1
  80. package/dist/{v3-client-CWfZHcKL.d.cts → v3-client-G1SLeHRa.d.cts} +23 -1
  81. package/dist/{v3-client-DZp2NEhK.d.ts → v3-client-ao8BWQ8v.d.ts} +23 -1
  82. package/package.json +16 -2
  83. package/dist/model-form-Dh0sisdL.d.ts +0 -97
  84. package/dist/model-form-oOAJUVd4.d.cts +0 -97
  85. package/dist/pipeline-CIzV9f7b.d.cts +0 -8
  86. package/dist/pipeline-DNlc8Ayn.d.ts +0 -8
@@ -1,5 +1,5 @@
1
- import { r as runSchemaGenerator } from '../pipeline-CIzV9f7b.cjs';
2
- import '../types-DFr2cL1N.cjs';
1
+ import { r as runSchemaGenerator, e as ensureGeneratorConfigFile } from '../pipeline-BnRKO_Pd.cjs';
2
+ import '../types-D-Am7YSd.cjs';
3
3
  import '../types-Bltx6iL6.cjs';
4
4
  import '../types-CgCv5o6R.cjs';
5
5
 
@@ -7,14 +7,27 @@ interface GenerateCommand {
7
7
  command: 'generate';
8
8
  configPath?: string;
9
9
  dryRun: boolean;
10
+ /** When false, never write/update athena.config.ts. Default true. */
11
+ writeConfig: boolean;
12
+ /** When false, skip live schema discovery. Default true. */
13
+ discoverSchemas: boolean;
14
+ }
15
+ interface InitCommand {
16
+ command: 'init';
17
+ configPath?: string;
18
+ dryRun: boolean;
19
+ force: boolean;
20
+ mode: 'direct' | 'gateway' | 'auto';
21
+ discoverSchemas: boolean;
10
22
  }
11
23
  interface HelpCommand {
12
24
  command: 'help';
13
- topic: 'root' | 'generate';
25
+ topic: 'root' | 'generate' | 'init';
14
26
  }
15
- type CliCommand = GenerateCommand | HelpCommand;
27
+ type CliCommand = GenerateCommand | InitCommand | HelpCommand;
16
28
  interface CliRuntime {
17
29
  runGenerator?: typeof runSchemaGenerator;
30
+ ensureConfig?: typeof ensureGeneratorConfigFile;
18
31
  log?: (message: string) => void;
19
32
  /** Defaults to `console.error`. */
20
33
  errorLog?: (message: string) => void;
@@ -25,12 +38,6 @@ declare function parseCommand(argv: string[]): CliCommand;
25
38
  * Print a CLI error to stderr with optional stack when `ATHENA_JS_DEBUG=1`.
26
39
  */
27
40
  declare function logCliError(error: unknown, errorLog?: (message: string) => void): void;
28
- /**
29
- * CLI entrypoint used by `bin/athena-js.js`.
30
- *
31
- * Generator failures are logged with diagnostics (code, remote, cause chain)
32
- * and exit with code `1` instead of only throwing a bare message.
33
- */
34
41
  declare function runCLI(argv: string[], runtime?: CliRuntime): Promise<void>;
35
42
 
36
43
  export { type CliRuntime, logCliError, parseCommand, runCLI, usage };
@@ -1,5 +1,5 @@
1
- import { r as runSchemaGenerator } from '../pipeline-DNlc8Ayn.js';
2
- import '../types-D6tZ9aoq.js';
1
+ import { r as runSchemaGenerator, e as ensureGeneratorConfigFile } from '../pipeline-sWCmlFqu.js';
2
+ import '../types-BDX8zS7w.js';
3
3
  import '../types-Bltx6iL6.js';
4
4
  import '../types-B75PdABb.js';
5
5
 
@@ -7,14 +7,27 @@ interface GenerateCommand {
7
7
  command: 'generate';
8
8
  configPath?: string;
9
9
  dryRun: boolean;
10
+ /** When false, never write/update athena.config.ts. Default true. */
11
+ writeConfig: boolean;
12
+ /** When false, skip live schema discovery. Default true. */
13
+ discoverSchemas: boolean;
14
+ }
15
+ interface InitCommand {
16
+ command: 'init';
17
+ configPath?: string;
18
+ dryRun: boolean;
19
+ force: boolean;
20
+ mode: 'direct' | 'gateway' | 'auto';
21
+ discoverSchemas: boolean;
10
22
  }
11
23
  interface HelpCommand {
12
24
  command: 'help';
13
- topic: 'root' | 'generate';
25
+ topic: 'root' | 'generate' | 'init';
14
26
  }
15
- type CliCommand = GenerateCommand | HelpCommand;
27
+ type CliCommand = GenerateCommand | InitCommand | HelpCommand;
16
28
  interface CliRuntime {
17
29
  runGenerator?: typeof runSchemaGenerator;
30
+ ensureConfig?: typeof ensureGeneratorConfigFile;
18
31
  log?: (message: string) => void;
19
32
  /** Defaults to `console.error`. */
20
33
  errorLog?: (message: string) => void;
@@ -25,12 +38,6 @@ declare function parseCommand(argv: string[]): CliCommand;
25
38
  * Print a CLI error to stderr with optional stack when `ATHENA_JS_DEBUG=1`.
26
39
  */
27
40
  declare function logCliError(error: unknown, errorLog?: (message: string) => void): void;
28
- /**
29
- * CLI entrypoint used by `bin/athena-js.js`.
30
- *
31
- * Generator failures are logged with diagnostics (code, remote, cause chain)
32
- * and exit with code `1` instead of only throwing a bare message.
33
- */
34
41
  declare function runCLI(argv: string[], runtime?: CliRuntime): Promise<void>;
35
42
 
36
43
  export { type CliRuntime, logCliError, parseCommand, runCLI, usage };