@sylphx/contract 0.4.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 (220) hide show
  1. package/CHANGELOG.md +6 -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 +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 +12 -12
  159. package/dist/endpoints/tasks.d.ts +13 -9
  160. package/dist/endpoints/tasks.d.ts.map +1 -1
  161. package/dist/endpoints/tasks.js +2 -0
  162. package/dist/endpoints/users.d.ts +12 -12
  163. package/dist/endpoints/webhooks.d.ts +10 -10
  164. package/dist/hono-app.d.ts +55 -26
  165. package/dist/hono-app.d.ts.map +1 -1
  166. package/dist/index.d.ts +1496 -1090
  167. package/dist/index.d.ts.map +1 -1
  168. package/dist/index.js +6 -5
  169. package/dist/schemas/admin-audit.d.ts +50 -0
  170. package/dist/schemas/admin-audit.d.ts.map +1 -1
  171. package/dist/schemas/admin-audit.js +43 -0
  172. package/dist/schemas/admin-billing.d.ts +19 -5
  173. package/dist/schemas/admin-billing.d.ts.map +1 -1
  174. package/dist/schemas/admin-billing.js +16 -5
  175. package/dist/schemas/admin-branch-databases.d.ts +34 -0
  176. package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
  177. package/dist/schemas/admin-branch-databases.js +33 -0
  178. package/dist/schemas/admin-broadcasts.d.ts +6 -6
  179. package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
  180. package/dist/schemas/admin-broadcasts.js +1 -1
  181. package/dist/schemas/admin-consent.d.ts +90 -6
  182. package/dist/schemas/admin-consent.d.ts.map +1 -1
  183. package/dist/schemas/admin-consent.js +50 -3
  184. package/dist/schemas/analytics-admin.d.ts +99 -9
  185. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  186. package/dist/schemas/analytics-admin.js +70 -0
  187. package/dist/schemas/database.d.ts +1 -0
  188. package/dist/schemas/database.d.ts.map +1 -1
  189. package/dist/schemas/database.js +1 -0
  190. package/dist/schemas/deployment.d.ts +53 -0
  191. package/dist/schemas/deployment.d.ts.map +1 -1
  192. package/dist/schemas/deployment.js +53 -1
  193. package/dist/schemas/experiments.d.ts +13 -33
  194. package/dist/schemas/experiments.d.ts.map +1 -1
  195. package/dist/schemas/experiments.js +5 -4
  196. package/dist/schemas/flags-admin.d.ts +115 -19
  197. package/dist/schemas/flags-admin.d.ts.map +1 -1
  198. package/dist/schemas/flags-admin.js +28 -8
  199. package/dist/schemas/ids.d.ts +2 -0
  200. package/dist/schemas/ids.d.ts.map +1 -1
  201. package/dist/schemas/ids.js +1 -0
  202. package/dist/schemas/project-manifest.d.ts +16 -70
  203. package/dist/schemas/project-manifest.d.ts.map +1 -1
  204. package/dist/schemas/project-manifest.js +0 -21
  205. package/dist/schemas/project.d.ts +3 -3
  206. package/dist/schemas/project.d.ts.map +1 -1
  207. package/dist/schemas/project.js +2 -2
  208. package/dist/schemas/region.d.ts +4 -52
  209. package/dist/schemas/region.d.ts.map +1 -1
  210. package/dist/schemas/region.js +4 -46
  211. package/dist/schemas/resources.d.ts +55 -4
  212. package/dist/schemas/resources.d.ts.map +1 -1
  213. package/dist/schemas/resources.js +52 -1
  214. package/package.json +1 -1
  215. package/dist/endpoints/edge-deployments.d.ts +0 -92
  216. package/dist/endpoints/edge-deployments.d.ts.map +0 -1
  217. package/dist/endpoints/edge-deployments.js +0 -58
  218. package/dist/schemas/edge-deployments.d.ts +0 -140
  219. package/dist/schemas/edge-deployments.d.ts.map +0 -1
  220. package/dist/schemas/edge-deployments.js +0 -87
@@ -35,7 +35,7 @@ export declare const organizationsEndpoints: {
35
35
  isActive: typeof Schema.Boolean;
36
36
  }>>;
37
37
  }>>;
38
- }>>;
38
+ }>, undefined>;
39
39
  readonly list: import("../endpoint.js").Endpoint<"GET", "/orgs", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
40
40
  limit: Schema.optional<typeof Schema.String>;
41
41
  offset: Schema.optional<typeof Schema.String>;
