wexts 4.1.0 → 4.1.6

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 (113) hide show
  1. package/dist/chunk-27NEYQD2.mjs +222 -0
  2. package/dist/chunk-27NEYQD2.mjs.map +1 -0
  3. package/dist/{chunk-YBM3IJEA.mjs → chunk-5DBFN65W.mjs} +92 -3
  4. package/dist/chunk-5DBFN65W.mjs.map +1 -0
  5. package/dist/{chunk-7HNQWJWV.js → chunk-75HBI2XG.js} +3 -3
  6. package/dist/{chunk-7HNQWJWV.js.map → chunk-75HBI2XG.js.map} +1 -1
  7. package/dist/{chunk-JHOVXH3X.mjs → chunk-C2AG7Q3C.mjs} +2 -2
  8. package/dist/{chunk-7TLSPR65.mjs → chunk-DS5KVVWJ.mjs} +2 -2
  9. package/dist/{chunk-YN6WIWNQ.mjs → chunk-FUPLZMSR.mjs} +3 -3
  10. package/dist/{chunk-7QKLIVRF.js → chunk-HLT3IHJY.js} +92 -3
  11. package/dist/chunk-HLT3IHJY.js.map +1 -0
  12. package/dist/{chunk-7WULUGLH.mjs → chunk-L77ANWWT.mjs} +2 -2
  13. package/dist/{chunk-7WULUGLH.mjs.map → chunk-L77ANWWT.mjs.map} +1 -1
  14. package/dist/chunk-P3Q4I5FD.js +222 -0
  15. package/dist/chunk-P3Q4I5FD.js.map +1 -0
  16. package/dist/{chunk-342VRT25.mjs → chunk-VBIQGUDI.mjs} +6 -6
  17. package/dist/cli/index.js +32 -3
  18. package/dist/cli/index.js.map +1 -1
  19. package/dist/cli/index.mjs +35 -6
  20. package/dist/cli/index.mjs.map +1 -1
  21. package/dist/client/index.d.mts +23 -1
  22. package/dist/client/index.d.ts +23 -1
  23. package/dist/client/index.js +183 -9
  24. package/dist/client/index.js.map +1 -1
  25. package/dist/client/index.mjs +160 -7
  26. package/dist/client/index.mjs.map +1 -1
  27. package/dist/codegen/index.d.mts +2 -2
  28. package/dist/codegen/index.d.ts +2 -2
  29. package/dist/codegen/index.js +3 -3
  30. package/dist/codegen/index.mjs +4 -4
  31. package/dist/decorators-BiQtOHuF.d.ts +60 -0
  32. package/dist/decorators-vBopODtr.d.mts +60 -0
  33. package/dist/dev-server/index.mjs +3 -3
  34. package/dist/errors-D545UvXf.d.mts +37 -0
  35. package/dist/errors-D545UvXf.d.ts +37 -0
  36. package/dist/{index-7QeQEf37.d.ts → index-CJKs4wtN.d.ts} +1 -1
  37. package/dist/index-CUR6CnLk.d.ts +27 -0
  38. package/dist/{index-8nzxy0NN.d.mts → index-h66Vq9dK.d.mts} +1 -1
  39. package/dist/index-tqmYsTUn.d.mts +27 -0
  40. package/dist/index.d.mts +82 -87
  41. package/dist/index.d.ts +82 -87
  42. package/dist/index.js +140 -20
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +142 -22
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/nest/index.d.mts +2 -3
  47. package/dist/nest/index.d.ts +2 -3
  48. package/dist/nest/index.js +2 -4
  49. package/dist/nest/index.js.map +1 -1
  50. package/dist/nest/index.mjs +3 -5
  51. package/dist/next/index.js +0 -7
  52. package/dist/next/index.js.map +1 -1
  53. package/dist/next/index.mjs.map +1 -1
  54. package/dist/rpc/index.d.mts +32 -2
  55. package/dist/rpc/index.d.ts +32 -2
  56. package/dist/rpc/index.js +18 -22
  57. package/dist/rpc/index.js.map +1 -1
  58. package/dist/rpc/index.mjs +0 -22
  59. package/dist/runtime/index.d.mts +1 -1
  60. package/dist/runtime/index.d.ts +1 -1
  61. package/dist/runtime/index.js +5 -211
  62. package/dist/runtime/index.js.map +1 -1
  63. package/dist/runtime/index.mjs +7 -213
  64. package/dist/runtime/index.mjs.map +1 -1
  65. package/dist/server/index.d.mts +7 -0
  66. package/dist/server/index.d.ts +7 -0
  67. package/dist/server/index.js +58 -0
  68. package/dist/server/index.js.map +1 -0
  69. package/dist/server/index.mjs +58 -0
  70. package/dist/types/index.js +18 -1
  71. package/dist/types/index.js.map +1 -1
  72. package/dist/types/index.mjs +0 -2
  73. package/dist/{types-7d_fC-C3.d.ts → types-CQ_aexOX.d.mts} +1 -1
  74. package/dist/{types-7d_fC-C3.d.mts → types-CQ_aexOX.d.ts} +1 -1
  75. package/dist/vercel-builder/index.mjs +1 -1
  76. package/package.json +6 -1
  77. package/templates/nestjs-api/README.md +1 -1
  78. package/dist/chunk-2KAQYLVN.js +0 -1
  79. package/dist/chunk-2KAQYLVN.js.map +0 -1
  80. package/dist/chunk-7QKLIVRF.js.map +0 -1
  81. package/dist/chunk-7SSCNCTW.mjs +0 -137
  82. package/dist/chunk-7SSCNCTW.mjs.map +0 -1
  83. package/dist/chunk-BG56B4DE.js +0 -106
  84. package/dist/chunk-BG56B4DE.js.map +0 -1
  85. package/dist/chunk-CLM5PNSG.mjs +0 -496
  86. package/dist/chunk-CLM5PNSG.mjs.map +0 -1
  87. package/dist/chunk-DNLGCKTT.js +0 -31
  88. package/dist/chunk-DNLGCKTT.js.map +0 -1
  89. package/dist/chunk-MXINIFPC.js +0 -105
  90. package/dist/chunk-MXINIFPC.js.map +0 -1
  91. package/dist/chunk-O4II6N34.js +0 -137
  92. package/dist/chunk-O4II6N34.js.map +0 -1
  93. package/dist/chunk-SE32ZPOZ.js +0 -496
  94. package/dist/chunk-SE32ZPOZ.js.map +0 -1
  95. package/dist/chunk-UAL54DVV.mjs +0 -106
  96. package/dist/chunk-UAL54DVV.mjs.map +0 -1
  97. package/dist/chunk-WU6FW77M.mjs +0 -105
  98. package/dist/chunk-WU6FW77M.mjs.map +0 -1
  99. package/dist/chunk-YBM3IJEA.mjs.map +0 -1
  100. package/dist/chunk-YSLEF5C5.mjs +0 -1
  101. package/dist/chunk-ZX7QIN24.mjs +0 -31
  102. package/dist/chunk-ZX7QIN24.mjs.map +0 -1
  103. package/dist/decorators-BT1FFqN0.d.mts +0 -29
  104. package/dist/decorators-DvS58PqC.d.ts +0 -29
  105. package/dist/index-Co5ZsLqq.d.ts +0 -58
  106. package/dist/index-D94W1__r.d.mts +0 -58
  107. package/dist/index-DQmyVp6F.d.mts +0 -27
  108. package/dist/index-KL_1BrQb.d.ts +0 -27
  109. /package/dist/{chunk-JHOVXH3X.mjs.map → chunk-C2AG7Q3C.mjs.map} +0 -0
  110. /package/dist/{chunk-7TLSPR65.mjs.map → chunk-DS5KVVWJ.mjs.map} +0 -0
  111. /package/dist/{chunk-YN6WIWNQ.mjs.map → chunk-FUPLZMSR.mjs.map} +0 -0
  112. /package/dist/{chunk-342VRT25.mjs.map → chunk-VBIQGUDI.mjs.map} +0 -0
  113. /package/dist/{chunk-YSLEF5C5.mjs.map → server/index.mjs.map} +0 -0
