@sylphx/contract 0.3.0 → 0.5.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 (228) 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 +65 -21
  64. package/dist/endpoints/auth.d.ts.map +1 -1
  65. package/dist/endpoints/auth.js +9 -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 +187 -321
  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 +6 -6
  105. package/dist/endpoints/kv.d.ts +8 -8
  106. package/dist/endpoints/monitoring-admin.d.ts +10 -10
  107. package/dist/endpoints/monitoring.d.ts +2 -2
  108. package/dist/endpoints/newsletter.d.ts +30 -24
  109. package/dist/endpoints/newsletter.d.ts.map +1 -1
  110. package/dist/endpoints/newsletter.js +3 -0
  111. package/dist/endpoints/notifications-admin.d.ts +17 -17
  112. package/dist/endpoints/notifications.d.ts +16 -16
  113. package/dist/endpoints/oidc.d.ts +6 -4
  114. package/dist/endpoints/oidc.d.ts.map +1 -1
  115. package/dist/endpoints/oidc.js +1 -0
  116. package/dist/endpoints/organizations.d.ts +56 -48
  117. package/dist/endpoints/organizations.d.ts.map +1 -1
  118. package/dist/endpoints/organizations.js +4 -0
  119. package/dist/endpoints/plans.d.ts +9 -7
  120. package/dist/endpoints/plans.d.ts.map +1 -1
  121. package/dist/endpoints/plans.js +1 -0
  122. package/dist/endpoints/privacy.d.ts +11 -9
  123. package/dist/endpoints/privacy.d.ts.map +1 -1
  124. package/dist/endpoints/privacy.js +1 -0
  125. package/dist/endpoints/project-manifest.d.ts +18 -42
  126. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  127. package/dist/endpoints/projects.d.ts +7 -5
  128. package/dist/endpoints/projects.d.ts.map +1 -1
  129. package/dist/endpoints/projects.js +2 -1
  130. package/dist/endpoints/rate-limits.d.ts +4 -4
  131. package/dist/endpoints/realtime-admin.d.ts +6 -4
  132. package/dist/endpoints/realtime-admin.d.ts.map +1 -1
  133. package/dist/endpoints/realtime-admin.js +1 -0
  134. package/dist/endpoints/realtime.d.ts +3 -3
  135. package/dist/endpoints/referrals-admin.d.ts +7 -5
  136. package/dist/endpoints/referrals-admin.d.ts.map +1 -1
  137. package/dist/endpoints/referrals-admin.js +1 -0
  138. package/dist/endpoints/refresh.d.ts +1 -1
  139. package/dist/endpoints/regions.d.ts +5 -22
  140. package/dist/endpoints/regions.d.ts.map +1 -1
  141. package/dist/endpoints/regions.js +5 -27
  142. package/dist/endpoints/runners.d.ts +4 -4
  143. package/dist/endpoints/saml.d.ts +13 -11
  144. package/dist/endpoints/saml.d.ts.map +1 -1
  145. package/dist/endpoints/saml.js +1 -0
  146. package/dist/endpoints/search.d.ts +3 -3
  147. package/dist/endpoints/secrets.d.ts +9 -7
  148. package/dist/endpoints/secrets.d.ts.map +1 -1
  149. package/dist/endpoints/secrets.js +1 -0
  150. package/dist/endpoints/security.d.ts +28 -28
  151. package/dist/endpoints/service-tokens.d.ts +20 -12
  152. package/dist/endpoints/service-tokens.d.ts.map +1 -1
  153. package/dist/endpoints/service-tokens.js +4 -0
  154. package/dist/endpoints/session-replay.d.ts +4 -4
  155. package/dist/endpoints/storage-admin.d.ts +14 -10
  156. package/dist/endpoints/storage-admin.d.ts.map +1 -1
  157. package/dist/endpoints/storage-admin.js +3 -1
  158. package/dist/endpoints/storage.d.ts +189 -131
  159. package/dist/endpoints/storage.d.ts.map +1 -1
  160. package/dist/endpoints/storage.js +96 -59
  161. package/dist/endpoints/tasks.d.ts +13 -9
  162. package/dist/endpoints/tasks.d.ts.map +1 -1
  163. package/dist/endpoints/tasks.js +2 -0
  164. package/dist/endpoints/users.d.ts +12 -12
  165. package/dist/endpoints/webhooks.d.ts +10 -10
  166. package/dist/hono-app.d.ts +55 -26
  167. package/dist/hono-app.d.ts.map +1 -1
  168. package/dist/index.d.ts +1720 -1209
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/index.js +6 -5
  171. package/dist/schemas/admin-audit.d.ts +50 -0
  172. package/dist/schemas/admin-audit.d.ts.map +1 -1
  173. package/dist/schemas/admin-audit.js +43 -0
  174. package/dist/schemas/admin-billing.d.ts +19 -5
  175. package/dist/schemas/admin-billing.d.ts.map +1 -1
  176. package/dist/schemas/admin-billing.js +16 -5
  177. package/dist/schemas/admin-branch-databases.d.ts +34 -0
  178. package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
  179. package/dist/schemas/admin-branch-databases.js +33 -0
  180. package/dist/schemas/admin-broadcasts.d.ts +6 -6
  181. package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
  182. package/dist/schemas/admin-broadcasts.js +1 -1
  183. package/dist/schemas/admin-consent.d.ts +90 -6
  184. package/dist/schemas/admin-consent.d.ts.map +1 -1
  185. package/dist/schemas/admin-consent.js +50 -3
  186. package/dist/schemas/analytics-admin.d.ts +99 -9
  187. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  188. package/dist/schemas/analytics-admin.js +70 -0
  189. package/dist/schemas/auth.d.ts +54 -0
  190. package/dist/schemas/auth.d.ts.map +1 -1
  191. package/dist/schemas/auth.js +22 -0
  192. package/dist/schemas/database.d.ts +1 -0
  193. package/dist/schemas/database.d.ts.map +1 -1
  194. package/dist/schemas/database.js +1 -0
  195. package/dist/schemas/deployment.d.ts +53 -0
  196. package/dist/schemas/deployment.d.ts.map +1 -1
  197. package/dist/schemas/deployment.js +53 -1
  198. package/dist/schemas/experiments.d.ts +13 -33
  199. package/dist/schemas/experiments.d.ts.map +1 -1
  200. package/dist/schemas/experiments.js +5 -4
  201. package/dist/schemas/flags-admin.d.ts +115 -19
  202. package/dist/schemas/flags-admin.d.ts.map +1 -1
  203. package/dist/schemas/flags-admin.js +28 -8
  204. package/dist/schemas/ids.d.ts +2 -0
  205. package/dist/schemas/ids.d.ts.map +1 -1
  206. package/dist/schemas/ids.js +1 -0
  207. package/dist/schemas/project-manifest.d.ts +16 -70
  208. package/dist/schemas/project-manifest.d.ts.map +1 -1
  209. package/dist/schemas/project-manifest.js +0 -21
  210. package/dist/schemas/project.d.ts +3 -3
  211. package/dist/schemas/project.d.ts.map +1 -1
  212. package/dist/schemas/project.js +2 -2
  213. package/dist/schemas/region.d.ts +4 -52
  214. package/dist/schemas/region.d.ts.map +1 -1
  215. package/dist/schemas/region.js +4 -46
  216. package/dist/schemas/resources.d.ts +55 -4
  217. package/dist/schemas/resources.d.ts.map +1 -1
  218. package/dist/schemas/resources.js +52 -1
  219. package/dist/schemas/storage.d.ts +259 -198
  220. package/dist/schemas/storage.d.ts.map +1 -1
  221. package/dist/schemas/storage.js +159 -140
  222. package/package.json +1 -1
  223. package/dist/endpoints/edge-deployments.d.ts +0 -92
  224. package/dist/endpoints/edge-deployments.d.ts.map +0 -1
  225. package/dist/endpoints/edge-deployments.js +0 -58
  226. package/dist/schemas/edge-deployments.d.ts +0 -140
  227. package/dist/schemas/edge-deployments.d.ts.map +0 -1
  228. 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,48 @@ export declare const authEndpoints: {
46
46
  image: Schema.NullOr<typeof Schema.String>;
47
47
  emailVerified: typeof Schema.Boolean;
48
48
  }>>;