@@ -53,7 +53,7 @@ export declare const organizationsEndpoints: {
53
53
  total: typeof Schema.Number;
54
54
  limit: typeof Schema.Number;
55
55
  offset: typeof Schema.Number;
56
- }>>;
56
+ }>, undefined>;
57
57
  readonly memberships: import("../endpoint.js").Endpoint<"GET", "/orgs/memberships", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
58
58
  organizations: Schema.Array$<Schema.Struct<{
59
59
  id: Schema.brand<Schema.filter<typeof Schema.String>, "OrgId">;
@@ -64,7 +64,7 @@ export declare const organizationsEndpoints: {
64
64
  joinedAt: typeof Schema.String;
65
65
  createdAt: typeof Schema.String;
66
66
  }>>;
67
- }>>;
67
+ }>, undefined>;
68
68
  readonly get: import("../endpoint.js").Endpoint<"GET", "/orgs/:orgId", Schema.Struct<{
69
69
  orgId: typeof Schema.String;
70
70
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -75,7 +75,7 @@ export declare const organizationsEndpoints: {
75
75
  createdAt: typeof Schema.String;
76
76
  memberCount: typeof Schema.Number;
77
77
  projectCount: typeof Schema.Number;
78
- }>>;
78
+ }>, undefined>;
79
79
  readonly create: import("../endpoint.js").Endpoint<"POST", "/orgs", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
80
80
  name: typeof Schema.String;
81
81
  slug: typeof Schema.String;
@@ -88,7 +88,9 @@ export declare const organizationsEndpoints: {
88
88
  logoUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
89
89
  metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
90
90
  createdAt: Schema.optional<typeof Schema.String>;
91
- }>>;
91
+ }>, {
92
+ status: 201;
93
+ }>;
92
94
  readonly update: import("../endpoint.js").Endpoint<"PATCH", "/orgs/:orgId", Schema.Struct<{
93
95
  orgId: typeof Schema.String;
94
96
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -106,7 +108,7 @@ export declare const organizationsEndpoints: {
106
108
  logoUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
107
109
  metadata: Schema.optional<Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
108
110
  createdAt: Schema.optional<typeof Schema.String>;
109
- }>>;
111
+ }>, undefined>;
110
112
  readonly getSettings: import("../endpoint.js").Endpoint<"GET", "/orgs/:id/settings", Schema.Struct<{
111
113
  id: typeof Schema.String;
112
114
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -120,7 +122,7 @@ export declare const organizationsEndpoints: {
120
122
  }>;
121
123
  userRole: Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer"]>;
122
124
  hasSettingsAccess: typeof Schema.Boolean;
123
- }>>;
125
+ }>, undefined>;
124
126
  readonly listMembers: import("../endpoint.js").Endpoint<"GET", "/orgs/:orgId/members", Schema.Struct<{
125
127
  orgId: typeof Schema.String;
126
128
  }>, Schema.Struct<{
@@ -135,7 +137,7 @@ export declare const organizationsEndpoints: {
135
137
  role: typeof Schema.String;
136
138
  joinedAt: typeof Schema.String;
137
139
  }>>;
138
- }>>;
140
+ }>, undefined>;
139
141
  readonly inviteMember: import("../endpoint.js").Endpoint<"POST", "/orgs/:orgId/members", Schema.Struct<{
140
142
  orgId: typeof Schema.String;
141
143
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -146,7 +148,9 @@ export declare const organizationsEndpoints: {
146
148
  id: typeof Schema.String;
147
149
  userId: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
148
150
  role: Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer", "member"]>;
149
- }>>;
151
+ }>, {
152
+ status: 201;
153
+ }>;
150
154
  readonly updateMemberRole: import("../endpoint.js").Endpoint<"PATCH", "/orgs/:orgId/members/:userId", Schema.Struct<{
151
155
  orgId: typeof Schema.String;
152
156
  userId: typeof Schema.String;
@@ -155,13 +159,13 @@ export declare const organizationsEndpoints: {
155
159
  }>, Schema.Struct<{
156
160
  success: typeof Schema.Boolean;
157
161
  role: Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer", "member"]>;
158
- }>>;
162
+ }>, undefined>;
159
163
  readonly removeMember: import("../endpoint.js").Endpoint<"DELETE", "/orgs/:orgId/members/:userId", Schema.Struct<{
160
164
  orgId: typeof Schema.String;
161
165
  userId: typeof Schema.String;
162
166
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
163
167
  success: typeof Schema.Boolean;
164
- }>>;
168
+ }>, undefined>;
165
169
  readonly listProjectSessions: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/sessions", Schema.Struct<{
166
170
  projectId: typeof Schema.String;
