@digo-labs/backend 0.2.2 → 0.2.5

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 (2) hide show
  1. package/dist/index.d.cts +56 -1
  2. package/package.json +2 -2
package/dist/index.d.cts CHANGED
@@ -109,12 +109,14 @@ declare const databaseRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
109
109
  table: string;
110
110
  limit?: number | undefined;
111
111
  offset?: number | undefined;
112
+ after?: string | number | null | undefined;
112
113
  };
113
114
  };
114
115
  output: {
115
116
  rows: {
116
117
  [x: string]: hono_utils_types.JSONValue;
117
118
  }[];
119
+ next: string | number | null;
118
120
  };
119
121
  outputFormat: "json";
120
122
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -149,12 +151,14 @@ declare const databaseRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
149
151
  value: string | number | boolean | null;
150
152
  limit?: number | undefined;
151
153
  offset?: number | undefined;
154
+ after?: string | number | null | undefined;
152
155
  };
153
156
  };
154
157
  output: {
155
158
  rows: {
156
159
  [x: string]: hono_utils_types.JSONValue;
157
160
  }[];
161
+ next: string | number | null;
158
162
  };
159
163
  outputFormat: "json";
160
164
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -346,7 +350,7 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
346
350
  };
347
351
  }, "/", "devices-me">;
348
352
 
349
- declare const aiJobsRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, (({
353
+ declare const aiJobsRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, ((({
350
354
  "jobs-get": {
351
355
  $post: {
352
356
  input: {
@@ -668,6 +672,57 @@ declare const aiJobsRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, (({
668
672
  };
669
673
  };
670
674
  })) & {
675
+ "jobs-list": {
676
+ $post: {
677
+ input: {
678
+ json: {
679
+ from?: string | undefined;
680
+ to?: string | undefined;
681
+ statuses?: ("checking" | "running" | "done" | "rejected" | "failed" | "cancelled")[] | undefined;
682
+ cursor?: string | undefined;
683
+ limit?: number | undefined;
684
+ };
685
+ };
686
+ output: {
687
+ jobs: {
688
+ id: string;
689
+ key: string;
690
+ status: "checking" | "running" | "done" | "rejected" | "failed" | "cancelled";
691
+ verdict: "reject" | "review" | "pass" | null;
692
+ checks: {
693
+ type: "rekognition" | "bedrock";
694
+ target: string;
695
+ verdict: "reject" | "review" | "pass";
696
+ labels: string[];
697
+ reason: string | null;
698
+ }[];
699
+ tasks: {
700
+ key: string;
701
+ endpoint: "fal:openai/gpt-image-2.5/flare/edit" | "fal:openai/gpt-image-2.5/sunburst/edit" | "fake:echo";
702
+ status: "done" | "rejected" | "failed" | "cancelled" | "pending" | "submitted" | "saving";
703
+ attempt: number;
704
+ outputPath: string;
705
+ verdict: "reject" | "review" | "pass" | null;
706
+ checks: {
707
+ type: "rekognition" | "bedrock";
708
+ target: string;
709
+ verdict: "reject" | "review" | "pass";
710
+ labels: string[];
711
+ reason: string | null;
712
+ }[];
713
+ error: "submit failed" | "provider error" | "provider timed out" | "save failed" | null;
714
+ estimatedUsd: number;
715
+ }[];
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ }[];
719
+ next: string | null;
720
+ };
721
+ outputFormat: "json";
722
+ status: hono_utils_http_status.ContentfulStatusCode;
723
+ };
724
+ };
725
+ }) & {
671
726
  "ai-budget-get": {
672
727
  $post: {
673
728
  input: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digo-labs/backend",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
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.11"
41
+ "@digo-labs/common": "^0.2.13"
42
42
  },
43
43
  "dependencies": {
44
44
  "@aws-sdk/client-bedrock-runtime": "^3.1035.0",