@kl1/contracts 1.0.61 → 1.0.62

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.js CHANGED
@@ -852,6 +852,63 @@ var messenger = (0, import_core6.initContract)().router(
852
852
  pathPrefix: "/messenger"
853
853
  }
854
854
  );
855
+ var instagram = (0, import_core6.initContract)().router(
856
+ {
857
+ getPages: {
858
+ method: "GET",
859
+ path: "/pages",
860
+ query: GetFacebookPagesQuerySchema,
861
+ responses: {
862
+ 200: DefaultSuccessResponseSchema.extend({
863
+ data: GetFacebookPagesSchema
864
+ }),
865
+ 500: DefaultErrorResponseSchema
866
+ }
867
+ },
868
+ connect: {
869
+ method: "POST",
870
+ path: "/connect",
871
+ responses: {
872
+ 200: DefaultSuccessResponseSchema.extend({
873
+ channel: ChannelSchema
874
+ }),
875
+ 408: DefaultErrorResponseSchema
876
+ },
877
+ body: ConnectChannelSchema,
878
+ summary: "Connect message channel"
879
+ },
880
+ relogin: {
881
+ method: "POST",
882
+ path: "/relogin",
883
+ responses: {
884
+ 200: DefaultSuccessResponseSchema.extend({
885
+ channel: ChannelSchema
886
+ }),
887
+ 408: DefaultErrorResponseSchema
888
+ },
889
+ body: ConnectChannelSchema,
890
+ summary: "Relogin message channel"
891
+ },
892
+ disconnect: {
893
+ method: "POST",
894
+ path: "/disconnect/:channelId",
895
+ pathParams: import_zod20.default.object({
896
+ channelId: import_zod20.default.string().uuid()
897
+ }),
898
+ responses: {
899
+ 200: DefaultSuccessResponseSchema.extend({
900
+ channel: ChannelSchema
901
+ }),
902
+ 408: DefaultErrorResponseSchema
903
+ },
904
+ body: null,
905
+ summary: "Disconnect message channel"
906
+ }
907
+ },
908
+ {
909
+ pathPrefix: "/instagram"
910
+ }
911
+ );
855
912
  var line = (0, import_core6.initContract)().router(
856
913
  {
857
914
  connect: {
@@ -911,7 +968,8 @@ var channelContract = (0, import_core6.initContract)().router(
911
968
  summary: "Get Channels"
912
969
  },
913
970
  messenger,
914
- line
971
+ line,
972
+ instagram
915
973
  },
916
974
  {
917
975
  baseHeaders: DefaultHeaderSchema,
@@ -2425,20 +2483,22 @@ var ContactContractValidationSchema = {
2425
2483
  },
2426
2484
  merge: {
2427
2485
  request: import_zod40.default.object({
2428
- primaryContactId: import_zod40.default.string().uuid(),
2429
- emails: import_zod40.default.array(
2430
- import_zod40.default.object({
2431
- email: import_zod40.default.string(),
2432
- isPrimary: import_zod40.default.boolean()
2433
- })
2434
- ),
2435
- phones: import_zod40.default.array(
2436
- import_zod40.default.object({
2437
- phone: import_zod40.default.string(),
2438
- isPrimary: import_zod40.default.boolean()
2439
- })
2440
- ),
2441
- otherContacts: import_zod40.default.array(import_zod40.default.string().uuid())
2486
+ primaryContact: import_zod40.default.object({
2487
+ id: import_zod40.default.string().uuid(),
2488
+ emails: import_zod40.default.array(
2489
+ import_zod40.default.object({
2490
+ email: import_zod40.default.string().email(),
2491
+ isPrimary: import_zod40.default.boolean()
2492
+ })
2493
+ ),
2494
+ phones: import_zod40.default.array(
2495
+ import_zod40.default.object({
2496
+ phone: import_zod40.default.string(),
2497
+ isPrimary: import_zod40.default.boolean()
2498
+ })
2499
+ )
2500
+ }),
2501
+ secondaryContacts: import_zod40.default.array(import_zod40.default.string().uuid())
2442
2502
  }),
2443
2503
  response: ContactSchema
2444
2504
  },