167
171
  }>, Schema.Struct<{
@@ -185,20 +189,20 @@ export declare const organizationsEndpoints: {
185
189
  total: typeof Schema.Number;
186
190
  limit: typeof Schema.Number;
187
191
  offset: typeof Schema.Number;
188
- }>>;
192
+ }>, undefined>;
189
193
  readonly revokeProjectSession: import("../endpoint.js").Endpoint<"DELETE", "/orgs/projects/:projectId/sessions/:sessionId", Schema.Struct<{
190
194
  projectId: typeof Schema.String;
191
195
  sessionId: typeof Schema.String;
192
196
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
193
197
  success: typeof Schema.Boolean;
194
- }>>;
198
+ }>, undefined>;
195
199
  readonly revokeAllProjectSessions: import("../endpoint.js").Endpoint<"POST", "/orgs/projects/:projectId/sessions/revoke-all", Schema.Struct<{
196
200
  projectId: typeof Schema.String;
197
201
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
198
202
  exceptSessionId: Schema.optional<typeof Schema.String>;
199
203
  }>, Schema.Struct<{
200
204
  revokedCount: typeof Schema.Number;
201
- }>>;
205
+ }>, undefined>;
202
206
  readonly billing: {
203
207
  readonly getUsage: import("../endpoint.js").Endpoint<"GET", "/orgs/billing/usage", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
204
208
  billingPeriod: Schema.Struct<{
@@ -224,7 +228,7 @@ export declare const organizationsEndpoints: {
224
228
  slug: typeof Schema.String;
225
229
  aiCostMicrodollars: typeof Schema.Number;
226
230
  }>>;
227
- }>>;
231
+ }>, undefined>;
228
232
  readonly getBusinessSettings: import("../endpoint.js").Endpoint<"GET", "/orgs/billing/business", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
229
233
  org: Schema.Struct<{
230
234
  id: typeof Schema.String;
@@ -245,7 +249,7 @@ export declare const organizationsEndpoints: {
245
249
  type: Schema.NullOr<typeof Schema.String>;
246
250
  verified: typeof Schema.Boolean;
247
251
  }>;
248
- }>>;
252
+ }>, undefined>;
249
253
  readonly updateBusinessInfo: import("../endpoint.js").Endpoint<"PATCH", "/orgs/billing/business", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
250
254
  businessName: Schema.optional<typeof Schema.String>;
251
255
  billingCountry: Schema.optional<typeof Schema.String>;
@@ -256,21 +260,21 @@ export declare const organizationsEndpoints: {
256
260
  postalCode: Schema.optional<typeof Schema.String>;
257
261
  }>, Schema.Struct<{
258
262
  success: typeof Schema.Boolean;
259
- }>>;
263
+ }>, undefined>;
260
264
  readonly getAddCreditsData: import("../endpoint.js").Endpoint<"GET", "/orgs/billing/credits", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
261
265
  org: Schema.Struct<{
262
266
  id: typeof Schema.String;
263
267
  name: typeof Schema.String;
264
268
  }>;
265
269
  creditBalanceMicrodollars: typeof Schema.Number;
266
- }>>;
270
+ }>, undefined>;
267
271
  readonly createCreditCheckout: import("../endpoint.js").Endpoint<"POST", "/orgs/billing/credits/checkout", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
268
272
  amountDollars: typeof Schema.Number;
269
273
  baseUrl: typeof Schema.String;
270
274
  }>, Schema.Struct<{
271
275
  checkoutUrl: Schema.NullOr<typeof Schema.String>;
272
276
  sessionId: typeof Schema.String;
273
- }>>;
277
+ }>, undefined>;
274
278
  readonly setTaxId: import("../endpoint.js").Endpoint<"POST", "/orgs/billing/tax-id", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
275
279
  taxId: typeof Schema.String;
276
280
  taxIdType: typeof Schema.String;
@@ -278,10 +282,10 @@ export declare const organizationsEndpoints: {
278
282
  success: typeof Schema.Boolean;
279
283
  verified: typeof Schema.Boolean;
280
284
  message: typeof Schema.String;
281
- }>>;
285
+ }>, undefined>;
282
286
  readonly removeTaxId: import("../endpoint.js").Endpoint<"DELETE", "/orgs/billing/tax-id", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
283
287
  success: typeof Schema.Boolean;
