@sixb/server 0.1.20 → 0.1.22

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.
Files changed (179) hide show
  1. package/dist/artifacts/frame.d.ts +18 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +10 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/files/content.d.ts +2 -3
  13. package/dist/files/content.d.ts.map +1 -1
  14. package/dist/index.js +10636 -7071
  15. package/dist/index.js.map +56 -38
  16. package/dist/models/display.d.ts +27 -0
  17. package/dist/models/display.d.ts.map +1 -1
  18. package/dist/openapi/components.d.ts +14 -0
  19. package/dist/openapi/components.d.ts.map +1 -0
  20. package/dist/openapi/tags.d.ts +22 -2
  21. package/dist/openapi/tags.d.ts.map +1 -1
  22. package/dist/registerRoutes.d.ts +3 -0
  23. package/dist/registerRoutes.d.ts.map +1 -1
  24. package/dist/routes/actions.d.ts +5 -5
  25. package/dist/routes/activity.d.ts +35 -0
  26. package/dist/routes/activity.d.ts.map +1 -0
  27. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  28. package/dist/routes/agent-approval-gate.d.ts +27 -0
  29. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  30. package/dist/routes/agent-approvals.d.ts +599 -0
  31. package/dist/routes/agent-approvals.d.ts.map +1 -0
  32. package/dist/routes/agent-children.d.ts +318 -0
  33. package/dist/routes/agent-children.d.ts.map +1 -0
  34. package/dist/routes/agent-memory.d.ts +267 -0
  35. package/dist/routes/agent-memory.d.ts.map +1 -0
  36. package/dist/routes/agents.d.ts +1008 -98
  37. package/dist/routes/agents.d.ts.map +1 -1
  38. package/dist/routes/ai-accounting.d.ts.map +1 -1
  39. package/dist/routes/artifact-frames.d.ts +98 -0
  40. package/dist/routes/artifact-frames.d.ts.map +1 -0
  41. package/dist/routes/artifacts.d.ts +1508 -0
  42. package/dist/routes/artifacts.d.ts.map +1 -0
  43. package/dist/routes/auth.d.ts +117 -11
  44. package/dist/routes/auth.d.ts.map +1 -1
  45. package/dist/routes/connector-connection-runs.d.ts +84 -84
  46. package/dist/routes/connector-connections.d.ts +2 -2
  47. package/dist/routes/connectors.d.ts +2 -2
  48. package/dist/routes/datasets.d.ts +27 -27
  49. package/dist/routes/events.d.ts +5 -5
  50. package/dist/routes/files.d.ts +14 -14
  51. package/dist/routes/files.d.ts.map +1 -1
  52. package/dist/routes/links.d.ts +2 -2
  53. package/dist/routes/logs.d.ts +5 -5
  54. package/dist/routes/model-calls.d.ts +155 -0
  55. package/dist/routes/model-calls.d.ts.map +1 -0
  56. package/dist/routes/model-generations.d.ts +400 -0
  57. package/dist/routes/model-generations.d.ts.map +1 -0
  58. package/dist/routes/models.d.ts +434 -1
  59. package/dist/routes/models.d.ts.map +1 -1
  60. package/dist/routes/objects.d.ts +71 -40
  61. package/dist/routes/objects.d.ts.map +1 -1
  62. package/dist/routes/observed-agent-threads.d.ts +682 -0
  63. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  64. package/dist/routes/ontology.d.ts +66 -62
  65. package/dist/routes/ontology.d.ts.map +1 -1
  66. package/dist/routes/pipelines.d.ts +53 -53
  67. package/dist/routes/projections.d.ts +63 -63
  68. package/dist/routes/rules.d.ts +2 -2
  69. package/dist/routes/share-grants.d.ts +4 -4
  70. package/dist/routes/syncs.d.ts +18 -18
  71. package/dist/routes/users.d.ts +117 -0
  72. package/dist/routes/users.d.ts.map +1 -0
  73. package/dist/routes/webhook-runs.d.ts +1 -1
  74. package/dist/routes/workflows.d.ts +142 -76
  75. package/dist/routes/workflows.d.ts.map +1 -1
  76. package/dist/routes/ws/agents.d.ts +7 -2
  77. package/dist/routes/ws/agents.d.ts.map +1 -1
  78. package/dist/routes/ws/events.d.ts +6 -6
  79. package/dist/routes/ws/events.d.ts.map +1 -1
  80. package/dist/routes/ws/logs.d.ts +14 -14
  81. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  82. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  83. package/dist/schemas/actions.d.ts +15 -15
  84. package/dist/schemas/activity.d.ts +1298 -0
  85. package/dist/schemas/activity.d.ts.map +1 -0
  86. package/dist/schemas/agent-approvals.d.ts +1091 -0
  87. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  88. package/dist/schemas/agent-memory.d.ts +250 -0
  89. package/dist/schemas/agent-memory.d.ts.map +1 -0
  90. package/dist/schemas/agents.d.ts +5485 -460
  91. package/dist/schemas/agents.d.ts.map +1 -1
  92. package/dist/schemas/ai-accounting.d.ts +1315 -436
  93. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  94. package/dist/schemas/ai-limits.d.ts +36 -36
  95. package/dist/schemas/ai-usage.d.ts +12 -0
  96. package/dist/schemas/ai-usage.d.ts.map +1 -1
  97. package/dist/schemas/artifacts.d.ts +1857 -0
  98. package/dist/schemas/artifacts.d.ts.map +1 -0
  99. package/dist/schemas/auth.d.ts +125 -52
  100. package/dist/schemas/auth.d.ts.map +1 -1
  101. package/dist/schemas/connectors.d.ts +42 -42
  102. package/dist/schemas/datasets.d.ts +108 -108
  103. package/dist/schemas/event-payloads.d.ts +6 -6
  104. package/dist/schemas/events.d.ts +32 -32
  105. package/dist/schemas/events.d.ts.map +1 -1
  106. package/dist/schemas/files.d.ts +24 -24
  107. package/dist/schemas/links.d.ts +2 -2
  108. package/dist/schemas/logs.d.ts +32 -32
  109. package/dist/schemas/models.d.ts +8889 -10
  110. package/dist/schemas/models.d.ts.map +1 -1
  111. package/dist/schemas/objects.d.ts +48 -12
  112. package/dist/schemas/objects.d.ts.map +1 -1
  113. package/dist/schemas/ontology.d.ts +127 -104
  114. package/dist/schemas/ontology.d.ts.map +1 -1
  115. package/dist/schemas/pipelines.d.ts +166 -166
  116. package/dist/schemas/projections.d.ts +346 -346
  117. package/dist/schemas/rules.d.ts +4 -4
  118. package/dist/schemas/share-grants.d.ts +14 -14
  119. package/dist/schemas/syncs.d.ts +40 -40
  120. package/dist/schemas/users.d.ts +72 -0
  121. package/dist/schemas/users.d.ts.map +1 -0
  122. package/dist/schemas/webhook-runs.d.ts +6 -6
  123. package/dist/schemas/workflows.d.ts +769 -254
  124. package/dist/schemas/workflows.d.ts.map +1 -1
  125. package/dist/server.d.ts +1 -0
  126. package/dist/server.d.ts.map +1 -1
  127. package/dist/utils/http.d.ts.map +1 -1
  128. package/package.json +7 -7
  129. package/src/artifacts/frame.ts +51 -0
  130. package/src/auth/browser-origin.ts +20 -5
  131. package/src/auth/experience.ts +1 -1
  132. package/src/auth/guard.ts +2 -2
  133. package/src/auth/public-routes.ts +16 -0
  134. package/src/auth/responses.ts +7 -6
  135. package/src/auth/scope.ts +32 -3
  136. package/src/files/content.ts +9 -13
  137. package/src/models/display.ts +61 -16
  138. package/src/openapi/components.ts +54 -0
  139. package/src/openapi/tags.ts +20 -0
  140. package/src/registerRoutes.ts +23 -0
  141. package/src/routes/activity.ts +327 -0
  142. package/src/routes/agent-api-gateway.ts +115 -91
  143. package/src/routes/agent-approval-gate.ts +213 -0
  144. package/src/routes/agent-approvals.ts +299 -0
  145. package/src/routes/agent-children.ts +209 -0
  146. package/src/routes/agent-memory.ts +210 -0
  147. package/src/routes/agents.ts +364 -143
  148. package/src/routes/ai-accounting.ts +4 -0
  149. package/src/routes/artifact-frames.ts +144 -0
  150. package/src/routes/artifacts.ts +717 -0
  151. package/src/routes/auth.ts +306 -13
  152. package/src/routes/file-downloads.ts +1 -3
  153. package/src/routes/files.ts +6 -7
  154. package/src/routes/model-calls.ts +120 -0
  155. package/src/routes/model-generations.ts +245 -0
  156. package/src/routes/models.ts +116 -9
  157. package/src/routes/objects.ts +55 -61
  158. package/src/routes/observed-agent-threads.ts +253 -0
  159. package/src/routes/ontology.ts +1 -0
  160. package/src/routes/users.ts +73 -0
  161. package/src/routes/workflows.ts +6 -9
  162. package/src/routes/ws/agents.ts +10 -5
  163. package/src/routes/ws/events.ts +3 -2
  164. package/src/routes/ws/subscription-hub.ts +53 -20
  165. package/src/schemas/activity.ts +287 -0
  166. package/src/schemas/agent-approvals.ts +129 -0
  167. package/src/schemas/agent-memory.ts +96 -0
  168. package/src/schemas/agents.ts +240 -2
  169. package/src/schemas/ai-accounting.ts +40 -4
  170. package/src/schemas/ai-usage.ts +10 -0
  171. package/src/schemas/artifacts.ts +246 -0
  172. package/src/schemas/auth.ts +25 -0
  173. package/src/schemas/models.ts +197 -1
  174. package/src/schemas/objects.ts +181 -0
  175. package/src/schemas/ontology.ts +1 -0
  176. package/src/schemas/users.ts +24 -0
  177. package/src/schemas/workflows.ts +2 -0
  178. package/src/server.ts +34 -19
  179. package/src/utils/http.ts +2 -0
