@sylphx/contract 0.4.0 → 0.5.1

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 (240) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/endpoint.d.ts +45 -3
  3. package/dist/endpoint.d.ts.map +1 -1
  4. package/dist/endpoint.js +9 -0
  5. package/dist/endpoints/admin-ai-playground.d.ts +3 -3
  6. package/dist/endpoints/admin-anomalies.d.ts +7 -7
  7. package/dist/endpoints/admin-apm.d.ts +6 -6
  8. package/dist/endpoints/admin-audit.d.ts +94 -58
  9. package/dist/endpoints/admin-audit.d.ts.map +1 -1
  10. package/dist/endpoints/admin-audit.js +8 -1
  11. package/dist/endpoints/admin-billing.d.ts +35 -24
  12. package/dist/endpoints/admin-billing.d.ts.map +1 -1
  13. package/dist/endpoints/admin-billing.js +4 -3
  14. package/dist/endpoints/admin-bootstrap.d.ts +1 -1
  15. package/dist/endpoints/admin-branch-databases.d.ts +43 -0
  16. package/dist/endpoints/admin-branch-databases.d.ts.map +1 -0
  17. package/dist/endpoints/admin-branch-databases.js +41 -0
  18. package/dist/endpoints/admin-broadcasts.d.ts +10 -8
  19. package/dist/endpoints/admin-broadcasts.d.ts.map +1 -1
  20. package/dist/endpoints/admin-broadcasts.js +1 -0
  21. package/dist/endpoints/admin-builds.d.ts +1 -1
  22. package/dist/endpoints/admin-config.d.ts +11 -11
  23. package/dist/endpoints/admin-consent.d.ts +78 -41
  24. package/dist/endpoints/admin-consent.d.ts.map +1 -1
  25. package/dist/endpoints/admin-consent.js +9 -6
  26. package/dist/endpoints/admin-env-services.d.ts +1 -1
  27. package/dist/endpoints/admin-impersonation.d.ts +9 -9
  28. package/dist/endpoints/admin-invitations.d.ts +9 -5
  29. package/dist/endpoints/admin-invitations.d.ts.map +1 -1
  30. package/dist/endpoints/admin-invitations.js +2 -0
  31. package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
  32. package/dist/endpoints/admin-logs.d.ts +7 -7
  33. package/dist/endpoints/admin-plans.d.ts +6 -4
  34. package/dist/endpoints/admin-plans.d.ts.map +1 -1
  35. package/dist/endpoints/admin-plans.js +1 -0
  36. package/dist/endpoints/admin-project-users.d.ts +8 -8
  37. package/dist/endpoints/admin-projects.d.ts +11 -9
  38. package/dist/endpoints/admin-projects.d.ts.map +1 -1
  39. package/dist/endpoints/admin-projects.js +3 -2
  40. package/dist/endpoints/admin-quotas.d.ts +6 -6
  41. package/dist/endpoints/admin-rate-limits.d.ts +2 -2
  42. package/dist/endpoints/admin-reconcile.d.ts +1 -1
  43. package/dist/endpoints/admin-resources.d.ts +2 -2
  44. package/dist/endpoints/admin-secrets.d.ts +2 -2
  45. package/dist/endpoints/admin-services.d.ts +1 -1
  46. package/dist/endpoints/admin-tasks.d.ts +6 -6
  47. package/dist/endpoints/admin-tenants.d.ts +3 -1
  48. package/dist/endpoints/admin-tenants.d.ts.map +1 -1
  49. package/dist/endpoints/admin-tenants.js +1 -0
  50. package/dist/endpoints/admin-traces.d.ts +5 -5
  51. package/dist/endpoints/admin-users.d.ts +8 -8
  52. package/dist/endpoints/admin-webhook-signature-versions.d.ts +5 -3
  53. package/dist/endpoints/admin-webhook-signature-versions.d.ts.map +1 -1
  54. package/dist/endpoints/admin-webhook-signature-versions.js +1 -0
  55. package/dist/endpoints/ai-admin.d.ts +5 -5
  56. package/dist/endpoints/analytics-admin.d.ts +123 -38
  57. package/dist/endpoints/analytics-admin.d.ts.map +1 -1
  58. package/dist/endpoints/analytics-admin.js +17 -9
  59. package/dist/endpoints/analytics.d.ts +4 -4
  60. package/dist/endpoints/audit-chain.d.ts +1 -1
  61. package/dist/endpoints/audit.d.ts +1 -1
  62. package/dist/endpoints/auth-admin.d.ts +5 -5
  63. package/dist/endpoints/auth.d.ts +25 -22
  64. package/dist/endpoints/auth.d.ts.map +1 -1
  65. package/dist/endpoints/auth.js +2 -2
  66. package/dist/endpoints/backups.d.ts +4 -4
  67. package/dist/endpoints/billing-console.d.ts +16 -16
  68. package/dist/endpoints/billing-settings.d.ts +11 -11
  69. package/dist/endpoints/branch-databases.d.ts +8 -4
  70. package/dist/endpoints/branch-databases.d.ts.map +1 -1
  71. package/dist/endpoints/branch-databases.js +2 -0
  72. package/dist/endpoints/challenge.d.ts +5 -5
  73. package/dist/endpoints/ci-settings.d.ts +8 -8
  74. package/dist/endpoints/consent-admin.d.ts +9 -7
  75. package/dist/endpoints/consent-admin.d.ts.map +1 -1
  76. package/dist/endpoints/consent-admin.js +1 -0
  77. package/dist/endpoints/databases.d.ts +189 -323
  78. package/dist/endpoints/databases.d.ts.map +1 -1
  79. package/dist/endpoints/databases.js +42 -41
  80. package/dist/endpoints/deployments.d.ts +71 -18
  81. package/dist/endpoints/deployments.d.ts.map +1 -1
  82. package/dist/endpoints/deployments.js +9 -1
  83. package/dist/endpoints/domains.d.ts +33 -23
  84. package/dist/endpoints/domains.d.ts.map +1 -1
  85. package/dist/endpoints/domains.js +7 -4
  86. package/dist/endpoints/email-admin.d.ts +29 -23
  87. package/dist/endpoints/email-admin.d.ts.map +1 -1
  88. package/dist/endpoints/email-admin.js +3 -0
  89. package/dist/endpoints/email.d.ts +4 -4
  90. package/dist/endpoints/engagement-admin.d.ts +6 -6
  91. package/dist/endpoints/env-vars.d.ts +3 -3
  92. package/dist/endpoints/environments.d.ts +30 -27
  93. package/dist/endpoints/environments.d.ts.map +1 -1
  94. package/dist/endpoints/environments.js +3 -7
  95. package/dist/endpoints/experiments.d.ts +20 -18
  96. package/dist/endpoints/experiments.d.ts.map +1 -1
  97. package/dist/endpoints/experiments.js +1 -0
  98. package/dist/endpoints/flags-admin.d.ts +73 -9
  99. package/dist/endpoints/flags-admin.d.ts.map +1 -1
  100. package/dist/endpoints/flags-admin.js +1 -0
  101. package/dist/endpoints/flags.d.ts +1 -1
  102. package/dist/endpoints/github.d.ts +3 -3
  103. package/dist/endpoints/image-opt.d.ts +2 -2
  104. package/dist/endpoints/kv-admin.d.ts +7 -7
  105. package/dist/endpoints/kv-admin.js +1 -1
  106. package/dist/endpoints/kv.d.ts +27 -21
  107. package/dist/endpoints/kv.d.ts.map +1 -1
  108. package/dist/endpoints/kv.js +9 -9
  109. package/dist/endpoints/monitoring-admin.d.ts +10 -10
  110. package/dist/endpoints/monitoring.d.ts +2 -2
  111. package/dist/endpoints/newsletter.d.ts +30 -24
  112. package/dist/endpoints/newsletter.d.ts.map +1 -1
  113. package/dist/endpoints/newsletter.js +3 -0
  114. package/dist/endpoints/notifications-admin.d.ts +17 -17
  115. package/dist/endpoints/notifications.d.ts +23 -16
  116. package/dist/endpoints/notifications.d.ts.map +1 -1
  117. package/dist/endpoints/oidc.d.ts +6 -4
  118. package/dist/endpoints/oidc.d.ts.map +1 -1
  119. package/dist/endpoints/oidc.js +1 -0
  120. package/dist/endpoints/organizations.d.ts +56 -48
  121. package/dist/endpoints/organizations.d.ts.map +1 -1
  122. package/dist/endpoints/organizations.js +4 -0
  123. package/dist/endpoints/plans.d.ts +9 -7
  124. package/dist/endpoints/plans.d.ts.map +1 -1
  125. package/dist/endpoints/plans.js +1 -0
  126. package/dist/endpoints/privacy.d.ts +11 -9
  127. package/dist/endpoints/privacy.d.ts.map +1 -1
  128. package/dist/endpoints/privacy.js +1 -0
  129. package/dist/endpoints/project-manifest.d.ts +126 -44
  130. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  131. package/dist/endpoints/projects.d.ts +7 -5
  132. package/dist/endpoints/projects.d.ts.map +1 -1
  133. package/dist/endpoints/projects.js +2 -1
  134. package/dist/endpoints/rate-limits.d.ts +4 -4
  135. package/dist/endpoints/realtime-admin.d.ts +6 -4
  136. package/dist/endpoints/realtime-admin.d.ts.map +1 -1
  137. package/dist/endpoints/realtime-admin.js +1 -0
  138. package/dist/endpoints/realtime.d.ts +3 -3
  139. package/dist/endpoints/referrals-admin.d.ts +7 -5
  140. package/dist/endpoints/referrals-admin.d.ts.map +1 -1
  141. package/dist/endpoints/referrals-admin.js +1 -0
  142. package/dist/endpoints/refresh.d.ts +1 -1
  143. package/dist/endpoints/regions.d.ts +5 -22
  144. package/dist/endpoints/regions.d.ts.map +1 -1
  145. package/dist/endpoints/regions.js +5 -27
  146. package/dist/endpoints/runners.d.ts +4 -4
  147. package/dist/endpoints/saml.d.ts +13 -11
  148. package/dist/endpoints/saml.d.ts.map +1 -1
  149. package/dist/endpoints/saml.js +1 -0
  150. package/dist/endpoints/search.d.ts +3 -3
  151. package/dist/endpoints/secrets.d.ts +9 -7
  152. package/dist/endpoints/secrets.d.ts.map +1 -1
  153. package/dist/endpoints/secrets.js +1 -0
  154. package/dist/endpoints/security.d.ts +28 -28
  155. package/dist/endpoints/service-tokens.d.ts +20 -12
  156. package/dist/endpoints/service-tokens.d.ts.map +1 -1
  157. package/dist/endpoints/service-tokens.js +4 -0
  158. package/dist/endpoints/session-replay.d.ts +4 -4
  159. package/dist/endpoints/storage-admin.d.ts +14 -10
  160. package/dist/endpoints/storage-admin.d.ts.map +1 -1
  161. package/dist/endpoints/storage-admin.js +3 -1
  162. package/dist/endpoints/storage.d.ts +30 -12
  163. package/dist/endpoints/storage.d.ts.map +1 -1
  164. package/dist/endpoints/storage.js +11 -1
  165. package/dist/endpoints/tasks.d.ts +13 -9
  166. package/dist/endpoints/tasks.d.ts.map +1 -1
  167. package/dist/endpoints/tasks.js +2 -0
  168. package/dist/endpoints/users.d.ts +12 -12
  169. package/dist/endpoints/webhooks.d.ts +10 -10
  170. package/dist/hono-app.d.ts +55 -26
  171. package/dist/hono-app.d.ts.map +1 -1
  172. package/dist/index.d.ts +1644 -1101
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.js +6 -5
  175. package/dist/schemas/admin-audit.d.ts +50 -0
  176. package/dist/schemas/admin-audit.d.ts.map +1 -1
  177. package/dist/schemas/admin-audit.js +43 -0
  178. package/dist/schemas/admin-billing.d.ts +19 -5
  179. package/dist/schemas/admin-billing.d.ts.map +1 -1
  180. package/dist/schemas/admin-billing.js +16 -5
  181. package/dist/schemas/admin-branch-databases.d.ts +34 -0
  182. package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
  183. package/dist/schemas/admin-branch-databases.js +33 -0
  184. package/dist/schemas/admin-broadcasts.d.ts +6 -6
  185. package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
  186. package/dist/schemas/admin-broadcasts.js +1 -1
  187. package/dist/schemas/admin-consent.d.ts +90 -6
  188. package/dist/schemas/admin-consent.d.ts.map +1 -1
  189. package/dist/schemas/admin-consent.js +50 -3
  190. package/dist/schemas/analytics-admin.d.ts +99 -9
  191. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  192. package/dist/schemas/analytics-admin.js +70 -0
  193. package/dist/schemas/auth.d.ts +1 -0
  194. package/dist/schemas/auth.d.ts.map +1 -1
  195. package/dist/schemas/auth.js +1 -0
  196. package/dist/schemas/database.d.ts +3 -2
  197. package/dist/schemas/database.d.ts.map +1 -1
  198. package/dist/schemas/database.js +3 -2
  199. package/dist/schemas/deployment.d.ts +53 -0
  200. package/dist/schemas/deployment.d.ts.map +1 -1
  201. package/dist/schemas/deployment.js +53 -1
  202. package/dist/schemas/experiments.d.ts +13 -33
  203. package/dist/schemas/experiments.d.ts.map +1 -1
  204. package/dist/schemas/experiments.js +5 -4
  205. package/dist/schemas/flags-admin.d.ts +115 -19
  206. package/dist/schemas/flags-admin.d.ts.map +1 -1
  207. package/dist/schemas/flags-admin.js +28 -8
  208. package/dist/schemas/ids.d.ts +2 -0
  209. package/dist/schemas/ids.d.ts.map +1 -1
  210. package/dist/schemas/ids.js +1 -0
  211. package/dist/schemas/kv-admin.d.ts +1 -1
  212. package/dist/schemas/kv-admin.js +1 -1
  213. package/dist/schemas/kv.d.ts +12 -4
  214. package/dist/schemas/kv.d.ts.map +1 -1
  215. package/dist/schemas/kv.js +17 -5
  216. package/dist/schemas/notifications.d.ts +11 -0
  217. package/dist/schemas/notifications.d.ts.map +1 -1
  218. package/dist/schemas/notifications.js +11 -0
  219. package/dist/schemas/project-manifest.d.ts +239 -76
  220. package/dist/schemas/project-manifest.d.ts.map +1 -1
  221. package/dist/schemas/project-manifest.js +74 -23
  222. package/dist/schemas/project.d.ts +3 -3
  223. package/dist/schemas/project.d.ts.map +1 -1
  224. package/dist/schemas/project.js +2 -2
  225. package/dist/schemas/region.d.ts +4 -52
  226. package/dist/schemas/region.d.ts.map +1 -1
  227. package/dist/schemas/region.js +4 -46
  228. package/dist/schemas/resources.d.ts +59 -8
  229. package/dist/schemas/resources.d.ts.map +1 -1
  230. package/dist/schemas/resources.js +54 -3
  231. package/dist/schemas/storage.d.ts +29 -0
  232. package/dist/schemas/storage.d.ts.map +1 -1
  233. package/dist/schemas/storage.js +19 -0
  234. package/package.json +1 -1
  235. package/dist/endpoints/edge-deployments.d.ts +0 -92
  236. package/dist/endpoints/edge-deployments.d.ts.map +0 -1
  237. package/dist/endpoints/edge-deployments.js +0 -58
  238. package/dist/schemas/edge-deployments.d.ts +0 -140
  239. package/dist/schemas/edge-deployments.d.ts.map +0 -1
  240. package/dist/schemas/edge-deployments.js +0 -87