284
- }>>;
288
+ }>, undefined>;
285
289
  readonly getInvoice: import("../endpoint.js").Endpoint<"GET", "/orgs/billing/invoices/:invoiceId", Schema.Struct<{
286
290
  invoiceId: typeof Schema.String;
287
291
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -309,13 +313,13 @@ export declare const organizationsEndpoints: {
309
313
  dueAt: Schema.NullOr<typeof Schema.String>;
310
314
  paidAt: Schema.NullOr<typeof Schema.String>;
311
315
  createdAt: typeof Schema.String;
312
- }>>;
316
+ }>, undefined>;
313
317
  readonly getPlatformPlan: import("../endpoint.js").Endpoint<"GET", "/orgs/billing/platform-plan", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
314
318
  plan: Schema.Literal<["free", "starter", "pro", "team", "enterprise"]>;
315
319
  status: Schema.Literal<["active", "trialing", "past_due", "cancelled", "suspended"]>;
316
320
  interval: Schema.NullOr<Schema.Literal<["monthly", "annual", "lifetime"]>>;
317
321
  stripeSubscriptionId: Schema.NullOr<typeof Schema.String>;
318
- }>>;
322
+ }>, undefined>;
319
323
  readonly upgradePlatformPlan: import("../endpoint.js").Endpoint<"POST", "/orgs/billing/platform-plan/upgrade", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
320
324
  plan: Schema.Literal<["pro", "team"]>;
321
325
  interval: Schema.Literal<["monthly", "annual"]>;
@@ -323,7 +327,7 @@ export declare const organizationsEndpoints: {
323
327
  }>, Schema.Struct<{
324
328
  checkoutUrl: Schema.NullOr<typeof Schema.String>;
325
329
  sessionId: typeof Schema.String;
326
- }>>;
330
+ }>, undefined>;
327
331
  };
328
332
  readonly projects: {
329
333
  readonly checkSlug: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/check-slug", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -332,13 +336,13 @@ export declare const organizationsEndpoints: {
332
336
  available: typeof Schema.Boolean;
333
337
  reason: Schema.NullOr<typeof Schema.String>;
334
338
  message: typeof Schema.String;
335
- }>>;
339
+ }>, undefined>;
336
340
  readonly list: import("../endpoint.js").Endpoint<"GET", "/orgs/projects", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Array$<Schema.Struct<{
337
341
  id: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
338
342
  name: typeof Schema.String;
339
343
  slug: typeof Schema.String;
340
344
  isActive: typeof Schema.Boolean;
341
- }>>>;
345
+ }>>, undefined>;
342
346
  readonly create: import("../endpoint.js").Endpoint<"POST", "/orgs/projects", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
343
347
  name: typeof Schema.String;
344
348
  slug: typeof Schema.String;
@@ -354,7 +358,9 @@ export declare const organizationsEndpoints: {
354
358
  createdAt: typeof Schema.String;
355
359
  updatedAt: typeof Schema.String;
356
360
  }>;
357
- }>>;
361
+ }>, {
362
+ status: 201;
363
+ }>;
358
364
  readonly update: import("../endpoint.js").Endpoint<"PATCH", "/orgs/projects/:projectId", Schema.Struct<{
359
365
  projectId: typeof Schema.String;
360
366
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -375,12 +381,12 @@ export declare const organizationsEndpoints: {
375
381
  description: Schema.NullOr<typeof Schema.String>;
376
382
  isActive: typeof Schema.Boolean;
377
383
  }>;
378
- }>>;
384
+ }>, undefined>;
379
385
  readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/orgs/projects/:projectId", Schema.Struct<{
380
386
  projectId: typeof Schema.String;
381
387
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
382
388
  success: typeof Schema.Boolean;
383
- }>>;
389
+ }>, undefined>;
384
390
  readonly getLogs: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:id/logs", Schema.Struct<{
385
391
  id: typeof Schema.String;
386
392
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -399,7 +405,7 @@ export declare const organizationsEndpoints: {
399
405
  errorMessage: Schema.NullOr<typeof Schema.String>;
400
406
  createdAt: typeof Schema.String;
401
407
  }>>;
402
- }>>;
408
+ }>, undefined>;
403
409
  readonly getUsageStats: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:id/usage", Schema.Struct<{
404
410
  id: typeof Schema.String;
405
411
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -426,7 +432,7 @@ export declare const organizationsEndpoints: {
426
432
  files: typeof Schema.Number;
427
433
  bytes: typeof Schema.Number;
428
434
  }>;
429
- }>>;
435
+ }>, undefined>;
430
436
  };
431
437
  readonly projectUsers: {
432
438
  readonly list: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/users", Schema.Struct<{
@@ -457,7 +463,7 @@ export declare const organizationsEndpoints: {
457
463
  total: typeof Schema.Number;
458
464
  totalPages: typeof Schema.Number;
459
465
  }>;
460
- }>>;
466
+ }>, undefined>;
461
467
  readonly get: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/users/:appUserId", Schema.Struct<{
