@digo-labs/backend 0.2.9 → 0.2.10

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/README.md CHANGED
@@ -17,7 +17,7 @@ Patterns are documented in the design system: [Backend Patterns](https://design.
17
17
  npm run dev # tsx watch on port 3000
18
18
  ```
19
19
 
20
- Requires env vars (`DATABASE_URL_MONOREPO` at minimum; `FAL_KEY` and `REPLICATE_API_TOKEN` for the proxy and AI jobs, `OPENAI_API_KEY` for AI jobs' OpenAI links and OpenAI text, `ANTHROPIC_API_KEY` for Anthropic text) — the usual workflow is developing apps against the deployed backend instead, which needs nothing locally. See [Environment and Local Backend](https://design.digo-labs.com/docs/guide/environment-and-local-backend).
20
+ Requires env vars (`DATABASE_URL_MONOREPO` at minimum; `FAL_KEY` and `REPLICATE_API_TOKEN` for the proxy and AI jobs, `OPENAI_API_KEY` for AI jobs' OpenAI links and OpenAI text, `ANTHROPIC_API_KEY` for Anthropic text, `DEVICE_KEY_SEAL_SECRET` for revealable device keys) — the usual workflow is developing apps against the deployed backend instead, which needs nothing locally. See [Environment and Local Backend](https://design.digo-labs.com/docs/guide/environment-and-local-backend).
21
21
 
22
22
  ## Build
23
23
 
package/dist/index.d.cts CHANGED
@@ -256,6 +256,27 @@ declare const bedrockRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_t
256
256
  status: hono_utils_http_status.StatusCode;
257
257
  };
258
258
  };
259
+ } & {
260
+ "bedrock-guardrail": {
261
+ $post: {
262
+ input: {
263
+ json: {
264
+ guardrail: {
265
+ id: string;
266
+ version: string;
267
+ };
268
+ text: string;
269
+ source?: "INPUT" | "OUTPUT" | undefined;
270
+ };
271
+ };
272
+ output: {
273
+ blocked: boolean;
274
+ policies: string[];
275
+ };
276
+ outputFormat: "json";
277
+ status: hono_utils_http_status.ContentfulStatusCode;
278
+ };
279
+ };
259
280
  }, "/ai">, "/", "/">;
260
281
 
261
282
  declare const anthropicRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.BlankSchema | hono_types.MergeSchemaPath<{
@@ -341,7 +362,8 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
341
362
  json: {
342
363
  name: string;
343
364
  tier?: "user" | "org" | undefined;
344
- expiresInDays?: number | undefined;
365
+ expiresInDays?: number | null | undefined;
366
+ isRevealable?: boolean | undefined;
345
367
  };
346
368
  };
347
369
  output: {
@@ -354,8 +376,9 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
354
376
  createdBy: string;
355
377
  createdAt: string;
356
378
  lastSeenAt: string | null;
357
- expiresAt: string;
379
+ expiresAt: string | null;
358
380
  revokedAt: string | null;
381
+ isRevealable: boolean;
359
382
  };
360
383
  key: string;
361
384
  };
@@ -379,8 +402,9 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
379
402
  createdBy: string;
380
403
  createdAt: string;
381
404
  lastSeenAt: string | null;
382
- expiresAt: string;
405
+ expiresAt: string | null;
383
406
  revokedAt: string | null;
407
+ isRevealable: boolean;
384
408
  }[];
385
409
  };
386
410
  outputFormat: "json";
@@ -402,6 +426,77 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
402
426
  status: hono_utils_http_status.ContentfulStatusCode;
403
427
  };
404
428
  };
429
+ } & {
430
+ "devices-reveal": {
431
+ $post: {
432
+ input: {
433
+ json: {
434
+ id: string;
435
+ };
436
+ };
437
+ output: {
438
+ key: string;
439
+ };
440
+ outputFormat: "json";
441
+ status: hono_utils_http_status.ContentfulStatusCode;
442
+ };
443
+ };
444
+ } & {
445
+ "devices-lock": {
446
+ $post: {
447
+ input: {
448
+ json: {
449
+ id: string;
450
+ };
451
+ };
452
+ output: {
453
+ success: boolean;
454
+ };
455
+ outputFormat: "json";
456
+ status: hono_utils_http_status.ContentfulStatusCode;
457
+ };
458
+ };
459
+ } & {
460
+ "devices-lock-all": {
461
+ $post: {
462
+ input: {
463
+ json: Record<string, never>;
464
+ };
465
+ output: {
466
+ count: number;
467
+ };
468
+ outputFormat: "json";
469
+ status: hono_utils_http_status.ContentfulStatusCode;
470
+ };
471
+ };
472
+ } & {
473
+ "devices-regenerate": {
474
+ $post: {
475
+ input: {
476
+ json: {
477
+ id: string;
478
+ };
479
+ };
480
+ output: {
481
+ device: {
482
+ id: string;
483
+ app: string;
484
+ instance: string;
485
+ name: string;
486
+ tier: "user" | "org";
487
+ createdBy: string;
488
+ createdAt: string;
489
+ lastSeenAt: string | null;
490
+ expiresAt: string | null;
491
+ revokedAt: string | null;
492
+ isRevealable: boolean;
493
+ };
494
+ key: string;
495
+ };
496
+ outputFormat: "json";
497
+ status: hono_utils_http_status.ContentfulStatusCode;
498
+ };
499
+ };
405
500
  } & {
406
501
  "devices-me": {
407
502
  $post: {
@@ -418,8 +513,9 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
418
513
  createdBy: string;
419
514
  createdAt: string;
420
515
  lastSeenAt: string | null;
421
- expiresAt: string;
516
+ expiresAt: string | null;
422
517
  revokedAt: string | null;
518
+ isRevealable: boolean;
423
519
  };
424
520
  };
425
521
  outputFormat: "json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digo-labs/backend",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",
@@ -38,7 +38,7 @@
38
38
  ]
39
39
  },
40
40
  "peerDependencies": {
41
- "@digo-labs/common": "^0.2.17"
41
+ "@digo-labs/common": "^0.2.18"
42
42
  },
43
43
  "dependencies": {
44
44
  "@anthropic-ai/sdk": "^1.6.0",