@@ -19,7 +19,7 @@ export declare const authEndpoints: {
19
19
  refreshToken: Schema.optional<typeof Schema.String>;
20
20
  tokenType: Schema.optional<typeof Schema.String>;
21
21
  expiresIn: Schema.optional<typeof Schema.Number>;
22
- }>>;
22
+ }>, undefined>;
23
23
  readonly signUp: import("../endpoint.js").Endpoint<"POST", "/auth/register", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
24
24
  email: typeof Schema.String;
25
25
  password: typeof Schema.String;
@@ -28,16 +28,16 @@ export declare const authEndpoints: {
28
28
  userId: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
29
29
  email: typeof Schema.String;
30
30
  emailVerified: typeof Schema.Boolean;
31
- }>>;
31
+ }>, undefined>;
32
32
  readonly resendEmailVerification: import("../endpoint.js").Endpoint<"POST", "/auth/resend-verification", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
33
33
  email: Schema.filter<typeof Schema.String>;
34
34
  }>, Schema.Struct<{
35
35
  success: Schema.Literal<[true]>;
36
36
  message: typeof Schema.String;
37
- }>>;
37
+ }>, undefined>;
38
38
  readonly signOut: import("../endpoint.js").Endpoint<"POST", "/auth/logout", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
39
39
  success: typeof Schema.Boolean;