462
468
  projectId: typeof Schema.String;
463
469
  appUserId: typeof Schema.String;
@@ -472,7 +478,7 @@ export declare const organizationsEndpoints: {
472
478
  createdAt: typeof Schema.String;
473
479
  lastActiveAt: Schema.NullOr<typeof Schema.String>;
474
480
  }>;
475
- }>>;
481
+ }>, undefined>;
476
482
  readonly updateStatus: import("../endpoint.js").Endpoint<"PATCH", "/orgs/projects/:projectId/users/:appUserId/status", Schema.Struct<{
477
483
  projectId: typeof Schema.String;
478
484
  appUserId: typeof Schema.String;
@@ -490,13 +496,13 @@ export declare const organizationsEndpoints: {
490
496
  createdAt: typeof Schema.String;
491
497
  lastActiveAt: Schema.NullOr<typeof Schema.String>;
492
498
  }>;
493
- }>>;
499
+ }>, undefined>;
494
500
  readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/orgs/projects/:projectId/users/:appUserId", Schema.Struct<{
495
501
  projectId: typeof Schema.String;
496
502
  appUserId: typeof Schema.String;
497
503
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
498
504
  success: typeof Schema.Boolean;
499
- }>>;
505
+ }>, undefined>;
500
506
  readonly bulkUpdateStatus: import("../endpoint.js").Endpoint<"PATCH", "/orgs/projects/:projectId/users/bulk/status", Schema.Struct<{
501
507
  projectId: typeof Schema.String;
502
508
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -509,7 +515,7 @@ export declare const organizationsEndpoints: {
509
515
  id: typeof Schema.String;
510
516
  error: typeof Schema.String;
511
517
  }>>>;
512
- }>>;
518
+ }>, undefined>;
513
519
  readonly bulkDelete: import("../endpoint.js").Endpoint<"POST", "/orgs/projects/:projectId/users/bulk/delete", Schema.Struct<{
514
520
  projectId: typeof Schema.String;
515
521
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -520,7 +526,7 @@ export declare const organizationsEndpoints: {
520
526
  id: typeof Schema.String;
521
527
  error: typeof Schema.String;
522
528
  }>>>;
523
- }>>;
529
+ }>, undefined>;
524
530
  };
525
531
  readonly team: {
526
532
  readonly getTeam: import("../endpoint.js").Endpoint<"GET", "/orgs/team", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -547,7 +553,7 @@ export declare const organizationsEndpoints: {
547
553
  }>>;
548
554
  currentUserId: typeof Schema.String;
549
555
  currentUserRole: Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer", "member"]>;
550
- }>>;
556
+ }>, undefined>;
551
557
  readonly createInvitation: import("../endpoint.js").Endpoint<"POST", "/orgs/team/invitations", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
552
558
  email: typeof Schema.String;
553
559
  role: Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer", "member"]>;
@@ -560,12 +566,14 @@ export declare const organizationsEndpoints: {
560
566
  expiresAt: typeof Schema.String;
561
567
  createdAt: typeof Schema.String;
562
568
  }>;
563
- }>>;
569
+ }>, {
570
+ status: 201;
571
+ }>;
564
572
  readonly cancelInvitation: import("../endpoint.js").Endpoint<"DELETE", "/orgs/team/invitations/:invitationId", Schema.Struct<{
565
573
  invitationId: Schema.brand<Schema.filter<typeof Schema.String>, "InvitationId">;
566
574
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
567
575
  success: typeof Schema.Boolean;
568
- }>>;
576
+ }>, undefined>;
569
577
  readonly getProfile: import("../endpoint.js").Endpoint<"GET", "/orgs/profile", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
570
578
  user: Schema.Struct<{
571
579
  id: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
@@ -581,13 +589,13 @@ export declare const organizationsEndpoints: {
581
589
  slug: typeof Schema.String;
582
590
  }>>;
583
591
  role: Schema.NullOr<Schema.Literal<["super_admin", "admin", "billing", "analytics", "developer", "viewer", "member"]>>;
584
- }>>;
592
+ }>, undefined>;
585
593
  readonly updateProfile: import("../endpoint.js").Endpoint<"PATCH", "/orgs/profile", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
586
594
  name: Schema.optional<typeof Schema.String>;
587
595
  image: Schema.optional<typeof Schema.String>;
588
596
  }>, Schema.Struct<{
589
597
  success: typeof Schema.Boolean;
590
- }>>;
598
+ }>, undefined>;
591
599
  readonly getNotificationPreferences: import("../endpoint.js").Endpoint<"GET", "/orgs/profile/notifications", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