49
- }>>;
49
+ }>, undefined>;
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
+ principalType: Schema.Literal<["user"]>;
52
+ user: Schema.Struct<{
53
+ id: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
54
+ email: typeof Schema.String;
55
+ name: Schema.NullOr<typeof Schema.String>;
56
+ }>;
57
+ orgs: Schema.Array$<Schema.Struct<{
58
+ id: Schema.brand<Schema.filter<typeof Schema.String>, "OrgId">;
59
+ slug: typeof Schema.String;
60
+ name: typeof Schema.String;
61
+ email: Schema.optional<Schema.NullOr<typeof Schema.String>>;
62
+ billingEmail: Schema.optional<Schema.NullOr<typeof Schema.String>>;
63
+ logoUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
64
+ metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
65
+ createdAt: Schema.optional<typeof Schema.String>;
66
+ }>>;
67
+ }>, Schema.Struct<{
68
+ principalType: Schema.Literal<["service_token"]>;
69
+ serviceToken: Schema.Struct<{
70
+ id: typeof Schema.String;
71
+ name: typeof Schema.String;
72
+ tokenType: Schema.Literal<["service", "oidc"]>;
73
+ tokenPrefix: Schema.NullOr<typeof Schema.String>;
74
+ orgId: typeof Schema.String;
75
+ projectId: Schema.NullOr<typeof Schema.String>;
76
+ environmentId: Schema.NullOr<typeof Schema.String>;
77
+ scopes: Schema.Array$<typeof Schema.String>;
78
+ expiresAt: Schema.NullOr<typeof Schema.String>;
79
+ }>;
80
+ org: Schema.Struct<{
81
+ id: Schema.brand<Schema.filter<typeof Schema.String>, "OrgId">;
82
+ slug: typeof Schema.String;
83
+ name: typeof Schema.String;
84
+ email: Schema.optional<Schema.NullOr<typeof Schema.String>>;
85
+ billingEmail: Schema.optional<Schema.NullOr<typeof Schema.String>>;
86
+ logoUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
87
+ metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
88
+ createdAt: Schema.optional<typeof Schema.String>;
89
+ }>;
90
+ }>]>, undefined>;
50
91
  readonly deviceInit: import("../endpoint.js").Endpoint<"POST", "/auth/device", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
