@polinetwork/backend 0.5.0 → 0.5.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/constants.ts"],"sourcesContent":["export { TRPC_PATH, AUTH_PATH } from \"./constants\"\nexport { type AppRouter } from \"./routers\"\nexport type { telegramPlugin } from \"./auth/plugins/telegram\"\n","export const TRPC_PATH = \"/api/trpc\";\nexport const AUTH_PATH = \"/api/auth\";\n\nexport const TRUSTED_ORIGINS = [\n \"http://localhost:3001\",\n \"http://localhost:3002\",\n \"http://localhost:3003\",\n \"http://localhost:5173\",\n \"http://localhost:5174\",\n \"http://localhost:5175\",\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,YAAY;AAClB,IAAM,YAAY;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/constants.ts"],"sourcesContent":["export { TRPC_PATH, AUTH_PATH } from \"./constants\"\nexport { type AppRouter } from \"./routers\"\nimport type { telegramPlugin } from \"./auth/plugins/telegram\"\n\nexport type TelegramPlugin = typeof telegramPlugin\n","export const TRPC_PATH = \"/api/trpc\";\nexport const AUTH_PATH = \"/api/auth\";\n\nexport const TRUSTED_ORIGINS = [\n \"http://localhost:3001\",\n \"http://localhost:3002\",\n \"http://localhost:3003\",\n \"http://localhost:5173\",\n \"http://localhost:5174\",\n \"http://localhost:5175\",\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,YAAY;AAClB,IAAM,YAAY;","names":[]}
package/dist/index.d.cts CHANGED
@@ -281,7 +281,7 @@ declare const telegramPlugin: () => {
281
281
  } & {
282
282
  use: any[];
283
283
  };
284
- path: "/telegram/link";
284
+ path: "/telegram/link/start";
285
285
  };
286
286
  verifyLink: {
287
287
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
@@ -321,9 +321,11 @@ declare const telegramPlugin: () => {
321
321
  } & {
322
322
  use: any[];
323
323
  };
324
- path: "/telegram/link/:code";
324
+ path: "/telegram/link/verify/:code";
325
325
  };
326
326
  };
327
327
  };
328
328
 
329
- export { AUTH_PATH, type AppRouter, TRPC_PATH, telegramPlugin };
329
+ type TelegramPlugin = typeof telegramPlugin;
330
+
331
+ export { AUTH_PATH, type AppRouter, TRPC_PATH, type TelegramPlugin };
package/dist/index.d.ts CHANGED
@@ -281,7 +281,7 @@ declare const telegramPlugin: () => {
281
281
  } & {
282
282
  use: any[];
283
283
  };
284
- path: "/telegram/link";
284
+ path: "/telegram/link/start";
285
285
  };
286
286
  verifyLink: {
287
287
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
@@ -321,9 +321,11 @@ declare const telegramPlugin: () => {
321
321
  } & {
322
322
  use: any[];
323
323
  };
324
- path: "/telegram/link/:code";
324
+ path: "/telegram/link/verify/:code";
325
325
  };
326
326
  };
327
327
  };
328
328
 
329
- export { AUTH_PATH, type AppRouter, TRPC_PATH, telegramPlugin };
329
+ type TelegramPlugin = typeof telegramPlugin;
330
+
331
+ export { AUTH_PATH, type AppRouter, TRPC_PATH, type TelegramPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polinetwork/backend",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Utils to interact with the backend.",
5
5
  "repository": {
6
6
  "type": "git",