@sylphx/contract 0.5.1 → 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.
Files changed (168) hide show
  1. package/CHANGELOG.md +15 -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/endpoint.d.ts +3 -1
  7. package/dist/endpoint.d.ts.map +1 -1
  8. package/dist/endpoints/admin-audit.d.ts +2 -2
  9. package/dist/endpoints/admin-audit.js +2 -2
  10. package/dist/endpoints/admin-bootstrap.js +3 -3
  11. package/dist/endpoints/admin-branch-databases.d.ts +1 -1
  12. package/dist/endpoints/admin-branch-databases.js +2 -2
  13. package/dist/endpoints/admin-config.d.ts +3 -0
  14. package/dist/endpoints/admin-config.d.ts.map +1 -1
  15. package/dist/endpoints/admin-config.js +9 -1
  16. package/dist/endpoints/admin-envs-spec.d.ts +27 -0
  17. package/dist/endpoints/admin-envs-spec.d.ts.map +1 -0
  18. package/dist/endpoints/admin-envs-spec.js +25 -0
  19. package/dist/endpoints/admin-projects.d.ts +1 -1
  20. package/dist/endpoints/admin-rate-limits.d.ts +1 -1
  21. package/dist/endpoints/admin-rate-limits.js +3 -3
  22. package/dist/endpoints/admin-secrets.d.ts +3 -3
  23. package/dist/endpoints/admin-secrets.js +1 -1
  24. package/dist/endpoints/admin-services.d.ts +3 -3
  25. package/dist/endpoints/admin-services.d.ts.map +1 -1
  26. package/dist/endpoints/admin-services.js +4 -5
  27. package/dist/endpoints/ai-admin.d.ts +134 -5
  28. package/dist/endpoints/ai-admin.d.ts.map +1 -1
  29. package/dist/endpoints/analytics-admin.d.ts +141 -6
  30. package/dist/endpoints/analytics-admin.d.ts.map +1 -1
  31. package/dist/endpoints/analytics-admin.js +7 -7
  32. package/dist/endpoints/auth.d.ts +26 -8
  33. package/dist/endpoints/auth.d.ts.map +1 -1
  34. package/dist/endpoints/auth.js +5 -5
  35. package/dist/endpoints/branch-databases.d.ts +13 -7
  36. package/dist/endpoints/branch-databases.d.ts.map +1 -1
  37. package/dist/endpoints/branch-databases.js +3 -3
  38. package/dist/endpoints/databases.d.ts +100 -164
  39. package/dist/endpoints/databases.d.ts.map +1 -1
  40. package/dist/endpoints/databases.js +8 -35
  41. package/dist/endpoints/deployments.d.ts +1 -3
  42. package/dist/endpoints/deployments.d.ts.map +1 -1
  43. package/dist/endpoints/deployments.js +1 -1
  44. package/dist/endpoints/domains.d.ts +7 -1
  45. package/dist/endpoints/domains.d.ts.map +1 -1
  46. package/dist/endpoints/email-admin.d.ts +1 -0
  47. package/dist/endpoints/email-admin.d.ts.map +1 -1
  48. package/dist/endpoints/environments.d.ts +11 -42
  49. package/dist/endpoints/environments.d.ts.map +1 -1
  50. package/dist/endpoints/flags-admin.d.ts +8 -0
  51. package/dist/endpoints/flags-admin.d.ts.map +1 -1
  52. package/dist/endpoints/image-opt.d.ts +5 -13
  53. package/dist/endpoints/image-opt.d.ts.map +1 -1
  54. package/dist/endpoints/image-opt.js +6 -18
  55. package/dist/endpoints/kv-admin.d.ts +0 -1
  56. package/dist/endpoints/kv-admin.d.ts.map +1 -1
  57. package/dist/endpoints/notifications-admin.d.ts +4 -4
  58. package/dist/endpoints/organizations.d.ts +8 -6
  59. package/dist/endpoints/organizations.d.ts.map +1 -1
  60. package/dist/endpoints/project-manifest.d.ts +362 -354
  61. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  62. package/dist/endpoints/projects.d.ts +0 -8
  63. package/dist/endpoints/projects.d.ts.map +1 -1
  64. package/dist/endpoints/realtime-admin.d.ts +0 -1
  65. package/dist/endpoints/realtime-admin.d.ts.map +1 -1
  66. package/dist/endpoints/realtime-admin.js +1 -1
  67. package/dist/endpoints/regions.d.ts +2 -4
  68. package/dist/endpoints/regions.d.ts.map +1 -1
  69. package/dist/endpoints/regions.js +2 -2
  70. package/dist/endpoints/tasks.d.ts +2 -6
  71. package/dist/endpoints/tasks.d.ts.map +1 -1
  72. package/dist/hono-app.d.ts +3 -3
  73. package/dist/hono-app.js +2 -2
  74. package/dist/index.d.ts +852 -632
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +7 -0
  77. package/dist/schemas/_primitives.d.ts +14 -0
  78. package/dist/schemas/_primitives.d.ts.map +1 -1
  79. package/dist/schemas/_primitives.js +16 -0
  80. package/dist/schemas/admin-audit.d.ts +4 -4
  81. package/dist/schemas/admin-audit.js +3 -3
  82. package/dist/schemas/admin-bootstrap.d.ts +1 -1
  83. package/dist/schemas/admin-bootstrap.js +1 -1
  84. package/dist/schemas/admin-builds.d.ts +1 -1
  85. package/dist/schemas/admin-builds.js +1 -1
  86. package/dist/schemas/admin-config.d.ts +4 -0
  87. package/dist/schemas/admin-config.d.ts.map +1 -1
  88. package/dist/schemas/admin-config.js +3 -0
  89. package/dist/schemas/admin-envs-spec.d.ts +49 -0
  90. package/dist/schemas/admin-envs-spec.d.ts.map +1 -0
  91. package/dist/schemas/admin-envs-spec.js +58 -0
  92. package/dist/schemas/admin-projects.d.ts +2 -2
  93. package/dist/schemas/admin-projects.js +1 -1
  94. package/dist/schemas/admin-rate-limits.d.ts +2 -2
  95. package/dist/schemas/admin-rate-limits.js +2 -2
  96. package/dist/schemas/admin-secrets.d.ts +14 -14
  97. package/dist/schemas/admin-secrets.d.ts.map +1 -1
  98. package/dist/schemas/admin-secrets.js +10 -10
  99. package/dist/schemas/admin-services.d.ts +18 -22
  100. package/dist/schemas/admin-services.d.ts.map +1 -1
  101. package/dist/schemas/admin-services.js +15 -19
  102. package/dist/schemas/ai-admin.d.ts +137 -8
  103. package/dist/schemas/ai-admin.d.ts.map +1 -1
  104. package/dist/schemas/ai-admin.js +119 -13
  105. package/dist/schemas/analytics-admin.d.ts +164 -7
  106. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  107. package/dist/schemas/analytics-admin.js +104 -3
  108. package/dist/schemas/auth.d.ts +2 -1
  109. package/dist/schemas/auth.d.ts.map +1 -1
  110. package/dist/schemas/auth.js +2 -1
  111. package/dist/schemas/branch-database.d.ts +25 -18
  112. package/dist/schemas/branch-database.d.ts.map +1 -1
  113. package/dist/schemas/branch-database.js +15 -14
  114. package/dist/schemas/database.d.ts +13 -19
  115. package/dist/schemas/database.d.ts.map +1 -1
  116. package/dist/schemas/database.js +7 -19
  117. package/dist/schemas/deployment.d.ts +5 -7
  118. package/dist/schemas/deployment.d.ts.map +1 -1
  119. package/dist/schemas/deployment.js +6 -6
  120. package/dist/schemas/domain.d.ts +3 -1
  121. package/dist/schemas/domain.d.ts.map +1 -1
  122. package/dist/schemas/domain.js +2 -1
  123. package/dist/schemas/email-admin.d.ts +1 -0
  124. package/dist/schemas/email-admin.d.ts.map +1 -1
  125. package/dist/schemas/email-admin.js +1 -0
  126. package/dist/schemas/environment.d.ts +17 -31
  127. package/dist/schemas/environment.d.ts.map +1 -1
  128. package/dist/schemas/environment.js +11 -16
  129. package/dist/schemas/flags-admin.d.ts +13 -0
  130. package/dist/schemas/flags-admin.d.ts.map +1 -1
  131. package/dist/schemas/flags-admin.js +6 -0
  132. package/dist/schemas/ids.d.ts +4 -0
  133. package/dist/schemas/ids.d.ts.map +1 -1
  134. package/dist/schemas/ids.js +2 -0
  135. package/dist/schemas/image-opt.d.ts +10 -11
  136. package/dist/schemas/image-opt.d.ts.map +1 -1
  137. package/dist/schemas/image-opt.js +11 -12
  138. package/dist/schemas/kv-admin.d.ts +0 -1
  139. package/dist/schemas/kv-admin.d.ts.map +1 -1
  140. package/dist/schemas/kv-admin.js +0 -1
  141. package/dist/schemas/notifications-admin.d.ts +6 -6
  142. package/dist/schemas/notifications-admin.js +1 -1
  143. package/dist/schemas/organization.d.ts +8 -6
  144. package/dist/schemas/organization.d.ts.map +1 -1
  145. package/dist/schemas/organization.js +11 -6
  146. package/dist/schemas/project-manifest.d.ts +458 -455
  147. package/dist/schemas/project-manifest.d.ts.map +1 -1
  148. package/dist/schemas/project-manifest.js +66 -56
  149. package/dist/schemas/project.d.ts +0 -6
  150. package/dist/schemas/project.d.ts.map +1 -1
  151. package/dist/schemas/project.js +0 -2
  152. package/dist/schemas/realtime-admin.d.ts +0 -1
  153. package/dist/schemas/realtime-admin.d.ts.map +1 -1
  154. package/dist/schemas/realtime-admin.js +0 -1
  155. package/dist/schemas/realtime.d.ts +2 -2
  156. package/dist/schemas/realtime.js +2 -2
  157. package/dist/schemas/region.d.ts +3 -21
  158. package/dist/schemas/region.d.ts.map +1 -1
  159. package/dist/schemas/region.js +2 -11
  160. package/dist/schemas/resources.d.ts +213 -164
  161. package/dist/schemas/resources.d.ts.map +1 -1
  162. package/dist/schemas/resources.js +87 -105
  163. package/dist/schemas/storage.d.ts +1 -1
  164. package/dist/schemas/storage.js +1 -1
  165. package/dist/schemas/tasks.d.ts +3 -8
  166. package/dist/schemas/tasks.d.ts.map +1 -1
  167. package/dist/schemas/tasks.js +1 -4
  168. package/package.json +5 -1