@@ -59,12 +59,12 @@ export declare const RuleSchema: z.ZodObject<{
59
59
  linkId: z.ZodString;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  type: "link.created" | "link.updated" | "link.deleted";
62
- sourceTypeId: string;
63
62
  linkId: string;
63
+ sourceTypeId: string;
64
64
  }, {
65
65
  type: "link.created" | "link.updated" | "link.deleted";
66
- sourceTypeId: string;
67
66
  linkId: string;
67
+ sourceTypeId: string;
68
68
  }>]>, "many">;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  id: string;
@@ -79,8 +79,8 @@ export declare const RuleSchema: z.ZodObject<{
79
79
  objectTypeId: string;
80
80
  } | {
81
81
  type: "link.created" | "link.updated" | "link.deleted";
82
- sourceTypeId: string;
83
82
  linkId: string;
83
+ sourceTypeId: string;
84
84
  })[];
85
85
  }, {
86
86
  id: string;
@@ -95,8 +95,8 @@ export declare const RuleSchema: z.ZodObject<{
95
95
  objectTypeId: string;
96
96
  } | {
97
97
  type: "link.created" | "link.updated" | "link.deleted";
98
- sourceTypeId: string;
99
98
  linkId: string;
99
+ sourceTypeId: string;
100
100
  })[];