40
- }>>;
40
+ }>, undefined>;
41
41
  readonly getSession: import("../endpoint.js").Endpoint<"GET", "/auth/me", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
42
42
  user: Schema.NullOr<Schema.Struct<{
43
43
  id: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
@@ -46,7 +46,7 @@ export declare const authEndpoints: {
46
46
  image: Schema.NullOr<typeof Schema.String>;
47
47
  emailVerified: typeof Schema.Boolean;
48
48
  }>>;
49
- }>>;
49
+ }>, undefined>;
50
50
  readonly getPrincipal: import("../endpoint.js").Endpoint<"GET", "/auth/principal", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Union<[Schema.Struct<{
51
51
  principalType: Schema.Literal<["user"]>;
52
52
  user: Schema.Struct<{
@@ -87,7 +87,7 @@ export declare const authEndpoints: {
87
87
  metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
88
88
  createdAt: Schema.optional<typeof Schema.String>;
89
89
  }>;
90
- }>]>>;
90
+ }>]>, undefined>;
91
91
  readonly deviceInit: import("../endpoint.js").Endpoint<"POST", "/auth/device", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
92
92
  client_id: typeof Schema.String;
93
93
  scope: Schema.optional<Schema.Array$<typeof Schema.String>>;
@@ -98,7 +98,7 @@ export declare const authEndpoints: {
98
98
  verification_uri_complete: typeof Schema.String;
99
99
  expires_in: typeof Schema.Number;
100
100
  interval: typeof Schema.Number;
101
- }>>;
101
+ }>, undefined>;
102
102
  readonly devicePoll: import("../endpoint.js").Endpoint<"GET", "/auth/device/poll", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