592
600
  product_updates: typeof Schema.Boolean;
593
601
  product_changelog: typeof Schema.Boolean;
@@ -597,7 +605,7 @@ export declare const organizationsEndpoints: {
597
605
  billing_receipts: typeof Schema.Boolean;
598
606
  newsletter: typeof Schema.Boolean;
599
607
  promotions: typeof Schema.Boolean;
600
- }>>;
608
+ }>, undefined>;
601
609
  readonly updateNotificationPreferences: import("../endpoint.js").Endpoint<"PATCH", "/orgs/profile/notifications", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
602
610
  product_updates: Schema.optional<typeof Schema.Boolean>;
603
611
  product_changelog: Schema.optional<typeof Schema.Boolean>;
@@ -605,7 +613,7 @@ export declare const organizationsEndpoints: {
605
613
  promotions: Schema.optional<typeof Schema.Boolean>;
606
614
  }>, Schema.Struct<{
607
615
  success: typeof Schema.Boolean;
608
- }>>;
616
+ }>, undefined>;
609
617
  };
610
618
  readonly referrals: {
611
619
  readonly listCodes: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/referrals/codes", Schema.Struct<{
@@ -636,7 +644,7 @@ export declare const organizationsEndpoints: {
636
644
  completed: typeof Schema.Number;
637
645
  expired: typeof Schema.Number;
638
646
  }>;
639
- }>>;
647
+ }>, undefined>;
640
648
  readonly getConfig: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/referrals/config", Schema.Struct<{
641
649
  projectId: typeof Schema.String;
642
650
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.NullOr<Schema.Struct<{
@@ -651,7 +659,7 @@ export declare const organizationsEndpoints: {
651
659
  rewardExpiryDays: Schema.NullOr<typeof Schema.Number>;
652
660
  codePrefix: Schema.NullOr<typeof Schema.String>;
653
661
  landingUrl: Schema.NullOr<typeof Schema.String>;
654
- }>>>;
662
+ }>>, undefined>;
655
663
  readonly listRewards: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/referrals/rewards", Schema.Struct<{
656
664
  projectId: typeof Schema.String;
657
665
  }>, Schema.Struct<{
@@ -682,7 +690,7 @@ export declare const organizationsEndpoints: {
682
690
  total: typeof Schema.Number;
683
691
  pendingCount: typeof Schema.Number;
684
692
  completedCount: typeof Schema.Number;
685
- }>>;
693
+ }>, undefined>;
686
694
  readonly getLeaderboard: import("../endpoint.js").Endpoint<"GET", "/orgs/projects/:projectId/referrals/leaderboard", Schema.Struct<{
687
695
  projectId: typeof Schema.String;
688
696
  }>, Schema.Struct<{
@@ -707,7 +715,7 @@ export declare const organizationsEndpoints: {
707
715
  conversionRate: typeof Schema.Number;
708
716
  kFactor: typeof Schema.String;
709
717
  }>;
710
- }>>;
718
+ }>, undefined>;
711
719
  };
712
720
  };
