@sylphx/contract 0.6.0 → 0.8.0

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 (57) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/README.md +1 -1
  3. package/dist/compute.d.ts +33 -0
  4. package/dist/compute.d.ts.map +1 -0
  5. package/dist/compute.js +119 -0
  6. package/dist/endpoints/admin-config.d.ts +3 -0
  7. package/dist/endpoints/admin-config.d.ts.map +1 -1
  8. package/dist/endpoints/admin-config.js +9 -1
  9. package/dist/endpoints/ai-admin.d.ts +134 -5
  10. package/dist/endpoints/ai-admin.d.ts.map +1 -1
  11. package/dist/endpoints/analytics-admin.d.ts +141 -6
  12. package/dist/endpoints/analytics-admin.d.ts.map +1 -1
  13. package/dist/endpoints/analytics-admin.js +7 -7
  14. package/dist/endpoints/auth.d.ts +26 -8
  15. package/dist/endpoints/auth.d.ts.map +1 -1
  16. package/dist/endpoints/auth.js +5 -5
  17. package/dist/endpoints/domains.d.ts +10 -1
  18. package/dist/endpoints/domains.d.ts.map +1 -1
  19. package/dist/endpoints/domains.js +6 -3
  20. package/dist/endpoints/email-admin.d.ts +1 -0
  21. package/dist/endpoints/email-admin.d.ts.map +1 -1
  22. package/dist/endpoints/flags-admin.d.ts +8 -0
  23. package/dist/endpoints/flags-admin.d.ts.map +1 -1
  24. package/dist/endpoints/notifications-admin.d.ts +4 -4
  25. package/dist/endpoints/project-manifest.d.ts +308 -306
  26. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  27. package/dist/hono-app.d.ts +1 -1
  28. package/dist/index.d.ts +637 -330
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +3 -0
  31. package/dist/schemas/admin-config.d.ts +4 -0
  32. package/dist/schemas/admin-config.d.ts.map +1 -1
  33. package/dist/schemas/admin-config.js +3 -0
  34. package/dist/schemas/ai-admin.d.ts +137 -8
  35. package/dist/schemas/ai-admin.d.ts.map +1 -1
  36. package/dist/schemas/ai-admin.js +119 -13
  37. package/dist/schemas/analytics-admin.d.ts +164 -7
  38. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  39. package/dist/schemas/analytics-admin.js +104 -3
  40. package/dist/schemas/auth.d.ts +2 -1
  41. package/dist/schemas/auth.d.ts.map +1 -1
  42. package/dist/schemas/auth.js +2 -1
  43. package/dist/schemas/domain.d.ts +4 -1
  44. package/dist/schemas/domain.d.ts.map +1 -1
  45. package/dist/schemas/domain.js +3 -1
  46. package/dist/schemas/email-admin.d.ts +1 -0
  47. package/dist/schemas/email-admin.d.ts.map +1 -1
  48. package/dist/schemas/email-admin.js +1 -0
  49. package/dist/schemas/flags-admin.d.ts +13 -0
  50. package/dist/schemas/flags-admin.d.ts.map +1 -1
  51. package/dist/schemas/flags-admin.js +6 -0
  52. package/dist/schemas/notifications-admin.d.ts +6 -6
  53. package/dist/schemas/notifications-admin.js +1 -1
  54. package/dist/schemas/project-manifest.d.ts +316 -306
  55. package/dist/schemas/project-manifest.d.ts.map +1 -1
  56. package/dist/schemas/project-manifest.js +5 -0
  57. package/package.json +5 -1