103
103
  device_code: typeof Schema.String;
104
104
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Union<[Schema.Struct<{
@@ -114,23 +114,26 @@ export declare const authEndpoints: {
114
114
  status: Schema.Literal<["denied"]>;
115
115
  }>, Schema.Struct<{
116
116
  status: Schema.Literal<["expired"]>;
117
- }>]>>;
117
+ }>]>, undefined>;
118
118
  readonly deviceApprove: import("../endpoint.js").Endpoint<"POST", "/auth/device/approve", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
119
119
  user_code: typeof Schema.String;
120
120
  }>, Schema.Struct<{
121
121
  success: Schema.Literal<[true]>;
122
- }>>;
122
+ }>, undefined>;
123
123
  readonly deviceDeny: import("../endpoint.js").Endpoint<"POST", "/auth/device/deny", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
124
124
  user_code: typeof Schema.String;
125
125
  }>, Schema.Struct<{
126
126
  success: Schema.Literal<[true]>;
127
- }>>;
127
+ }>, undefined>;
128
128
  readonly oauthRevoke: import("../endpoint.js").Endpoint<"POST", "/oauth/revoke", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
129
129
  token: typeof Schema.String;
130
130
  token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
131
131
  client_id: typeof Schema.String;
132
132
  client_secret: Schema.optional<typeof Schema.String>;
133
- }>, Schema.Struct<{}>>;
133
+ }>, Schema.Schema.AnyNoContext, {
134
+ status: 200;
135
+ body: "none";
136
+ }>;
134
137
  readonly oauthIntrospect: import("../endpoint.js").Endpoint<"POST", "/oauth/introspect", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
135
138
  token: typeof Schema.String;
136
139
  token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
@@ -149,7 +152,7 @@ export declare const authEndpoints: {
149
152
  aud: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
150
153
  iss: Schema.optional<typeof Schema.String>;
151
154
  jti: Schema.optional<typeof Schema.String>;
152
- }>>;
155
+ }>, undefined>;
153
156
  readonly platformSessionsList: import("../endpoint.js").Endpoint<"GET", "/auth/platform-sessions", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
154
157
  sessions: Schema.Array$<Schema.Struct<{
155
158
  id: typeof Schema.String;
@@ -160,45 +163,45 @@ export declare const authEndpoints: {
160
163
  lastActiveAt: Schema.NullOr<typeof Schema.String>;
161
164
  isCurrent: typeof Schema.Boolean;
162
165
  }>>;
163
- }>>;
166
+ }>, undefined>;
164
167
  readonly platformSessionsRevoke: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/revoke", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
165
168
  sessionId: typeof Schema.String;
166
169
  }>, Schema.Struct<{
167
170
  success: Schema.Literal<[true]>;
168
- }>>;
171
+ }>, undefined>;
169
172
  readonly platformSessionsRevokeOther: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/revoke-other", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
170
173
  revokedCount: typeof Schema.Number;
171
- }>>;
174
+ }>, undefined>;
172
175
  readonly platformSessionsRevokeAll: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/revoke-all", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
173
176
  success: Schema.Literal<[true]>;
174
177
  count: typeof Schema.Number;
175
- }>>;
178
+ }>, undefined>;
176
179
  readonly platformSessionsRename: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/rename", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
177
180
  sessionId: typeof Schema.String;
178
181
  name: typeof Schema.String;
179
182
  }>, Schema.Struct<{
180
183
  success: Schema.Literal<[true]>;
181
- }>>;
184
+ }>, undefined>;
182
185
  readonly platformPasswordStatus: import("../endpoint.js").Endpoint<"GET", "/auth/platform-password/status", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
183
186
  hasPassword: typeof Schema.Boolean;
184
- }>>;
187
+ }>, undefined>;
185
188
  readonly platformPasswordSet: import("../endpoint.js").Endpoint<"POST", "/auth/platform-password/set", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
186
189
  password: typeof Schema.String;
187
190
  }>, Schema.Struct<{
188
191
  success: Schema.Literal<[true]>;
189
- }>>;
192
+ }>, undefined>;
190
193
  readonly platformPasswordChange: import("../endpoint.js").Endpoint<"POST", "/auth/platform-password/change", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
191
194
  currentPassword: typeof Schema.String;
192
195
  newPassword: typeof Schema.String;
193
196
  }>, Schema.Struct<{
194
197
  success: Schema.Literal<[true]>;
195
- }>>;
196
- readonly platformUserExport: import("../endpoint.js").Endpoint<"GET", "/auth/platform-user/export", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
198
+ }>, undefined>;
199
+ readonly platformUserExport: import("../endpoint.js").Endpoint<"GET", "/auth/platform-user/export", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, undefined>;
197
200
  readonly platformUserDelete: import("../endpoint.js").Endpoint<"DELETE", "/auth/platform-user/account", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
198
201
  reason: Schema.optional<typeof Schema.String>;
199
202
  }>, Schema.Struct<{
200
203
  success: typeof Schema.Boolean;
201
204
  deletedData: Schema.Array$<typeof Schema.String>;
202
- }>>;
205
+ }>, undefined>;
203
206
  };
