@digo-labs/backend 0.2.1 → 0.2.2
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/dist/index.d.cts +182 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -266,6 +266,7 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|
|
266
266
|
device: {
|
|
267
267
|
id: string;
|
|
268
268
|
app: string;
|
|
269
|
+
instance: string;
|
|
269
270
|
name: string;
|
|
270
271
|
tier: "user" | "org";
|
|
271
272
|
createdBy: string;
|
|
@@ -290,6 +291,7 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|
|
290
291
|
devices: {
|
|
291
292
|
id: string;
|
|
292
293
|
app: string;
|
|
294
|
+
instance: string;
|
|
293
295
|
name: string;
|
|
294
296
|
tier: "user" | "org";
|
|
295
297
|
createdBy: string;
|
|
@@ -328,6 +330,7 @@ declare const devicesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|
|
328
330
|
device: {
|
|
329
331
|
id: string;
|
|
330
332
|
app: string;
|
|
333
|
+
instance: string;
|
|
331
334
|
name: string;
|
|
332
335
|
tier: "user" | "org";
|
|
333
336
|
createdBy: string;
|
|
@@ -736,6 +739,183 @@ declare const realtimeRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|
|
736
739
|
};
|
|
737
740
|
}, "/", "realtime-token">;
|
|
738
741
|
|
|
742
|
+
declare const instancesRouter: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|
743
|
+
"instances-list": {
|
|
744
|
+
$post: {
|
|
745
|
+
input: {
|
|
746
|
+
json: Record<string, never>;
|
|
747
|
+
};
|
|
748
|
+
output: {
|
|
749
|
+
instances: {
|
|
750
|
+
app: string;
|
|
751
|
+
slug: string;
|
|
752
|
+
name: string;
|
|
753
|
+
status: "active" | "archived";
|
|
754
|
+
isDefault: boolean;
|
|
755
|
+
createdAt: string | null;
|
|
756
|
+
archivedAt: string | null;
|
|
757
|
+
role: "admin" | null;
|
|
758
|
+
}[];
|
|
759
|
+
};
|
|
760
|
+
outputFormat: "json";
|
|
761
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
} & {
|
|
765
|
+
"instances-current": {
|
|
766
|
+
$post: {
|
|
767
|
+
input: {
|
|
768
|
+
json: Record<string, never>;
|
|
769
|
+
};
|
|
770
|
+
output: {
|
|
771
|
+
instance: {
|
|
772
|
+
app: string;
|
|
773
|
+
slug: string;
|
|
774
|
+
name: string;
|
|
775
|
+
status: "active" | "archived";
|
|
776
|
+
isDefault: boolean;
|
|
777
|
+
createdAt: string | null;
|
|
778
|
+
archivedAt: string | null;
|
|
779
|
+
role: "admin" | null;
|
|
780
|
+
};
|
|
781
|
+
tier: "admin" | "user" | "org" | "public";
|
|
782
|
+
isReadOnly: boolean;
|
|
783
|
+
};
|
|
784
|
+
outputFormat: "json";
|
|
785
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
} & {
|
|
789
|
+
"instances-create": {
|
|
790
|
+
$post: {
|
|
791
|
+
input: {
|
|
792
|
+
json: {
|
|
793
|
+
slug: string;
|
|
794
|
+
name: string;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
output: {
|
|
798
|
+
instance: {
|
|
799
|
+
app: string;
|
|
800
|
+
slug: string;
|
|
801
|
+
name: string;
|
|
802
|
+
status: "active" | "archived";
|
|
803
|
+
isDefault: boolean;
|
|
804
|
+
createdAt: string | null;
|
|
805
|
+
archivedAt: string | null;
|
|
806
|
+
role: "admin" | null;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
outputFormat: "json";
|
|
810
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
} & {
|
|
814
|
+
"instances-rename": {
|
|
815
|
+
$post: {
|
|
816
|
+
input: {
|
|
817
|
+
json: {
|
|
818
|
+
slug: string;
|
|
819
|
+
name: string;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
output: {
|
|
823
|
+
instance: {
|
|
824
|
+
app: string;
|
|
825
|
+
slug: string;
|
|
826
|
+
name: string;
|
|
827
|
+
status: "active" | "archived";
|
|
828
|
+
isDefault: boolean;
|
|
829
|
+
createdAt: string | null;
|
|
830
|
+
archivedAt: string | null;
|
|
831
|
+
role: "admin" | null;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
outputFormat: "json";
|
|
835
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
} & {
|
|
839
|
+
"instances-archive": {
|
|
840
|
+
$post: {
|
|
841
|
+
input: {
|
|
842
|
+
json: {
|
|
843
|
+
slug: string;
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
output: {
|
|
847
|
+
instance: {
|
|
848
|
+
app: string;
|
|
849
|
+
slug: string;
|
|
850
|
+
name: string;
|
|
851
|
+
status: "active" | "archived";
|
|
852
|
+
isDefault: boolean;
|
|
853
|
+
createdAt: string | null;
|
|
854
|
+
archivedAt: string | null;
|
|
855
|
+
role: "admin" | null;
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
outputFormat: "json";
|
|
859
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
} & {
|
|
863
|
+
"instances-reopen": {
|
|
864
|
+
$post: {
|
|
865
|
+
input: {
|
|
866
|
+
json: {
|
|
867
|
+
slug: string;
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
output: {
|
|
871
|
+
instance: {
|
|
872
|
+
app: string;
|
|
873
|
+
slug: string;
|
|
874
|
+
name: string;
|
|
875
|
+
status: "active" | "archived";
|
|
876
|
+
isDefault: boolean;
|
|
877
|
+
createdAt: string | null;
|
|
878
|
+
archivedAt: string | null;
|
|
879
|
+
role: "admin" | null;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
outputFormat: "json";
|
|
883
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
} & {
|
|
887
|
+
"instances-admins": {
|
|
888
|
+
$post: {
|
|
889
|
+
input: {
|
|
890
|
+
json: {
|
|
891
|
+
slug: string;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
output: {
|
|
895
|
+
emails: string[];
|
|
896
|
+
};
|
|
897
|
+
outputFormat: "json";
|
|
898
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
} & {
|
|
902
|
+
"instances-set-admins": {
|
|
903
|
+
$post: {
|
|
904
|
+
input: {
|
|
905
|
+
json: {
|
|
906
|
+
slug: string;
|
|
907
|
+
emails: string[];
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
output: {
|
|
911
|
+
emails: string[];
|
|
912
|
+
};
|
|
913
|
+
outputFormat: "json";
|
|
914
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
}, "/", "instances-set-admins">;
|
|
918
|
+
|
|
739
919
|
declare const app: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
|
|
740
920
|
type DmxRouter = typeof dmxRouter;
|
|
741
921
|
type StorageRouter = typeof storageRouter;
|
|
@@ -744,5 +924,6 @@ type BedrockRouter = typeof bedrockRouter;
|
|
|
744
924
|
type DevicesRouter = typeof devicesRouter;
|
|
745
925
|
type AiJobsRouter = typeof aiJobsRouter;
|
|
746
926
|
type RealtimeRouter = typeof realtimeRouter;
|
|
927
|
+
type InstancesRouter = typeof instancesRouter;
|
|
747
928
|
|
|
748
|
-
export { type AiJobsRouter, type BedrockRouter, type DatabaseRouter, type DevicesRouter, type DmxRouter, type RealtimeRouter, type StorageRouter, app as default };
|
|
929
|
+
export { type AiJobsRouter, type BedrockRouter, type DatabaseRouter, type DevicesRouter, type DmxRouter, type InstancesRouter, type RealtimeRouter, type StorageRouter, app as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digo-labs/backend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
"skip": [
|
|
34
34
|
"create",
|
|
35
35
|
"verify",
|
|
36
|
+
"instances",
|
|
36
37
|
"refresh"
|
|
37
38
|
]
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"@digo-labs/common": "^0.2.
|
|
41
|
+
"@digo-labs/common": "^0.2.11"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
44
|
"@aws-sdk/client-bedrock-runtime": "^3.1035.0",
|