713
721
  //# sourceMappingURL=organizations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/endpoints/organizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkZ/B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IzB,CAAA"}
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/endpoints/organizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoZ/B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IzB,CAAA"}
@@ -137,6 +137,7 @@ const projectsEndpoints = {
137
137
  create: defineEndpoint({
138
138
  method: 'POST',
139
139
  path: '/orgs/projects',
140
+ success: { status: 201 },
140
141
  body: CreateOrgProjectInput,
141
142
  response: CreateOrgProjectResult,
142
143
  summary: 'Create a new project in the current org',
@@ -243,6 +244,7 @@ const teamEndpoints = {
243
244
  createInvitation: defineEndpoint({
244
245
  method: 'POST',
245
246
  path: '/orgs/team/invitations',
247
+ success: { status: 201 },
246
248
  body: CreateInvitationInput,
247
249
  response: CreateInvitationResult,
248
250
  summary: 'Create a team invitation (admin only)',
@@ -366,6 +368,7 @@ export const organizationsEndpoints = {
366
368
  create: defineEndpoint({
367
369
  method: 'POST',
368
370
  path: '/orgs',
371
+ success: { status: 201 },
369
372
  body: CreateOrgInput,
370
373
  response: Organization,
371
374
  summary: 'Create a new organization',
@@ -401,6 +404,7 @@ export const organizationsEndpoints = {
401
404
  inviteMember: defineEndpoint({
402
405
  method: 'POST',
403
406
  path: '/orgs/:orgId/members',
407
+ success: { status: 201 },
404
408
  params: OrgPath,
405
409
  body: InviteMemberInput,
406
410
  response: InviteMemberResult,
@@ -39,7 +39,7 @@ export declare const plansEndpoints: {
39
39
  createdAt: typeof import("effect/Schema").String;
40
40
  updatedAt: typeof import("effect/Schema").String;
41
41
  }>>;
42
- }>>;
42
+ }>, undefined>;
43
43
  readonly get: import("../endpoint.js").Endpoint<"GET", "/plans/projects/:id/plans/:planId", import("effect/Schema").Struct<{
44
44
  id: typeof import("effect/Schema").String;
45
45
  planId: typeof import("effect/Schema").String;
@@ -61,7 +61,7 @@ export declare const plansEndpoints: {
61
61
  }>;
62
62
  createdAt: typeof import("effect/Schema").String;
63
63
  updatedAt: typeof import("effect/Schema").String;
64
- }>>;
64
+ }>, undefined>;
65
65
  readonly create: import("../endpoint.js").Endpoint<"POST", "/plans/plans", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
66
66
  projectSlug: typeof import("effect/Schema").String;
67
67
  name: typeof import("effect/Schema").String;
@@ -81,7 +81,9 @@ export declare const plansEndpoints: {
81
81
  annual: typeof import("effect/Schema").Boolean;
82
82
  lifetime: typeof import("effect/Schema").Boolean;
83
83
  }>;
84
- }>>;
84
+ }>, {
85
+ status: 201;
86
+ }>;
85
87
  readonly update: import("../endpoint.js").Endpoint<"PATCH", "/plans/plans/:planId", import("effect/Schema").Struct<{
86
88
  planId: typeof import("effect/Schema").String;
87
89
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -103,7 +105,7 @@ export declare const plansEndpoints: {
103
105
  annual: typeof import("effect/Schema").Boolean;
104
106
  lifetime: typeof import("effect/Schema").Boolean;
105
107
  }>;
106
- }>>;
108
+ }>, undefined>;
107
109
  readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/plans/plans/:planId", import("effect/Schema").Struct<{
108
110
  planId: typeof import("effect/Schema").String;
109
111
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -111,7 +113,7 @@ export declare const plansEndpoints: {
111
113
  }>, import("effect/Schema").Struct<{
112
114
  id: typeof import("effect/Schema").String;
113
115
  name: typeof import("effect/Schema").String;
114
- }>>;
116
+ }>, undefined>;
115
117
  readonly syncStripe: import("../endpoint.js").Endpoint<"POST", "/plans/plans/:planId/sync-stripe", import("effect/Schema").Struct<{
116
118
  planId: typeof import("effect/Schema").String;
117
119
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -125,12 +127,12 @@ export declare const plansEndpoints: {
125
127
  annual: typeof import("effect/Schema").Boolean;
126
128
  lifetime: typeof import("effect/Schema").Boolean;
127
129
  }>;
128
- }>>;
130
+ }>, undefined>;
129
131
  readonly reorder: import("../endpoint.js").Endpoint<"POST", "/plans/plans/reorder", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
130
132
  projectSlug: typeof import("effect/Schema").String;
131
133
  planIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
132
134
  }>, import("effect/Schema").Struct<{
133
135
  success: typeof import("effect/Schema").Boolean;
134
- }>>;
136
+ }>, undefined>;
135
137
  };
136
138
  //# sourceMappingURL=plans.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/endpoints/plans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAqBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEjB,CAAA"}
1
+ {"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/endpoints/plans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAqBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEjB,CAAA"}
@@ -35,6 +35,7 @@ export const plansEndpoints = {
35
35
  create: defineEndpoint({
36
36
  method: 'POST',
37
37
  path: '/plans/plans',
38
+ success: { status: 201 },
38
39
  body: CreatePlanInput,
39
40
  response: CreatePlanResult,
40
41
  plane: 'management',
@@ -15,7 +15,9 @@ export declare const privacyEndpoints: {
15
15
  scanId: typeof Schema.String;
16
16
  status: Schema.Literal<["pending", "running", "completed", "failed"]>;
17
17
  message: typeof Schema.String;
18
- }>>;
18
+ }>, {
19
+ status: 201;
20
+ }>;
19
21
  readonly getScan: import("../endpoint.js").Endpoint<"GET", "/privacy/projects/:id/scans/:scanId", Schema.Struct<{
20
22
  id: typeof Schema.String;
21
23
  scanId: typeof Schema.String;
@@ -33,7 +35,7 @@ export declare const privacyEndpoints: {
33
35
  completedAt: Schema.NullOr<typeof Schema.String>;
34
36
  durationMs: Schema.NullOr<typeof Schema.Number>;
35
37
  createdAt: typeof Schema.String;
36
- }>>;
38
+ }>, undefined>;
37
39
  readonly listScans: import("../endpoint.js").Endpoint<"GET", "/privacy/projects/:id/scans", Schema.Struct<{
38
40
  id: typeof Schema.String;
39
41
  }>, Schema.Struct<{
@@ -52,7 +54,7 @@ export declare const privacyEndpoints: {
52
54
  total: typeof Schema.Number;
53
55
  limit: typeof Schema.Number;
54
56
  offset: typeof Schema.Number;
55
- }>>;
57
+ }>, undefined>;
56
58
  readonly listCookies: import("../endpoint.js").Endpoint<"GET", "/privacy/projects/:id/cookies", Schema.Struct<{
57
59
  id: typeof Schema.String;
58
60
  }>, Schema.Struct<{
@@ -83,7 +85,7 @@ export declare const privacyEndpoints: {
83
85
  total: typeof Schema.Number;
84
86
  limit: typeof Schema.Number;
85
87
  offset: typeof Schema.Number;
86
- }>>;
88
+ }>, undefined>;
87
89
  readonly getSummary: import("../endpoint.js").Endpoint<"GET", "/privacy/projects/:id/summary", Schema.Struct<{
88
90
  id: typeof Schema.String;
89
91
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -93,7 +95,7 @@ export declare const privacyEndpoints: {
93
95
  byCategoryCount: Schema.Record$<typeof Schema.String, typeof Schema.Number>;
94
96
  byPartyCount: Schema.Record$<typeof Schema.String, typeof Schema.Number>;
95
97
  unmappedCookies: typeof Schema.Number;
96
- }>>;
98
+ }>, undefined>;
97
99
  readonly updateCookieCategory: import("../endpoint.js").Endpoint<"PATCH", "/privacy/projects/:id/cookies/:cookieId/category", Schema.Struct<{
98
100
  id: typeof Schema.String;
99
101
  cookieId: typeof Schema.String;
@@ -103,7 +105,7 @@ export declare const privacyEndpoints: {
103
105
  id: typeof Schema.String;
104
106
  name: typeof Schema.String;
105
107
  category: Schema.Literal<["necessary", "analytics", "marketing", "preferences", "functional", "unknown"]>;
106
- }>>;
108
+ }>, undefined>;
107
109
  readonly linkCookie: import("../endpoint.js").Endpoint<"PATCH", "/privacy/projects/:id/cookies/:cookieId/consent-type", Schema.Struct<{
108
110
  id: typeof Schema.String;
109
111
  cookieId: typeof Schema.String;
@@ -113,7 +115,7 @@ export declare const privacyEndpoints: {
113
115
  id: typeof Schema.String;
114
116
  name: typeof Schema.String;
115
117
  consentTypeId: Schema.NullOr<typeof Schema.String>;
116
- }>>;
118
+ }>, undefined>;
117
119
  readonly bulkLinkCookies: import("../endpoint.js").Endpoint<"POST", "/privacy/cookies/bulk-link", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
118
120
  projectId: typeof Schema.String;
119
121
  category: Schema.Literal<["necessary", "analytics", "marketing", "preferences", "functional", "unknown"]>;
@@ -122,10 +124,10 @@ export declare const privacyEndpoints: {
122
124
  linkedCount: typeof Schema.Number;
123
125
  category: Schema.Literal<["necessary", "analytics", "marketing", "preferences", "functional", "unknown"]>;
124
126
  consentTypeId: typeof Schema.String;
125
- }>>;
127
+ }>, undefined>;
126
128
  readonly seedKnownCookies: import("../endpoint.js").Endpoint<"POST", "/privacy/known-cookies/seed", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
127
129
  seededCount: typeof Schema.Number;
128
130
  message: typeof Schema.String;
129
- }>>;
131
+ }>, undefined>;
130
132
  };
131
133
  //# sourceMappingURL=privacy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../../src/endpoints/privacy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwB/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFnB,CAAA"}
1
+ {"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../../src/endpoints/privacy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwB/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFnB,CAAA"}
@@ -14,6 +14,7 @@ export const privacyEndpoints = {
14
14
  startScan: defineEndpoint({
15
15
  method: 'POST',
16
16
  path: '/privacy/scans',
17
+ success: { status: 201 },
17
18
  body: StartScanInput,
18
19
  response: StartScanResult,
19
20
  plane: 'management',