@@ -24,11 +24,43 @@ export declare const analyticsAdminEndpoints: {
24
24
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
25
25
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
26
26
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
28
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
29
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
28
30
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
29
32
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
33
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
30
34
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
35
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
36
+ app: import("effect/Schema").Struct<{
37
+ id: typeof import("effect/Schema").String;
38
+ name: typeof import("effect/Schema").String;
39
+ slug: typeof import("effect/Schema").String;
40
+ }>;
41
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
42
+ current: import("effect/Schema").Struct<{
43
+ events: typeof import("effect/Schema").Number;
44
+ users: typeof import("effect/Schema").Number;
45
+ pageviews: typeof import("effect/Schema").Number;
46
+ signups: typeof import("effect/Schema").Number;
47
+ }>;
48
+ growth: import("effect/Schema").Struct<{
49
+ events: typeof import("effect/Schema").Number;
50
+ users: typeof import("effect/Schema").Number;
51
+ }>;
52
+ topEvents: import("effect/Schema").Array$<import("effect/Schema").Struct<{
53
+ event: typeof import("effect/Schema").String;
54
+ count: typeof import("effect/Schema").Number;
55
+ }>>;
56
+ apiByService: import("effect/Schema").Array$<import("effect/Schema").Struct<{
57
+ service: typeof import("effect/Schema").String;
58
+ requests: typeof import("effect/Schema").Number;
59
+ successful: typeof import("effect/Schema").Number;
60
+ successRate: typeof import("effect/Schema").Number;
61
+ avgLatencyMs: typeof import("effect/Schema").Number;
62
+ }>>;
63
+ }>, undefined>;
32
64
  readonly getEvents: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/events", import("effect/Schema").Struct<{
33
65
  id: typeof import("effect/Schema").String;