@@ -1,106 +0,0 @@
1
- import {
2
- RequireAuth,
3
- RpcMethod,
4
- RpcService,
5
- WextsRpc,
6
- WextsRpcService,
7
- getRpcAuthPolicy,
8
- getRuntimeRpcMethodsMetadata,
9
- getRuntimeRpcServiceMetadata
10
- } from "./chunk-YBM3IJEA.mjs";
11
- import {
12
- __export,
13
- __name
14
- } from "./chunk-7WULUGLH.mjs";
15
-
16
- // src/nest/index.ts
17
- var nest_exports = {};
18
- __export(nest_exports, {
19
- FusionController: () => FusionController,
20
- FusionDelete: () => FusionDelete,
21
- FusionGet: () => FusionGet,
22
- FusionPost: () => FusionPost,
23
- FusionPut: () => FusionPut,
24
- FusionRoute: () => FusionRoute,
25
- RequireAuth: () => RequireAuth,
26
- RpcMethod: () => RpcMethod,
27
- RpcService: () => RpcService,
28
- WextsRpc: () => WextsRpc,
29
- WextsRpcService: () => WextsRpcService,
30
- getFusionMetadata: () => getFusionMetadata,
31
- getRpcAuthPolicy: () => getRpcAuthPolicy,
32
- getRuntimeRpcMethodsMetadata: () => getRuntimeRpcMethodsMetadata,
33
- getRuntimeRpcServiceMetadata: () => getRuntimeRpcServiceMetadata
34
- });
35
-
36
- // src/nest/decorators.ts
37
- import "reflect-metadata";
38
- var FUSION_METADATA_KEY = "fusion:routes";
39
- function FusionController(prefix = "") {
40
- return function(target) {
41
- Reflect.defineMetadata("fusion:controller", {
42
- prefix
43
- }, target);
44
- return target;
45
- };
46
- }
47
- __name(FusionController, "FusionController");
48
- function FusionRoute(metadata) {
49
- return function(target, propertyKey, descriptor) {
50
- const routes = Reflect.getMetadata(FUSION_METADATA_KEY, target.constructor) || [];
51
- routes.push({
52
- ...metadata,
53
- handler: propertyKey
54
- });
55
- Reflect.defineMetadata(FUSION_METADATA_KEY, routes, target.constructor);
56
- return descriptor;
57
- };
58
- }
59
- __name(FusionRoute, "FusionRoute");
60
- function FusionGet(path = "") {
61
- return FusionRoute({
62
- method: "GET",
63
- path
64
- });
65
- }
66
- __name(FusionGet, "FusionGet");
67
- function FusionPost(path = "") {
68
- return FusionRoute({
69
- method: "POST",
70
- path
71
- });
72
- }
73
- __name(FusionPost, "FusionPost");
74
- function FusionPut(path = "") {
75
- return FusionRoute({
76
- method: "PUT",
77
- path
78
- });
79
- }
80
- __name(FusionPut, "FusionPut");
81
- function FusionDelete(path = "") {
82
- return FusionRoute({
83
- method: "DELETE",
84
- path
85
- });
86
- }
87
- __name(FusionDelete, "FusionDelete");
88
- function getFusionMetadata(controller) {
89
- return {
90
- controller: Reflect.getMetadata("fusion:controller", controller),
91
- routes: Reflect.getMetadata(FUSION_METADATA_KEY, controller) || []
92
- };
93
- }
94
- __name(getFusionMetadata, "getFusionMetadata");
95
-
96
- export {
97
- FusionController,
98
- FusionRoute,
99
- FusionGet,
100
- FusionPost,
101
- FusionPut,
102
- FusionDelete,
103
- getFusionMetadata,
104
- nest_exports
105
- };
106
- //# sourceMappingURL=chunk-UAL54DVV.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/nest/index.ts","../src/nest/decorators.ts"],"sourcesContent":["export * from './decorators';\nexport * from '../rpc/decorators';\n","// NestJS Integration - Decorators for wexts\n// These decorators add metadata for auto API client generation\n\nimport 'reflect-metadata';\n\nexport interface FusionRouteMetadata {\n method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';\n path: string;\n responseType?: string;\n requestType?: string;\n}\n\nconst FUSION_METADATA_KEY = 'fusion:routes';\n\n/**\n * Mark a NestJS controller for Fusion codegen\n * Usage: @FusionController('users')\n */\nexport function FusionController(prefix: string = ''): ClassDecorator {\n return function (target: any) {\n Reflect.defineMetadata('fusion:controller', { prefix }, target);\n return target;\n };\n}\n\n/**\n * Mark a route for API client generation\n * Usage: @FusionRoute({ method: 'GET', path: '/:id' })\n */\nexport function FusionRoute(metadata: FusionRouteMetadata): MethodDecorator {\n return function (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) {\n const routes = Reflect.getMetadata(FUSION_METADATA_KEY, target.constructor) || [];\n routes.push({\n ...metadata,\n handler: propertyKey,\n });\n Reflect.defineMetadata(FUSION_METADATA_KEY, routes, target.constructor);\n return descriptor;\n };\n}\n\n/**\n * Helper decorators for common HTTP methods\n */\nexport function FusionGet(path: string = ''): MethodDecorator {\n return FusionRoute({ method: 'GET', path });\n}\n\nexport function FusionPost(path: string = ''): MethodDecorator {\n return FusionRoute({ method: 'POST', path });\n}\n\nexport function FusionPut(path: string = ''): MethodDecorator {\n return FusionRoute({ method: 'PUT', path });\n}\n\nexport function FusionDelete(path: string = ''): MethodDecorator {\n return FusionRoute({ method: 'DELETE', path });\n}\n\n/**\n * Get Fusion metadata from a controller\n */\nexport function getFusionMetadata(controller: any): {\n controller: any;\n routes: any[];\n} {\n return {\n controller: Reflect.getMetadata('fusion:controller', controller),\n routes: Reflect.getMetadata(FUSION_METADATA_KEY, controller) || [],\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;ACGA,OAAO;AASP,IAAMA,sBAAsB;AAMrB,SAASC,iBAAiBC,SAAiB,IAAE;AAChD,SAAO,SAAUC,QAAW;AACxBC,YAAQC,eAAe,qBAAqB;MAAEH;IAAO,GAAGC,MAAAA;AACxD,WAAOA;EACX;AACJ;AALgBF;AAWT,SAASK,YAAYC,UAA6B;AACrD,SAAO,SAAUJ,QAAaK,aAA8BC,YAA8B;AACtF,UAAMC,SAASN,QAAQO,YAAYX,qBAAqBG,OAAO,WAAW,KAAK,CAAA;AAC/EO,WAAOE,KAAK;MACR,GAAGL;MACHM,SAASL;IACb,CAAA;AACAJ,YAAQC,eAAeL,qBAAqBU,QAAQP,OAAO,WAAW;AACtE,WAAOM;EACX;AACJ;AAVgBH;AAeT,SAASQ,UAAUC,OAAe,IAAE;AACvC,SAAOT,YAAY;IAAEU,QAAQ;IAAOD;EAAK,CAAA;AAC7C;AAFgBD;AAIT,SAASG,WAAWF,OAAe,IAAE;AACxC,SAAOT,YAAY;IAAEU,QAAQ;IAAQD;EAAK,CAAA;AAC9C;AAFgBE;AAIT,SAASC,UAAUH,OAAe,IAAE;AACvC,SAAOT,YAAY;IAAEU,QAAQ;IAAOD;EAAK,CAAA;AAC7C;AAFgBG;AAIT,SAASC,aAAaJ,OAAe,IAAE;AAC1C,SAAOT,YAAY;IAAEU,QAAQ;IAAUD;EAAK,CAAA;AAChD;AAFgBI;AAOT,SAASC,kBAAkBC,YAAe;AAI7C,SAAO;IACHA,YAAYjB,QAAQO,YAAY,qBAAqBU,UAAAA;IACrDX,QAAQN,QAAQO,YAAYX,qBAAqBqB,UAAAA,KAAe,CAAA;EACpE;AACJ;AARgBD;","names":["FUSION_METADATA_KEY","FusionController","prefix","target","Reflect","defineMetadata","FusionRoute","metadata","propertyKey","descriptor","routes","getMetadata","push","handler","FusionGet","path","method","FusionPost","FusionPut","FusionDelete","getFusionMetadata","controller"]}
@@ -1,105 +0,0 @@
1
- import {
2
- __name
3
- } from "./chunk-7WULUGLH.mjs";
4
-
5
- // src/client/fetcher.ts
6
- var FusionFetcher = class {
7
- static {
8
- __name(this, "FusionFetcher");
9
- }
10
- baseUrl;
11
- constructor(baseUrl = "/api") {
12
- this.baseUrl = baseUrl;
13
- }
14
- async request(method, path, body) {
15
- const headers = {
16
- "Content-Type": "application/json"
17
- };
18
- if (typeof window !== "undefined") {
19
- const token = localStorage.getItem("fusion_token");
20
- if (token) headers["Authorization"] = `Bearer ${token}`;
21
- }
22
- const response = await fetch(`${this.baseUrl}${path}`, {
23
- method,
24
- headers,
25
- body: body ? JSON.stringify(body) : void 0
26
- });
27
- if (!response.ok) {
28
- throw new Error(`Fusion API Error: ${response.status} ${response.statusText}`);
29
- }
30
- if (response.status === 204) {
31
- return void 0;
32
- }
33
- return response.json();
34
- }
35
- get(path) {
36
- return this.request("GET", path);
37
- }
38
- post(path, body) {
39
- return this.request("POST", path, body);
40
- }
41
- put(path, body) {
42
- return this.request("PUT", path, body);
43
- }
44
- delete(path) {
45
- return this.request("DELETE", path);
46
- }
47
- };
48
- var apiFetcher = new FusionFetcher();
49
- function createWextsRpcClient(manifest, options = {}) {
50
- const services = new Set((manifest?.services ?? []).map((service) => service.name));
51
- const methodMap = /* @__PURE__ */ new Map();
52
- for (const service of manifest?.services ?? []) {
53
- methodMap.set(service.name, new Set(service.methods.map((method) => method.name)));
54
- }
55
- const createServiceProxy = /* @__PURE__ */ __name((serviceName) => new Proxy({}, {
56
- get(_target, methodName) {
57
- if (typeof methodName !== "string") return void 0;
58
- if (methodName === "then") return void 0;
59
- const knownMethods = methodMap.get(serviceName);
60
- if (knownMethods && !knownMethods.has(methodName)) {
61
- throw new Error(`Wexts RPC method not found: ${serviceName}.${methodName}`);
62
- }
63
- return (...args) => invokeRpc(serviceName, methodName, args, options);
64
- }
65
- }), "createServiceProxy");
66
- return new Proxy({}, {
67
- get(_target, serviceName) {
68
- if (typeof serviceName !== "string") return void 0;
69
- if (serviceName === "then") return void 0;
70
- if (services.size > 0 && !services.has(serviceName)) {
71
- throw new Error(`Wexts RPC service not found: ${serviceName}`);
72
- }
73
- return createServiceProxy(serviceName);
74
- }
75
- });
76
- }
77
- __name(createWextsRpcClient, "createWextsRpcClient");
78
- async function invokeRpc(serviceName, methodName, args, options) {
79
- const fetchImpl = options.fetch ?? fetch;
80
- const baseUrl = options.baseUrl ?? "/rpc";
81
- const headers = {
82
- "Content-Type": "application/json",
83
- ...await options.getHeaders?.() ?? {}
84
- };
85
- const response = await fetchImpl(`${baseUrl}/${encodeURIComponent(serviceName)}/${encodeURIComponent(methodName)}`, {
86
- method: "POST",
87
- headers,
88
- body: JSON.stringify({
89
- args
90
- })
91
- });
92
- if (!response.ok) {
93
- throw new Error(`Wexts RPC Error: ${response.status} ${response.statusText}`);
94
- }
95
- const payload = await response.json();
96
- return payload.data;
97
- }
98
- __name(invokeRpc, "invokeRpc");
99
-
100
- export {
101
- FusionFetcher,
102
- apiFetcher,
103
- createWextsRpcClient
104
- };
105
- //# sourceMappingURL=chunk-WU6FW77M.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/client/fetcher.ts"],"sourcesContent":["import type { RpcManifest, RpcInvocationResponse } from '../rpc/types';\n\nexport class FusionFetcher {\n private baseUrl: string;\n\n constructor(baseUrl: string = '/api') {\n this.baseUrl = baseUrl;\n }\n\n private async request<T>(method: string, path: string, body?: any): Promise<T> {\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n };\n\n // Automatically attach Fusion Token if present\n if (typeof window !== 'undefined') {\n const token = localStorage.getItem('fusion_token');\n if (token) headers['Authorization'] = `Bearer ${token}`;\n }\n\n const response = await fetch(`${this.baseUrl}${path}`, {\n method,\n headers,\n body: body ? JSON.stringify(body) : undefined,\n });\n\n if (!response.ok) {\n throw new Error(`Fusion API Error: ${response.status} ${response.statusText}`);\n }\n\n if (response.status === 204) {\n return undefined as T;\n }\n\n return response.json();\n }\n\n get<T>(path: string) { return this.request<T>('GET', path); }\n post<T>(path: string, body: any) { return this.request<T>('POST', path, body); }\n put<T>(path: string, body: any) { return this.request<T>('PUT', path, body); }\n delete<T>(path: string) { return this.request<T>('DELETE', path); }\n}\n\nexport const apiFetcher = new FusionFetcher();\n\nexport interface WextsRpcClientOptions {\n baseUrl?: string;\n fetch?: typeof fetch;\n getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;\n}\n\nexport type WextsRpcClient = Record<string, Record<string, (...args: unknown[]) => Promise<unknown>>>;\n\nexport function createWextsRpcClient(\n manifest: Pick<RpcManifest, 'services'> | undefined,\n options: WextsRpcClientOptions = {}\n): WextsRpcClient {\n const services = new Set((manifest?.services ?? []).map((service) => service.name));\n const methodMap = new Map<string, Set<string>>();\n\n for (const service of manifest?.services ?? []) {\n methodMap.set(service.name, new Set(service.methods.map((method) => method.name)));\n }\n\n const createServiceProxy = (serviceName: string) => new Proxy({}, {\n get(_target, methodName) {\n if (typeof methodName !== 'string') return undefined;\n if (methodName === 'then') return undefined;\n\n const knownMethods = methodMap.get(serviceName);\n if (knownMethods && !knownMethods.has(methodName)) {\n throw new Error(`Wexts RPC method not found: ${serviceName}.${methodName}`);\n }\n\n return (...args: unknown[]) => invokeRpc(serviceName, methodName, args, options);\n },\n }) as Record<string, (...args: unknown[]) => Promise<unknown>>;\n\n return new Proxy({}, {\n get(_target, serviceName) {\n if (typeof serviceName !== 'string') return undefined;\n if (serviceName === 'then') return undefined;\n if (services.size > 0 && !services.has(serviceName)) {\n throw new Error(`Wexts RPC service not found: ${serviceName}`);\n }\n\n return createServiceProxy(serviceName);\n },\n }) as WextsRpcClient;\n}\n\nasync function invokeRpc(\n serviceName: string,\n methodName: string,\n args: unknown[],\n options: WextsRpcClientOptions\n): Promise<unknown> {\n const fetchImpl = options.fetch ?? fetch;\n const baseUrl = options.baseUrl ?? '/rpc';\n const headers = {\n 'Content-Type': 'application/json',\n ...(await options.getHeaders?.() ?? {}),\n };\n const response = await fetchImpl(`${baseUrl}/${encodeURIComponent(serviceName)}/${encodeURIComponent(methodName)}`, {\n method: 'POST',\n headers,\n body: JSON.stringify({ args }),\n });\n\n if (!response.ok) {\n throw new Error(`Wexts RPC Error: ${response.status} ${response.statusText}`);\n }\n\n const payload = await response.json() as RpcInvocationResponse;\n return payload.data;\n}\n"],"mappings":";;;;;AAEO,IAAMA,gBAAN,MAAMA;EAAb,OAAaA;;;EACDC;EAER,YAAYA,UAAkB,QAAQ;AAClC,SAAKA,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AAI,CAAClC,SAASK,IAAI;AACd,UAAM,IAAIC,MAAM,oBAAoBN,SAASO,MAAM,IAAIP,SAASQ,UAAU,EAAE;EAChF;AAEA,QAAMgC,UAAU,MAAMxC,SAASS,KAAI;AACnC,SAAO+B,QAAQC;AACnB;AAxBeN;","names":["FusionFetcher","baseUrl","request","method","path","body","headers","window","token","localStorage","getItem","response","fetch","JSON","stringify","undefined","ok","Error","status","statusText","json","get","post","put","delete","apiFetcher","createWextsRpcClient","manifest","options","services","Set","map","service","name","methodMap","Map","set","methods","createServiceProxy","serviceName","Proxy","_target","methodName","knownMethods","has","args","invokeRpc","size","fetchImpl","getHeaders","encodeURIComponent","payload","data"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/rpc/decorators.ts"],"sourcesContent":["import 'reflect-metadata';\nimport type { RpcAuthPolicy } from './types';\n\nconst RPC_SERVICE_KEY = 'wexts:rpc:service';\nconst RPC_METHODS_KEY = 'wexts:rpc:methods';\n\nexport interface RpcServiceOptions {\n name?: string;\n requireAuth?: boolean;\n}\n\nexport interface RpcMethodOptions {\n name?: string;\n requireAuth?: boolean;\n}\n\nexport interface RuntimeRpcServiceMetadata {\n name?: string;\n requireAuth: boolean;\n}\n\nexport interface RuntimeRpcMethodMetadata {\n propertyKey: string | symbol;\n name?: string;\n requireAuth?: boolean;\n}\n\nexport function RpcService(nameOrOptions?: string | RpcServiceOptions): ClassDecorator {\n const options = normalizeServiceOptions(nameOrOptions);\n\n return (target) => {\n Reflect.defineMetadata(RPC_SERVICE_KEY, options, target);\n return target;\n };\n}\n\nexport function RpcMethod(nameOrOptions?: string | RpcMethodOptions): MethodDecorator {\n const options = normalizeMethodOptions(nameOrOptions);\n\n return (target, propertyKey) => {\n const constructor = target.constructor;\n const methods: RuntimeRpcMethodMetadata[] = Reflect.getMetadata(RPC_METHODS_KEY, constructor) || [];\n const nextMethods = methods.filter((method) => method.propertyKey !== propertyKey);\n nextMethods.push({ propertyKey, ...options });\n Reflect.defineMetadata(RPC_METHODS_KEY, nextMethods, constructor);\n };\n}\n\nexport function RequireAuth(): MethodDecorator & ClassDecorator {\n return (target: object, propertyKey?: string | symbol) => {\n if (propertyKey) {\n RpcMethod({ requireAuth: true })(target, propertyKey, Object.getOwnPropertyDescriptor(target, propertyKey)!);\n return;\n }\n\n const existing = getRuntimeRpcServiceMetadata(target as Function);\n Reflect.defineMetadata(RPC_SERVICE_KEY, { ...existing, requireAuth: true }, target);\n };\n}\n\nexport function getRuntimeRpcServiceMetadata(target: Function): RuntimeRpcServiceMetadata | undefined {\n return Reflect.getMetadata(RPC_SERVICE_KEY, target);\n}\n\nexport function getRuntimeRpcMethodsMetadata(target: Function): RuntimeRpcMethodMetadata[] {\n return Reflect.getMetadata(RPC_METHODS_KEY, target) || [];\n}\n\nexport function getRpcAuthPolicy(requireAuth?: boolean): RpcAuthPolicy {\n return requireAuth ? 'required' : 'public';\n}\n\nexport const WextsRpcService = RpcService;\nexport const WextsRpc = RpcMethod;\n\nfunction normalizeServiceOptions(input?: string | RpcServiceOptions): RuntimeRpcServiceMetadata {\n if (typeof input === 'string') {\n return { name: input, requireAuth: false };\n }\n\n return {\n name: input?.name,\n requireAuth: input?.requireAuth ?? true,\n };\n}\n\nfunction normalizeMethodOptions(input?: string | RpcMethodOptions): RpcMethodOptions {\n if (typeof input === 'string') {\n return { name: input };\n }\n\n return input ?? {};\n}\n"],"mappings":";;;;;AAAA,OAAO;AAGP,IAAMA,kBAAkB;AACxB,IAAMC,kBAAkB;AAuBjB,SAASC,WAAWC,eAA0C;AACjE,QAAMC,UAAUC,wBAAwBF,aAAAA;AAExC,SAAO,CAACG,WAAAA;AACJC,YAAQC,eAAeR,iBAAiBI,SAASE,MAAAA;AACjD,WAAOA;EACX;AACJ;AAPgBJ;AAST,SAASO,UAAUN,eAAyC;AAC/D,QAAMC,UAAUM,uBAAuBP,aAAAA;AAEvC,SAAO,CAACG,QAAQK,gBAAAA;AACZ,UAAMC,cAAcN,OAAO;AAC3B,UAAM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ICE_KEY","RPC_METHODS_KEY","RpcService","nameOrOptions","options","normalizeServiceOptions","target","Reflect","defineMetadata","RpcMethod","normalizeMethodOptions","propertyKey","constructor","methods","getMetadata","nextMethods","filter","method","push","RequireAuth","requireAuth","Object","getOwnPropertyDescriptor","existing","getRuntimeRpcServiceMetadata","getRuntimeRpcMethodsMetadata","getRpcAuthPolicy","WextsRpcService","WextsRpc","input","name"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-YSLEF5C5.mjs.map
@@ -1,31 +0,0 @@
1
- import {
2
- RequireAuth,
3
- RpcMethod,
4
- RpcService,
5
- WextsRpc,
6
- WextsRpcService,
7
- getRpcAuthPolicy,
8
- getRuntimeRpcMethodsMetadata,
9
- getRuntimeRpcServiceMetadata
10
- } from "./chunk-YBM3IJEA.mjs";
11
- import {
12
- __export
13
- } from "./chunk-7WULUGLH.mjs";
14
-
15
- // src/rpc/index.ts
16
- var rpc_exports = {};
17
- __export(rpc_exports, {
18
- RequireAuth: () => RequireAuth,
19
- RpcMethod: () => RpcMethod,
20
- RpcService: () => RpcService,
21
- WextsRpc: () => WextsRpc,
22
- WextsRpcService: () => WextsRpcService,
23
- getRpcAuthPolicy: () => getRpcAuthPolicy,
24
- getRuntimeRpcMethodsMetadata: () => getRuntimeRpcMethodsMetadata,
25
- getRuntimeRpcServiceMetadata: () => getRuntimeRpcServiceMetadata
26
- });
27
-
28
- export {
29
- rpc_exports
30
- };
31
- //# sourceMappingURL=chunk-ZX7QIN24.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/rpc/index.ts"],"sourcesContent":["export * from './decorators';\nexport * from './types';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;","names":[]}
@@ -1,29 +0,0 @@
1
- import { R as RpcAuthPolicy } from './types-7d_fC-C3.mjs';
2
-
3
- interface RpcServiceOptions {
4
- name?: string;
5
- requireAuth?: boolean;
6
- }
7
- interface RpcMethodOptions {
8
- name?: string;
9
- requireAuth?: boolean;
10
- }
11
- interface RuntimeRpcServiceMetadata {
12
- name?: string;
13
- requireAuth: boolean;
14
- }
15
- interface RuntimeRpcMethodMetadata {
16
- propertyKey: string | symbol;
17
- name?: string;
18
- requireAuth?: boolean;
19
- }
20
- declare function RpcService(nameOrOptions?: string | RpcServiceOptions): ClassDecorator;
21
- declare function RpcMethod(nameOrOptions?: string | RpcMethodOptions): MethodDecorator;
22
- declare function RequireAuth(): MethodDecorator & ClassDecorator;
23
- declare function getRuntimeRpcServiceMetadata(target: Function): RuntimeRpcServiceMetadata | undefined;
24
- declare function getRuntimeRpcMethodsMetadata(target: Function): RuntimeRpcMethodMetadata[];
25
- declare function getRpcAuthPolicy(requireAuth?: boolean): RpcAuthPolicy;
26
- declare const WextsRpcService: typeof RpcService;
27
- declare const WextsRpc: typeof RpcMethod;
28
-
29
- export { RequireAuth as R, WextsRpc as W, RpcMethod as a, type RpcMethodOptions as b, RpcService as c, type RpcServiceOptions as d, type RuntimeRpcMethodMetadata as e, type RuntimeRpcServiceMetadata as f, WextsRpcService as g, getRpcAuthPolicy as h, getRuntimeRpcMethodsMetadata as i, getRuntimeRpcServiceMetadata as j };
@@ -1,29 +0,0 @@
1
- import { R as RpcAuthPolicy } from './types-7d_fC-C3.js';
2
-
3
- interface RpcServiceOptions {
4
- name?: string;
5
- requireAuth?: boolean;
6
- }
7
- interface RpcMethodOptions {
8
- name?: string;
9
- requireAuth?: boolean;
10
- }
11
- interface RuntimeRpcServiceMetadata {
12
- name?: string;
13
- requireAuth: boolean;
14
- }
15
- interface RuntimeRpcMethodMetadata {
16
- propertyKey: string | symbol;
17
- name?: string;
18
- requireAuth?: boolean;
19
- }
20
- declare function RpcService(nameOrOptions?: string | RpcServiceOptions): ClassDecorator;
21
- declare function RpcMethod(nameOrOptions?: string | RpcMethodOptions): MethodDecorator;
22
- declare function RequireAuth(): MethodDecorator & ClassDecorator;
23
- declare function getRuntimeRpcServiceMetadata(target: Function): RuntimeRpcServiceMetadata | undefined;
24
- declare function getRuntimeRpcMethodsMetadata(target: Function): RuntimeRpcMethodMetadata[];
25
- declare function getRpcAuthPolicy(requireAuth?: boolean): RpcAuthPolicy;
26
- declare const WextsRpcService: typeof RpcService;
27
- declare const WextsRpc: typeof RpcMethod;
28
-
29
- export { RequireAuth as R, WextsRpc as W, RpcMethod as a, type RpcMethodOptions as b, RpcService as c, type RpcServiceOptions as d, type RuntimeRpcMethodMetadata as e, type RuntimeRpcServiceMetadata as f, WextsRpcService as g, getRpcAuthPolicy as h, getRuntimeRpcMethodsMetadata as i, getRuntimeRpcServiceMetadata as j };
@@ -1,58 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-DvS58PqC.js';
2
-
3
- interface FusionRouteMetadata {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- responseType?: string;
7
- requestType?: string;
8
- }
9
- /**
10
- * Mark a NestJS controller for Fusion codegen
11
- * Usage: @FusionController('users')
12
- */
13
- declare function FusionController(prefix?: string): ClassDecorator;
14
- /**
15
- * Mark a route for API client generation
16
- * Usage: @FusionRoute({ method: 'GET', path: '/:id' })
17
- */
18
- declare function FusionRoute(metadata: FusionRouteMetadata): MethodDecorator;
19
- /**
20
- * Helper decorators for common HTTP methods
21
- */
22
- declare function FusionGet(path?: string): MethodDecorator;
23
- declare function FusionPost(path?: string): MethodDecorator;
24
- declare function FusionPut(path?: string): MethodDecorator;
25
- declare function FusionDelete(path?: string): MethodDecorator;
26
- /**
27
- * Get Fusion metadata from a controller
28
- */
29
- declare function getFusionMetadata(controller: any): {
30
- controller: any;
31
- routes: any[];
32
- };
33
-
34
- declare const index_FusionController: typeof FusionController;
35
- declare const index_FusionDelete: typeof FusionDelete;
36
- declare const index_FusionGet: typeof FusionGet;
37
- declare const index_FusionPost: typeof FusionPost;
38
- declare const index_FusionPut: typeof FusionPut;
39
- declare const index_FusionRoute: typeof FusionRoute;
40
- type index_FusionRouteMetadata = FusionRouteMetadata;
41
- declare const index_RequireAuth: typeof RequireAuth;
42
- declare const index_RpcMethod: typeof RpcMethod;
43
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
44
- declare const index_RpcService: typeof RpcService;
45
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
46
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
47
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
48
- declare const index_WextsRpc: typeof WextsRpc;
49
- declare const index_WextsRpcService: typeof WextsRpcService;
50
- declare const index_getFusionMetadata: typeof getFusionMetadata;
51
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
52
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
53
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
54
- declare namespace index {
55
- export { index_FusionController as FusionController, index_FusionDelete as FusionDelete, index_FusionGet as FusionGet, index_FusionPost as FusionPost, index_FusionPut as FusionPut, index_FusionRoute as FusionRoute, type index_FusionRouteMetadata as FusionRouteMetadata, index_RequireAuth as RequireAuth, index_RpcMethod as RpcMethod, index_RpcMethodOptions as RpcMethodOptions, index_RpcService as RpcService, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getFusionMetadata as getFusionMetadata, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
56
- }
57
-
58
- export { FusionController as F, FusionDelete as a, FusionGet as b, FusionPost as c, FusionPut as d, FusionRoute as e, type FusionRouteMetadata as f, getFusionMetadata as g, index as i };
@@ -1,58 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-BT1FFqN0.mjs';
2
-
3
- interface FusionRouteMetadata {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- responseType?: string;
7
- requestType?: string;
8
- }
9
- /**
10
- * Mark a NestJS controller for Fusion codegen
11
- * Usage: @FusionController('users')
12
- */
13
- declare function FusionController(prefix?: string): ClassDecorator;
14
- /**
15
- * Mark a route for API client generation
16
- * Usage: @FusionRoute({ method: 'GET', path: '/:id' })
17
- */
18
- declare function FusionRoute(metadata: FusionRouteMetadata): MethodDecorator;
19
- /**
20
- * Helper decorators for common HTTP methods
21
- */
22
- declare function FusionGet(path?: string): MethodDecorator;
23
- declare function FusionPost(path?: string): MethodDecorator;
24
- declare function FusionPut(path?: string): MethodDecorator;
25
- declare function FusionDelete(path?: string): MethodDecorator;
26
- /**
27
- * Get Fusion metadata from a controller
28
- */
29
- declare function getFusionMetadata(controller: any): {
30
- controller: any;
31
- routes: any[];
32
- };
33
-
34
- declare const index_FusionController: typeof FusionController;
35
- declare const index_FusionDelete: typeof FusionDelete;
36
- declare const index_FusionGet: typeof FusionGet;
37
- declare const index_FusionPost: typeof FusionPost;
38
- declare const index_FusionPut: typeof FusionPut;
39
- declare const index_FusionRoute: typeof FusionRoute;
40
- type index_FusionRouteMetadata = FusionRouteMetadata;
41
- declare const index_RequireAuth: typeof RequireAuth;
42
- declare const index_RpcMethod: typeof RpcMethod;
43
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
44
- declare const index_RpcService: typeof RpcService;
45
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
46
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
47
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
48
- declare const index_WextsRpc: typeof WextsRpc;
49
- declare const index_WextsRpcService: typeof WextsRpcService;
50
- declare const index_getFusionMetadata: typeof getFusionMetadata;
51
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
52
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
53
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
54
- declare namespace index {
55
- export { index_FusionController as FusionController, index_FusionDelete as FusionDelete, index_FusionGet as FusionGet, index_FusionPost as FusionPost, index_FusionPut as FusionPut, index_FusionRoute as FusionRoute, type index_FusionRouteMetadata as FusionRouteMetadata, index_RequireAuth as RequireAuth, index_RpcMethod as RpcMethod, index_RpcMethodOptions as RpcMethodOptions, index_RpcService as RpcService, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getFusionMetadata as getFusionMetadata, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
56
- }
57
-
58
- export { FusionController as F, FusionDelete as a, FusionGet as b, FusionPost as c, FusionPut as d, FusionRoute as e, type FusionRouteMetadata as f, getFusionMetadata as g, index as i };
@@ -1,27 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-BT1FFqN0.mjs';
2
- import { R as RpcAuthPolicy, a as RpcInvocationRequest, b as RpcInvocationResponse, c as RpcManifest, d as RpcMethodManifest, e as RpcParameterManifest, f as RpcServiceManifest } from './types-7d_fC-C3.mjs';
3
-
4
- declare const index_RequireAuth: typeof RequireAuth;
5
- declare const index_RpcAuthPolicy: typeof RpcAuthPolicy;
6
- declare const index_RpcInvocationRequest: typeof RpcInvocationRequest;
7
- declare const index_RpcInvocationResponse: typeof RpcInvocationResponse;
8
- declare const index_RpcManifest: typeof RpcManifest;
9
- declare const index_RpcMethod: typeof RpcMethod;
10
- declare const index_RpcMethodManifest: typeof RpcMethodManifest;
11
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
12
- declare const index_RpcParameterManifest: typeof RpcParameterManifest;
13
- declare const index_RpcService: typeof RpcService;
14
- declare const index_RpcServiceManifest: typeof RpcServiceManifest;
15
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
16
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
17
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
18
- declare const index_WextsRpc: typeof WextsRpc;
19
- declare const index_WextsRpcService: typeof WextsRpcService;
20
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
21
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
22
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
23
- declare namespace index {
24
- export { index_RequireAuth as RequireAuth, index_RpcAuthPolicy as RpcAuthPolicy, index_RpcInvocationRequest as RpcInvocationRequest, index_RpcInvocationResponse as RpcInvocationResponse, index_RpcManifest as RpcManifest, index_RpcMethod as RpcMethod, index_RpcMethodManifest as RpcMethodManifest, index_RpcMethodOptions as RpcMethodOptions, index_RpcParameterManifest as RpcParameterManifest, index_RpcService as RpcService, index_RpcServiceManifest as RpcServiceManifest, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
25
- }
26
-
27
- export { index as i };
@@ -1,27 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-DvS58PqC.js';
2
- import { R as RpcAuthPolicy, a as RpcInvocationRequest, b as RpcInvocationResponse, c as RpcManifest, d as RpcMethodManifest, e as RpcParameterManifest, f as RpcServiceManifest } from './types-7d_fC-C3.js';
3
-
4
- declare const index_RequireAuth: typeof RequireAuth;
5
- declare const index_RpcAuthPolicy: typeof RpcAuthPolicy;
6
- declare const index_RpcInvocationRequest: typeof RpcInvocationRequest;
7
- declare const index_RpcInvocationResponse: typeof RpcInvocationResponse;
8
- declare const index_RpcManifest: typeof RpcManifest;
9
- declare const index_RpcMethod: typeof RpcMethod;
10
- declare const index_RpcMethodManifest: typeof RpcMethodManifest;
11
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
12
- declare const index_RpcParameterManifest: typeof RpcParameterManifest;
13
- declare const index_RpcService: typeof RpcService;
14
- declare const index_RpcServiceManifest: typeof RpcServiceManifest;
15
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
16
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
17
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
18
- declare const index_WextsRpc: typeof WextsRpc;
19
- declare const index_WextsRpcService: typeof WextsRpcService;
20
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
21
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
22
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
23
- declare namespace index {
24
- export { index_RequireAuth as RequireAuth, index_RpcAuthPolicy as RpcAuthPolicy, index_RpcInvocationRequest as RpcInvocationRequest, index_RpcInvocationResponse as RpcInvocationResponse, index_RpcManifest as RpcManifest, index_RpcMethod as RpcMethod, index_RpcMethodManifest as RpcMethodManifest, index_RpcMethodOptions as RpcMethodOptions, index_RpcParameterManifest as RpcParameterManifest, index_RpcService as RpcService, index_RpcServiceManifest as RpcServiceManifest, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
25
- }
26
-
27
- export { index as i };