204
207
  //# sourceMappingURL=auth.d.ts.map
@@ -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;AAuC/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,7 +9,7 @@
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, OAuthRevokeResponse, 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, 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';
13
13
  export const authEndpoints = {
14
14
  signIn: defineEndpoint({
15
15
  method: 'POST',
@@ -101,8 +101,8 @@ export const authEndpoints = {
101
101
  oauthRevoke: defineEndpoint({
102
102
  method: 'POST',
103
103
  path: '/oauth/revoke',
104
+ success: { status: 200, body: 'none' },
104
105
  body: OAuthRevokeRequest,
105
- response: OAuthRevokeResponse,
106
106
  summary: 'Revoke an OAuth access or refresh token (RFC 7009)',
107
107
  tags: ['auth', 'oauth'],
108
108
  }),
@@ -19,7 +19,7 @@ export declare const backupsEndpoints: {
19
19
  status: import("effect/Schema").Literal<["completed", "in_progress", "failed"]>;
20
20
  }>>;
21
21
  total: typeof import("effect/Schema").Number;
22
- }>>;
22
+ }>, undefined>;
23
23
  readonly trigger: import("../endpoint.js").Endpoint<"POST", "/backups/trigger", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
24
24
  projectId: typeof import("effect/Schema").String;
25
25
  envId: typeof import("effect/Schema").String;
@@ -33,7 +33,7 @@ export declare const backupsEndpoints: {
33
33
  sizeBytes: typeof import("effect/Schema").Number;
34
34
  status: import("effect/Schema").Literal<["completed", "in_progress", "failed"]>;
35
35
  }>;
36
- }>>;
36
+ }>, undefined>;
37
37
  readonly restore: import("../endpoint.js").Endpoint<"POST", "/backups/:id/restore", import("effect/Schema").Struct<{
38
38
  id: typeof import("effect/Schema").String;
39
39
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -41,11 +41,11 @@ export declare const backupsEndpoints: {
41
41
  }>, import("effect/Schema").Struct<{
42
42
  success: typeof import("effect/Schema").Boolean;
43
43
  message: typeof import("effect/Schema").String;
44
- }>>;
44
+ }>, undefined>;
45
45
  readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/backups/:id", import("effect/Schema").Struct<{
46
46
  id: typeof import("effect/Schema").String;
47
47
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
48
48
  success: typeof import("effect/Schema").Boolean;
49
- }>>;
49
+ }>, undefined>;
50
50
  };
51
51
  //# sourceMappingURL=backups.d.ts.map
@@ -24,7 +24,7 @@ export declare const billingConsoleEndpoints: {
24
24
  priceAnnual: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
25
25
  priceLifetime: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
26
26
  }>>;
27
- }>>;
27
+ }>, undefined>;
28
28
  readonly getSubscription: import("../endpoint.js").Endpoint<"GET", "/billing/subscription", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
29
29
  projectId: typeof import("effect/Schema").String;
30
30
  userId: typeof import("effect/Schema").String;
@@ -39,7 +39,7 @@ export declare const billingConsoleEndpoints: {
39
39
  currentPeriodEnd: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
40
40
  cancelAtPeriodEnd: typeof import("effect/Schema").Boolean;
41
41
  trialEnd: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
42
- }>>>;
42
+ }>>, undefined>;
43
43
  readonly getMySubscription: import("../endpoint.js").Endpoint<"GET", "/billing/subscription/me", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
44
44
  projectId: typeof import("effect/Schema").String;
45
45
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -53,14 +53,14 @@ export declare const billingConsoleEndpoints: {
53
53
  currentPeriodEnd: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
54
54
  cancelAtPeriodEnd: typeof import("effect/Schema").Boolean;
55
55
  trialEnd: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
56
- }>>>;
56
+ }>>, undefined>;
57
57
  readonly cancelSubscription: import("../endpoint.js").Endpoint<"POST", "/billing/subscription/cancel", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
58
58
  projectId: typeof import("effect/Schema").String;
59
59
  userId: typeof import("effect/Schema").String;
60
60
  immediate: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
61
61
  }>, import("effect/Schema").Struct<{
62
62
  success: typeof import("effect/Schema").Boolean;
63
- }>>;
63
+ }>, undefined>;
64
64
  readonly updateSubscription: import("../endpoint.js").Endpoint<"POST", "/billing/subscription/update", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
65
65
  projectId: typeof import("effect/Schema").String;
66
66
  userId: typeof import("effect/Schema").String;
@@ -75,7 +75,7 @@ export declare const billingConsoleEndpoints: {
75
75
  interval: import("effect/Schema").Literal<["monthly", "annual", "lifetime"]>;
76
76
  currentPeriodEnd: typeof import("effect/Schema").String;
77
77
  }>;
78
- }>>;
78
+ }>, undefined>;
79
79
  readonly getProrationPreview: import("../endpoint.js").Endpoint<"POST", "/billing/subscription/proration-preview", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
80
80
  projectId: typeof import("effect/Schema").String;
81
81
  userId: typeof import("effect/Schema").String;
@@ -100,7 +100,7 @@ export declare const billingConsoleEndpoints: {
100
100
  description: typeof import("effect/Schema").String;
101
101
  }>;
102
102
  currentPeriodEnd: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
103
- }>>;
103
+ }>, undefined>;
104
104
  readonly createCheckout: import("../endpoint.js").Endpoint<"POST", "/billing/checkout", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
105
105
  projectId: typeof import("effect/Schema").String;
106
106
  userId: typeof import("effect/Schema").String;
@@ -112,14 +112,14 @@ export declare const billingConsoleEndpoints: {
112
112
  }>, import("effect/Schema").Struct<{
113
113
  checkoutUrl: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
114
114
  sessionId: typeof import("effect/Schema").String;
115
- }>>;
115
+ }>, undefined>;
116
116
  readonly createPortal: import("../endpoint.js").Endpoint<"POST", "/billing/portal", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
