@powersync/management-types 0.0.0-dev.9f1dde73 → 0.0.0-dev.ec9d802b

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.
@@ -84,52 +84,40 @@ export declare const DeployInstanceRequest: t.Intersection<t.Codec<{
84
84
  hostname?: string | undefined;
85
85
  port?: number | undefined;
86
86
  schema?: string | undefined;
87
- authentication?: ({
87
+ authentication?: {
88
88
  type: "default";
89
- options: {
90
- password: string;
91
- userName: string;
92
- };
93
- } & {
94
89
  options: {
95
90
  password: {
96
91
  secret: string;
97
92
  } | {
98
93
  secret_ref: string;
99
94
  };
100
- };
101
- }) | ({
102
- type: "azure-active-directory-password";
103
- options: {
104
- password: string;
105
95
  userName: string;
106
- clientId: string;
107
- tenantId: string;
108
96
  };
109
- } & {
97
+ } | {
98
+ type: "azure-active-directory-password";
110
99
  options: {
111
100
  password: {
112
101
  secret: string;
113
102
  } | {
114
103
  secret_ref: string;
115
104
  };
105
+ userName: string;
106
+ clientId: string;
107
+ tenantId: string;
116
108
  };
117
- }) | ({
109
+ } | {
118
110
  type: "azure-active-directory-service-principal-secret";
119
111
  options: {
120
112
  clientId: string;
121
113
  tenantId: string;
122
- clientSecret: string;
123
- };
124
- } & {
125
- options: {
126
114
  clientSecret: {
127
115
  secret: string;
128
116
  } | {
129
117
  secret_ref: string;
130
118
  };
131
119
  };
132
- }) | undefined;
120
+ } | undefined;
133
121
  additionalConfig?: {
134
122
  pollingIntervalMs?: number | undefined;
135
123
  pollingBatchSize?: number | undefined;
@@ -224,52 +212,40 @@ export declare const DeployInstanceRequest: t.Intersection<t.Codec<{
224
212
  hostname?: string | undefined;
225
213
  port?: number | undefined;
226
214
  schema?: string | undefined;
227
- authentication?: ({
215
+ authentication?: {
228
216
  type: "default";
229
- options: {
230
- password: string;
231
- userName: string;
232
- };
233
- } & {
234
217
  options: {
235
218
  password: {
236
219
  secret: string;
237
220
  } | {
238
221
  secret_ref: string;
239
222
  };
240
- };
241
- }) | ({
242
- type: "azure-active-directory-password";
243
- options: {
244
- password: string;
245
223
  userName: string;
246
- clientId: string;
247
- tenantId: string;
248
224
  };
249
- } & {
225
+ } | {
226
+ type: "azure-active-directory-password";
250
227
  options: {
251
228
  password: {
252
229
  secret: string;
253
230
  } | {
254
231
  secret_ref: string;
255
232
  };
233
+ userName: string;
234
+ clientId: string;
235
+ tenantId: string;
256
236
  };
257
- }) | ({
237
+ } | {
258
238
  type: "azure-active-directory-service-principal-secret";
259
239
  options: {
260
240
  clientId: string;
261
241
  tenantId: string;
262
- clientSecret: string;
263
- };
264
- } & {
265
- options: {
266
242
  clientSecret: {
267
243
  secret: string;
268
244
  } | {
269
245
  secret_ref: string;
270
246
  };
271
247
  };
272
- }) | undefined;
248
+ } | undefined;
273
249
  additionalConfig?: {
274
250
  pollingIntervalMs?: number | undefined;
275
251
  pollingBatchSize?: number | undefined;
@@ -485,52 +461,40 @@ export declare const InstanceConfigResponse: t.ObjectCodec<{
485
461
  hostname?: string | undefined;
486
462
  port?: number | undefined;
487
463
  schema?: string | undefined;
488
- authentication?: ({
464
+ authentication?: {
489
465
  type: "default";
490
- options: {
491
- password: string;
492
- userName: string;
493
- };
494
- } & {
495
466
  options: {
496
467
  password: {
497
468
  secret: string;
498
469
  } | {
499
470
  secret_ref: string;
500
471
  };
501
- };
502
- }) | ({
503
- type: "azure-active-directory-password";
504
- options: {
505
- password: string;
506
472
  userName: string;
507
- clientId: string;
508
- tenantId: string;
509
473
  };
510
- } & {
474
+ } | {
475
+ type: "azure-active-directory-password";
511
476
  options: {
512
477
  password: {
513
478
  secret: string;
514
479
  } | {
515
480
  secret_ref: string;
516
481
  };
482
+ userName: string;
483
+ clientId: string;
484
+ tenantId: string;
517
485
  };
518
- }) | ({
486
+ } | {
519
487
  type: "azure-active-directory-service-principal-secret";
520
488
  options: {
521
489
  clientId: string;
522
490
  tenantId: string;
523
- clientSecret: string;
524
- };
525
- } & {
526
- options: {
527
491
  clientSecret: {
528
492
  secret: string;
529
493
  } | {
530
494
  secret_ref: string;
531
495
  };
532
496
  };
533
- }) | undefined;
497
+ } | undefined;
534
498
  additionalConfig?: {
535
499
  pollingIntervalMs?: number | undefined;
536
500
  pollingBatchSize?: number | undefined;
@@ -674,52 +638,40 @@ export declare const InstanceConfigResponse: t.ObjectCodec<{
674
638
  hostname?: string | undefined;
675
639
  port?: number | undefined;
676
640
  schema?: string | undefined;
677
- authentication?: ({
641
+ authentication?: {
678
642
  type: "default";
679
- options: {
680
- password: string;
681
- userName: string;
682
- };
683
- } & {
684
643
  options: {
685
644
  password: {
686
645
  secret: string;
687
646
  } | {
688
647
  secret_ref: string;
689
648
  };
690
- };
691
- }) | ({
692
- type: "azure-active-directory-password";
693
- options: {
694
- password: string;
695
649
  userName: string;
696
- clientId: string;
697
- tenantId: string;
698
650
  };
699
- } & {
651
+ } | {
652
+ type: "azure-active-directory-password";
700
653
  options: {
701
654
  password: {
702
655
  secret: string;
703
656
  } | {
704
657
  secret_ref: string;
705
658
  };
659
+ userName: string;
660
+ clientId: string;
661
+ tenantId: string;
706
662
  };
707
- }) | ({
663
+ } | {
708
664
  type: "azure-active-directory-service-principal-secret";
709
665
  options: {
710
666
  clientId: string;
711
667
  tenantId: string;
712
- clientSecret: string;
713
- };
714
- } & {
715
- options: {
716
668
  clientSecret: {
717
669
  secret: string;
718
670
  } | {
719
671
  secret_ref: string;
720
672
  };
721
673
  };
722
- }) | undefined;
674
+ } | undefined;
723
675
  additionalConfig?: {
724
676
  pollingIntervalMs?: number | undefined;
725
677
  pollingBatchSize?: number | undefined;
@@ -926,6 +878,13 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
926
878
  errors: t.ArrayCodec<t.ObjectCodec<{
927
879
  level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
928
880
  message: t.IdentityCodec<t.CodecType.String>;
881
+ location: t.OptionalCodec<t.Codec<{
882
+ start_offset: number;
883
+ end_offset: number;
884
+ }, {
885
+ start_offset: number;
886
+ end_offset: number;
887
+ }, string, t.CodecProps>>;
929
888
  ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
930
889
  }>>;
931
890
  }>>;
@@ -933,6 +892,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
933
892
  errors: {
934
893
  level: "warning" | "fatal";
935
894
  message: string;
895
+ location?: {
896
+ start_offset: number;
897
+ end_offset: number;
898
+ } | undefined;
936
899
  ts?: string | undefined;
937
900
  }[];
938
901
  connections: {
@@ -949,6 +912,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
949
912
  errors: {
950
913
  level: "warning" | "fatal";
951
914
  message: string;
915
+ location?: {
916
+ start_offset: number;
917
+ end_offset: number;
918
+ } | undefined;
952
919
  ts?: string | undefined;
953
920
  }[];
954
921
  pattern?: string | undefined;
@@ -963,6 +930,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
963
930
  errors: {
964
931
  level: "warning" | "fatal";
965
932
  message: string;
933
+ location?: {
934
+ start_offset: number;
935
+ end_offset: number;
936
+ } | undefined;
966
937
  ts?: string | undefined;
967
938
  }[];
968
939
  connections: {
@@ -979,6 +950,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
979
950
  errors: {
980
951
  level: "warning" | "fatal";
981
952
  message: string;
953
+ location?: {
954
+ start_offset: number;
955
+ end_offset: number;
956
+ } | undefined;
982
957
  ts?: string | undefined;
983
958
  }[];
984
959
  pattern?: string | undefined;
@@ -994,6 +969,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
994
969
  errors: {
995
970
  level: "warning" | "fatal";
996
971
  message: string;
972
+ location?: {
973
+ start_offset: number;
974
+ end_offset: number;
975
+ } | undefined;
997
976
  ts?: string | undefined;
998
977
  }[];
999
978
  connections: {
@@ -1010,6 +989,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1010
989
  errors: {
1011
990
  level: "warning" | "fatal";
1012
991
  message: string;
992
+ location?: {
993
+ start_offset: number;
994
+ end_offset: number;
995
+ } | undefined;
1013
996
  ts?: string | undefined;
1014
997
  }[];
1015
998
  pattern?: string | undefined;
@@ -1024,6 +1007,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1024
1007
  errors: {
1025
1008
  level: "warning" | "fatal";
1026
1009
  message: string;
1010
+ location?: {
1011
+ start_offset: number;
1012
+ end_offset: number;
1013
+ } | undefined;
1027
1014
  ts?: string | undefined;
1028
1015
  }[];
1029
1016
  connections: {
@@ -1040,6 +1027,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1040
1027
  errors: {
1041
1028
  level: "warning" | "fatal";
1042
1029
  message: string;
1030
+ location?: {
1031
+ start_offset: number;
1032
+ end_offset: number;
1033
+ } | undefined;
1043
1034
  ts?: string | undefined;
1044
1035
  }[];
1045
1036
  pattern?: string | undefined;
@@ -383,6 +383,9 @@
383
383
  "options": {
384
384
  "type": "object",
385
385
  "properties": {
386
+ "userName": {
387
+ "type": "string"
388
+ },
386
389
  "password": {
387
390
  "anyOf": [
388
391
  {
@@ -414,6 +417,7 @@
414
417
  },
415
418
  "additionalProperties": true,
416
419
  "required": [
420
+ "userName",
417
421
  "password"
418
422
  ]
419
423
  }
@@ -434,6 +438,9 @@
434
438
  "options": {
435
439
  "type": "object",
436
440
  "properties": {
441
+ "userName": {
442
+ "type": "string"
443
+ },
437
444
  "password": {
438
445
  "anyOf": [
439
446
  {
@@ -461,11 +468,20 @@
461
468
  ]
462
469
  }
463
470
  ]
471
+ },
472
+ "clientId": {
473
+ "type": "string"
474
+ },
475
+ "tenantId": {
476
+ "type": "string"
464
477
  }
465
478
  },
466
479
  "additionalProperties": true,
467
480
  "required": [
468
- "password"
481
+ "userName",
482
+ "password",
483
+ "clientId",
484
+ "tenantId"
469
485
  ]
470
486
  }
471
487
  },
@@ -485,6 +501,9 @@
485
501
  "options": {
486
502
  "type": "object",
487
503
  "properties": {
504
+ "clientId": {
505
+ "type": "string"
506
+ },
488
507
  "clientSecret": {
489
508
  "anyOf": [
490
509
  {
@@ -512,11 +531,16 @@
512
531
  ]
513
532
  }
514
533
  ]
534
+ },
535
+ "tenantId": {
536
+ "type": "string"
515
537
  }
516
538
  },
517
539
  "additionalProperties": true,
518
540
  "required": [
519
- "clientSecret"
541
+ "clientId",
542
+ "clientSecret",
543
+ "tenantId"
520
544
  ]
521
545
  }
522
546
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/management-types",
3
- "version": "0.0.0-dev.9f1dde73",
3
+ "version": "0.0.0-dev.ec9d802b",
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",
@@ -29,8 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@journeyapps-labs/micro-codecs": "^1.0.1",
32
- "@powersync/service-module-mssql": "^0.3.1",
33
- "@powersync/service-types": "^0.14.0",
32
+ "@powersync/service-types": "0.15.0",
34
33
  "bson": "^6.10.4",
35
34
  "ts-codec": "^1.3.0"
36
35
  },