34
66
  }>, import("effect/Schema").Struct<{
@@ -40,11 +72,26 @@ export declare const analyticsAdminEndpoints: {
40
72
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
41
73
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
42
74
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
75
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
76
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
43
77
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
44
78
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
79
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
45
80
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
81
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
46
82
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
47
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
83
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
84
+ events: import("effect/Schema").Array$<import("effect/Schema").Struct<{
85
+ id: typeof import("effect/Schema").String;
86
+ event: typeof import("effect/Schema").String;
87
+ type: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
88
+ properties: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
89
+ userId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
90
+ anonymousId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
91
+ timestamp: typeof import("effect/Schema").String;
92
+ }>>;
93
+ total: typeof import("effect/Schema").Number;
94
+ }>, undefined>;
48
95
  readonly getApiUsage: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/api-usage", import("effect/Schema").Struct<{
49
96
  id: typeof import("effect/Schema").String;
50
97
  }>, import("effect/Schema").Struct<{
@@ -56,11 +103,29 @@ export declare const analyticsAdminEndpoints: {
56
103
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
57
104
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
58
105
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
106
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
107
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
59
108
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
60
109
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
110
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
61
111
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
112
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
62
113
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
114
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
115
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
116
+ groupBy: import("effect/Schema").Literal<["service", "endpoint"]>;
117
+ data: import("effect/Schema").Array$<import("effect/Schema").Struct<{
118
+ service: typeof import("effect/Schema").String;
119
+ requests: typeof import("effect/Schema").Number;
120
+ successful: typeof import("effect/Schema").Number;
121
+ failed: typeof import("effect/Schema").Number;
122
+ successRate: typeof import("effect/Schema").Number;
123
+ latency: import("effect/Schema").Struct<{
124
+ avgMs: typeof import("effect/Schema").Number;
125
+ p95Ms: typeof import("effect/Schema").Number;
126
+ }>;
127
+ }>>;
128
+ }>, undefined>;
64
129
  readonly getApiUsageHistory: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/api-usage/history", import("effect/Schema").Struct<{
65
130
  id: typeof import("effect/Schema").String;
66
131
  }>, import("effect/Schema").Struct<{
@@ -72,11 +137,27 @@ export declare const analyticsAdminEndpoints: {
72
137
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
73
138
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
74
139
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
140
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
141
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
75
142
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
76
143
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
144
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
77
145
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
146
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
78
147
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
79
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
148
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
149
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
150
+ interval: import("effect/Schema").Literal<["hour", "day"]>;
151
+ service: typeof import("effect/Schema").String;
152
+ data: import("effect/Schema").Array$<import("effect/Schema").Struct<{
153
+ timestamp: typeof import("effect/Schema").String;
154
+ requests: typeof import("effect/Schema").Number;
155
+ successful: typeof import("effect/Schema").Number;
156
+ failed: typeof import("effect/Schema").Number;
157
+ successRate: typeof import("effect/Schema").Number;
158
+ avgLatencyMs: typeof import("effect/Schema").Number;
159
+ }>>;
160
+ }>, undefined>;
80
161
  readonly getApiErrors: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/api-errors", import("effect/Schema").Struct<{
81
162
  id: typeof import("effect/Schema").String;
82
163
  }>, import("effect/Schema").Struct<{
@@ -88,11 +169,25 @@ export declare const analyticsAdminEndpoints: {
88
169
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
89
170
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
90
171
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
172
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
91
174
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
92
175
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
93
177
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
178
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
94
179
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
95
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
180
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Array$<import("effect/Schema").Struct<{
181
+ id: typeof import("effect/Schema").String;
182
+ service: typeof import("effect/Schema").String;
183
+ endpoint: typeof import("effect/Schema").String;
184
+ error: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
185
+ statusCode: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
186
+ latencyMs: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
187
+ userAgent: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
188
+ timestamp: typeof import("effect/Schema").String;
189
+ metadata: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
190
+ }>>, undefined>;
96
191
  readonly getFunnel: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/funnel", import("effect/Schema").Struct<{
97
192
  id: typeof import("effect/Schema").String;
98
193
  }>, import("effect/Schema").Struct<{
@@ -104,11 +199,23 @@ export declare const analyticsAdminEndpoints: {
104
199
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
105
200
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
106
201
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
202
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
203
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
107
204
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
108
205
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
206
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
109
207
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
208
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
110
209
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
111
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
210
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
211
+ steps: import("effect/Schema").Array$<import("effect/Schema").Struct<{
212
+ count: typeof import("effect/Schema").Number;
213
+ conversionRate: typeof import("effect/Schema").Number;
214
+ overallRate: typeof import("effect/Schema").Number;
215
+ dropoff: typeof import("effect/Schema").Number;
216
+ }>>;
217
+ overallConversion: typeof import("effect/Schema").Number;
218
+ }>, undefined>;
112
219
  readonly exportJson: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/export/json", import("effect/Schema").Struct<{
113
220
  id: typeof import("effect/Schema").String;
114
221
  }>, import("effect/Schema").Struct<{
@@ -120,9 +227,13 @@ export declare const analyticsAdminEndpoints: {
120
227
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
121
228
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
122
229
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
230
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
231
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
123
232
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
124
233
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
234
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
125
235
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
236
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
126
237
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
127
238
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
128
239
  exportedAt: typeof import("effect/Schema").String;
@@ -152,9 +263,13 @@ export declare const analyticsAdminEndpoints: {
152
263
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
153
264
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
154
265
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
266
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
267
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
155
268
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
156
269
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
270
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
157
271
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
272
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
158
273
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
159
274
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
160
275
  csv: typeof import("effect/Schema").String;
@@ -172,9 +287,13 @@ export declare const analyticsAdminEndpoints: {
172
287
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
288
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
174
289
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
290
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
291
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
292
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
293
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
294
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
177
295
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
296
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
178
297
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
298
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
180
299
  readonly getVitalsStats: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:id/vitals-stats", import("effect/Schema").Struct<{
@@ -188,9 +307,13 @@ export declare const analyticsAdminEndpoints: {
188
307
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
189
308
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
190
309
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
310
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
311
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
191
312
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
192
313
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
314
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
193
315
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
316
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
194
317
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
318
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
196
319
  readonly listCohorts: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:projectId/cohorts", import("effect/Schema").Struct<{
@@ -204,9 +327,13 @@ export declare const analyticsAdminEndpoints: {
204
327
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
205
328
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
206
329
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
330
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
331
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
207
332
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
208
333
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
334
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
209
335
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
336
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
210
337
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
211
338
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
212
339
  cohorts: import("effect/Schema").Array$<import("effect/Schema").Struct<{
@@ -330,9 +457,13 @@ export declare const analyticsAdminEndpoints: {
330
457
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
331
458
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
332
459
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
460
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
461
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
333
462
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
334
463
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
464
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
335
465
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
466
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
336
467
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
337
468
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
338
469
  readonly getDestinationStats: import("../endpoint.js").Endpoint<"GET", "/analytics/projects/:projectId/destinations/stats", import("effect/Schema").Struct<{
@@ -346,9 +477,13 @@ export declare const analyticsAdminEndpoints: {
346
477
  offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
347
478
  interval: import("effect/Schema").optional<typeof import("effect/Schema").String>;
348
479
  event: import("effect/Schema").optional<typeof import("effect/Schema").String>;
480
+ events: import("effect/Schema").optional<typeof import("effect/Schema").String>;
481
+ groupBy: import("effect/Schema").optional<typeof import("effect/Schema").String>;
349
482
  page: import("effect/Schema").optional<typeof import("effect/Schema").String>;
350
483
  search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
484
+ service: import("effect/Schema").optional<typeof import("effect/Schema").String>;
351
485
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
486
+ userIds: import("effect/Schema").optional<typeof import("effect/Schema").String>;
352
487
  status: import("effect/Schema").optional<typeof import("effect/Schema").String>;
353
488
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
354
489
  readonly retryDestinationLog: import("../endpoint.js").Endpoint<"POST", "/analytics/projects/:projectId/destinations/logs/:logId/retry", import("effect/Schema").Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/analytics-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAON,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EAkBtB,MAAM,+BAA+B,CAAA;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwS1B,CAAA;AAKV,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,CAAA"}
1
+ {"version":3,"file":"analytics-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/analytics-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAON,mBAAmB,EAEnB,qBAAqB,EACrB,sBAAsB,EAuBtB,MAAM,+BAA+B,CAAA;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwS1B,CAAA;AAKV,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,CAAA"}
@@ -12,7 +12,7 @@
12
12
  * `StepConfig` precedent).
13
13
  */
14
14
  import { defineEndpoint } from '../endpoint.js';
15
- import { AddCohortMembersInput, AnalyticsCohortDetail, AnalyticsCohortIdParams, AnalyticsDashboardResult, AnalyticsDestinationIdParams, AnalyticsDestinationLogIdParams, AnalyticsEmptyQuery, AnalyticsGenericInput, AnalyticsGenericResult, AnalyticsProjectIdParams, AnalyticsProjectQuery, AnalyticsProjectRangeQuery, AnalyticsProjectSlugParams, AnalyticsRangeQuery, AnalyticsSuccessResult, BulkRetryAnalyticsLogsInput, CohortsListResult, CreateAnalyticsDestinationInput, CreateCohortInput, CreateCohortResult, ExportCsvResult, ExportJsonResult, RemoveCohortMembersInput, TestAnalyticsDestinationInput, UpdateAnalyticsDestinationInput, UpdateCohortInput, } from '../schemas/analytics-admin.js';
15
+ import { AddCohortMembersInput, AnalyticsCohortDetail, AnalyticsCohortIdParams, AnalyticsDashboardResult, AnalyticsDestinationIdParams, AnalyticsDestinationLogIdParams, AnalyticsEmptyQuery, AnalyticsFunnelResult, AnalyticsGenericInput, AnalyticsGenericResult, AnalyticsProjectIdParams, AnalyticsProjectQuery, AnalyticsProjectRangeQuery, AnalyticsProjectSlugParams, AnalyticsRangeQuery, AnalyticsStatsResult, AnalyticsSuccessResult, ApiErrorsResult, ApiUsageHistoryResult, ApiUsageResult, BulkRetryAnalyticsLogsInput, CohortsListResult, CreateAnalyticsDestinationInput, CreateCohortInput, CreateCohortResult, EventsListResult, ExportCsvResult, ExportJsonResult, RemoveCohortMembersInput, TestAnalyticsDestinationInput, UpdateAnalyticsDestinationInput, UpdateCohortInput, } from '../schemas/analytics-admin.js';
16
16
  export const analyticsAdminEndpoints = {
17
17
  // ── stats.ts ─────────────────────────────────────────────────────────
18
18
  getStats: defineEndpoint({
@@ -20,7 +20,7 @@ export const analyticsAdminEndpoints = {
20
20
  path: '/analytics/projects/:id/stats',
21
21
  params: AnalyticsProjectIdParams,
22
22
  query: AnalyticsRangeQuery,
23
- response: AnalyticsDashboardResult,
23
+ response: AnalyticsStatsResult,
24
24
  plane: 'management',
25
25
  summary: 'Get project analytics dashboard stats',
26
26
  tags: ['analytics-admin'],
@@ -30,7 +30,7 @@ export const analyticsAdminEndpoints = {
30
30
  path: '/analytics/projects/:id/events',
31
31
  params: AnalyticsProjectIdParams,
32
32
  query: AnalyticsRangeQuery,
33
- response: AnalyticsDashboardResult,
33
+ response: EventsListResult,
34
34
  plane: 'management',
35
35
  summary: 'Get project analytics events',
36
36
  tags: ['analytics-admin'],
@@ -40,7 +40,7 @@ export const analyticsAdminEndpoints = {
40
40
  path: '/analytics/projects/:id/api-usage',
41
41
  params: AnalyticsProjectIdParams,
42
42
  query: AnalyticsRangeQuery,
43
- response: AnalyticsDashboardResult,
43
+ response: ApiUsageResult,
44
44
  plane: 'management',
45
45
  summary: 'Get project API usage metrics',
46
46
  tags: ['analytics-admin'],
@@ -50,7 +50,7 @@ export const analyticsAdminEndpoints = {
50
50
  path: '/analytics/projects/:id/api-usage/history',
51
51
  params: AnalyticsProjectIdParams,
52
52
  query: AnalyticsRangeQuery,
53
- response: AnalyticsDashboardResult,
53
+ response: ApiUsageHistoryResult,
54
54
  plane: 'management',
55
55
  summary: 'Get API usage history time-series',
56
56
  tags: ['analytics-admin'],
@@ -60,7 +60,7 @@ export const analyticsAdminEndpoints = {
60
60
  path: '/analytics/projects/:id/api-errors',
61
61
  params: AnalyticsProjectIdParams,
62
62
  query: AnalyticsRangeQuery,
63
- response: AnalyticsDashboardResult,
63
+ response: ApiErrorsResult,
64
64
  plane: 'management',
65
65
  summary: 'Get recent API errors for a project',
66
66
  tags: ['analytics-admin'],
@@ -70,7 +70,7 @@ export const analyticsAdminEndpoints = {
70
70
  path: '/analytics/projects/:id/funnel',
71
71
  params: AnalyticsProjectIdParams,
72
72
  query: AnalyticsRangeQuery,
73
- response: AnalyticsDashboardResult,
73
+ response: AnalyticsFunnelResult,
74
74
  plane: 'management',
75
75
  summary: 'Get funnel analysis for a project',
76
76
  tags: ['analytics-admin'],
@@ -12,22 +12,40 @@ export declare const authEndpoints: {
12
12
  readonly signIn: import("../endpoint.js").Endpoint<"POST", "/auth/login", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
13
13
  email: typeof Schema.String;
14
14
  password: typeof Schema.String;
15
+ }>, Schema.Union<[Schema.Struct<{
16
+ requiresTwoFactor: Schema.Literal<[true]>;
17
+ userId: typeof Schema.String;
18
+ email: Schema.optional<typeof Schema.String>;
15
19
  }>, Schema.Struct<{
16
- requiresTwoFactor: Schema.optional<typeof Schema.Boolean>;
17
- userId: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UserId">>;
18
- accessToken: Schema.optional<typeof Schema.String>;
20
+ requiresTwoFactor: Schema.optional<Schema.Literal<[false]>>;
21
+ accessToken: typeof Schema.String;
19
22
  refreshToken: Schema.optional<typeof Schema.String>;
20
- tokenType: Schema.optional<typeof Schema.String>;
21
23
  expiresIn: Schema.optional<typeof Schema.Number>;
22
- }>, undefined>;
24
+ user: Schema.optional<Schema.Struct<{
25
+ id: typeof Schema.String;
26
+ email: typeof Schema.String;
27
+ name: Schema.NullOr<typeof Schema.String>;
28
+ image: Schema.optional<Schema.NullOr<typeof Schema.String>>;
29
+ emailVerified: Schema.optional<typeof Schema.Boolean>;
30
+ role: Schema.optional<typeof Schema.String>;
31
+ createdAt: Schema.optional<typeof Schema.String>;
32
+ }>>;
33
+ }>]>, undefined>;
23
34
  readonly signUp: import("../endpoint.js").Endpoint<"POST", "/auth/register", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
24
35
  email: typeof Schema.String;
25
36
  password: typeof Schema.String;
26
37
  name: Schema.optional<typeof Schema.String>;
38
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
39
+ invitationToken: Schema.optional<typeof Schema.String>;
40
+ captchaToken: Schema.optional<typeof Schema.String>;
27
41
  }>, Schema.Struct<{
28
- userId: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
29
- email: typeof Schema.String;
30
- emailVerified: typeof Schema.Boolean;
42
+ requiresVerification: Schema.optional<typeof Schema.Boolean>;
43
+ message: Schema.optional<typeof Schema.String>;
44
+ user: Schema.Struct<{
45
+ id: typeof Schema.String;
46
+ email: typeof Schema.String;
47
+ name: Schema.NullOr<typeof Schema.String>;
48
+ }>;
31
49
  }>, undefined>;
32
50
  readonly resendEmailVerification: import("../endpoint.js").Endpoint<"POST", "/auth/resend-verification", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
33
51
  email: Schema.filter<typeof Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsC/B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NhB,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsC/B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NhB,CAAA"}
@@ -9,13 +9,13 @@
9
9
  */
10
10
  import { Schema } from 'effect';
11
11
  import { defineEndpoint } from '../endpoint.js';
12
- import { AuthenticatedPrincipal, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitRequest, DeviceInitResponse, DevicePollResponse, OAuthIntrospectRequest, OAuthIntrospectResponse, OAuthRevokeRequest, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeResponse, PlatformSessionsListResponse, ResendEmailVerificationRequest, ResendEmailVerificationResponse, SessionResult, SignInInput, SignInResult, SignUpInput, SignUpResult, } from '../schemas/auth.js';
12
+ import { AuthenticatedPrincipal, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitRequest, DeviceInitResponse, DevicePollResponse, LoginRequest, LoginResponse, OAuthIntrospectRequest, OAuthIntrospectResponse, OAuthRevokeRequest, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeResponse, PlatformSessionsListResponse, RegisterRequest, RegisterResponse, ResendEmailVerificationRequest, ResendEmailVerificationResponse, SessionResult, } from '../schemas/auth.js';
13
13
  export const authEndpoints = {
14
14
  signIn: defineEndpoint({
15
15
  method: 'POST',
16
16
  path: '/auth/login',
17
- body: SignInInput,
18
- response: SignInResult,
17
+ body: LoginRequest,
18
+ response: LoginResponse,
19
19
  summary: 'Sign in with email + password (may return 2FA challenge)',
20
20
  tags: ['auth'],
21
21
  security: [],
@@ -23,8 +23,8 @@ export const authEndpoints = {
23
23
  signUp: defineEndpoint({
24
24
  method: 'POST',
25
25
  path: '/auth/register',
26
- body: SignUpInput,
27
- response: SignUpResult,
26
+ body: RegisterRequest,
27
+ response: RegisterResponse,
28
28
  summary: 'Register a new user with email + password',
29
29
  tags: ['auth'],
30
30
  security: [],
@@ -10,12 +10,14 @@ export declare const domainsEndpoints: {
10
10
  projectId: typeof Schema.String;
11
11
  }>, Schema.Struct<{
12
12
  envType: Schema.optional<typeof Schema.String>;
13
+ envId: Schema.optional<typeof Schema.String>;
13
14
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Array$<Schema.Struct<{
14
15
  id: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
15
16
  apexDomain: typeof Schema.String;
16
17
  hostnames: Schema.Array$<Schema.Struct<{
17
18
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
18
19
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
20
+ serviceId: typeof Schema.String;
19
21
  hostname: typeof Schema.String;
20
22
  isPrimary: typeof Schema.Boolean;
21
23
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -60,12 +62,14 @@ export declare const domainsEndpoints: {
60
62
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
61
63
  apexDomain: typeof Schema.String;
62
64
  envType: Schema.optional<typeof Schema.String>;
65
+ envId: Schema.optional<typeof Schema.String>;
63
66
  }>, Schema.Struct<{
64
67
  id: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
65
68
  apexDomain: typeof Schema.String;
66
69
  hostnames: Schema.Array$<Schema.Struct<{
67
70
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
68
71
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
72
+ serviceId: typeof Schema.String;
69
73
  hostname: typeof Schema.String;
70
74
  isPrimary: typeof Schema.Boolean;
71
75
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -116,6 +120,7 @@ export declare const domainsEndpoints: {
116
120
  hostnames: Schema.Array$<Schema.Struct<{
117
121
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
118
122
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
123
+ serviceId: typeof Schema.String;
119
124
  hostname: typeof Schema.String;
120
125
  isPrimary: typeof Schema.Boolean;
121
126
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -167,14 +172,16 @@ export declare const domainsEndpoints: {
167
172
  domainId: typeof Schema.String;
168
173
  }>, Schema.Struct<{
169
174
  envType: Schema.optional<typeof Schema.String>;
175
+ envId: Schema.optional<typeof Schema.String>;
170
176
  }>, Schema.Struct<{
171
177
  hostname: typeof Schema.String;
172
- serviceId: Schema.optional<typeof Schema.String>;
178
+ serviceId: Schema.filter<typeof Schema.String>;
173
179
  isPrimary: Schema.optional<typeof Schema.Boolean>;
174
180
  redirectTo: Schema.optional<typeof Schema.String>;
175
181
  }>, Schema.Struct<{
176
182
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
177
183
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
184
+ serviceId: typeof Schema.String;
178
185
  hostname: typeof Schema.String;
179
186
  isPrimary: typeof Schema.Boolean;
180
187
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -201,6 +208,7 @@ export declare const domainsEndpoints: {
201
208
  }>, Schema.Struct<{
202
209
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
203
210
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
211
+ serviceId: typeof Schema.String;
204
212
  hostname: typeof Schema.String;
205
213
  isPrimary: typeof Schema.Boolean;
206
214
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -230,6 +238,7 @@ export declare const domainsEndpoints: {
230
238
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
231
239
  id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
232
240
  domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
241
+ serviceId: typeof Schema.String;
233
242
  hostname: typeof Schema.String;
234
243
  isPrimary: typeof Schema.Boolean;
235
244
  redirectTo: Schema.NullOr<typeof Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../src/endpoints/domains.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuB/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyInB,CAAA"}
1
+ {"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../src/endpoints/domains.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0B/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyInB,CAAA"}
@@ -14,13 +14,16 @@ const HostnamePath = Schema.Struct({
14
14
  domainId: Schema.String,
15
15
  hostnameId: Schema.String,
16
16
  });
17
- const EnvTypeQuery = Schema.Struct({ envType: Schema.optional(Schema.String) });
17
+ const EnvTargetQuery = Schema.Struct({
18
+ envType: Schema.optional(Schema.String),
19
+ envId: Schema.optional(Schema.String),
20
+ });
18
21
  export const domainsEndpoints = {
19
22
  list: defineEndpoint({
20
23
  method: 'GET',
21
24
  path: '/projects/:projectId/domains',
22
25
  params: ProjectPath,
23
- query: EnvTypeQuery,
26
+ query: EnvTargetQuery,
24
27
  response: Schema.Array(Domain),
25
28
  summary: 'List apex domains registered on a project',
26
29
  tags: ['domains'],
@@ -57,7 +60,7 @@ export const domainsEndpoints = {
57
60
  path: '/projects/:projectId/domains/:domainId/hostnames',
58
61
  success: { status: 201 },
59
62
  params: DomainPath,
60
- query: EnvTypeQuery,
63
+ query: EnvTargetQuery,
61
64
  body: AddHostnameInput,
62
65
  response: DomainHostname,
63
66
  summary: 'Add a hostname under an apex domain',
@@ -326,6 +326,7 @@ export declare const emailAdminEndpoints: {
326
326
  id: typeof Schema.String;
327
327
  }>, Schema.Struct<{
328
328
  cursor: Schema.optional<typeof Schema.String>;
329
+ email: Schema.optional<typeof Schema.String>;
329
330
  limit: Schema.optional<typeof Schema.String>;
330
331
  reason: Schema.optional<Schema.Literal<["hard_bounce", "complaint", "manual"]>>;
331
332
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"email-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/email-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0C/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgPtB,CAAA"}
1
+ {"version":3,"file":"email-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/email-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0C/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgPtB,CAAA"}
@@ -100,6 +100,10 @@ export declare const flagsAdminEndpoints: {
100
100
  }>, import("effect/Schema").Struct<{
101
101
  success: typeof import("effect/Schema").Boolean;
102
102
  updated: typeof import("effect/Schema").Number;
103
+ errors: import("effect/Schema").optional<import("effect/Schema").Array$<import("effect/Schema").Struct<{
104
+ id: typeof import("effect/Schema").String;
105
+ error: typeof import("effect/Schema").String;
106
+ }>>>;
103
107
  }>, undefined>;
104
108
  readonly bulkDelete: import("../endpoint.js").Endpoint<"POST", "/flags/bulk-delete", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
105
109
  projectId: typeof import("effect/Schema").String;
@@ -107,6 +111,10 @@ export declare const flagsAdminEndpoints: {
107
111
  }>, import("effect/Schema").Struct<{
108
112
  success: typeof import("effect/Schema").Boolean;
109
113
  deleted: typeof import("effect/Schema").Number;
114
+ errors: import("effect/Schema").optional<import("effect/Schema").Array$<import("effect/Schema").Struct<{
115
+ id: typeof import("effect/Schema").String;
116
+ error: typeof import("effect/Schema").String;
117
+ }>>>;
110
118
  }>, undefined>;
111
119
  readonly getServiceData: import("../endpoint.js").Endpoint<"GET", "/flags/projects/:id", import("effect/Schema").Struct<{
112
120
  id: typeof import("effect/Schema").String;
@@ -1 +1 @@
1
- {"version":3,"file":"flags-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/flags-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EtB,CAAA"}
1
+ {"version":3,"file":"flags-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/flags-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EtB,CAAA"}