117
117
  projectId: typeof import("effect/Schema").String;
118
118
  userId: typeof import("effect/Schema").String;
119
119
  returnUrl: typeof import("effect/Schema").String;
120
120
  }>, import("effect/Schema").Struct<{
121
121
  portalUrl: typeof import("effect/Schema").String;
122
- }>>;
122
+ }>, undefined>;
123
123
  readonly getBalance: import("../endpoint.js").Endpoint<"GET", "/billing/balance", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
124
124
  projectId: typeof import("effect/Schema").String;
125
125
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -140,7 +140,7 @@ export declare const billingConsoleEndpoints: {
140
140
  spendingCapPercent: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
141
141
  gracePeriodEndsAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
142
142
  isAdminOrg: typeof import("effect/Schema").Boolean;
143
- }>>;
143
+ }>, undefined>;
144
144
  readonly getUsage: import("../endpoint.js").Endpoint<"GET", "/billing/usage", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
145
145
  projectId: typeof import("effect/Schema").String;
146
146
  month: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -166,14 +166,14 @@ export declare const billingConsoleEndpoints: {
166
166
  errorEventCount: typeof import("effect/Schema").Number;
167
167
  authMau: typeof import("effect/Schema").Number;
168
168
  }>>;
169
- }>>;
169
+ }>, undefined>;
170
170
  readonly getUsageSummary: import("../endpoint.js").Endpoint<"GET", "/billing/usage/summary", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
171
171
  projectId: typeof import("effect/Schema").String;
172
172
  month: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
173
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
174
174
  month: typeof import("effect/Schema").String;
175
175
  summary: typeof import("effect/Schema").Unknown;
176
- }>>;
176
+ }>, undefined>;
177
177
  readonly getTransactions: import("../endpoint.js").Endpoint<"GET", "/billing/transactions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
178
178
  projectId: typeof import("effect/Schema").String;
179
179
  limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -191,7 +191,7 @@ export declare const billingConsoleEndpoints: {
191
191
  total: typeof import("effect/Schema").Number;
192
192
  limit: typeof import("effect/Schema").Number;
193
193
  offset: typeof import("effect/Schema").Number;
194
- }>>;
194
+ }>, undefined>;
195
195
  readonly getInvoices: import("../endpoint.js").Endpoint<"GET", "/billing/invoices", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
196
196
  projectId: typeof import("effect/Schema").String;
197
197
  limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -207,7 +207,7 @@ export declare const billingConsoleEndpoints: {
207
207
  paidAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
208
208
  createdAt: typeof import("effect/Schema").String;
209
209
  }>>;
210
- }>>;
210
+ }>, undefined>;
211
211
  readonly getInvoiceDetail: import("../endpoint.js").Endpoint<"GET", "/billing/invoices/detail", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
212
212
  projectId: typeof import("effect/Schema").String;
213
213
  invoiceId: typeof import("effect/Schema").String;
@@ -271,7 +271,7 @@ export declare const billingConsoleEndpoints: {
271
271
  finalizedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
272
272
  paidAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
273
273
  createdAt: typeof import("effect/Schema").String;
274
- }>>;
274
+ }>, undefined>;
275
275
  readonly createCreditCheckout: import("../endpoint.js").Endpoint<"POST", "/billing/credits/checkout", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
276
276
  projectId: typeof import("effect/Schema").String;
277
277
  amountDollars: typeof import("effect/Schema").Number;
@@ -280,7 +280,7 @@ export declare const billingConsoleEndpoints: {
280
280
  }>, import("effect/Schema").Struct<{
281
281
  checkoutUrl: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
282
282
  sessionId: typeof import("effect/Schema").String;
283
- }>>;
283
+ }>, undefined>;
284
284
  readonly getCreditPackages: import("../endpoint.js").Endpoint<"GET", "/billing/credits/packages", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
285
285
  packages: import("effect/Schema").Array$<import("effect/Schema").Struct<{
286
286
  amountDollars: typeof import("effect/Schema").Number;
@@ -289,6 +289,6 @@ export declare const billingConsoleEndpoints: {
289
289
  }>>;
290
290
  customMin: typeof import("effect/Schema").Number;
291
291
  customMax: typeof import("effect/Schema").Number;
292
- }>>;
292
+ }>, undefined>;
293
293
  };
294
294
  //# sourceMappingURL=billing-console.d.ts.map
@@ -38,7 +38,7 @@ export declare const billingSettingsEndpoints: {
38
38
  spendingCapAction: import("effect/Schema").Literal<["alert", "suspend_service", "hard_block"]>;
39
39
  hasPaymentMethod: typeof import("effect/Schema").Boolean;
40
40
  defaultPaymentMethodId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
41
- }>>;
41
+ }>, undefined>;
42
42
  readonly updateBusinessInfo: import("../endpoint.js").Endpoint<"PATCH", "/billing-settings/billing/business-info", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
43
43
  businessName: import("effect/Schema").optional<import("effect/Schema").NullOr<typeof import("effect/Schema").String>>;
44
44
  billingCountry: import("effect/Schema").optional<import("effect/Schema").NullOr<typeof import("effect/Schema").String>>;
@@ -52,7 +52,7 @@ export declare const billingSettingsEndpoints: {
52
52
  }>>>;
53
53
  }>, import("effect/Schema").Struct<{
54
54
  success: typeof import("effect/Schema").Boolean;
55
- }>>;
55
+ }>, undefined>;
56
56
  readonly setTaxId: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/tax-id", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
57
57
  taxId: typeof import("effect/Schema").String;
58
58
  taxIdType: typeof import("effect/Schema").String;
@@ -60,10 +60,10 @@ export declare const billingSettingsEndpoints: {
60
60
  success: typeof import("effect/Schema").Boolean;
61
61
  verified: typeof import("effect/Schema").Boolean;
62
62
  message: typeof import("effect/Schema").String;
63
- }>>;
63
+ }>, undefined>;
64
64
  readonly removeTaxId: import("../endpoint.js").Endpoint<"DELETE", "/billing-settings/billing/tax-id", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