@@ -9,22 +9,151 @@
9
9
  export declare const aiAdminEndpoints: {
10
10
  readonly getOverview: import("../endpoint.js").Endpoint<"GET", "/ai/overview", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
11
11
  period: import("effect/Schema").optional<import("effect/Schema").Literal<["day", "week", "month"]>>;
12
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
12
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
13
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
14
+ totals: import("effect/Schema").Struct<{
15
+ requests: typeof import("effect/Schema").Number;
16
+ tokens: typeof import("effect/Schema").Number;
17
+ cost: import("effect/Schema").Struct<{
18
+ microdollars: typeof import("effect/Schema").Number;
19
+ formatted: typeof import("effect/Schema").String;
20
+ }>;
21
+ avgLatencyMs: typeof import("effect/Schema").Number;
22
+ successRate: typeof import("effect/Schema").Number;
23
+ }>;
24
+ byProject: import("effect/Schema").Array$<import("effect/Schema").Struct<{
25
+ projectId: typeof import("effect/Schema").String;
26
+ projectName: typeof import("effect/Schema").String;
27
+ requests: typeof import("effect/Schema").Number;
28
+ inputTokens: typeof import("effect/Schema").Number;
29
+ outputTokens: typeof import("effect/Schema").Number;
30
+ cost: import("effect/Schema").Struct<{
31
+ microdollars: typeof import("effect/Schema").Number;
32
+ formatted: typeof import("effect/Schema").String;
33
+ }>;
34
+ successRate: typeof import("effect/Schema").Number;
35
+ }>>;
36
+ byModel: import("effect/Schema").Array$<import("effect/Schema").Struct<{
37
+ model: typeof import("effect/Schema").String;
38
+ requests: typeof import("effect/Schema").Number;
39
+ tokens: typeof import("effect/Schema").Number;
40
+ cost: import("effect/Schema").Struct<{
41
+ microdollars: typeof import("effect/Schema").Number;
42
+ formatted: typeof import("effect/Schema").String;
43
+ }>;
44
+ }>>;
45
+ byProvider: import("effect/Schema").Array$<import("effect/Schema").Struct<{
46
+ provider: typeof import("effect/Schema").String;
47
+ requests: typeof import("effect/Schema").Number;
48
+ tokens: typeof import("effect/Schema").Number;
49
+ cost: import("effect/Schema").Struct<{
50
+ microdollars: typeof import("effect/Schema").Number;
51
+ formatted: typeof import("effect/Schema").String;
52
+ }>;
53
+ }>>;
54
+ }>, undefined>;
13
55
  readonly getProjectUsage: import("../endpoint.js").Endpoint<"GET", "/ai/projects/:projectId/usage", import("effect/Schema").Struct<{
14
56
  projectId: typeof import("effect/Schema").String;
15
57
  }>, import("effect/Schema").Struct<{
16
58
  period: import("effect/Schema").optional<import("effect/Schema").Literal<["day", "week", "month"]>>;
17
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
59
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
60
+ app: import("effect/Schema").Struct<{
61
+ id: typeof import("effect/Schema").String;
62
+ name: typeof import("effect/Schema").String;
63
+ slug: typeof import("effect/Schema").String;
64
+ }>;
65
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
66
+ stats: import("effect/Schema").Struct<{
67
+ requests: typeof import("effect/Schema").Number;
68
+ inputTokens: typeof import("effect/Schema").Number;
69
+ outputTokens: typeof import("effect/Schema").Number;
70
+ cost: import("effect/Schema").Struct<{
71
+ microdollars: typeof import("effect/Schema").Number;
72
+ formatted: typeof import("effect/Schema").String;
73
+ }>;
74
+ latency: import("effect/Schema").Struct<{
75
+ avgMs: typeof import("effect/Schema").Number;
76
+ p95Ms: typeof import("effect/Schema").Number;
77
+ }>;
78
+ successRate: typeof import("effect/Schema").Number;
79
+ }>;
80
+ byModel: import("effect/Schema").Array$<import("effect/Schema").Struct<{
81
+ model: typeof import("effect/Schema").String;
82
+ requests: typeof import("effect/Schema").Number;
83
+ tokens: typeof import("effect/Schema").Number;
84
+ cost: import("effect/Schema").Struct<{
85
+ microdollars: typeof import("effect/Schema").Number;
86
+ formatted: typeof import("effect/Schema").String;
87
+ }>;
88
+ }>>;
89
+ byType: import("effect/Schema").Array$<import("effect/Schema").Struct<{
90
+ type: typeof import("effect/Schema").String;
91
+ requests: typeof import("effect/Schema").Number;
92
+ tokens: typeof import("effect/Schema").Number;
93
+ }>>;
94
+ recentErrors: import("effect/Schema").Array$<import("effect/Schema").Struct<{
95
+ id: typeof import("effect/Schema").String;
96
+ model: typeof import("effect/Schema").String;
97
+ type: typeof import("effect/Schema").String;
98
+ error: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
99
+ code: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
100
+ timestamp: typeof import("effect/Schema").String;
101
+ }>>;
102
+ }>, undefined>;
18
103
  readonly getCostTrends: import("../endpoint.js").Endpoint<"GET", "/ai/trends", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
