@toa.io/extensions.exposition 0.24.0-alpha.0 → 0.24.0-alpha.3

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 (231) hide show
  1. package/features/steps/HTTP.ts +12 -85
  2. package/package.json +8 -8
  3. package/transpiled/Annotation.d.ts +0 -7
  4. package/transpiled/Annotation.js +0 -3
  5. package/transpiled/Annotation.js.map +0 -1
  6. package/transpiled/Branch.d.ts +0 -7
  7. package/transpiled/Branch.js +0 -3
  8. package/transpiled/Branch.js.map +0 -1
  9. package/transpiled/Composition.d.ts +0 -14
  10. package/transpiled/Composition.js +0 -43
  11. package/transpiled/Composition.js.map +0 -1
  12. package/transpiled/Context.d.ts +0 -5
  13. package/transpiled/Context.js +0 -3
  14. package/transpiled/Context.js.map +0 -1
  15. package/transpiled/Directive.d.ts +0 -32
  16. package/transpiled/Directive.js +0 -76
  17. package/transpiled/Directive.js.map +0 -1
  18. package/transpiled/Endpoint.d.ts +0 -20
  19. package/transpiled/Endpoint.js +0 -45
  20. package/transpiled/Endpoint.js.map +0 -1
  21. package/transpiled/Factory.d.ts +0 -10
  22. package/transpiled/Factory.js +0 -66
  23. package/transpiled/Factory.js.map +0 -1
  24. package/transpiled/Gateway.d.ts +0 -19
  25. package/transpiled/Gateway.js +0 -92
  26. package/transpiled/Gateway.js.map +0 -1
  27. package/transpiled/HTTP/Server.d.ts +0 -22
  28. package/transpiled/HTTP/Server.fixtures.d.ts +0 -11
  29. package/transpiled/HTTP/Server.fixtures.js +0 -32
  30. package/transpiled/HTTP/Server.fixtures.js.map +0 -1
  31. package/transpiled/HTTP/Server.js +0 -131
  32. package/transpiled/HTTP/Server.js.map +0 -1
  33. package/transpiled/HTTP/exceptions.d.ts +0 -34
  34. package/transpiled/HTTP/exceptions.js +0 -71
  35. package/transpiled/HTTP/exceptions.js.map +0 -1
  36. package/transpiled/HTTP/formats/index.d.ts +0 -10
  37. package/transpiled/HTTP/formats/index.js +0 -38
  38. package/transpiled/HTTP/formats/index.js.map +0 -1
  39. package/transpiled/HTTP/formats/json.d.ts +0 -6
  40. package/transpiled/HTTP/formats/json.js +0 -17
  41. package/transpiled/HTTP/formats/json.js.map +0 -1
  42. package/transpiled/HTTP/formats/msgpack.d.ts +0 -6
  43. package/transpiled/HTTP/formats/msgpack.js +0 -38
  44. package/transpiled/HTTP/formats/msgpack.js.map +0 -1
  45. package/transpiled/HTTP/formats/text.d.ts +0 -6
  46. package/transpiled/HTTP/formats/text.js +0 -15
  47. package/transpiled/HTTP/formats/text.js.map +0 -1
  48. package/transpiled/HTTP/formats/yaml.d.ts +0 -6
  49. package/transpiled/HTTP/formats/yaml.js +0 -41
  50. package/transpiled/HTTP/formats/yaml.js.map +0 -1
  51. package/transpiled/HTTP/index.d.ts +0 -3
  52. package/transpiled/HTTP/index.js +0 -20
  53. package/transpiled/HTTP/index.js.map +0 -1
  54. package/transpiled/HTTP/messages.d.ts +0 -28
  55. package/transpiled/HTTP/messages.js +0 -70
  56. package/transpiled/HTTP/messages.js.map +0 -1
  57. package/transpiled/Mapping.d.ts +0 -8
  58. package/transpiled/Mapping.js +0 -38
  59. package/transpiled/Mapping.js.map +0 -1
  60. package/transpiled/Query.d.ts +0 -13
  61. package/transpiled/Query.js +0 -107
  62. package/transpiled/Query.js.map +0 -1
  63. package/transpiled/RTD/Context.d.ts +0 -11
  64. package/transpiled/RTD/Context.js +0 -3
  65. package/transpiled/RTD/Context.js.map +0 -1
  66. package/transpiled/RTD/Directives.d.ts +0 -7
  67. package/transpiled/RTD/Directives.js +0 -3
  68. package/transpiled/RTD/Directives.js.map +0 -1
  69. package/transpiled/RTD/Endpoint.d.ts +0 -9
  70. package/transpiled/RTD/Endpoint.js +0 -3
  71. package/transpiled/RTD/Endpoint.js.map +0 -1
  72. package/transpiled/RTD/Match.d.ts +0 -11
  73. package/transpiled/RTD/Match.js +0 -3
  74. package/transpiled/RTD/Match.js.map +0 -1
  75. package/transpiled/RTD/Method.d.ts +0 -9
  76. package/transpiled/RTD/Method.js +0 -16
  77. package/transpiled/RTD/Method.js.map +0 -1
  78. package/transpiled/RTD/Node.d.ts +0 -21
  79. package/transpiled/RTD/Node.js +0 -61
  80. package/transpiled/RTD/Node.js.map +0 -1
  81. package/transpiled/RTD/Route.d.ts +0 -14
  82. package/transpiled/RTD/Route.js +0 -49
  83. package/transpiled/RTD/Route.js.map +0 -1
  84. package/transpiled/RTD/Tree.d.ts +0 -14
  85. package/transpiled/RTD/Tree.js +0 -40
  86. package/transpiled/RTD/Tree.js.map +0 -1
  87. package/transpiled/RTD/factory.d.ts +0 -6
  88. package/transpiled/RTD/factory.js +0 -36
  89. package/transpiled/RTD/factory.js.map +0 -1
  90. package/transpiled/RTD/index.d.ts +0 -8
  91. package/transpiled/RTD/index.js +0 -38
  92. package/transpiled/RTD/index.js.map +0 -1
  93. package/transpiled/RTD/segment.d.ts +0 -8
  94. package/transpiled/RTD/segment.js +0 -25
  95. package/transpiled/RTD/segment.js.map +0 -1
  96. package/transpiled/RTD/syntax/index.d.ts +0 -2
  97. package/transpiled/RTD/syntax/index.js +0 -19
  98. package/transpiled/RTD/syntax/index.js.map +0 -1
  99. package/transpiled/RTD/syntax/parse.d.ts +0 -4
  100. package/transpiled/RTD/syntax/parse.js +0 -128
  101. package/transpiled/RTD/syntax/parse.js.map +0 -1
  102. package/transpiled/RTD/syntax/types.d.ts +0 -41
  103. package/transpiled/RTD/syntax/types.js +0 -5
  104. package/transpiled/RTD/syntax/types.js.map +0 -1
  105. package/transpiled/Remotes.d.ts +0 -9
  106. package/transpiled/Remotes.js +0 -25
  107. package/transpiled/Remotes.js.map +0 -1
  108. package/transpiled/Tenant.d.ts +0 -13
  109. package/transpiled/Tenant.js +0 -34
  110. package/transpiled/Tenant.js.map +0 -1
  111. package/transpiled/deployment.d.ts +0 -3
  112. package/transpiled/deployment.js +0 -67
  113. package/transpiled/deployment.js.map +0 -1
  114. package/transpiled/directives/auth/Anonymous.d.ts +0 -6
  115. package/transpiled/directives/auth/Anonymous.js +0 -17
  116. package/transpiled/directives/auth/Anonymous.js.map +0 -1
  117. package/transpiled/directives/auth/Echo.d.ts +0 -6
  118. package/transpiled/directives/auth/Echo.js +0 -13
  119. package/transpiled/directives/auth/Echo.js.map +0 -1
  120. package/transpiled/directives/auth/Family.d.ts +0 -20
  121. package/transpiled/directives/auth/Family.js +0 -118
  122. package/transpiled/directives/auth/Family.js.map +0 -1
  123. package/transpiled/directives/auth/Id.d.ts +0 -7
  124. package/transpiled/directives/auth/Id.js +0 -17
  125. package/transpiled/directives/auth/Id.js.map +0 -1
  126. package/transpiled/directives/auth/Incept.d.ts +0 -10
  127. package/transpiled/directives/auth/Incept.js +0 -58
  128. package/transpiled/directives/auth/Incept.js.map +0 -1
  129. package/transpiled/directives/auth/Role.d.ts +0 -11
  130. package/transpiled/directives/auth/Role.js +0 -44
  131. package/transpiled/directives/auth/Role.js.map +0 -1
  132. package/transpiled/directives/auth/Rule.d.ts +0 -9
  133. package/transpiled/directives/auth/Rule.js +0 -22
  134. package/transpiled/directives/auth/Rule.js.map +0 -1
  135. package/transpiled/directives/auth/Scheme.d.ts +0 -7
  136. package/transpiled/directives/auth/Scheme.js +0 -47
  137. package/transpiled/directives/auth/Scheme.js.map +0 -1
  138. package/transpiled/directives/auth/index.d.ts +0 -2
  139. package/transpiled/directives/auth/index.js +0 -7
  140. package/transpiled/directives/auth/index.js.map +0 -1
  141. package/transpiled/directives/auth/schemes.d.ts +0 -3
  142. package/transpiled/directives/auth/schemes.js +0 -9
  143. package/transpiled/directives/auth/schemes.js.map +0 -1
  144. package/transpiled/directives/auth/split.d.ts +0 -2
  145. package/transpiled/directives/auth/split.js +0 -38
  146. package/transpiled/directives/auth/split.js.map +0 -1
  147. package/transpiled/directives/auth/types.d.ts +0 -31
  148. package/transpiled/directives/auth/types.js +0 -3
  149. package/transpiled/directives/auth/types.js.map +0 -1
  150. package/transpiled/directives/cache/Control.d.ts +0 -9
  151. package/transpiled/directives/cache/Control.js +0 -42
  152. package/transpiled/directives/cache/Control.js.map +0 -1
  153. package/transpiled/directives/cache/Exact.d.ts +0 -4
  154. package/transpiled/directives/cache/Exact.js +0 -11
  155. package/transpiled/directives/cache/Exact.js.map +0 -1
  156. package/transpiled/directives/cache/Family.d.ts +0 -12
  157. package/transpiled/directives/cache/Family.js +0 -26
  158. package/transpiled/directives/cache/Family.js.map +0 -1
  159. package/transpiled/directives/cache/index.d.ts +0 -2
  160. package/transpiled/directives/cache/index.js +0 -7
  161. package/transpiled/directives/cache/index.js.map +0 -1
  162. package/transpiled/directives/cache/types.d.ts +0 -7
  163. package/transpiled/directives/cache/types.js +0 -3
  164. package/transpiled/directives/cache/types.js.map +0 -1
  165. package/transpiled/directives/dev/Family.d.ts +0 -10
  166. package/transpiled/directives/dev/Family.js +0 -27
  167. package/transpiled/directives/dev/Family.js.map +0 -1
  168. package/transpiled/directives/dev/Stub.d.ts +0 -7
  169. package/transpiled/directives/dev/Stub.js +0 -14
  170. package/transpiled/directives/dev/Stub.js.map +0 -1
  171. package/transpiled/directives/dev/Throw.d.ts +0 -7
  172. package/transpiled/directives/dev/Throw.js +0 -14
  173. package/transpiled/directives/dev/Throw.js.map +0 -1
  174. package/transpiled/directives/dev/index.d.ts +0 -2
  175. package/transpiled/directives/dev/index.js +0 -7
  176. package/transpiled/directives/dev/index.js.map +0 -1
  177. package/transpiled/directives/dev/types.d.ts +0 -4
  178. package/transpiled/directives/dev/types.js +0 -3
  179. package/transpiled/directives/dev/types.js.map +0 -1
  180. package/transpiled/directives/index.d.ts +0 -2
  181. package/transpiled/directives/index.js +0 -12
  182. package/transpiled/directives/index.js.map +0 -1
  183. package/transpiled/directives/octets/Context.d.ts +0 -8
  184. package/transpiled/directives/octets/Context.js +0 -40
  185. package/transpiled/directives/octets/Context.js.map +0 -1
  186. package/transpiled/directives/octets/Delete.d.ts +0 -10
  187. package/transpiled/directives/octets/Delete.js +0 -47
  188. package/transpiled/directives/octets/Delete.js.map +0 -1
  189. package/transpiled/directives/octets/Family.d.ts +0 -12
  190. package/transpiled/directives/octets/Family.js +0 -49
  191. package/transpiled/directives/octets/Family.js.map +0 -1
  192. package/transpiled/directives/octets/Fetch.d.ts +0 -18
  193. package/transpiled/directives/octets/Fetch.js +0 -77
  194. package/transpiled/directives/octets/Fetch.js.map +0 -1
  195. package/transpiled/directives/octets/List.d.ts +0 -10
  196. package/transpiled/directives/octets/List.js +0 -47
  197. package/transpiled/directives/octets/List.js.map +0 -1
  198. package/transpiled/directives/octets/Permute.d.ts +0 -10
  199. package/transpiled/directives/octets/Permute.js +0 -51
  200. package/transpiled/directives/octets/Permute.js.map +0 -1
  201. package/transpiled/directives/octets/Store.d.ts +0 -33
  202. package/transpiled/directives/octets/Store.js +0 -124
  203. package/transpiled/directives/octets/Store.js.map +0 -1
  204. package/transpiled/directives/octets/index.d.ts +0 -2
  205. package/transpiled/directives/octets/index.js +0 -7
  206. package/transpiled/directives/octets/index.js.map +0 -1
  207. package/transpiled/directives/octets/schemas.d.ts +0 -6
  208. package/transpiled/directives/octets/schemas.js +0 -17
  209. package/transpiled/directives/octets/schemas.js.map +0 -1
  210. package/transpiled/directives/octets/types.d.ts +0 -9
  211. package/transpiled/directives/octets/types.js +0 -3
  212. package/transpiled/directives/octets/types.js.map +0 -1
  213. package/transpiled/discovery.d.ts +0 -1
  214. package/transpiled/discovery.js +0 -3
  215. package/transpiled/discovery.js.map +0 -1
  216. package/transpiled/exceptions.d.ts +0 -2
  217. package/transpiled/exceptions.js +0 -39
  218. package/transpiled/exceptions.js.map +0 -1
  219. package/transpiled/index.d.ts +0 -5
  220. package/transpiled/index.js +0 -12
  221. package/transpiled/index.js.map +0 -1
  222. package/transpiled/manifest.d.ts +0 -3
  223. package/transpiled/manifest.js +0 -61
  224. package/transpiled/manifest.js.map +0 -1
  225. package/transpiled/root.d.ts +0 -2
  226. package/transpiled/root.js +0 -39
  227. package/transpiled/root.js.map +0 -1
  228. package/transpiled/schemas.d.ts +0 -3
  229. package/transpiled/schemas.js +0 -14
  230. package/transpiled/schemas.js.map +0 -1
  231. package/transpiled/tsconfig.tsbuildinfo +0 -1