65
65
  success: typeof import("effect/Schema").Boolean;
66
- }>>;
66
+ }>, undefined>;
67
67
  readonly getPaymentMethods: import("../endpoint.js").Endpoint<"GET", "/billing-settings/billing/payment-methods", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
68
68
  paymentMethods: import("effect/Schema").Array$<import("effect/Schema").Struct<{
69
69
  id: typeof import("effect/Schema").String;
@@ -74,34 +74,34 @@ export declare const billingSettingsEndpoints: {
74
74
  expYear: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
75
75
  isDefault: typeof import("effect/Schema").Boolean;
76
76
  }>>;
77
- }>>;
77
+ }>, undefined>;
78
78
  readonly createSetupIntent: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/payment-methods/setup", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
79
79
  successUrl: typeof import("effect/Schema").String;
80
80
  cancelUrl: typeof import("effect/Schema").String;
81
81
  }>, import("effect/Schema").Struct<{
82
82
  clientSecret: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
83
- }>>;
83
+ }>, undefined>;
84
84
  readonly setDefaultPaymentMethod: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/payment-methods/:paymentMethodId/default", import("effect/Schema").Struct<{
85
85
  paymentMethodId: typeof import("effect/Schema").String;
86
86
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
87
87
  success: typeof import("effect/Schema").Boolean;
88
- }>>;
88
+ }>, undefined>;
89
89
  readonly removePaymentMethod: import("../endpoint.js").Endpoint<"DELETE", "/billing-settings/billing/payment-methods/:paymentMethodId", import("effect/Schema").Struct<{
90
90
  paymentMethodId: typeof import("effect/Schema").String;
91
91
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
92
92
  success: typeof import("effect/Schema").Boolean;
93
- }>>;
93
+ }>, undefined>;
94
94
  readonly setSpendingCap: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/spending-cap", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
95
95
  spendingCapDollars: import("effect/Schema").optional<import("effect/Schema").NullOr<typeof import("effect/Schema").Number>>;
96
96
  spendingCapAction: import("effect/Schema").optional<import("effect/Schema").Literal<["alert", "suspend_service", "hard_block"]>>;
97
97
  }>, import("effect/Schema").Struct<{
98
98
  success: typeof import("effect/Schema").Boolean;
99
- }>>;
99
+ }>, undefined>;
100
100
  readonly enablePostpaid: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/postpaid", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
101
101
  success: typeof import("effect/Schema").Boolean;
102
- }>>;
102
+ }>, undefined>;
103
103
  readonly enablePrepaid: import("../endpoint.js").Endpoint<"POST", "/billing-settings/billing/prepaid", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
104
104
  success: typeof import("effect/Schema").Boolean;
105
- }>>;
105
+ }>, undefined>;
106
106
  };
107
107
  //# sourceMappingURL=billing-settings.d.ts.map
@@ -28,7 +28,7 @@ export declare const branchDatabasesEndpoints: {
28
28
  createdAt: typeof Schema.String;
29
29
  destroyedAt: Schema.NullOr<typeof Schema.String>;
30
30
  }>>;
31
- }>>;
31
+ }>, undefined>;
32
32
  readonly create: import("../endpoint.js").Endpoint<"POST", "/projects/:id/preview-envs/:envId/branch-db", Schema.Struct<{
33
33
  id: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
34
34
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
@@ -46,7 +46,9 @@ export declare const branchDatabasesEndpoints: {
46
46
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
47
47
  createdAt: typeof Schema.String;
48
48
  destroyedAt: Schema.NullOr<typeof Schema.String>;
49
- }>>;
49
+ }>, {
50
+ status: 202;
51
+ }>;
50
52
  readonly get: import("../endpoint.js").Endpoint<"GET", "/projects/:id/preview-envs/:envId/branch-db", Schema.Struct<{
51
53
  id: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
52
54
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
@@ -61,7 +63,7 @@ export declare const branchDatabasesEndpoints: {
61
63
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
62
64
  createdAt: typeof Schema.String;
63
65
  destroyedAt: Schema.NullOr<typeof Schema.String>;
64
- }>>;
66
+ }>, undefined>;
65
67
  readonly destroy: import("../endpoint.js").Endpoint<"DELETE", "/projects/:id/preview-envs/:envId/branch-db", Schema.Struct<{
66
68
  id: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
67
69
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
@@ -69,6 +71,8 @@ export declare const branchDatabasesEndpoints: {
69
71
  success: typeof Schema.Boolean;
70
72
  branchId: Schema.brand<Schema.filter<typeof Schema.String>, "BranchDatabaseId">;
71
73
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
72
- }>>;
74
+ }>, {
75
+ status: 202;
76
+ }>;
73
77
  };
74
78
  //# sourceMappingURL=branch-databases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"branch-databases.d.ts","sourceRoot":"","sources":["../../src/endpoints/branch-databases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkB/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC3B,CAAA"}
