@geekmidas/cloud 10.0.0-alpha.136 → 10.0.0-alpha.138

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cloud",
3
- "version": "10.0.0-alpha.136",
3
+ "version": "10.0.0-alpha.138",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "lodash.snakecase": "~4.1.1",
44
- "@geekmidas/envkit": "10.0.0-alpha.136",
45
- "@geekmidas/manifest": "10.0.0-alpha.136"
44
+ "@geekmidas/envkit": "10.0.0-alpha.138",
45
+ "@geekmidas/manifest": "10.0.0-alpha.138"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/lodash.get": "~4.4.9",
@@ -58,10 +58,10 @@
58
58
  "@pulumi/aws": ">=7.47.0",
59
59
  "@pulumi/random": ">=4.21.2",
60
60
  "@pulumi/pulumi": ">=3.263.0",
61
- "@geekmidas/manifest": "^10.0.0-alpha.136",
62
- "@geekmidas/storage": "^10.0.0-alpha.136",
63
- "@geekmidas/events": "^10.0.0-alpha.136",
64
- "@geekmidas/db": "^10.0.0-alpha.136"
61
+ "@geekmidas/manifest": "^10.0.0-alpha.138",
62
+ "@geekmidas/storage": "^10.0.0-alpha.138",
63
+ "@geekmidas/events": "^10.0.0-alpha.138",
64
+ "@geekmidas/db": "^10.0.0-alpha.138"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@geekmidas/manifest": {
@@ -93,7 +93,7 @@ function manifest(): ConstructManifest {
93
93
  dependencies: [],
94
94
  },
95
95
  ],
96
- calls: [{ target: 'Auth', kind: 'rest-api' }],
96
+ auth: { target: 'Auth', kind: 'rest-api' },
97
97
  provides: keys('Api', 'rest-api', SURFACE),
98
98
  },
99
99
  Auth: {
@@ -288,7 +288,7 @@ describe('fromManifest', () => {
288
288
  'Api:',
289
289
  ' GET /orders → Orders (database)',
290
290
  ' GET /health → nothing',
291
- ' calls Auth (origin only; grants nothing)',
291
+ ' auth Auth (origin only; grants nothing)',
292
292
  'Auth:',
293
293
  ' (no routes)',
294
294
  ]);
@@ -642,8 +642,8 @@ export function describeRoutes(manifest: ConstructManifest): string[] {
642
642
  lines.push(`${id}:`);
643
643
 
644
644
  if (declaration.endpoints.length === 0) {
645
- // Empty is now genuinely empty: the build folds discovered routes into
646
- // the surface that serves them, so a surface with none has none.
645
+ // Empty is genuinely empty: discovery nests every route in the
646
+ // surface that serves it, so a surface with none has none.
647
647
  lines.push(' (no routes)');
648
648
  }
649
649
 
@@ -657,11 +657,11 @@ export function describeRoutes(manifest: ConstructManifest): string[] {
657
657
  );
658
658
  }
659
659
 
660
- // A caller relationship, printed apart from the routes because it grants
661
- // nothing — see `RestApiDeclaration.calls`.
662
- if (declaration.calls?.length) {
660
+ // What authenticates it, printed apart from the routes because it grants
661
+ // nothing: the auth server learns this surface's origin.
662
+ if (declaration.auth) {
663
663
  lines.push(
664
- ` calls ${declaration.calls.map((edge) => edge.target).join(', ')} (origin only; grants nothing)`,
664
+ ` auth ${declaration.auth.target} (origin only; grants nothing)`,
665
665
  );
666
666
  }
667
667
  }