@@ -1,33 +0,0 @@
1
- import type { Remotes } from '../../Remotes';
2
- import type { Component } from '@toa.io/core';
3
- import type { Output } from '../../Directive';
4
- import type { Directive, Input } from './types';
5
- export declare class Store implements Directive {
6
- readonly targeted = false;
7
- private readonly accept;
8
- private readonly workflow;
9
- private readonly discovery;
10
- private readonly remotes;
11
- private readonly components;
12
- private storage;
13
- constructor(options: Options | null, discovery: Promise<Component>, remotes: Remotes);
14
- apply(storage: string, request: Input): Promise<Output>;
15
- private reply;
16
- private throw;
17
- /**
18
- * Execute workflow units sequentially, steps within a unit in parallel.
19
- * Yield results as soon as they come.
20
- *
21
- * If you need to change this, it may take a while.
22
- */
23
- private execute;
24
- private call;
25
- private discover;
26
- }
27
- type Unit = Record<string, string>;
28
- type Workflow = Unit[];
29
- interface Options {
30
- accept: string | string[];
31
- workflow: Workflow | Unit;
32
- }
33
- export {};
@@ -1,124 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Store = void 0;
27
- const node_stream_1 = require("node:stream");
28
- const node_path_1 = require("node:path");
29
- const matchacho_1 = require("matchacho");
30
- const generic_1 = require("@toa.io/generic");
31
- const HTTP_1 = require("../../HTTP");
32
- const schemas = __importStar(require("./schemas"));
33
- class Store {
34
- targeted = false;
35
- accept;
36
- workflow;
37
- discovery = {};
38
- remotes;
39
- components = {};
40
- storage = null;
41
- constructor(options, discovery, remotes) {
42
- schemas.store.validate(options);
43
- this.accept = (0, matchacho_1.match)(options?.accept, String, (value) => value, Array, (types) => types.join(','), undefined);
44
- this.workflow = (0, matchacho_1.match)(options?.workflow, Array, (units) => units, Object, (unit) => [unit], undefined);
45
- this.discovery.storage = discovery;
46
- this.remotes = remotes;
47
- }
48
- async apply(storage, request) {
49
- this.storage ??= await this.discovery.storage;
50
- const input = { storage, request, accept: this.accept };
51
- const entry = await this.storage.invoke('store', { input });
52
- return (0, matchacho_1.match)(entry, Error, (error) => this.throw(error), () => this.reply(request, storage, entry));
53
- }
54
- reply(request, storage, entry) {
55
- const body = this.workflow === undefined
56
- ? entry
57
- : node_stream_1.Readable.from(this.execute(request, storage, entry));
58
- return { body };
59
- }
60
- throw(error) {
61
- throw (0, matchacho_1.match)(error.code, 'NOT_ACCEPTABLE', () => new HTTP_1.UnsupportedMediaType(), 'TYPE_MISMATCH', () => new HTTP_1.BadRequest(), error);
62
- }
63
- /* eslint-disable no-useless-return, max-depth */
64
- /**
65
- * Execute workflow units sequentially, steps within a unit in parallel.
66
- * Yield results as soon as they come.
67
- *
68
- * If you need to change this, it may take a while.
69
- */
70
- async *execute(request, storage, entry) {
71
- yield entry;
72
- const path = node_path_1.posix.join(request.path, entry.id);
73
- let interrupted = false;
74
- for (const unit of this.workflow) {
75
- if (interrupted)
76
- break;
77
- const steps = Object.keys(unit);
78
- // unit result promises queue
79
- const results = Array.from(steps, (generic_1.promex));
80
- let next = 0;
81
- // execute steps in parallel
82
- for (const step of steps)
83
- // these promises are indirectly awaited in the yield loop
84
- void (async () => {
85
- const endpoint = unit[step];
86
- const context = { storage, path, entry };
87
- const result = await this.call(endpoint, context);
88
- if (interrupted)
89
- return;
90
- // as a result is received, resolve the next promise from the queue
91
- const promise = results[next++];
92
- if (result instanceof Error) {
93
- interrupted = true;
94
- promise.resolve({ error: { step, ...result } });
95
- // cancel pending promises
96
- results[next].resolve(null);
97
- }
98
- else
99
- promise.resolve({ [step]: result ?? null });
100
- })().catch((e) => results[next].reject(e));
101
- // yield results from the queue as they come
102
- for (const promise of results) {
103
- const result = await promise;
104
- if (result === null) // canceled promise
105
- break;
106
- else
107
- yield result;
108
- }
109
- }
110
- }
111
- async call(endpoint, context) {
112
- const [operation, component, namespace = 'default'] = endpoint.split('.').reverse();
113
- const key = `${namespace}.${component}`;
114
- this.components[key] ??= await this.discover(key, namespace, component);
115
- return await this.components[key].invoke(operation, { input: context });
116
- }
117
- async discover(key, namespace, component) {
118
- if (this.discovery[key] === undefined)
119
- this.discovery[key] = this.remotes.discover(namespace, component);
120
- return await this.discovery[key];
121
- }
122
- }
123
- exports.Store = Store;
124
- //# sourceMappingURL=Store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../../source/directives/octets/Store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsC;AACtC,yCAAiC;AACjC,yCAAiC;AACjC,6CAAwC;AACxC,qCAA6D;AAC7D,mDAAoC;AASpC,MAAa,KAAK;IACA,QAAQ,GAAG,KAAK,CAAA;IAEf,MAAM,CAAoB;IAC1B,QAAQ,CAAsB;IAC9B,SAAS,GAAuC,EAAE,CAAA;IAClD,OAAO,CAAS;IAChB,UAAU,GAA8B,EAAE,CAAA;IACnD,OAAO,GAAqB,IAAI,CAAA;IAExC,YACC,OAAuB,EAAE,SAA6B,EAAE,OAAgB;QACvE,OAAO,CAAC,KA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C,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,CAAA;QAEvE,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAA;IACzE,CAAC;IAEO,KAAK,CAAC,QAAQ,CAAE,GAAW,EAAE,SAAiB,EAAE,SAAiB;QACvE,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,SAAS;YACnC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;QAEnE,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAClC,CAAC;CACF;AAjID,sBAiIC"}
@@ -1,2 +0,0 @@
1
- import Family from './Family';
2
- export = Family;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- const Family_1 = __importDefault(require("./Family"));
6
- module.exports = Family_1.default;
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/directives/octets/index.ts"],"names":[],"mappings":";;;;AAAA,sDAA6B;AAE7B,iBAAS,gBAAM,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const context: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
2
- export declare const store: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
3
- export declare const fetch: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
4
- export declare const remove: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
5
- export declare const list: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
6
- export declare const permute: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.permute = exports.list = exports.remove = exports.fetch = exports.store = exports.context = void 0;
7
- const node_path_1 = require("node:path");
8
- const schemas_1 = __importDefault(require("@toa.io/schemas"));
9
- const path = (0, node_path_1.resolve)(__dirname, '../../../schemas/octets');
10
- const namespace = schemas_1.default.namespace(path);
11
- exports.context = namespace.schema('context');
12
- exports.store = namespace.schema('store');
13
- exports.fetch = namespace.schema('fetch');
14
- exports.remove = namespace.schema('delete');
15
- exports.list = namespace.schema('list');
16
- exports.permute = namespace.schema('permute');
17
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../source/directives/octets/schemas.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAmC;AACnC,8DAAqC;AAErC,MAAM,IAAI,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,yBAAyB,CAAC,CAAA;AAC1D,MAAM,SAAS,GAAG,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AAE5B,QAAA,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;AACrC,QAAA,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACjC,QAAA,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACjC,QAAA,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACnC,QAAA,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC/B,QAAA,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- import type * as directive from '../../Directive';
2
- export interface Directive {
3
- readonly targeted: boolean;
4
- apply: (storage: string, input: Input) => directive.Output | Promise<directive.Output>;
5
- }
6
- export interface Extension {
7
- octets?: string;
8
- }
9
- export type Input = directive.Input & Extension;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../source/directives/octets/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type Label = 'ping' | 'expose';
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=discovery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.js","sourceRoot":"","sources":["../source/discovery.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { type Exception } from '@toa.io/core';
2
- export declare function rethrow(exception: Exception): void;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.rethrow = void 0;
27
- const http = __importStar(require("./HTTP"));
28
- function rethrow(exception) {
29
- // see /runtime/core/src/exceptions.js
30
- if ((exception.code >= 200 && exception.code < 210) || exception.code === 221)
31
- throw new http.BadRequest(exception.message);
32
- if (exception.code === 302)
33
- throw new http.NotFound();
34
- if (exception.code === 303)
35
- throw new http.PreconditionFailed();
36
- throw exception;
37
- }
38
- exports.rethrow = rethrow;
39
- //# sourceMappingURL=exceptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../source/exceptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAA8B;AAE9B,SAAgB,OAAO,CAAE,SAAoB;IAC3C,sCAAsC;IAEtC,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,GAAG,IAAI,SAAS,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,KAAK,GAAG;QAC3E,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IAE9C,IAAI,SAAS,CAAC,IAAI,KAAK,GAAG;QACxB,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAA;IAE3B,IAAI,SAAS,CAAC,IAAI,KAAK,GAAG;QACxB,MAAM,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAA;IAErC,MAAM,SAA6B,CAAA;AACrC,CAAC;AAbD,0BAaC"}
@@ -1,5 +0,0 @@
1
- export { manifest } from './manifest';
2
- export { deployment } from './deployment';
3
- export { components } from './Composition';
4
- export { Factory } from './Factory';
5
- export type { Remotes } from './Remotes';
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Factory = exports.components = exports.deployment = exports.manifest = void 0;
4
- var manifest_1 = require("./manifest");
5
- Object.defineProperty(exports, "manifest", { enumerable: true, get: function () { return manifest_1.manifest; } });
6
- var deployment_1 = require("./deployment");
7
- Object.defineProperty(exports, "deployment", { enumerable: true, get: function () { return deployment_1.deployment; } });
8
- var Composition_1 = require("./Composition");
9
- Object.defineProperty(exports, "components", { enumerable: true, get: function () { return Composition_1.components; } });
10
- var Factory_1 = require("./Factory");
11
- Object.defineProperty(exports, "Factory", { enumerable: true, get: function () { return Factory_1.Factory; } });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,6CAA0C;AAAjC,yGAAA,UAAU,OAAA;AACnB,qCAAmC;AAA1B,kGAAA,OAAO,OAAA"}
@@ -1,3 +0,0 @@
1
- import { type Node } from './RTD/syntax';
2
- import type { Manifest } from '@toa.io/norm';
3
- export declare function manifest(declaration: object, manifest: Manifest): Node;
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.manifest = void 0;
27
- const syntax_1 = require("./RTD/syntax");
28
- const Directive_1 = require("./Directive");
29
- const schemas = __importStar(require("./schemas"));
30
- function manifest(declaration, manifest) {
31
- declaration = wrap(manifest.name, declaration);
32
- if (manifest.namespace !== undefined && manifest.namespace !== 'default')
33
- declaration = wrap(manifest.namespace, declaration);
34
- const node = (0, syntax_1.parse)(declaration, Directive_1.shortcuts);
35
- concretize(node, manifest);
36
- schemas.node.validate(node);
37
- return node;
38
- }
39
- exports.manifest = manifest;
40
- function wrap(segment, declaration) {
41
- return { ['/' + segment]: { protected: true, ...declaration } };
42
- }
43
- function concretize(node, manifest) {
44
- for (const route of node.routes) {
45
- for (const method of route.node.methods)
46
- concretizeMethod(method, manifest);
47
- concretize(route.node, manifest);
48
- }
49
- }
50
- function concretizeMethod(method, manifest) {
51
- if (method.mapping === undefined)
52
- return;
53
- const operation = manifest.operations[method.mapping.endpoint];
54
- if (operation === undefined)
55
- throw new Error(`Operation '${method.mapping.endpoint}' not found`);
56
- if (method.mapping.query === undefined && operation.query !== false)
57
- method.mapping.query = {}; // schema will substitute default values
58
- method.mapping.namespace = manifest.namespace;
59
- method.mapping.component = manifest.name;
60
- }
61
- //# sourceMappingURL=manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../source/manifest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAwE;AACxE,2CAAuC;AACvC,mDAAoC;AAGpC,SAAgB,QAAQ,CAAE,WAAmB,EAAE,QAAkB;IAC/D,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IAE9C,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS;QACtE,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;IAErD,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,WAAW,EA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AC,IAAI,CAAA;AAC1C,CAAC"}
@@ -1,2 +0,0 @@
1
- import { syntax } from './RTD';
2
- export declare function resolve(): syntax.Node;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolve = void 0;
4
- const generic_1 = require("@toa.io/generic");
5
- const RTD_1 = require("./RTD");
6
- function resolve() {
7
- const value = process.env.TOA_EXPOSITION;
8
- const root = value !== undefined ? (0, generic_1.decode)(value) : RTD_1.syntax.createNode();
9
- (0, generic_1.merge)(root, PREDEFINED);
10
- return root;
11
- }
12
- exports.resolve = resolve;
13
- const PREDEFINED = {
14
- routes: [
15
- {
16
- path: '/identity',
17
- node: {
18
- isolated: true,
19
- routes: [],
20
- methods: [
21
- {
22
- verb: 'GET',
23
- directives: [
24
- {
25
- family: 'auth',
26
- name: 'echo',
27
- value: null
28
- }
29
- ]
30
- }
31
- ],
32
- directives: []
33
- }
34
- }
35
- ],
36
- methods: [],
37
- directives: []
38
- };
39
- //# sourceMappingURL=root.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root.js","sourceRoot":"","sources":["../source/root.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAC/C,+BAA8B;AAE9B,SAAgB,OAAO;IACrB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAA;IACxC,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,gBAAM,EAAc,KAAK,CAAC,CAAC,CAAC,CAAC,YAAM,CAAC,UAAU,EAAE,CAAA;IAEnF,IAAA,eAAK,EAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IAEvB,OAAO,IAAI,CAAA;AACb,CAAC;AAPD,0BAOC;AAED,MAAM,UAAU,GAAgB;IAC9B,MAAM,EAAE;QACN;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE;gBACJ,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,EAAE;gBACV,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,KAAK;wBACX,UAAU,EAAE;4BACV;gCACE,MAAM,EAAE,MAAM;gCACd,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,IAAI;6BACZ;yBACF;qBACF;iBACF;gBACD,UAAU,EAAE,EAAE;aACf;SACF;KACF;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;CACf,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const querystring: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
2
- export declare const annotaion: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
3
- export declare const node: import("@toa.io/schemas/types/schema").toa.schemas.Schema;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.node = exports.annotaion = exports.querystring = void 0;
7
- const node_path_1 = require("node:path");
8
- const schemas_1 = __importDefault(require("@toa.io/schemas"));
9
- const path = (0, node_path_1.resolve)(__dirname, '../schemas');
10
- const namespace = schemas_1.default.namespace(path);
11
- exports.querystring = namespace.schema('querystring');
12
- exports.annotaion = namespace.schema('annotation');
13
- exports.node = namespace.schema('node');
14
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../source/schemas.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAmC;AACnC,8DAAqC;AAErC,MAAM,IAAI,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAC7C,MAAM,SAAS,GAAG,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AAE5B,QAAA,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;AAC7C,QAAA,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;AAC1C,QAAA,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":"4.9.5"}