1
+ {"version":3,"file":"branch-databases.d.ts","sourceRoot":"","sources":["../../src/endpoints/branch-databases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkB/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3B,CAAA"}
@@ -33,6 +33,7 @@ export const branchDatabasesEndpoints = {
33
33
  create: defineEndpoint({
34
34
  method: 'POST',
35
35
  path: '/projects/:id/preview-envs/:envId/branch-db',
36
+ success: { status: 202 },
36
37
  params: ProjectEnvPath,
37
38
  body: CreateBranchDatabaseInput,
38
39
  response: BranchDatabase,
@@ -52,6 +53,7 @@ export const branchDatabasesEndpoints = {
52
53
  destroy: defineEndpoint({
53
54
  method: 'DELETE',
54
55
  path: '/projects/:id/preview-envs/:envId/branch-db',
56
+ success: { status: 202 },
55
57
  params: ProjectEnvPath,
56
58
  response: DestroyBranchDatabaseResult,
57
59
  plane: 'management',
@@ -28,26 +28,26 @@ export declare const challengeEndpoints: {
28
28
  has2FA: typeof import("effect/Schema").Boolean;
29
29
  maskedEmail: typeof import("effect/Schema").String;
30
30
  }>;
31
- }>>;
31
+ }>, undefined>;
32
32
  readonly sendCode: import("../endpoint.js").Endpoint<"POST", "/challenge/send-code", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
33
33
  sent: typeof import("effect/Schema").Boolean;
34
34
  expiresAt: typeof import("effect/Schema").String;
35
35
  maskedEmail: typeof import("effect/Schema").String;
36
- }>>;
36
+ }>, undefined>;
37
37
  readonly verifyIdentity: import("../endpoint.js").Endpoint<"POST", "/challenge/verify-identity", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
38
38
  method: import("effect/Schema").Literal<["password", "email"]>;
39
39
  value: typeof import("effect/Schema").String;
40
40
  }>, import("effect/Schema").Struct<{
41
41
  verified: typeof import("effect/Schema").Boolean;
42
42
  method: typeof import("effect/Schema").String;
43
- }>>;
43
+ }>, undefined>;
44
44
  readonly verifyMfa: import("../endpoint.js").Endpoint<"POST", "/challenge/verify-mfa", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
45
45
  method: import("effect/Schema").Literal<["totp", "backup"]>;
46
46
  value: typeof import("effect/Schema").String;
47
47
  }>, import("effect/Schema").Struct<{
48
48
  verified: typeof import("effect/Schema").Boolean;
49
49
  method: typeof import("effect/Schema").String;
50
- }>>;
50
+ }>, undefined>;
51
51
  readonly status: import("../endpoint.js").Endpoint<"GET", "/challenge/status", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
52
52
  identity: import("effect/Schema").Struct<{
53
53
  verifiedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
@@ -57,6 +57,6 @@ export declare const challengeEndpoints: {
57
57
  verifiedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
58
58
  method: import("effect/Schema").NullOr<import("effect/Schema").Literal<["totp", "backup"]>>;
59
59
  }>;
60
- }>>;
60
+ }>, undefined>;
61
61
  };
62
62
  //# sourceMappingURL=challenge.d.ts.map
@@ -11,7 +11,7 @@ export declare const ciSettingsEndpoints: {
11
11
  runnerCpu: typeof import("effect/Schema").String;
12
12
  runnerMemory: typeof import("effect/Schema").String;
13
13
  maxConcurrentRunners: typeof import("effect/Schema").Number;
14
- }>>;
14
+ }>, undefined>;
15
15
  readonly upsertOrgSettings: import("../endpoint.js").Endpoint<"PUT", "/ci-settings", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
16
16
  runnerCpu: typeof import("effect/Schema").String;
17
17
  runnerMemory: typeof import("effect/Schema").String;
@@ -22,7 +22,7 @@ export declare const ciSettingsEndpoints: {
22
22
  runnerCpu: typeof import("effect/Schema").String;
23
23
  runnerMemory: typeof import("effect/Schema").String;
24
24
  maxConcurrentRunners: typeof import("effect/Schema").Number;
25
- }>>;
25
+ }>, undefined>;
26
26
  readonly listRepoOverrides: import("../endpoint.js").Endpoint<"GET", "/ci-settings/repos", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
27
27
  repos: import("effect/Schema").Array$<import("effect/Schema").Struct<{
28
28
  id: typeof import("effect/Schema").String;
@@ -33,7 +33,7 @@ export declare const ciSettingsEndpoints: {
33
33
  createdAt: typeof import("effect/Schema").String;
34
34
  updatedAt: typeof import("effect/Schema").String;
35
35
  }>>;
36
- }>>;
36
+ }>, undefined>;
37
37
  readonly upsertRepoOverride: import("../endpoint.js").Endpoint<"POST", "/ci-settings/repos", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
38
38
  repo: typeof import("effect/Schema").String;
39
39
  runnerCpu: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
@@ -47,12 +47,12 @@ export declare const ciSettingsEndpoints: {
47
47
  maxConcurrentRunners: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
48
48
  createdAt: typeof import("effect/Schema").String;
49
49
  updatedAt: typeof import("effect/Schema").String;
50
- }>>;
50
+ }>, undefined>;
51
51
  readonly deleteRepoOverride: import("../endpoint.js").Endpoint<"DELETE", "/ci-settings/repos/:repo", import("effect/Schema").Struct<{
52
52
  repo: typeof import("effect/Schema").String;
53
53
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
54
54
  success: typeof import("effect/Schema").Boolean;
55
- }>>;
55
+ }>, undefined>;
56
56
  readonly listInstallations: import("../endpoint.js").Endpoint<"GET", "/ci-settings/installations", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
57
57
  installations: import("effect/Schema").Array$<import("effect/Schema").Struct<{
58
58
  id: typeof import("effect/Schema").String;
@@ -63,7 +63,7 @@ export declare const ciSettingsEndpoints: {
63
63
  installedAt: typeof import("effect/Schema").String;
64
64
  repoCount: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
65
65
  }>>;
66
- }>>;
66
+ }>, undefined>;
67
67
  readonly getUsage: import("../endpoint.js").Endpoint<"GET", "/ci-settings/usage", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
68
68
  currentMonth: import("effect/Schema").Struct<{
69
69
  used: typeof import("effect/Schema").Number;
@@ -79,11 +79,11 @@ export declare const ciSettingsEndpoints: {
79
79
  name: typeof import("effect/Schema").String;
80
80
  minutes: typeof import("effect/Schema").Number;
81
81
  }>>;
82
- }>>;
82
+ }>, undefined>;
83
83
  readonly disconnectInstallation: import("../endpoint.js").Endpoint<"POST", "/ci-settings/installations/:installationId/disconnect", import("effect/Schema").Struct<{
84
84
  installationId: typeof import("effect/Schema").String;
85
85
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
86
86
  success: typeof import("effect/Schema").Boolean;
87
- }>>;
87
+ }>, undefined>;
88
88
  };
89
89
  //# sourceMappingURL=ci-settings.d.ts.map