51
92
  client_id: typeof Schema.String;
52
93
  scope: Schema.optional<Schema.Array$<typeof Schema.String>>;
@@ -57,7 +98,7 @@ export declare const authEndpoints: {
57
98
  verification_uri_complete: typeof Schema.String;
58
99
  expires_in: typeof Schema.Number;
59
100
  interval: typeof Schema.Number;
60
- }>>;
101
+ }>, undefined>;
61
102
  readonly devicePoll: import("../endpoint.js").Endpoint<"GET", "/auth/device/poll", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
62
103
  device_code: typeof Schema.String;
63
104
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Union<[Schema.Struct<{
@@ -73,23 +114,26 @@ export declare const authEndpoints: {
73
114
  status: Schema.Literal<["denied"]>;
74
115
  }>, Schema.Struct<{
75
116
  status: Schema.Literal<["expired"]>;
76
- }>]>>;
117
+ }>]>, undefined>;
77
118
  readonly deviceApprove: import("../endpoint.js").Endpoint<"POST", "/auth/device/approve", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
78
119
  user_code: typeof Schema.String;
79
120
  }>, Schema.Struct<{
80
121
  success: Schema.Literal<[true]>;
81
- }>>;
122
+ }>, undefined>;
82
123
  readonly deviceDeny: import("../endpoint.js").Endpoint<"POST", "/auth/device/deny", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
83
124
  user_code: typeof Schema.String;
84
125
  }>, Schema.Struct<{
85
126
  success: Schema.Literal<[true]>;
86
- }>>;
127
+ }>, undefined>;
87
128
  readonly oauthRevoke: import("../endpoint.js").Endpoint<"POST", "/oauth/revoke", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
88
129
  token: typeof Schema.String;
89
130
  token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
90
131
  client_id: typeof Schema.String;
91
132
  client_secret: Schema.optional<typeof Schema.String>;
92
- }>, Schema.Struct<{}>>;
133
+ }>, Schema.Schema.AnyNoContext, {
134
+ status: 200;
135
+ body: "none";
136
+ }>;
93
137
  readonly oauthIntrospect: import("../endpoint.js").Endpoint<"POST", "/oauth/introspect", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