19
104
  period: import("effect/Schema").optional<import("effect/Schema").Literal<["day", "week", "month"]>>;
20
105
  interval: import("effect/Schema").optional<import("effect/Schema").Literal<["hour", "day"]>>;
21
106
  projectId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
22
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
107
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
108
+ period: import("effect/Schema").Literal<["day", "week", "month"]>;
109
+ interval: import("effect/Schema").Literal<["hour", "day"]>;
110
+ data: import("effect/Schema").Array$<import("effect/Schema").Struct<{
111
+ timestamp: typeof import("effect/Schema").String;
112
+ requests: typeof import("effect/Schema").Number;
113
+ tokens: typeof import("effect/Schema").Number;
114
+ cost: import("effect/Schema").Struct<{
115
+ microdollars: typeof import("effect/Schema").Number;
116
+ formatted: typeof import("effect/Schema").String;
117
+ }>;
118
+ avgLatencyMs: typeof import("effect/Schema").Number;
119
+ }>>;
120
+ }>, undefined>;
23
121
  readonly getProjectConfig: import("../endpoint.js").Endpoint<"GET", "/ai/projects/:projectId/config", import("effect/Schema").Struct<{
24
122
  projectId: typeof import("effect/Schema").String;
25
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Unknown, undefined>;
123
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
124
+ app: import("effect/Schema").Struct<{
125
+ id: typeof import("effect/Schema").String;
126
+ name: typeof import("effect/Schema").String;
127
+ slug: typeof import("effect/Schema").String;
128
+ }>;
129
+ config: import("effect/Schema").Struct<{
130
+ defaultMaxTokens: typeof import("effect/Schema").Number;
131
+ defaultTemperature: typeof import("effect/Schema").Number;
132
+ enableCaching: typeof import("effect/Schema").Boolean;
133
+ allowedModels: import("effect/Schema").NullOr<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
134
+ blockedModels: import("effect/Schema").NullOr<import("effect/Schema").Array$<typeof import("effect/Schema").String>>;
135
+ }>;
136
+ rateLimits: import("effect/Schema").Array$<import("effect/Schema").Struct<{
137
+ id: typeof import("effect/Schema").String;
138
+ modelPattern: typeof import("effect/Schema").String;
139
+ requestsPerMinute: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
140
+ requestsPerDay: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
141
+ tokensPerMinute: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
142
+ tokensPerDay: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
143
+ costPerDayMicrodollars: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
144
+ isActive: typeof import("effect/Schema").Boolean;
145
+ }>>;
146
+ }>, undefined>;
26
147
  readonly updateProjectConfig: import("../endpoint.js").Endpoint<"PATCH", "/ai/projects/:projectId/config", import("effect/Schema").Struct<{
27
148
  projectId: typeof import("effect/Schema").String;
28
- }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>, typeof import("effect/Schema").Unknown, undefined>;
149
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
150
+ defaultMaxTokens: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
151
+ defaultTemperature: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
152
+ enableCaching: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
153
+ allowedModels: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Array$<typeof import("effect/Schema").String>>>;
154
+ blockedModels: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Array$<typeof import("effect/Schema").String>>>;
155
+ }>, import("effect/Schema").Struct<{
156
+ success: typeof import("effect/Schema").Boolean;
157
+ }>, undefined>;
29
158
  };
30
159
  //# sourceMappingURL=ai-admin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/ai-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;CAgDnB,CAAA"}
1
+ {"version":3,"file":"ai-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/ai-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDnB,CAAA"}
@@ -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: [],