101
101
  }>;
102
102
  export declare const RuleStateSchema: z.ZodObject<{
@@ -48,8 +48,8 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
48
48
  }>>;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  id: string;
51
- expiresAt: string;
52
51
  createdAt: string;
52
+ expiresAt: string;
53
53
  target: {
54
54
  objectTypeId: string;
55
55
  primaryId: string;
@@ -67,8 +67,8 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
67
67
  } | undefined;
68
68
  }, {
69
69
  id: string;
70
- expiresAt: string;
71
70
  createdAt: string;
71
+ expiresAt: string;
72
72
  target: {
73
73
  objectTypeId: string;
74
74
  primaryId: string;
@@ -156,8 +156,8 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
156
156
  }>>;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  id: string;
159
- expiresAt: string;
160
159
  createdAt: string;
160
+ expiresAt: string;
161
161
  target: {
162
162
  objectTypeId: string;
163
163
  primaryId: string;
@@ -175,8 +175,8 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
175
175
  } | undefined;
176
176
  }, {
177
177
  id: string;
178
- expiresAt: string;
179
178
  createdAt: string;
179
+ expiresAt: string;
180
180
  target: {
181
181
  objectTypeId: string;
182
182
  primaryId: string;
@@ -199,8 +199,8 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
199
199
  url: string;
200
200
  grant: {
201
201
  id: string;
202
- expiresAt: string;
203
202
  createdAt: string;
203
+ expiresAt: string;
204
204
  target: {
205
205
  objectTypeId: string;
206
206
  primaryId: string;
@@ -221,8 +221,8 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
221
221
  url: string;
222
222
  grant: {
223
223
  id: string;
224
- expiresAt: string;
225
224
  createdAt: string;
225
+ expiresAt: string;
226
226
  target: {
227
227
  objectTypeId: string;
228
228
  primaryId: string;
@@ -302,8 +302,8 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
302
302
  }>>;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  id: string;
305
- expiresAt: string;
306
305
  createdAt: string;
306
+ expiresAt: string;
307
307
  target: {
308
308
  objectTypeId: string;
309
309
  primaryId: string;
@@ -321,8 +321,8 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
321
321
  } | undefined;
322
322
  }, {
323
323
  id: string;
324
- expiresAt: string;
325
324
  createdAt: string;
325
+ expiresAt: string;
326
326
  target: {
327
327
  objectTypeId: string;
328
328
  primaryId: string;
@@ -346,8 +346,8 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
346
346
  total: number;
347
347
  grants: {
348
348
  id: string;
349
- expiresAt: string;
350
349
  createdAt: string;
350
+ expiresAt: string;
351
351
  target: {
352
352
  objectTypeId: string;
353
353
  primaryId: string;
@@ -369,8 +369,8 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
369
369
  total: number;
370
370
  grants: {
371
371
  id: string;
372
- expiresAt: string;
373
372
  createdAt: string;
373
+ expiresAt: string;
374
374
  target: {
375
375
  objectTypeId: string;
376
376
  primaryId: string;
@@ -435,8 +435,8 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
435
435
  }>>;
436
436
  }, "strip", z.ZodTypeAny, {
437
437
  id: string;
438
- expiresAt: string;
439
438
  createdAt: string;
439
+ expiresAt: string;
440
440
  target: {
441
441
  objectTypeId: string;
442
442
  primaryId: string;
@@ -454,8 +454,8 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
454
454
  } | undefined;
455
455
  }, {
456
456
  id: string;
457
- expiresAt: string;
458
457
  createdAt: string;
458
+ expiresAt: string;
459
459
  target: {
460
460
  objectTypeId: string;
461
461
  primaryId: string;
@@ -475,8 +475,8 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
475
475
  }, "strip", z.ZodTypeAny, {
476
476
  grant: {
477
477
  id: string;
478
- expiresAt: string;
479
478
  createdAt: string;
479
+ expiresAt: string;
480
480
  target: {
481
481
  objectTypeId: string;
482
482
  primaryId: string;
@@ -496,8 +496,8 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
496
496
  }, {
497
497
  grant: {
498
498
  id: string;
499
- expiresAt: string;
500
499
  createdAt: string;
500
+ expiresAt: string;
501
501
  target: {
502
502
  objectTypeId: string;
503
503
  primaryId: string;
@@ -18,7 +18,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
18
18
  offset: z.ZodOptional<z.ZodString>;
19
19
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
21
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
22
22
  startedAfter?: string | undefined;
23
23
  startedBefore?: string | undefined;
24
24
  limit?: string | undefined;
@@ -27,7 +27,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
27
27
  datasetId?: string | undefined;
28
28
  syncId?: string | undefined;
29
29
  }, {
30
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
30
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
31
31
  startedAfter?: string | undefined;
32
32
  startedBefore?: string | undefined;
33
33
  limit?: string | undefined;
@@ -71,13 +71,13 @@ export declare const SyncRunSchema: z.ZodObject<{
71
71
  commitMessage: z.ZodOptional<z.ZodString>;
72
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">>>;
73
73
  }, "strip", z.ZodTypeAny, {
74
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
74
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
75
75
  projectId: string;
76
76
  id: string;
77
77
  mode: "append" | "merge" | "snapshot";
78
+ queuedAt: string;
78
79
  datasetId: string;
79
80
  syncId: string;
80
- queuedAt: string;
81
81
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
82
82
  startedAt?: string | undefined;
83
83
  finishedAt?: string | undefined;
@@ -89,13 +89,13 @@ export declare const SyncRunSchema: z.ZodObject<{
89
89
  commitMessage?: string | undefined;
90
90
  rowsRead?: number | undefined;
91
91
  }, {
92
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
92
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
93
93
  projectId: string;
94
94
  id: string;
95
95
  mode: "append" | "merge" | "snapshot";
96
+ queuedAt: string;
96
97
  datasetId: string;
97
98
  syncId: string;
98
- queuedAt: string;
99
99
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
100
100
  startedAt?: string | undefined;
101
101
  finishedAt?: string | undefined;
@@ -134,24 +134,24 @@ export declare const SyncSchema: z.ZodObject<{
134
134
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
135
135
  nullable: z.ZodOptional<z.ZodBoolean>;
136
136
  }, "strip", z.ZodTypeAny, {
137
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
137
138
  name: string;
138
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
139
139
  nullable?: boolean | undefined;
140
140
  }, {
141
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
141
142
  name: string;
142
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
143
143
  nullable?: boolean | undefined;
144
144
  }>, "many">;
145
145
  }, "strip", z.ZodTypeAny, {
146
146
  columns: {
147
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
147
148
  name: string;
148
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
149
149
  nullable?: boolean | undefined;
150
150
  }[];
151
151
  }, {
152
152
  columns: {
153
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
153
154
  name: string;
154
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
155
155
  nullable?: boolean | undefined;
156
156
  }[];
157
157
  }>;
@@ -159,8 +159,8 @@ export declare const SyncSchema: z.ZodObject<{
159
159
  id: string;
160
160
  schema: {
161
161
  columns: {
162
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
162
163
  name: string;
163
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
164
164
  nullable?: boolean | undefined;
165
165
  }[];
166
166
  };
@@ -172,8 +172,8 @@ export declare const SyncSchema: z.ZodObject<{
172
172
  id: string;
173
173
  schema: {
174
174
  columns: {
175
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
175
176
  name: string;
176
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
177
177
  nullable?: boolean | undefined;
178
178
  }[];
179
179
  };
@@ -188,8 +188,8 @@ export declare const SyncSchema: z.ZodObject<{
188
188
  id: string;
189
189
  schema: {
190
190
  columns: {
191
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
191
192
  name: string;
192
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
193
193
  nullable?: boolean | undefined;
194
194
  }[];
195
195
  };
@@ -204,8 +204,8 @@ export declare const SyncSchema: z.ZodObject<{
204
204
  id: string;
205
205
  schema: {
206
206
  columns: {
207
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
207
208
  name: string;
208
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
209
209
  nullable?: boolean | undefined;
210
210
  }[];
211
211
  };
@@ -250,13 +250,13 @@ export declare const SyncSchema: z.ZodObject<{
250
250
  commitMessage: z.ZodOptional<z.ZodString>;
251
251
  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">>>;
252
252
  }, "strip", z.ZodTypeAny, {
253
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
253
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
254
254
  projectId: string;
255
255
  id: string;
256
256
  mode: "append" | "merge" | "snapshot";
257
+ queuedAt: string;
257
258
  datasetId: string;
258
259
  syncId: string;
259
- queuedAt: string;
260
260
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
261
261
  startedAt?: string | undefined;
262
262
  finishedAt?: string | undefined;
@@ -268,13 +268,13 @@ export declare const SyncSchema: z.ZodObject<{
268
268
  commitMessage?: string | undefined;
269
269
  rowsRead?: number | undefined;
270
270
  }, {
271
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
271
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
272
272
  projectId: string;
273
273
  id: string;
274
274
  mode: "append" | "merge" | "snapshot";
275
+ queuedAt: string;
275
276
  datasetId: string;
276
277
  syncId: string;
277
- queuedAt: string;
278
278
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
279
279
  startedAt?: string | undefined;
280
280
  finishedAt?: string | undefined;
@@ -288,6 +288,10 @@ export declare const SyncSchema: z.ZodObject<{
288
288
  }>>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  id: string;
291
+ connector: {
292
+ id: string;
293
+ type: string;
294
+ };
291
295
  mode: "append" | "merge" | "snapshot";
292
296
  target: {
293
297
  kind: "dataset";
@@ -295,8 +299,8 @@ export declare const SyncSchema: z.ZodObject<{
295
299
  id: string;
296
300
  schema: {
297
301
  columns: {
302
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
298
303
  name: string;
299
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
300
304
  nullable?: boolean | undefined;
301
305
  }[];
302
306
  };
@@ -311,13 +315,13 @@ export declare const SyncSchema: z.ZodObject<{
311
315
  scheduleId: string;
312
316
  }[];
313
317
  latestRun: {
314
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
318
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
315
319
  projectId: string;
316
320
  id: string;
317
321
  mode: "append" | "merge" | "snapshot";
322
+ queuedAt: string;
318
323
  datasetId: string;
319
324
  syncId: string;
320
- queuedAt: string;
321
325
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
322
326
  startedAt?: string | undefined;
323
327
  finishedAt?: string | undefined;
@@ -329,12 +333,12 @@ export declare const SyncSchema: z.ZodObject<{
329
333
  commitMessage?: string | undefined;
330
334
  rowsRead?: number | undefined;
331
335
  } | null;
336
+ }, {
337
+ id: string;
332
338
  connector: {
333
339
  id: string;
334
340
  type: string;
335
341
  };
336
- }, {
337
- id: string;
338
342
  mode: "append" | "merge" | "snapshot";
339
343
  target: {
340
344
  kind: "dataset";
@@ -342,8 +346,8 @@ export declare const SyncSchema: z.ZodObject<{
342
346
  id: string;
343
347
  schema: {
344
348
  columns: {
349
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
345
350
  name: string;
346
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
347
351
  nullable?: boolean | undefined;
348
352
  }[];
349
353
  };
@@ -358,13 +362,13 @@ export declare const SyncSchema: z.ZodObject<{
358
362
  scheduleId: string;
359
363
  }[];
360
364
  latestRun: {
361
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
365
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
362
366
  projectId: string;
363
367
  id: string;
364
368
  mode: "append" | "merge" | "snapshot";
369
+ queuedAt: string;
365
370
  datasetId: string;
366
371
  syncId: string;
367
- queuedAt: string;
368
372
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
369
373
  startedAt?: string | undefined;
370
374
  finishedAt?: string | undefined;
@@ -376,10 +380,6 @@ export declare const SyncSchema: z.ZodObject<{
376
380
  commitMessage?: string | undefined;
377
381
  rowsRead?: number | undefined;
378
382
  } | null;
379
- connector: {
380
- id: string;
381
- type: string;
382
- };
383
383
  }>;
384
384
  export declare const SyncRunListResponseSchema: z.ZodObject<{
385
385
  runs: z.ZodArray<z.ZodObject<{
@@ -407,13 +407,13 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
407
407
  commitMessage: z.ZodOptional<z.ZodString>;
408
408
  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">>>;
409
409
  }, "strip", z.ZodTypeAny, {
410
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
410
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
411
411
  projectId: string;
412
412
  id: string;
413
413
  mode: "append" | "merge" | "snapshot";
414
+ queuedAt: string;
414
415
  datasetId: string;
415
416
  syncId: string;
416
- queuedAt: string;
417
417
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
418
418
  startedAt?: string | undefined;
419
419
  finishedAt?: string | undefined;
@@ -425,13 +425,13 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
425
425
  commitMessage?: string | undefined;
426
426
  rowsRead?: number | undefined;
427
427
  }, {
428
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
428
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
429
429
  projectId: string;
430
430
  id: string;
431
431
  mode: "append" | "merge" | "snapshot";
432
+ queuedAt: string;
432
433
  datasetId: string;
433
434
  syncId: string;
434
- queuedAt: string;
435
435
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
436
436
  startedAt?: string | undefined;
437
437
  finishedAt?: string | undefined;
@@ -447,13 +447,13 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
447
447
  total: z.ZodNumber;
448
448
  }, "strip", z.ZodTypeAny, {
449
449
  runs: {
450
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
450
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
451
451
  projectId: string;
452
452
  id: string;
453
453
  mode: "append" | "merge" | "snapshot";
454
+ queuedAt: string;
454
455
  datasetId: string;
455
456
  syncId: string;
456
- queuedAt: string;
457
457
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
458
458
  startedAt?: string | undefined;
459
459
  finishedAt?: string | undefined;
@@ -469,13 +469,13 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
469
469
  total: number;
470
470
  }, {
471
471
  runs: {
472
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
472
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
473
473
  projectId: string;
474
474
  id: string;
475
475
  mode: "append" | "merge" | "snapshot";
476
+ queuedAt: string;
476
477
  datasetId: string;
477
478
  syncId: string;
478
- queuedAt: string;
479
479
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
480
480
  startedAt?: string | undefined;
481
481
  finishedAt?: string | undefined;
@@ -497,13 +497,13 @@ export declare const RequestSyncRunResponseSchema: z.ZodObject<{
497
497
  queuedAt: z.ZodString;
498
498
  }, "strip", z.ZodTypeAny, {
499
499
  runId: string;
500
+ queuedAt: string;
500
501
  jobId: string;
501
502
  syncId: string;
502
- queuedAt: string;
503
503
  }, {
504
504
  runId: string;
505
+ queuedAt: string;
505
506
  jobId: string;
506
507
  syncId: string;
507
- queuedAt: string;
508
508
  }>;
509
509
  //# sourceMappingURL=syncs.d.ts.map
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ export declare const MAX_USERS_PAGE_LIMIT = 200;
3
+ export declare const MAX_USERS_SEARCH_LENGTH = 200;
4
+ export declare const ListUsersQuerySchema: z.ZodObject<{
5
+ /** Which members to list. Defaults to `active`. */
6
+ status: z.ZodOptional<z.ZodEnum<["active", "suspended", "all"]>>;
7
+ /** Part of a display name or email, matched ignoring case. */
8
+ search: z.ZodOptional<z.ZodString>;
9
+ limit: z.ZodOptional<z.ZodNumber>;
10
+ offset: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status?: "active" | "all" | "suspended" | undefined;
13
+ search?: string | undefined;
14
+ limit?: number | undefined;
15
+ offset?: number | undefined;
16
+ }, {
17
+ status?: "active" | "all" | "suspended" | undefined;
18
+ search?: string | undefined;
19
+ limit?: number | undefined;
20
+ offset?: number | undefined;
21
+ }>;
22
+ export declare const ListUsersResponseSchema: z.ZodObject<{
23
+ users: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodString;
25
+ email: z.ZodString;
26
+ displayName: z.ZodOptional<z.ZodString>;
27
+ avatarUrl: z.ZodOptional<z.ZodString>;
28
+ status: z.ZodEnum<["active", "suspended"]>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ status: "active" | "suspended";
31
+ id: string;
32
+ email: string;
33
+ displayName?: string | undefined;
34
+ avatarUrl?: string | undefined;
35
+ }, {
36
+ status: "active" | "suspended";
37
+ id: string;
38
+ email: string;
39
+ displayName?: string | undefined;
40
+ avatarUrl?: string | undefined;
41
+ }>, "many">;
42
+ hasMore: z.ZodBoolean;
43
+ total: z.ZodNumber;
44
+ }, "strip", z.ZodTypeAny, {
45
+ users: {
46
+ status: "active" | "suspended";
47
+ id: string;
48
+ email: string;
49
+ displayName?: string | undefined;
50
+ avatarUrl?: string | undefined;
51
+ }[];
52
+ hasMore: boolean;
53
+ total: number;
54
+ }, {
55
+ users: {
56
+ status: "active" | "suspended";
57
+ id: string;
58
+ email: string;
59
+ displayName?: string | undefined;
60
+ avatarUrl?: string | undefined;
61
+ }[];
62
+ hasMore: boolean;
63
+ total: number;
64
+ }>;
65
+ export declare const UserParamsSchema: z.ZodObject<{
66
+ userId: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ userId: string;
69
+ }, {
70
+ userId: string;
71
+ }>;
72
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/schemas/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAE1C,eAAO,MAAM,oBAAoB;IAC/B,mDAAmD;;IAEnD,8DAA8D;;;;;;;;;;;;;;EAI9D,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA"}
@@ -53,8 +53,8 @@ export declare const WebhookRunSchema: z.ZodObject<{
53
53
  id: string;
54
54
  startedAt: string;
55
55
  method: string;
56
- route: string;
57
56
  executionId: string;
57
+ route: string;
58
58
  connectorId: string;
59
59
  webhookId: string;
60
60
  requestBodyBytes: number;
@@ -68,8 +68,8 @@ export declare const WebhookRunSchema: z.ZodObject<{
68
68
  id: string;
69
69
  startedAt: string;
70
70
  method: string;
71
- route: string;
72
71
  executionId: string;
72
+ route: string;
73
73
  connectorId: string;
74
74
  webhookId: string;
75
75
  requestBodyBytes: number;
@@ -100,8 +100,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
100
100
  id: string;
101
101
  startedAt: string;
102
102
  method: string;
103
- route: string;
104
103
  executionId: string;
104
+ route: string;
105
105
  connectorId: string;
106
106
  webhookId: string;
107
107
  requestBodyBytes: number;
@@ -115,8 +115,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
115
115
  id: string;
116
116
  startedAt: string;
117
117
  method: string;
118
- route: string;
119
118
  executionId: string;
119
+ route: string;
120
120
  connectorId: string;
121
121
  webhookId: string;
122
122
  requestBodyBytes: number;
@@ -134,8 +134,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
134
134
  id: string;
135
135
  startedAt: string;
136
136
  method: string;
137
- route: string;
138
137
  executionId: string;
138
+ route: string;
139
139
  connectorId: string;
140
140
  webhookId: string;
141
141
  requestBodyBytes: number;
@@ -153,8 +153,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
153
153
  id: string;
154
154
  startedAt: string;
155
155
  method: string;
156
- route: string;
157
156
  executionId: string;
157
+ route: string;
158
158
  connectorId: string;
159
159
  webhookId: string;
160
160
  requestBodyBytes: number;