94
138
  token: typeof Schema.String;
95
139
  token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
@@ -108,7 +152,7 @@ export declare const authEndpoints: {
108
152
  aud: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
109
153
  iss: Schema.optional<typeof Schema.String>;
110
154
  jti: Schema.optional<typeof Schema.String>;
111
- }>>;
155
+ }>, undefined>;
112
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<{
113
157
  sessions: Schema.Array$<Schema.Struct<{
114
158
  id: typeof Schema.String;
@@ -119,45 +163,45 @@ export declare const authEndpoints: {
119
163
  lastActiveAt: Schema.NullOr<typeof Schema.String>;
120
164
  isCurrent: typeof Schema.Boolean;
121
165
  }>>;
122
- }>>;
166
+ }>, undefined>;
123
167
  readonly platformSessionsRevoke: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/revoke", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
124
168
  sessionId: typeof Schema.String;
125
169
  }>, Schema.Struct<{
126
170
  success: Schema.Literal<[true]>;
127
- }>>;
171
+ }>, undefined>;
128
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<{
129
173
  revokedCount: typeof Schema.Number;
130
- }>>;
174
+ }>, undefined>;
131
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<{
132
176
  success: Schema.Literal<[true]>;
133
177
  count: typeof Schema.Number;
134
- }>>;
178
+ }>, undefined>;
135
179
  readonly platformSessionsRename: import("../endpoint.js").Endpoint<"POST", "/auth/platform-sessions/rename", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
136
180
  sessionId: typeof Schema.String;
137
181
  name: typeof Schema.String;
138
182
  }>, Schema.Struct<{
139
183
  success: Schema.Literal<[true]>;
140
- }>>;
184
+ }>, undefined>;
141
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<{
142
186
  hasPassword: typeof Schema.Boolean;
143
- }>>;
187
+ }>, undefined>;
144
188
  readonly platformPasswordSet: import("../endpoint.js").Endpoint<"POST", "/auth/platform-password/set", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
145
189
  password: typeof Schema.String;
146
190
  }>, Schema.Struct<{
147
191
  success: Schema.Literal<[true]>;
148
- }>>;
192
+ }>, undefined>;
149
193
  readonly platformPasswordChange: import("../endpoint.js").Endpoint<"POST", "/auth/platform-password/change", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
150
194
  currentPassword: typeof Schema.String;
151
195
  newPassword: typeof Schema.String;
152
196
  }>, Schema.Struct<{
153
197
  success: Schema.Literal<[true]>;
154
- }>>;
155
- 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>;
156
200
  readonly platformUserDelete: import("../endpoint.js").Endpoint<"DELETE", "/auth/platform-user/account", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
157
201
  reason: Schema.optional<typeof Schema.String>;
158
202
  }>, Schema.Struct<{
159
203
  success: typeof Schema.Boolean;
160
204
  deletedData: Schema.Array$<typeof Schema.String>;
161
- }>>;
205
+ }>, undefined>;
162
206
  };
163
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;AAsC/B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoNhB,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 { 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',
@@ -52,6 +52,13 @@ export const authEndpoints = {
52
52
  summary: 'Get the current authenticated session (null when absent)',
53
53
  tags: ['auth'],
54
54
  }),
55
+ getPrincipal: defineEndpoint({
56
+ method: 'GET',
57
+ path: '/auth/principal',
58
+ response: AuthenticatedPrincipal,
59
+ summary: 'Get the current authenticated user or service-token principal',
60
+ tags: ['auth', 'principal'],
61
+ }),
55
62
  deviceInit: defineEndpoint({
56
63
  method: 'POST',
57
64
  path: '/auth/device',
@@ -94,8 +101,8 @@ export const authEndpoints = {
94
101
  oauthRevoke: defineEndpoint({
95
102
  method: 'POST',
96
103
  path: '/oauth/revoke',
104
+ success: { status: 200, body: 'none' },
97
105
  body: OAuthRevokeRequest,
98
- response: OAuthRevokeResponse,
99
106
  summary: 'Revoke an OAuth access or refresh token (RFC 7009)',
100
107
  tags: ['auth', 'oauth'],
101
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