@sylphx/contract 0.6.0 → 0.7.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.
- package/CHANGELOG.md +9 -1
- package/README.md +1 -1
- package/dist/compute.d.ts +33 -0
- package/dist/compute.d.ts.map +1 -0
- package/dist/compute.js +119 -0
- package/dist/endpoints/admin-config.d.ts +3 -0
- package/dist/endpoints/admin-config.d.ts.map +1 -1
- package/dist/endpoints/admin-config.js +9 -1
- package/dist/endpoints/ai-admin.d.ts +134 -5
- package/dist/endpoints/ai-admin.d.ts.map +1 -1
- package/dist/endpoints/analytics-admin.d.ts +141 -6
- package/dist/endpoints/analytics-admin.d.ts.map +1 -1
- package/dist/endpoints/analytics-admin.js +7 -7
- package/dist/endpoints/auth.d.ts +26 -8
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +5 -5
- package/dist/endpoints/domains.d.ts +7 -1
- package/dist/endpoints/domains.d.ts.map +1 -1
- package/dist/endpoints/email-admin.d.ts +1 -0
- package/dist/endpoints/email-admin.d.ts.map +1 -1
- package/dist/endpoints/flags-admin.d.ts +8 -0
- package/dist/endpoints/flags-admin.d.ts.map +1 -1
- package/dist/endpoints/notifications-admin.d.ts +4 -4
- package/dist/endpoints/project-manifest.d.ts +308 -306
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/hono-app.d.ts +1 -1
- package/dist/index.d.ts +634 -330
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/schemas/admin-config.d.ts +4 -0
- package/dist/schemas/admin-config.d.ts.map +1 -1
- package/dist/schemas/admin-config.js +3 -0
- package/dist/schemas/ai-admin.d.ts +137 -8
- package/dist/schemas/ai-admin.d.ts.map +1 -1
- package/dist/schemas/ai-admin.js +119 -13
- package/dist/schemas/analytics-admin.d.ts +164 -7
- package/dist/schemas/analytics-admin.d.ts.map +1 -1
- package/dist/schemas/analytics-admin.js +104 -3
- package/dist/schemas/auth.d.ts +2 -1
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +2 -1
- package/dist/schemas/domain.d.ts +3 -1
- package/dist/schemas/domain.d.ts.map +1 -1
- package/dist/schemas/domain.js +2 -1
- package/dist/schemas/email-admin.d.ts +1 -0
- package/dist/schemas/email-admin.d.ts.map +1 -1
- package/dist/schemas/email-admin.js +1 -0
- package/dist/schemas/flags-admin.d.ts +13 -0
- package/dist/schemas/flags-admin.d.ts.map +1 -1
- package/dist/schemas/flags-admin.js +6 -0
- package/dist/schemas/notifications-admin.d.ts +6 -6
- package/dist/schemas/notifications-admin.js +1 -1
- package/dist/schemas/project-manifest.d.ts +316 -306
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +5 -0
- 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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
73
|
+
response: AnalyticsFunnelResult,
|
|
74
74
|
plane: 'management',
|
|
75
75
|
summary: 'Get funnel analysis for a project',
|
|
76
76
|
tags: ['analytics-admin'],
|
package/dist/endpoints/auth.d.ts
CHANGED
|
@@ -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<
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
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"}
|
package/dist/endpoints/auth.js
CHANGED
|
@@ -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,
|
|
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:
|
|
18
|
-
response:
|
|
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:
|
|
27
|
-
response:
|
|
26
|
+
body: RegisterRequest,
|
|
27
|
+
response: RegisterResponse,
|
|
28
28
|
summary: 'Register a new user with email + password',
|
|
29
29
|
tags: ['auth'],
|
|
30
30
|
security: [],
|
|
@@ -16,6 +16,7 @@ export declare const domainsEndpoints: {
|
|
|
16
16
|
hostnames: Schema.Array$<Schema.Struct<{
|
|
17
17
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
18
18
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
19
|
+
serviceId: typeof Schema.String;
|
|
19
20
|
hostname: typeof Schema.String;
|
|
20
21
|
isPrimary: typeof Schema.Boolean;
|
|
21
22
|
redirectTo: Schema.NullOr<typeof Schema.String>;
|
|
@@ -66,6 +67,7 @@ export declare const domainsEndpoints: {
|
|
|
66
67
|
hostnames: Schema.Array$<Schema.Struct<{
|
|
67
68
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
68
69
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
70
|
+
serviceId: typeof Schema.String;
|
|
69
71
|
hostname: typeof Schema.String;
|
|
70
72
|
isPrimary: typeof Schema.Boolean;
|
|
71
73
|
redirectTo: Schema.NullOr<typeof Schema.String>;
|
|
@@ -116,6 +118,7 @@ export declare const domainsEndpoints: {
|
|
|
116
118
|
hostnames: Schema.Array$<Schema.Struct<{
|
|
117
119
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
118
120
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
121
|
+
serviceId: typeof Schema.String;
|
|
119
122
|
hostname: typeof Schema.String;
|
|
120
123
|
isPrimary: typeof Schema.Boolean;
|
|
121
124
|
redirectTo: Schema.NullOr<typeof Schema.String>;
|
|
@@ -169,12 +172,13 @@ export declare const domainsEndpoints: {
|
|
|
169
172
|
envType: Schema.optional<typeof Schema.String>;
|
|
170
173
|
}>, Schema.Struct<{
|
|
171
174
|
hostname: typeof Schema.String;
|
|
172
|
-
serviceId: Schema.
|
|
175
|
+
serviceId: Schema.filter<typeof Schema.String>;
|
|
173
176
|
isPrimary: Schema.optional<typeof Schema.Boolean>;
|
|
174
177
|
redirectTo: Schema.optional<typeof Schema.String>;
|
|
175
178
|
}>, Schema.Struct<{
|
|
176
179
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
177
180
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
181
|
+
serviceId: typeof Schema.String;
|
|
178
182
|
hostname: typeof Schema.String;
|
|
179
183
|
isPrimary: typeof Schema.Boolean;
|
|
180
184
|
redirectTo: Schema.NullOr<typeof Schema.String>;
|
|
@@ -201,6 +205,7 @@ export declare const domainsEndpoints: {
|
|
|
201
205
|
}>, Schema.Struct<{
|
|
202
206
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
203
207
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
208
|
+
serviceId: typeof Schema.String;
|
|
204
209
|
hostname: typeof Schema.String;
|
|
205
210
|
isPrimary: typeof Schema.Boolean;
|
|
206
211
|
redirectTo: Schema.NullOr<typeof Schema.String>;
|
|
@@ -230,6 +235,7 @@ export declare const domainsEndpoints: {
|
|
|
230
235
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
231
236
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "HostnameId">;
|
|
232
237
|
domainId: Schema.brand<Schema.filter<typeof Schema.String>, "DomainId">;
|
|
238
|
+
serviceId: typeof Schema.String;
|
|
233
239
|
hostname: typeof Schema.String;
|
|
234
240
|
isPrimary: typeof Schema.Boolean;
|
|
235
241
|
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
|
|
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"}
|
|
@@ -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
|
|
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
|
|
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"}
|
|
@@ -165,7 +165,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
165
165
|
}>, undefined>;
|
|
166
166
|
readonly sendInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
167
167
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
168
|
-
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "
|
|
168
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "normal", "high", "urgent"]>>;
|
|
169
169
|
title: typeof import("effect/Schema").String;
|
|
170
170
|
body: typeof import("effect/Schema").String;
|
|
171
171
|
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -186,7 +186,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
186
186
|
}>, undefined>;
|
|
187
187
|
readonly sendInAppBatch: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send-batch", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
188
188
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
189
|
-
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "
|
|
189
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "normal", "high", "urgent"]>>;
|
|
190
190
|
title: typeof import("effect/Schema").String;
|
|
191
191
|
body: typeof import("effect/Schema").String;
|
|
192
192
|
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -208,7 +208,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
208
208
|
readonly broadcastInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
209
209
|
projectId: typeof import("effect/Schema").String;
|
|
210
210
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
211
|
-
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "
|
|
211
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "normal", "high", "urgent"]>>;
|
|
212
212
|
title: typeof import("effect/Schema").String;
|
|
213
213
|
body: typeof import("effect/Schema").String;
|
|
214
214
|
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -233,7 +233,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
233
233
|
messages: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
234
234
|
id: typeof import("effect/Schema").String;
|
|
235
235
|
type: import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>;
|
|
236
|
-
priority: import("effect/Schema").Literal<["low", "
|
|
236
|
+
priority: import("effect/Schema").Literal<["low", "normal", "high", "urgent"]>;
|
|
237
237
|
title: typeof import("effect/Schema").String;
|
|
238
238
|
body: typeof import("effect/Schema").String;
|
|
239
239
|
icon: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|