@powersync/management-types 0.0.0-dev.85b697f3 → 0.0.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.
- package/dist/routes/dev-routes.d.ts +10 -10
- package/dist/routes/manage-routes.d.ts +18 -18
- package/dist/routes/manage-routes.js +4 -5
- package/dist/routes/manage-routes.js.map +1 -1
- package/dist/routes/reporting-routes.d.ts +4 -4
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +3 -0
- package/dist/schema.js.map +1 -0
- package/dist/shared.d.ts +4 -4
- package/dist/shared.js +4 -5
- package/dist/shared.js.map +1 -1
- package/package.json +1 -6
|
@@ -454,8 +454,8 @@ export declare const TestConnectionResponse: t.Union<t.Codec<{
|
|
|
454
454
|
}>>>;
|
|
455
455
|
export type TestConnectionResponse = t.Encoded<typeof TestConnectionResponse>;
|
|
456
456
|
export declare const GetSchemaRequest: t.ObjectCodec<{
|
|
457
|
-
org_id: t.
|
|
458
|
-
app_id: t.
|
|
457
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
458
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
459
459
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
460
460
|
}>;
|
|
461
461
|
export type GetSchemaRequest = t.Encoded<typeof GetSchemaRequest>;
|
|
@@ -484,8 +484,8 @@ export declare const GetSchemaResponse: t.ObjectCodec<{
|
|
|
484
484
|
export type GetSchemaResponse = t.Encoded<typeof GetSchemaResponse>;
|
|
485
485
|
export declare const ExecuteSqlRequest: t.Intersection<t.Codec<{
|
|
486
486
|
id: string;
|
|
487
|
-
org_id:
|
|
488
|
-
app_id:
|
|
487
|
+
org_id: string;
|
|
488
|
+
app_id: string;
|
|
489
489
|
}, {
|
|
490
490
|
id: string;
|
|
491
491
|
org_id: string;
|
|
@@ -509,8 +509,8 @@ export declare const ExecuteSqlResponse: t.ObjectCodec<{
|
|
|
509
509
|
export type ExecuteSqlResponse = internal_routes.ExecuteSqlResponse;
|
|
510
510
|
export declare const ValidateSyncRulesRequest: t.Intersection<t.Codec<{
|
|
511
511
|
id: string;
|
|
512
|
-
org_id:
|
|
513
|
-
app_id:
|
|
512
|
+
org_id: string;
|
|
513
|
+
app_id: string;
|
|
514
514
|
}, {
|
|
515
515
|
id: string;
|
|
516
516
|
org_id: string;
|
|
@@ -553,8 +553,8 @@ export declare const ValidateSyncRulesResponse: t.ObjectCodec<{
|
|
|
553
553
|
export type ValidateSyncRulesResponse = t.Encoded<typeof ValidateSyncRulesResponse>;
|
|
554
554
|
export declare const ReprocessSyncRulesRequest: t.Intersection<t.Codec<{
|
|
555
555
|
id: string;
|
|
556
|
-
org_id:
|
|
557
|
-
app_id:
|
|
556
|
+
org_id: string;
|
|
557
|
+
app_id: string;
|
|
558
558
|
}, {
|
|
559
559
|
id: string;
|
|
560
560
|
org_id: string;
|
|
@@ -571,8 +571,8 @@ export declare const ReprocessSyncRulesResponse: t.ObjectCodec<{
|
|
|
571
571
|
export type ReprocessSyncRulesResponse = t.Encoded<typeof ReprocessSyncRulesResponse>;
|
|
572
572
|
export declare const GenerateDevTokenRequest: t.Intersection<t.Codec<{
|
|
573
573
|
id: string;
|
|
574
|
-
org_id:
|
|
575
|
-
app_id:
|
|
574
|
+
org_id: string;
|
|
575
|
+
app_id: string;
|
|
576
576
|
}, {
|
|
577
577
|
id: string;
|
|
578
578
|
org_id: string;
|
|
@@ -12,8 +12,8 @@ export declare enum MANAGE_ROUTES {
|
|
|
12
12
|
DIAGNOSTICS = "/api/v1/instances/diagnostics"
|
|
13
13
|
}
|
|
14
14
|
export declare const ListInstancesRequest: t.ObjectCodec<{
|
|
15
|
-
org_id: t.
|
|
16
|
-
app_id: t.
|
|
15
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
16
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
17
17
|
}>;
|
|
18
18
|
export type ListInstancesRequest = t.Encoded<typeof ListInstancesRequest>;
|
|
19
19
|
export declare const ListInstancesResponse: t.ObjectCodec<{
|
|
@@ -26,8 +26,8 @@ export declare const ListInstancesResponse: t.ObjectCodec<{
|
|
|
26
26
|
}>;
|
|
27
27
|
export type ListInstancesResponse = t.Encoded<typeof ListInstancesResponse>;
|
|
28
28
|
export declare const CreateInstanceRequest: t.ObjectCodec<{
|
|
29
|
-
org_id: t.
|
|
30
|
-
app_id: t.
|
|
29
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
30
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
31
31
|
name: t.IdentityCodec<t.CodecType.String>;
|
|
32
32
|
region: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
33
33
|
}>;
|
|
@@ -38,8 +38,8 @@ export declare const CreateInstanceResponse: t.ObjectCodec<{
|
|
|
38
38
|
export type CreateInstanceResponse = t.Encoded<typeof CreateInstanceResponse>;
|
|
39
39
|
export declare const DeployInstanceRequest: t.Intersection<t.Codec<{
|
|
40
40
|
id: string;
|
|
41
|
-
org_id:
|
|
42
|
-
app_id:
|
|
41
|
+
org_id: string;
|
|
42
|
+
app_id: string;
|
|
43
43
|
}, {
|
|
44
44
|
id: string;
|
|
45
45
|
org_id: string;
|
|
@@ -437,8 +437,8 @@ export declare const DeployInstanceResponse: t.ObjectCodec<{
|
|
|
437
437
|
}>;
|
|
438
438
|
export type DeployInstanceResponse = t.Encoded<typeof DeployInstanceResponse>;
|
|
439
439
|
export declare const InstanceConfigRequest: t.ObjectCodec<{
|
|
440
|
-
org_id: t.
|
|
441
|
-
app_id: t.
|
|
440
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
441
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
442
442
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
443
443
|
}>;
|
|
444
444
|
export type InstanceConfigRequest = t.Encoded<typeof InstanceConfigRequest>;
|
|
@@ -834,8 +834,8 @@ export declare const InstanceConfigResponse: t.ObjectCodec<{
|
|
|
834
834
|
}>;
|
|
835
835
|
export type InstanceConfigResponse = t.Encoded<typeof InstanceConfigResponse>;
|
|
836
836
|
export declare const InstanceStatusRequest: t.ObjectCodec<{
|
|
837
|
-
org_id: t.
|
|
838
|
-
app_id: t.
|
|
837
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
838
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
839
839
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
840
840
|
}>;
|
|
841
841
|
export type InstanceStatusRequest = t.Encoded<typeof InstanceStatusRequest>;
|
|
@@ -874,8 +874,8 @@ export declare const InstanceStatusResponse: t.ObjectCodec<{
|
|
|
874
874
|
}>;
|
|
875
875
|
export type InstanceStatusResponse = t.Encoded<typeof InstanceStatusResponse>;
|
|
876
876
|
export declare const DestroyInstanceRequest: t.ObjectCodec<{
|
|
877
|
-
org_id: t.
|
|
878
|
-
app_id: t.
|
|
877
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
878
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
879
879
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
880
880
|
}>;
|
|
881
881
|
export type DestroyInstanceRequest = t.Encoded<typeof DestroyInstanceRequest>;
|
|
@@ -885,8 +885,8 @@ export declare const DestroyInstanceResponse: t.ObjectCodec<{
|
|
|
885
885
|
}>;
|
|
886
886
|
export type DestroyInstanceResponse = t.Encoded<typeof DestroyInstanceResponse>;
|
|
887
887
|
export declare const DeactivateInstanceRequest: t.ObjectCodec<{
|
|
888
|
-
org_id: t.
|
|
889
|
-
app_id: t.
|
|
888
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
889
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
890
890
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
891
891
|
}>;
|
|
892
892
|
export type DeactivateInstanceRequest = t.Encoded<typeof DeactivateInstanceRequest>;
|
|
@@ -896,8 +896,8 @@ export declare const DeactivateInstanceResponse: t.ObjectCodec<{
|
|
|
896
896
|
}>;
|
|
897
897
|
export type DeactivateInstanceResponse = t.Encoded<typeof DeactivateInstanceResponse>;
|
|
898
898
|
export declare const CompactInstanceRequest: t.ObjectCodec<{
|
|
899
|
-
org_id: t.
|
|
900
|
-
app_id: t.
|
|
899
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
900
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
901
901
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
902
902
|
}>;
|
|
903
903
|
export type CompactInstanceRequest = t.Encoded<typeof CompactInstanceRequest>;
|
|
@@ -908,8 +908,8 @@ export declare const CompactInstanceResponse: t.ObjectCodec<{
|
|
|
908
908
|
export type CompactInstanceResponse = t.Encoded<typeof CompactInstanceResponse>;
|
|
909
909
|
export declare const InstanceDiagnosticsRequest: t.Intersection<t.Codec<{
|
|
910
910
|
id: string;
|
|
911
|
-
org_id:
|
|
912
|
-
app_id:
|
|
911
|
+
org_id: string;
|
|
912
|
+
app_id: string;
|
|
913
913
|
}, {
|
|
914
914
|
id: string;
|
|
915
915
|
org_id: string;
|
|
@@ -2,7 +2,6 @@ import { internal_routes } from '@powersync/service-types';
|
|
|
2
2
|
import * as t from 'ts-codec';
|
|
3
3
|
import { BasePowerSyncHostedConfig } from '../config/HostedConfig.js';
|
|
4
4
|
import { InstanceId, ProgramVersionConstraint } from '../shared.js';
|
|
5
|
-
import { ObjectId } from '@journeyapps-labs/micro-codecs';
|
|
6
5
|
export var MANAGE_ROUTES;
|
|
7
6
|
(function (MANAGE_ROUTES) {
|
|
8
7
|
MANAGE_ROUTES["LIST"] = "/api/v1/instances/list";
|
|
@@ -17,8 +16,8 @@ export var MANAGE_ROUTES;
|
|
|
17
16
|
})(MANAGE_ROUTES || (MANAGE_ROUTES = {}));
|
|
18
17
|
// POST /api/v1/instances/list
|
|
19
18
|
export const ListInstancesRequest = t.object({
|
|
20
|
-
org_id:
|
|
21
|
-
app_id:
|
|
19
|
+
org_id: t.string,
|
|
20
|
+
app_id: t.string
|
|
22
21
|
});
|
|
23
22
|
export const ListInstancesResponse = t.object({
|
|
24
23
|
instances: t.array(t.object({
|
|
@@ -30,8 +29,8 @@ export const ListInstancesResponse = t.object({
|
|
|
30
29
|
});
|
|
31
30
|
// POST /api/v1/instances/create
|
|
32
31
|
export const CreateInstanceRequest = t.object({
|
|
33
|
-
org_id:
|
|
34
|
-
app_id:
|
|
32
|
+
org_id: t.string,
|
|
33
|
+
app_id: t.string,
|
|
35
34
|
name: t.string,
|
|
36
35
|
region: t.string.optional()
|
|
37
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-routes.js","sourceRoot":"","sources":["../../src/routes/manage-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"manage-routes.js","sourceRoot":"","sources":["../../src/routes/manage-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,CAAN,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,gDAA+B,CAAA;IAC/B,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,sDAAqC,CAAA;IACrC,4DAA2C,CAAA;IAC3C,sDAAqC,CAAA;IACrC,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,8DAA6C,CAAA;AAC/C,CAAC,EAVW,aAAa,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AQ,EAAE;CAClC,CAAC,CAAC;AAGH,qCAAqC;AACrC,6CAA6C;AAC7C,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAG7F,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,mBAAmB,CAAC"}
|
|
@@ -17,14 +17,14 @@ export declare const ClientConnectionsReportRequest: t.Intersection<t.Codec<{
|
|
|
17
17
|
date: string;
|
|
18
18
|
} | undefined;
|
|
19
19
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
20
|
-
org_id: t.
|
|
21
|
-
app_id: t.
|
|
20
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
21
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
22
22
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
23
23
|
}>>;
|
|
24
24
|
export type ClientConnectionsReportRequest = t.Encoded<typeof ClientConnectionsReportRequest>;
|
|
25
25
|
export declare const CurrentConnectionsRequest: t.ObjectCodec<{
|
|
26
|
-
org_id: t.
|
|
27
|
-
app_id: t.
|
|
26
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
27
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
28
28
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
29
29
|
}>;
|
|
30
30
|
export type CurrentConnectionsRequest = t.Encoded<typeof CurrentConnectionsRequest>;
|
package/dist/schema.d.ts
ADDED
package/dist/schema.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sCAAsC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEhF,eAAe,MAAM,CAAC"}
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
2
|
export declare const InstanceId: t.ObjectCodec<{
|
|
3
|
-
org_id: t.
|
|
4
|
-
app_id: t.
|
|
3
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
4
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
5
5
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
6
6
|
}>;
|
|
7
7
|
export type InstanceId = t.Encoded<typeof InstanceId>;
|
|
8
8
|
export declare const AppId: t.ObjectCodec<{
|
|
9
|
-
org_id: t.
|
|
10
|
-
app_id: t.
|
|
9
|
+
org_id: t.IdentityCodec<t.CodecType.String>;
|
|
10
|
+
app_id: t.IdentityCodec<t.CodecType.String>;
|
|
11
11
|
}>;
|
|
12
12
|
export type AppId = t.Encoded<typeof AppId>;
|
|
13
13
|
export declare const ProgramVersionConstraint: t.ObjectCodec<{
|
package/dist/shared.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
|
-
import { ObjectId } from '@journeyapps-labs/micro-codecs';
|
|
3
2
|
// Manage instances
|
|
4
3
|
export const InstanceId = t.object({
|
|
5
|
-
org_id:
|
|
6
|
-
app_id:
|
|
4
|
+
org_id: t.string,
|
|
5
|
+
app_id: t.string,
|
|
7
6
|
id: t.string
|
|
8
7
|
});
|
|
9
8
|
export const AppId = t.object({
|
|
10
|
-
org_id:
|
|
11
|
-
app_id:
|
|
9
|
+
org_id: t.string,
|
|
10
|
+
app_id: t.string
|
|
12
11
|
});
|
|
13
12
|
export const ProgramVersionConstraint = t.object({
|
|
14
13
|
channel: t.string,
|
package/dist/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,mBAAmB;AACnB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,EAAE,EAAE,CAAC,CAAC,MAAM;CACb,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM;CACjB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/management-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Common TypeScript types for PowerSync Management Service API requests",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|
|
24
24
|
"author": "POWERSYNC",
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "git+ssh://git@github.com/journeyapps-platform/powersync.git",
|
|
28
|
-
"directory": "public-packages/types"
|
|
29
|
-
},
|
|
30
25
|
"dependencies": {
|
|
31
26
|
"@journeyapps-labs/micro-codecs": "^1.0.1",
|
|
32
27
|
"@powersync/service-types": "^0.13.3",
|