@middlewr/contracts 0.0.9 → 0.0.11
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/cjs/domains.schema.d.ts +8 -0
- package/dist/cjs/domains.schema.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +104 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +10 -1
- package/dist/esm/domains.schema.d.ts +8 -0
- package/dist/esm/domains.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +104 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +10 -1
- package/package.json +2 -2
- package/src/domains.schema.ts +8 -0
- package/src/index.ts +5 -0
|
@@ -5,6 +5,14 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
5
5
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
6
6
|
domain: z.ZodString;
|
|
7
7
|
is_verified: z.ZodBoolean;
|
|
8
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
10
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
13
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
15
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
8
16
|
created_at: z.ZodCoercedDate<unknown>;
|
|
9
17
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
18
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;iBAgBvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAQlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBASlC,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -468,6 +468,14 @@ export declare const domainsContract: {
|
|
|
468
468
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
469
469
|
domain: z.ZodString;
|
|
470
470
|
is_verified: z.ZodBoolean;
|
|
471
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
472
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
473
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
474
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
475
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
476
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
477
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
478
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
471
479
|
created_at: z.ZodCoercedDate<unknown>;
|
|
472
480
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
473
481
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -479,6 +487,14 @@ export declare const domainsContract: {
|
|
|
479
487
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
480
488
|
domain: z.ZodString;
|
|
481
489
|
is_verified: z.ZodBoolean;
|
|
490
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
491
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
492
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
493
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
494
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
495
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
496
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
497
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
482
498
|
created_at: z.ZodCoercedDate<unknown>;
|
|
483
499
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
484
500
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -491,6 +507,14 @@ export declare const domainsContract: {
|
|
|
491
507
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
492
508
|
domain: z.ZodString;
|
|
493
509
|
is_verified: z.ZodBoolean;
|
|
510
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
511
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
512
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
513
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
514
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
515
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
516
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
517
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
494
518
|
created_at: z.ZodCoercedDate<unknown>;
|
|
495
519
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
496
520
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -504,6 +528,14 @@ export declare const domainsContract: {
|
|
|
504
528
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
505
529
|
domain: z.ZodString;
|
|
506
530
|
is_verified: z.ZodBoolean;
|
|
531
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
532
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
533
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
534
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
535
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
536
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
537
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
538
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
507
539
|
created_at: z.ZodCoercedDate<unknown>;
|
|
508
540
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
509
541
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -511,6 +543,26 @@ export declare const domainsContract: {
|
|
|
511
543
|
workspace_id: z.ZodString;
|
|
512
544
|
domain_id: z.ZodString;
|
|
513
545
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
546
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
547
|
+
workspace_id: z.ZodString;
|
|
548
|
+
domain_id: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
id: z.ZodString;
|
|
551
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
552
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
553
|
+
domain: z.ZodString;
|
|
554
|
+
is_verified: z.ZodBoolean;
|
|
555
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
556
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
557
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
558
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
559
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
560
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
561
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
562
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
563
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
564
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
565
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
514
566
|
};
|
|
515
567
|
export declare const contract: {
|
|
516
568
|
users: {
|
|
@@ -975,6 +1027,14 @@ export declare const contract: {
|
|
|
975
1027
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
976
1028
|
domain: z.ZodString;
|
|
977
1029
|
is_verified: z.ZodBoolean;
|
|
1030
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1031
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1032
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1033
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1034
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1035
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1036
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1037
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
978
1038
|
created_at: z.ZodCoercedDate<unknown>;
|
|
979
1039
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
980
1040
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -986,6 +1046,14 @@ export declare const contract: {
|
|
|
986
1046
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
987
1047
|
domain: z.ZodString;
|
|
988
1048
|
is_verified: z.ZodBoolean;
|
|
1049
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1052
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1053
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1054
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1056
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
989
1057
|
created_at: z.ZodCoercedDate<unknown>;
|
|
990
1058
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
991
1059
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -998,6 +1066,14 @@ export declare const contract: {
|
|
|
998
1066
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
999
1067
|
domain: z.ZodString;
|
|
1000
1068
|
is_verified: z.ZodBoolean;
|
|
1069
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1070
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1071
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1072
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1073
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1074
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1075
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1076
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1001
1077
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1002
1078
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1003
1079
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1011,6 +1087,14 @@ export declare const contract: {
|
|
|
1011
1087
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1012
1088
|
domain: z.ZodString;
|
|
1013
1089
|
is_verified: z.ZodBoolean;
|
|
1090
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1091
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1092
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1093
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1095
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1096
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1097
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1014
1098
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1015
1099
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1016
1100
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1018,6 +1102,26 @@ export declare const contract: {
|
|
|
1018
1102
|
workspace_id: z.ZodString;
|
|
1019
1103
|
domain_id: z.ZodString;
|
|
1020
1104
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1105
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1106
|
+
workspace_id: z.ZodString;
|
|
1107
|
+
domain_id: z.ZodString;
|
|
1108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
1111
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1112
|
+
domain: z.ZodString;
|
|
1113
|
+
is_verified: z.ZodBoolean;
|
|
1114
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1115
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1116
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1117
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1118
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1119
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1120
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1121
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1122
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1123
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1124
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1021
1125
|
};
|
|
1022
1126
|
};
|
|
1023
1127
|
export type Contract = typeof contract;
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD9B,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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_verified: import_zod2.z.boolean(),
|
|
104
|
+
cf_hostname_id: import_zod2.z.string().nullable(),
|
|
105
|
+
cf_ssl_status: import_zod2.z.string().nullable(),
|
|
106
|
+
cf_ownership_status: import_zod2.z.string().nullable(),
|
|
107
|
+
cf_txt_name: import_zod2.z.string().nullable(),
|
|
108
|
+
cf_txt_value: import_zod2.z.string().nullable(),
|
|
109
|
+
cf_ssl_txt_name: import_zod2.z.string().nullable(),
|
|
110
|
+
cf_ssl_txt_value: import_zod2.z.string().nullable(),
|
|
111
|
+
cf_last_checked_at: import_zod2.z.coerce.date().nullable(),
|
|
104
112
|
created_at: import_zod2.z.coerce.date(),
|
|
105
113
|
updated_at: import_zod2.z.coerce.date().nullable()
|
|
106
114
|
});
|
|
@@ -349,7 +357,8 @@ var domainsContract = {
|
|
|
349
357
|
list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains" }).input(WorkspaceIdParamSchema).output(import_zod7.z.array(DomainSchema)),
|
|
350
358
|
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(DomainSchema),
|
|
351
359
|
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema.merge(UpdateDomainInputSchema)).output(DomainSchema),
|
|
352
|
-
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(import_zod7.z.void())
|
|
360
|
+
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(import_zod7.z.void()),
|
|
361
|
+
verify: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/domains/{domain_id}/verify" }).input(DomainIdParamSchema).output(DomainSchema)
|
|
353
362
|
};
|
|
354
363
|
var contract = {
|
|
355
364
|
users: usersContract,
|
|
@@ -5,6 +5,14 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
5
5
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
6
6
|
domain: z.ZodString;
|
|
7
7
|
is_verified: z.ZodBoolean;
|
|
8
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
10
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
13
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
15
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
8
16
|
created_at: z.ZodCoercedDate<unknown>;
|
|
9
17
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
18
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"domains.schema.d.ts","sourceRoot":"","sources":["../../src/domains.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;iBAgBvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAQlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBASlC,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -468,6 +468,14 @@ export declare const domainsContract: {
|
|
|
468
468
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
469
469
|
domain: z.ZodString;
|
|
470
470
|
is_verified: z.ZodBoolean;
|
|
471
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
472
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
473
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
474
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
475
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
476
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
477
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
478
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
471
479
|
created_at: z.ZodCoercedDate<unknown>;
|
|
472
480
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
473
481
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -479,6 +487,14 @@ export declare const domainsContract: {
|
|
|
479
487
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
480
488
|
domain: z.ZodString;
|
|
481
489
|
is_verified: z.ZodBoolean;
|
|
490
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
491
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
492
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
493
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
494
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
495
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
496
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
497
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
482
498
|
created_at: z.ZodCoercedDate<unknown>;
|
|
483
499
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
484
500
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -491,6 +507,14 @@ export declare const domainsContract: {
|
|
|
491
507
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
492
508
|
domain: z.ZodString;
|
|
493
509
|
is_verified: z.ZodBoolean;
|
|
510
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
511
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
512
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
513
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
514
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
515
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
516
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
517
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
494
518
|
created_at: z.ZodCoercedDate<unknown>;
|
|
495
519
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
496
520
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -504,6 +528,14 @@ export declare const domainsContract: {
|
|
|
504
528
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
505
529
|
domain: z.ZodString;
|
|
506
530
|
is_verified: z.ZodBoolean;
|
|
531
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
532
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
533
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
534
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
535
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
536
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
537
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
538
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
507
539
|
created_at: z.ZodCoercedDate<unknown>;
|
|
508
540
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
509
541
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -511,6 +543,26 @@ export declare const domainsContract: {
|
|
|
511
543
|
workspace_id: z.ZodString;
|
|
512
544
|
domain_id: z.ZodString;
|
|
513
545
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
546
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
547
|
+
workspace_id: z.ZodString;
|
|
548
|
+
domain_id: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
id: z.ZodString;
|
|
551
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
552
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
553
|
+
domain: z.ZodString;
|
|
554
|
+
is_verified: z.ZodBoolean;
|
|
555
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
556
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
557
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
558
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
559
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
560
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
561
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
562
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
563
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
564
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
565
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
514
566
|
};
|
|
515
567
|
export declare const contract: {
|
|
516
568
|
users: {
|
|
@@ -975,6 +1027,14 @@ export declare const contract: {
|
|
|
975
1027
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
976
1028
|
domain: z.ZodString;
|
|
977
1029
|
is_verified: z.ZodBoolean;
|
|
1030
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1031
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1032
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1033
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1034
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1035
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1036
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1037
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
978
1038
|
created_at: z.ZodCoercedDate<unknown>;
|
|
979
1039
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
980
1040
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -986,6 +1046,14 @@ export declare const contract: {
|
|
|
986
1046
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
987
1047
|
domain: z.ZodString;
|
|
988
1048
|
is_verified: z.ZodBoolean;
|
|
1049
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1052
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1053
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1054
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1056
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
989
1057
|
created_at: z.ZodCoercedDate<unknown>;
|
|
990
1058
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
991
1059
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -998,6 +1066,14 @@ export declare const contract: {
|
|
|
998
1066
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
999
1067
|
domain: z.ZodString;
|
|
1000
1068
|
is_verified: z.ZodBoolean;
|
|
1069
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1070
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1071
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1072
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1073
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1074
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1075
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1076
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1001
1077
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1002
1078
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1003
1079
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1011,6 +1087,14 @@ export declare const contract: {
|
|
|
1011
1087
|
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1012
1088
|
domain: z.ZodString;
|
|
1013
1089
|
is_verified: z.ZodBoolean;
|
|
1090
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1091
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1092
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1093
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1095
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1096
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1097
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1014
1098
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1015
1099
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1016
1100
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1018,6 +1102,26 @@ export declare const contract: {
|
|
|
1018
1102
|
workspace_id: z.ZodString;
|
|
1019
1103
|
domain_id: z.ZodString;
|
|
1020
1104
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1105
|
+
verify: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1106
|
+
workspace_id: z.ZodString;
|
|
1107
|
+
domain_id: z.ZodString;
|
|
1108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
1111
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1112
|
+
domain: z.ZodString;
|
|
1113
|
+
is_verified: z.ZodBoolean;
|
|
1114
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1115
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1116
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1117
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1118
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1119
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1120
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1121
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1122
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1123
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1124
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1021
1125
|
};
|
|
1022
1126
|
};
|
|
1023
1127
|
export type Contract = typeof contract;
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -39,6 +39,14 @@ var DomainSchema = z2.object({
|
|
|
39
39
|
created_by_id: z2.string().uuid().nullable(),
|
|
40
40
|
domain: z2.string(),
|
|
41
41
|
is_verified: z2.boolean(),
|
|
42
|
+
cf_hostname_id: z2.string().nullable(),
|
|
43
|
+
cf_ssl_status: z2.string().nullable(),
|
|
44
|
+
cf_ownership_status: z2.string().nullable(),
|
|
45
|
+
cf_txt_name: z2.string().nullable(),
|
|
46
|
+
cf_txt_value: z2.string().nullable(),
|
|
47
|
+
cf_ssl_txt_name: z2.string().nullable(),
|
|
48
|
+
cf_ssl_txt_value: z2.string().nullable(),
|
|
49
|
+
cf_last_checked_at: z2.coerce.date().nullable(),
|
|
42
50
|
created_at: z2.coerce.date(),
|
|
43
51
|
updated_at: z2.coerce.date().nullable()
|
|
44
52
|
});
|
|
@@ -287,7 +295,8 @@ var domainsContract = {
|
|
|
287
295
|
list: oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains" }).input(WorkspaceIdParamSchema).output(z7.array(DomainSchema)),
|
|
288
296
|
get: oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(DomainSchema),
|
|
289
297
|
update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema.merge(UpdateDomainInputSchema)).output(DomainSchema),
|
|
290
|
-
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(z7.void())
|
|
298
|
+
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/domains/{domain_id}" }).input(DomainIdParamSchema).output(z7.void()),
|
|
299
|
+
verify: oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/domains/{domain_id}/verify" }).input(DomainIdParamSchema).output(DomainSchema)
|
|
291
300
|
};
|
|
292
301
|
var contract = {
|
|
293
302
|
users: usersContract,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middlewr/contracts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@orpc/client": "^1.13.4",
|
|
27
27
|
"@orpc/contract": "^1.13",
|
|
28
|
-
"esbuild": "^0.
|
|
28
|
+
"esbuild": "^0.27.3",
|
|
29
29
|
"typescript": "^5.7",
|
|
30
30
|
"zod": "^4.3.5"
|
|
31
31
|
},
|
package/src/domains.schema.ts
CHANGED
|
@@ -6,6 +6,14 @@ export const DomainSchema = z.object({
|
|
|
6
6
|
created_by_id: z.string().uuid().nullable(),
|
|
7
7
|
domain: z.string(),
|
|
8
8
|
is_verified: z.boolean(),
|
|
9
|
+
cf_hostname_id: z.string().nullable(),
|
|
10
|
+
cf_ssl_status: z.string().nullable(),
|
|
11
|
+
cf_ownership_status: z.string().nullable(),
|
|
12
|
+
cf_txt_name: z.string().nullable(),
|
|
13
|
+
cf_txt_value: z.string().nullable(),
|
|
14
|
+
cf_ssl_txt_name: z.string().nullable(),
|
|
15
|
+
cf_ssl_txt_value: z.string().nullable(),
|
|
16
|
+
cf_last_checked_at: z.coerce.date().nullable(),
|
|
9
17
|
created_at: z.coerce.date(),
|
|
10
18
|
updated_at: z.coerce.date().nullable(),
|
|
11
19
|
});
|
package/src/index.ts
CHANGED
|
@@ -187,6 +187,11 @@ export const domainsContract = {
|
|
|
187
187
|
.route({ method: 'DELETE', path: '/api/workspaces/{workspace_id}/domains/{domain_id}' })
|
|
188
188
|
.input(DomainIdParamSchema)
|
|
189
189
|
.output(z.void()),
|
|
190
|
+
|
|
191
|
+
verify: oc
|
|
192
|
+
.route({ method: 'POST', path: '/api/workspaces/{workspace_id}/domains/{domain_id}/verify' })
|
|
193
|
+
.input(DomainIdParamSchema)
|
|
194
|
+
.output(DomainSchema),
|
|
190
195
|
};
|
|
191
196
|
|
|
192
197
|
// Full contract
|