@sixb/server 0.1.0 → 0.1.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/README.md +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +21 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/files/content.d.ts +11 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +4164 -3541
- package/dist/index.js.map +57 -52
- package/dist/openapi/tags.d.ts +11 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +9 -8
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +90 -90
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +15 -9
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +34 -34
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +62 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -34
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +131 -83
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +27 -30
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +132 -107
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +443 -440
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +168 -168
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +29 -23
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +34 -34
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +174 -174
- package/dist/schemas/pipelines.d.ts +131 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +88 -124
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +792 -406
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -0
- package/src/auth/scope.ts +34 -30
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/files/content.ts +11 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +49 -42
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +87 -42
- package/src/routes/agents.ts +89 -200
- package/src/routes/auth.ts +87 -91
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +24 -31
- package/src/routes/links.ts +32 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +26 -38
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +260 -259
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +19 -14
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/datasets.ts +3 -2
- package/src/schemas/pipelines.ts +24 -40
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +16 -10
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +42 -25
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/schemas/projections.ts"],"names":[],"mappings":"AAAA,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;IAInC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAA"}
|
package/dist/schemas/rules.d.ts
CHANGED
|
@@ -15,18 +15,18 @@ export declare const RuleStatesQuerySchema: z.ZodObject<{
|
|
|
15
15
|
offset: z.ZodOptional<z.ZodString>;
|
|
16
16
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
objectTypeId?: string | undefined;
|
|
19
|
+
primaryId?: string | undefined;
|
|
18
20
|
limit?: string | undefined;
|
|
19
21
|
offset?: string | undefined;
|
|
20
22
|
order?: "asc" | "desc" | undefined;
|
|
21
|
-
objectTypeId?: string | undefined;
|
|
22
|
-
primaryId?: string | undefined;
|
|
23
23
|
ruleId?: string | undefined;
|
|
24
24
|
}, {
|
|
25
|
+
objectTypeId?: string | undefined;
|
|
26
|
+
primaryId?: string | undefined;
|
|
25
27
|
limit?: string | undefined;
|
|
26
28
|
offset?: string | undefined;
|
|
27
29
|
order?: "asc" | "desc" | undefined;
|
|
28
|
-
objectTypeId?: string | undefined;
|
|
29
|
-
primaryId?: string | undefined;
|
|
30
30
|
ruleId?: string | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const RulePredicateSchema: z.ZodType<RulePredicate>;
|
|
@@ -67,8 +67,8 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
67
67
|
linkId: string;
|
|
68
68
|
}>]>, "many">;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
kind: "rule";
|
|
71
70
|
id: string;
|
|
71
|
+
kind: "rule";
|
|
72
72
|
subject: {
|
|
73
73
|
kind: "object";
|
|
74
74
|
objectTypeId: string;
|
|
@@ -83,8 +83,8 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
83
83
|
linkId: string;
|
|
84
84
|
})[];
|
|
85
85
|
}, {
|
|
86
|
-
kind: "rule";
|
|
87
86
|
id: string;
|
|
87
|
+
kind: "rule";
|
|
88
88
|
subject: {
|
|
89
89
|
kind: "object";
|
|
90
90
|
objectTypeId: string;
|
package/dist/schemas/status.d.ts
CHANGED
|
@@ -20,18 +20,18 @@ export declare const ReadinessResponseSchema: z.ZodObject<{
|
|
|
20
20
|
}>;
|
|
21
21
|
reason: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
status: "ready" | "unready";
|
|
24
23
|
storage: {
|
|
25
24
|
reachable: boolean;
|
|
26
25
|
schemaValid: boolean;
|
|
27
26
|
};
|
|
27
|
+
status: "ready" | "unready";
|
|
28
28
|
reason?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
status: "ready" | "unready";
|
|
31
30
|
storage: {
|
|
32
31
|
reachable: boolean;
|
|
33
32
|
schemaValid: boolean;
|
|
34
33
|
};
|
|
34
|
+
status: "ready" | "unready";
|
|
35
35
|
reason?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
export declare const StatusResponseSchema: z.ZodObject<{
|
package/dist/schemas/syncs.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SixbFailure } from "@sixb/core/storage";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const SyncParamsSchema: z.ZodObject<{
|
|
3
4
|
syncId: z.ZodString;
|
|
@@ -6,32 +7,32 @@ export declare const SyncParamsSchema: z.ZodObject<{
|
|
|
6
7
|
}, {
|
|
7
8
|
syncId: string;
|
|
8
9
|
}>;
|
|
9
|
-
export declare const SyncRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
10
|
+
export declare const SyncRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
10
11
|
export declare const SyncRunsQuerySchema: z.ZodObject<{
|
|
11
12
|
syncId: z.ZodOptional<z.ZodString>;
|
|
12
13
|
datasetId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>>;
|
|
14
|
+
status: z.ZodOptional<z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>>;
|
|
14
15
|
startedAfter: z.ZodOptional<z.ZodString>;
|
|
15
16
|
startedBefore: z.ZodOptional<z.ZodString>;
|
|
16
17
|
limit: z.ZodOptional<z.ZodString>;
|
|
17
18
|
offset: z.ZodOptional<z.ZodString>;
|
|
18
19
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
21
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
22
|
+
startedAfter?: string | undefined;
|
|
23
|
+
startedBefore?: string | undefined;
|
|
21
24
|
limit?: string | undefined;
|
|
22
25
|
offset?: string | undefined;
|
|
23
26
|
order?: "asc" | "desc" | undefined;
|
|
24
|
-
startedAfter?: string | undefined;
|
|
25
|
-
startedBefore?: string | undefined;
|
|
26
27
|
datasetId?: string | undefined;
|
|
27
28
|
syncId?: string | undefined;
|
|
28
29
|
}, {
|
|
29
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
30
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
31
|
+
startedAfter?: string | undefined;
|
|
32
|
+
startedBefore?: string | undefined;
|
|
30
33
|
limit?: string | undefined;
|
|
31
34
|
offset?: string | undefined;
|
|
32
35
|
order?: "asc" | "desc" | undefined;
|
|
33
|
-
startedAfter?: string | undefined;
|
|
34
|
-
startedBefore?: string | undefined;
|
|
35
36
|
datasetId?: string | undefined;
|
|
36
37
|
syncId?: string | undefined;
|
|
37
38
|
}>;
|
|
@@ -50,9 +51,10 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
50
51
|
projectId: z.ZodString;
|
|
51
52
|
syncId: z.ZodString;
|
|
52
53
|
datasetId: z.ZodString;
|
|
53
|
-
mode: z.ZodEnum<["snapshot", "append"]>;
|
|
54
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
55
|
-
|
|
54
|
+
mode: z.ZodEnum<["snapshot", "append", "merge"]>;
|
|
55
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
56
|
+
queuedAt: z.ZodString;
|
|
57
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
56
58
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
57
59
|
rowsRead: z.ZodOptional<z.ZodNumber>;
|
|
58
60
|
output: z.ZodOptional<z.ZodObject<{
|
|
@@ -67,28 +69,17 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
67
69
|
}>>;
|
|
68
70
|
expectedLatestVersionId: z.ZodOptional<z.ZodString>;
|
|
69
71
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
70
|
-
error: z.ZodOptional<z.
|
|
71
|
-
name: z.ZodOptional<z.ZodString>;
|
|
72
|
-
message: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
message: string;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
message: string;
|
|
78
|
-
name?: string | undefined;
|
|
79
|
-
}>>;
|
|
72
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
80
73
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
82
74
|
projectId: string;
|
|
83
75
|
id: string;
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
77
|
+
mode: "append" | "snapshot" | "merge";
|
|
78
|
+
queuedAt: string;
|
|
86
79
|
datasetId: string;
|
|
87
80
|
syncId: string;
|
|
88
|
-
error?:
|
|
89
|
-
|
|
90
|
-
name?: string | undefined;
|
|
91
|
-
} | undefined;
|
|
81
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
82
|
+
startedAt?: string | undefined;
|
|
92
83
|
finishedAt?: string | undefined;
|
|
93
84
|
output?: {
|
|
94
85
|
datasetId: string;
|
|
@@ -98,17 +89,15 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
98
89
|
commitMessage?: string | undefined;
|
|
99
90
|
rowsRead?: number | undefined;
|
|
100
91
|
}, {
|
|
101
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
102
92
|
projectId: string;
|
|
103
93
|
id: string;
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
95
|
+
mode: "append" | "snapshot" | "merge";
|
|
96
|
+
queuedAt: string;
|
|
106
97
|
datasetId: string;
|
|
107
98
|
syncId: string;
|
|
108
|
-
error?:
|
|
109
|
-
|
|
110
|
-
name?: string | undefined;
|
|
111
|
-
} | undefined;
|
|
99
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
100
|
+
startedAt?: string | undefined;
|
|
112
101
|
finishedAt?: string | undefined;
|
|
113
102
|
output?: {
|
|
114
103
|
datasetId: string;
|
|
@@ -120,22 +109,23 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
120
109
|
}>;
|
|
121
110
|
export declare const SyncSchema: z.ZodObject<{
|
|
122
111
|
id: z.ZodString;
|
|
123
|
-
mode: z.ZodEnum<["snapshot", "append"]>;
|
|
112
|
+
mode: z.ZodEnum<["snapshot", "append", "merge"]>;
|
|
124
113
|
connector: z.ZodObject<{
|
|
125
114
|
id: z.ZodString;
|
|
126
115
|
type: z.ZodString;
|
|
127
116
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type: string;
|
|
129
117
|
id: string;
|
|
130
|
-
}, {
|
|
131
118
|
type: string;
|
|
119
|
+
}, {
|
|
132
120
|
id: string;
|
|
121
|
+
type: string;
|
|
133
122
|
}>;
|
|
134
123
|
target: z.ZodObject<{
|
|
135
124
|
kind: z.ZodLiteral<"dataset">;
|
|
136
125
|
dataset: z.ZodObject<{
|
|
137
126
|
id: z.ZodString;
|
|
138
127
|
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
139
129
|
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
130
|
schema: z.ZodObject<{
|
|
141
131
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -174,6 +164,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
174
164
|
}[];
|
|
175
165
|
};
|
|
176
166
|
description?: string | undefined;
|
|
167
|
+
primaryKey?: string | string[] | undefined;
|
|
177
168
|
partitionBy?: string[] | undefined;
|
|
178
169
|
}, {
|
|
179
170
|
id: string;
|
|
@@ -185,6 +176,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
185
176
|
}[];
|
|
186
177
|
};
|
|
187
178
|
description?: string | undefined;
|
|
179
|
+
primaryKey?: string | string[] | undefined;
|
|
188
180
|
partitionBy?: string[] | undefined;
|
|
189
181
|
}>;
|
|
190
182
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -199,6 +191,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
199
191
|
}[];
|
|
200
192
|
};
|
|
201
193
|
description?: string | undefined;
|
|
194
|
+
primaryKey?: string | string[] | undefined;
|
|
202
195
|
partitionBy?: string[] | undefined;
|
|
203
196
|
};
|
|
204
197
|
}, {
|
|
@@ -213,6 +206,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
213
206
|
}[];
|
|
214
207
|
};
|
|
215
208
|
description?: string | undefined;
|
|
209
|
+
primaryKey?: string | string[] | undefined;
|
|
216
210
|
partitionBy?: string[] | undefined;
|
|
217
211
|
};
|
|
218
212
|
}>;
|
|
@@ -231,9 +225,10 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
231
225
|
projectId: z.ZodString;
|
|
232
226
|
syncId: z.ZodString;
|
|
233
227
|
datasetId: z.ZodString;
|
|
234
|
-
mode: z.ZodEnum<["snapshot", "append"]>;
|
|
235
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
236
|
-
|
|
228
|
+
mode: z.ZodEnum<["snapshot", "append", "merge"]>;
|
|
229
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
230
|
+
queuedAt: z.ZodString;
|
|
231
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
237
232
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
238
233
|
rowsRead: z.ZodOptional<z.ZodNumber>;
|
|
239
234
|
output: z.ZodOptional<z.ZodObject<{
|
|
@@ -248,28 +243,17 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
248
243
|
}>>;
|
|
249
244
|
expectedLatestVersionId: z.ZodOptional<z.ZodString>;
|
|
250
245
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
251
|
-
error: z.ZodOptional<z.
|
|
252
|
-
name: z.ZodOptional<z.ZodString>;
|
|
253
|
-
message: z.ZodString;
|
|
254
|
-
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
message: string;
|
|
256
|
-
name?: string | undefined;
|
|
257
|
-
}, {
|
|
258
|
-
message: string;
|
|
259
|
-
name?: string | undefined;
|
|
260
|
-
}>>;
|
|
246
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
261
247
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
263
248
|
projectId: string;
|
|
264
249
|
id: string;
|
|
265
|
-
|
|
266
|
-
|
|
250
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
251
|
+
mode: "append" | "snapshot" | "merge";
|
|
252
|
+
queuedAt: string;
|
|
267
253
|
datasetId: string;
|
|
268
254
|
syncId: string;
|
|
269
|
-
error?:
|
|
270
|
-
|
|
271
|
-
name?: string | undefined;
|
|
272
|
-
} | undefined;
|
|
255
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
256
|
+
startedAt?: string | undefined;
|
|
273
257
|
finishedAt?: string | undefined;
|
|
274
258
|
output?: {
|
|
275
259
|
datasetId: string;
|
|
@@ -279,17 +263,15 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
279
263
|
commitMessage?: string | undefined;
|
|
280
264
|
rowsRead?: number | undefined;
|
|
281
265
|
}, {
|
|
282
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
283
266
|
projectId: string;
|
|
284
267
|
id: string;
|
|
285
|
-
|
|
286
|
-
|
|
268
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
269
|
+
mode: "append" | "snapshot" | "merge";
|
|
270
|
+
queuedAt: string;
|
|
287
271
|
datasetId: string;
|
|
288
272
|
syncId: string;
|
|
289
|
-
error?:
|
|
290
|
-
|
|
291
|
-
name?: string | undefined;
|
|
292
|
-
} | undefined;
|
|
273
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
274
|
+
startedAt?: string | undefined;
|
|
293
275
|
finishedAt?: string | undefined;
|
|
294
276
|
output?: {
|
|
295
277
|
datasetId: string;
|
|
@@ -301,23 +283,21 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
301
283
|
}>>;
|
|
302
284
|
}, "strip", z.ZodTypeAny, {
|
|
303
285
|
id: string;
|
|
304
|
-
mode: "append" | "snapshot";
|
|
286
|
+
mode: "append" | "snapshot" | "merge";
|
|
305
287
|
triggers: {
|
|
306
288
|
type: "schedule";
|
|
307
289
|
scheduleId: string;
|
|
308
290
|
}[];
|
|
309
291
|
latestRun: {
|
|
310
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
311
292
|
projectId: string;
|
|
312
293
|
id: string;
|
|
313
|
-
|
|
314
|
-
|
|
294
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
295
|
+
mode: "append" | "snapshot" | "merge";
|
|
296
|
+
queuedAt: string;
|
|
315
297
|
datasetId: string;
|
|
316
298
|
syncId: string;
|
|
317
|
-
error?:
|
|
318
|
-
|
|
319
|
-
name?: string | undefined;
|
|
320
|
-
} | undefined;
|
|
299
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
300
|
+
startedAt?: string | undefined;
|
|
321
301
|
finishedAt?: string | undefined;
|
|
322
302
|
output?: {
|
|
323
303
|
datasetId: string;
|
|
@@ -339,32 +319,31 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
339
319
|
}[];
|
|
340
320
|
};
|
|
341
321
|
description?: string | undefined;
|
|
322
|
+
primaryKey?: string | string[] | undefined;
|
|
342
323
|
partitionBy?: string[] | undefined;
|
|
343
324
|
};
|
|
344
325
|
};
|
|
345
326
|
connector: {
|
|
346
|
-
type: string;
|
|
347
327
|
id: string;
|
|
328
|
+
type: string;
|
|
348
329
|
};
|
|
349
330
|
}, {
|
|
350
331
|
id: string;
|
|
351
|
-
mode: "append" | "snapshot";
|
|
332
|
+
mode: "append" | "snapshot" | "merge";
|
|
352
333
|
triggers: {
|
|
353
334
|
type: "schedule";
|
|
354
335
|
scheduleId: string;
|
|
355
336
|
}[];
|
|
356
337
|
latestRun: {
|
|
357
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
358
338
|
projectId: string;
|
|
359
339
|
id: string;
|
|
360
|
-
|
|
361
|
-
|
|
340
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
341
|
+
mode: "append" | "snapshot" | "merge";
|
|
342
|
+
queuedAt: string;
|
|
362
343
|
datasetId: string;
|
|
363
344
|
syncId: string;
|
|
364
|
-
error?:
|
|
365
|
-
|
|
366
|
-
name?: string | undefined;
|
|
367
|
-
} | undefined;
|
|
345
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
346
|
+
startedAt?: string | undefined;
|
|
368
347
|
finishedAt?: string | undefined;
|
|
369
348
|
output?: {
|
|
370
349
|
datasetId: string;
|
|
@@ -386,12 +365,13 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
386
365
|
}[];
|
|
387
366
|
};
|
|
388
367
|
description?: string | undefined;
|
|
368
|
+
primaryKey?: string | string[] | undefined;
|
|
389
369
|
partitionBy?: string[] | undefined;
|
|
390
370
|
};
|
|
391
371
|
};
|
|
392
372
|
connector: {
|
|
393
|
-
type: string;
|
|
394
373
|
id: string;
|
|
374
|
+
type: string;
|
|
395
375
|
};
|
|
396
376
|
}>;
|
|
397
377
|
export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
@@ -400,9 +380,10 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
400
380
|
projectId: z.ZodString;
|
|
401
381
|
syncId: z.ZodString;
|
|
402
382
|
datasetId: z.ZodString;
|
|
403
|
-
mode: z.ZodEnum<["snapshot", "append"]>;
|
|
404
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
405
|
-
|
|
383
|
+
mode: z.ZodEnum<["snapshot", "append", "merge"]>;
|
|
384
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
385
|
+
queuedAt: z.ZodString;
|
|
386
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
406
387
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
407
388
|
rowsRead: z.ZodOptional<z.ZodNumber>;
|
|
408
389
|
output: z.ZodOptional<z.ZodObject<{
|
|
@@ -417,28 +398,17 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
417
398
|
}>>;
|
|
418
399
|
expectedLatestVersionId: z.ZodOptional<z.ZodString>;
|
|
419
400
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
420
|
-
error: z.ZodOptional<z.
|
|
421
|
-
name: z.ZodOptional<z.ZodString>;
|
|
422
|
-
message: z.ZodString;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
message: string;
|
|
425
|
-
name?: string | undefined;
|
|
426
|
-
}, {
|
|
427
|
-
message: string;
|
|
428
|
-
name?: string | undefined;
|
|
429
|
-
}>>;
|
|
401
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
430
402
|
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
432
403
|
projectId: string;
|
|
433
404
|
id: string;
|
|
434
|
-
|
|
435
|
-
|
|
405
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
406
|
+
mode: "append" | "snapshot" | "merge";
|
|
407
|
+
queuedAt: string;
|
|
436
408
|
datasetId: string;
|
|
437
409
|
syncId: string;
|
|
438
|
-
error?:
|
|
439
|
-
|
|
440
|
-
name?: string | undefined;
|
|
441
|
-
} | undefined;
|
|
410
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
411
|
+
startedAt?: string | undefined;
|
|
442
412
|
finishedAt?: string | undefined;
|
|
443
413
|
output?: {
|
|
444
414
|
datasetId: string;
|
|
@@ -448,17 +418,15 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
448
418
|
commitMessage?: string | undefined;
|
|
449
419
|
rowsRead?: number | undefined;
|
|
450
420
|
}, {
|
|
451
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
452
421
|
projectId: string;
|
|
453
422
|
id: string;
|
|
454
|
-
|
|
455
|
-
|
|
423
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
424
|
+
mode: "append" | "snapshot" | "merge";
|
|
425
|
+
queuedAt: string;
|
|
456
426
|
datasetId: string;
|
|
457
427
|
syncId: string;
|
|
458
|
-
error?:
|
|
459
|
-
|
|
460
|
-
name?: string | undefined;
|
|
461
|
-
} | undefined;
|
|
428
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
429
|
+
startedAt?: string | undefined;
|
|
462
430
|
finishedAt?: string | undefined;
|
|
463
431
|
output?: {
|
|
464
432
|
datasetId: string;
|
|
@@ -472,17 +440,15 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
472
440
|
total: z.ZodNumber;
|
|
473
441
|
}, "strip", z.ZodTypeAny, {
|
|
474
442
|
runs: {
|
|
475
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
476
443
|
projectId: string;
|
|
477
444
|
id: string;
|
|
478
|
-
|
|
479
|
-
|
|
445
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
446
|
+
mode: "append" | "snapshot" | "merge";
|
|
447
|
+
queuedAt: string;
|
|
480
448
|
datasetId: string;
|
|
481
449
|
syncId: string;
|
|
482
|
-
error?:
|
|
483
|
-
|
|
484
|
-
name?: string | undefined;
|
|
485
|
-
} | undefined;
|
|
450
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
451
|
+
startedAt?: string | undefined;
|
|
486
452
|
finishedAt?: string | undefined;
|
|
487
453
|
output?: {
|
|
488
454
|
datasetId: string;
|
|
@@ -496,17 +462,15 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
496
462
|
total: number;
|
|
497
463
|
}, {
|
|
498
464
|
runs: {
|
|
499
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
500
465
|
projectId: string;
|
|
501
466
|
id: string;
|
|
502
|
-
|
|
503
|
-
|
|
467
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
468
|
+
mode: "append" | "snapshot" | "merge";
|
|
469
|
+
queuedAt: string;
|
|
504
470
|
datasetId: string;
|
|
505
471
|
syncId: string;
|
|
506
|
-
error?:
|
|
507
|
-
|
|
508
|
-
name?: string | undefined;
|
|
509
|
-
} | undefined;
|
|
472
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
473
|
+
startedAt?: string | undefined;
|
|
510
474
|
finishedAt?: string | undefined;
|
|
511
475
|
output?: {
|
|
512
476
|
datasetId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/schemas/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/schemas/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,mBAAmB,sEAAoE,CAAA;AAGpG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAA;AAOF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAA"}
|