@ourofoundation/ouro-js 1.0.1 → 1.0.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/schema/common.d.ts +3 -3
- package/dist/schema/common.js +1 -0
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/posts.d.ts +10 -10
- package/dist/schema/replications.d.ts +82 -25
- package/dist/schema/replications.js +10 -6
- package/dist/schema/replications.js.map +1 -1
- package/package.json +1 -1
package/dist/schema/common.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare const EmbeddingSchema: z.ZodObject<{
|
|
|
40
40
|
declare const ConnectionSchema: z.ZodObject<{
|
|
41
41
|
id: z.ZodString;
|
|
42
42
|
user_id: z.ZodString;
|
|
43
|
-
type: z.ZodEnum<["comment", "reference", "mention", "action"]>;
|
|
43
|
+
type: z.ZodEnum<["comment", "reference", "mention", "action", "component"]>;
|
|
44
44
|
action_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
45
|
source_id: z.ZodString;
|
|
46
46
|
target_id: z.ZodString;
|
|
@@ -49,7 +49,7 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
49
49
|
created_at: z.ZodString;
|
|
50
50
|
last_updated: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
52
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
53
53
|
id: string;
|
|
54
54
|
user_id: string;
|
|
55
55
|
created_at: string;
|
|
@@ -60,7 +60,7 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
60
60
|
target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
61
61
|
action_id?: string | null | undefined;
|
|
62
62
|
}, {
|
|
63
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
63
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
64
64
|
id: string;
|
|
65
65
|
user_id: string;
|
|
66
66
|
created_at: string;
|
package/dist/schema/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7B,MAAM;IACN,cAAc;IACd,MAAM;IACN,SAAS;IACT,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,SAAS;IACT,cAAc;IACd,WAAW;IACX,aAAa;CACd,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7B,MAAM;IACN,cAAc;IACd,MAAM;IACN,SAAS;IACT,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,SAAS;IACT,cAAc;IACd,WAAW;IACX,aAAa;CACd,CAAC,CAAC;AA4ED,0CAAe;AA1EjB,MAAM,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC9B,QAAQ;IACR,SAAS;IACT,cAAc;IACd,WAAW;IACX,SAAS;CACV,CAAC,CAAC;AAgED,4CAAgB;AA9DlB,MAAM,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AA6D5D,gCAAU;AA3DZ,MAAM,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;AA6D1E,gDAAkB;AA3DpB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE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CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACnC,SAAS,EAAE,eAAe;CAC3B,CAAC,CAAC;AAyBD,kDAAmB;AAvBrB,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;KAC3B,CAAC;CACH,CAAC,CAAC;AAmBD,4CAAgB"}
|
package/dist/schema/posts.d.ts
CHANGED
|
@@ -732,7 +732,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
732
732
|
parent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
733
733
|
id: z.ZodString;
|
|
734
734
|
user_id: z.ZodString;
|
|
735
|
-
type: z.ZodEnum<["comment", "reference", "mention", "action"]>;
|
|
735
|
+
type: z.ZodEnum<["comment", "reference", "mention", "action", "component"]>;
|
|
736
736
|
action_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
737
737
|
source_id: z.ZodString;
|
|
738
738
|
target_id: z.ZodString;
|
|
@@ -741,7 +741,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
741
741
|
created_at: z.ZodString;
|
|
742
742
|
last_updated: z.ZodString;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
744
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
745
745
|
id: string;
|
|
746
746
|
user_id: string;
|
|
747
747
|
created_at: string;
|
|
@@ -752,7 +752,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
752
752
|
target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
753
753
|
action_id?: string | null | undefined;
|
|
754
754
|
}, {
|
|
755
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
755
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
756
756
|
id: string;
|
|
757
757
|
user_id: string;
|
|
758
758
|
created_at: string;
|
|
@@ -793,7 +793,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
793
793
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
794
794
|
description?: string | null | undefined;
|
|
795
795
|
parent?: {
|
|
796
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
796
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
797
797
|
id: string;
|
|
798
798
|
user_id: string;
|
|
799
799
|
created_at: string;
|
|
@@ -868,7 +868,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
|
|
|
868
868
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
869
869
|
description?: string | null | undefined;
|
|
870
870
|
parent?: {
|
|
871
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
871
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
872
872
|
id: string;
|
|
873
873
|
user_id: string;
|
|
874
874
|
created_at: string;
|
|
@@ -1103,7 +1103,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1103
1103
|
parent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1104
1104
|
id: z.ZodString;
|
|
1105
1105
|
user_id: z.ZodString;
|
|
1106
|
-
type: z.ZodEnum<["comment", "reference", "mention", "action"]>;
|
|
1106
|
+
type: z.ZodEnum<["comment", "reference", "mention", "action", "component"]>;
|
|
1107
1107
|
action_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1108
1108
|
source_id: z.ZodString;
|
|
1109
1109
|
target_id: z.ZodString;
|
|
@@ -1112,7 +1112,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1112
1112
|
created_at: z.ZodString;
|
|
1113
1113
|
last_updated: z.ZodString;
|
|
1114
1114
|
}, "strip", z.ZodTypeAny, {
|
|
1115
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
1115
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
1116
1116
|
id: string;
|
|
1117
1117
|
user_id: string;
|
|
1118
1118
|
created_at: string;
|
|
@@ -1123,7 +1123,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1123
1123
|
target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
1124
1124
|
action_id?: string | null | undefined;
|
|
1125
1125
|
}, {
|
|
1126
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
1126
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
1127
1127
|
id: string;
|
|
1128
1128
|
user_id: string;
|
|
1129
1129
|
created_at: string;
|
|
@@ -1164,7 +1164,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1164
1164
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1165
1165
|
description?: string | null | undefined;
|
|
1166
1166
|
parent?: {
|
|
1167
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
1167
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
1168
1168
|
id: string;
|
|
1169
1169
|
user_id: string;
|
|
1170
1170
|
created_at: string;
|
|
@@ -1239,7 +1239,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1239
1239
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1240
1240
|
description?: string | null | undefined;
|
|
1241
1241
|
parent?: {
|
|
1242
|
-
type: "action" | "comment" | "reference" | "mention";
|
|
1242
|
+
type: "action" | "comment" | "reference" | "mention" | "component";
|
|
1243
1243
|
id: string;
|
|
1244
1244
|
user_id: string;
|
|
1245
1245
|
created_at: string;
|
|
@@ -128,10 +128,42 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
128
128
|
last_updated: z.ZodString;
|
|
129
129
|
}, {
|
|
130
130
|
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
|
|
131
|
+
metadata: z.ZodObject<{
|
|
132
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
cron: z.ZodString;
|
|
134
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
135
|
+
cron: z.ZodString;
|
|
136
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
137
|
+
cron: z.ZodString;
|
|
138
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
139
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
140
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
cron: z.ZodString;
|
|
142
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
143
|
+
cron: z.ZodString;
|
|
144
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
145
|
+
cron: z.ZodString;
|
|
146
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
147
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
148
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
cron: z.ZodString;
|
|
150
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
151
|
+
cron: z.ZodString;
|
|
152
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
153
|
+
cron: z.ZodString;
|
|
154
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
155
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
131
156
|
}>, "strip", z.ZodTypeAny, {
|
|
132
157
|
id: string;
|
|
133
158
|
name: string;
|
|
134
159
|
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
160
|
+
metadata: {
|
|
161
|
+
schedule?: z.objectOutputType<{
|
|
162
|
+
cron: z.ZodString;
|
|
163
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
164
|
+
} & {
|
|
165
|
+
[k: string]: unknown;
|
|
166
|
+
};
|
|
135
167
|
user_id: string;
|
|
136
168
|
org_id: string;
|
|
137
169
|
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
@@ -139,7 +171,6 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
171
|
last_updated: string;
|
|
140
172
|
team_id: string;
|
|
141
173
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
142
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
143
174
|
description?: string | null | undefined;
|
|
144
175
|
user?: {
|
|
145
176
|
id?: string | undefined;
|
|
@@ -189,6 +220,13 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
189
220
|
id: string;
|
|
190
221
|
name: string;
|
|
191
222
|
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
223
|
+
metadata: {
|
|
224
|
+
schedule?: z.objectInputType<{
|
|
225
|
+
cron: z.ZodString;
|
|
226
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
227
|
+
} & {
|
|
228
|
+
[k: string]: unknown;
|
|
229
|
+
};
|
|
192
230
|
user_id: string;
|
|
193
231
|
org_id: string;
|
|
194
232
|
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
@@ -196,7 +234,6 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
196
234
|
last_updated: string;
|
|
197
235
|
team_id: string;
|
|
198
236
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
199
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
200
237
|
description?: string | null | undefined;
|
|
201
238
|
user?: {
|
|
202
239
|
id?: string | undefined;
|
|
@@ -365,39 +402,56 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
365
402
|
cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
366
403
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
367
404
|
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
368
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
|
|
369
405
|
preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
|
|
370
406
|
created_at: z.ZodOptional<z.ZodString>;
|
|
371
407
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
372
408
|
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
|
|
409
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
cron: z.ZodString;
|
|
412
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
413
|
+
cron: z.ZodString;
|
|
414
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
415
|
+
cron: z.ZodString;
|
|
416
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
417
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
418
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
cron: z.ZodString;
|
|
420
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
421
|
+
cron: z.ZodString;
|
|
422
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
423
|
+
cron: z.ZodString;
|
|
424
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
425
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
426
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
cron: z.ZodString;
|
|
428
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
429
|
+
cron: z.ZodString;
|
|
430
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
431
|
+
cron: z.ZodString;
|
|
432
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
433
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
373
434
|
}, {
|
|
374
435
|
id: z.ZodDefault<z.ZodString>;
|
|
375
436
|
team_id: z.ZodDefault<z.ZodString>;
|
|
376
437
|
org_id: z.ZodDefault<z.ZodString>;
|
|
377
438
|
name_url_slug: z.ZodString;
|
|
378
|
-
metadata: z.ZodObject<{
|
|
379
|
-
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
380
|
-
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
381
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
382
|
-
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
383
|
-
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
384
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
385
|
-
edges: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
386
|
-
nodes: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
387
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
388
439
|
}>, "strip", z.ZodTypeAny, {
|
|
389
440
|
id: string;
|
|
390
|
-
metadata: {
|
|
391
|
-
edges: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
392
|
-
nodes: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
393
|
-
} & {
|
|
394
|
-
[k: string]: unknown;
|
|
395
|
-
};
|
|
396
441
|
org_id: string;
|
|
397
442
|
team_id: string;
|
|
398
443
|
name_url_slug: string;
|
|
399
444
|
name?: string | undefined;
|
|
400
445
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
446
|
+
metadata?: z.objectOutputType<{
|
|
447
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
448
|
+
cron: z.ZodString;
|
|
449
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
450
|
+
cron: z.ZodString;
|
|
451
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
452
|
+
cron: z.ZodString;
|
|
453
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
454
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
401
455
|
description?: string | null | undefined;
|
|
402
456
|
user?: {
|
|
403
457
|
id?: string | undefined;
|
|
@@ -448,16 +502,19 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
448
502
|
price_id?: string | null | undefined;
|
|
449
503
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
450
504
|
}, {
|
|
451
|
-
metadata: {
|
|
452
|
-
edges: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
453
|
-
nodes: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
454
|
-
} & {
|
|
455
|
-
[k: string]: unknown;
|
|
456
|
-
};
|
|
457
505
|
name_url_slug: string;
|
|
458
506
|
id?: string | undefined;
|
|
459
507
|
name?: string | undefined;
|
|
460
508
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
509
|
+
metadata?: z.objectInputType<{
|
|
510
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
511
|
+
cron: z.ZodString;
|
|
512
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
513
|
+
cron: z.ZodString;
|
|
514
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
515
|
+
cron: z.ZodString;
|
|
516
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
517
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
461
518
|
description?: string | null | undefined;
|
|
462
519
|
user?: {
|
|
463
520
|
id?: string | undefined;
|
|
@@ -7,6 +7,16 @@ const assets_1 = require("./assets");
|
|
|
7
7
|
const common_1 = require("./common");
|
|
8
8
|
const ReplicationSchema = assets_1.AssetSchema.extend({
|
|
9
9
|
asset_type: common_1.AssetTypeSchema.refine((val) => val === "replication"),
|
|
10
|
+
metadata: zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
schedule: zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
cron: zod_1.z.string(),
|
|
15
|
+
})
|
|
16
|
+
.passthrough()
|
|
17
|
+
.optional(),
|
|
18
|
+
})
|
|
19
|
+
.passthrough(),
|
|
10
20
|
});
|
|
11
21
|
exports.ReplicationSchema = ReplicationSchema;
|
|
12
22
|
const CreateReplicationSchema = ReplicationSchema.partial().extend({
|
|
@@ -17,12 +27,6 @@ const CreateReplicationSchema = ReplicationSchema.partial().extend({
|
|
|
17
27
|
team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
18
28
|
org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
19
29
|
name_url_slug: zod_1.z.string(),
|
|
20
|
-
metadata: zod_1.z
|
|
21
|
-
.object({
|
|
22
|
-
edges: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
23
|
-
nodes: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
24
|
-
})
|
|
25
|
-
.passthrough(),
|
|
26
30
|
});
|
|
27
31
|
exports.CreateReplicationSchema = CreateReplicationSchema;
|
|
28
32
|
const UpdateReplicationSchema = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replications.js","sourceRoot":"","sources":["../../src/schema/replications.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6BAAwB;AAExB,qCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"replications.js","sourceRoot":"","sources":["../../src/schema/replications.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6BAAwB;AAExB,qCAAuC;AACvC,qCAA6D;AAE7D,MAAM,iBAAiB,GAAG,oBAAW,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,wBAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,aAAa,CAAC;IAClE,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC;QACN,QAAQ,EAAE,OAAC;aACR,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACjB,CAAC;aACD,WAAW,EAAE;aACb,QAAQ,EAAE;KACd,CAAC;SACD,WAAW,EAAE;CACjB,CAAC,CAAC;AA2BD,8CAAiB;AAzBnB,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;IACjE,EAAE,EAAE,OAAC;SACF,MAAM,EAAE;SACR,IAAI,EAAE;SACN,OAAO,CAAC,GAAG,EAAE,CAAC,IAAA,eAAM,GAAE,CAAC;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,sCAAsC,CAAC;IAC1E,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,sCAAsC,CAAC;IACzE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AAkBD,0DAAuB;AAhBzB,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAA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