@sylphx/contract 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/endpoint.d.ts +45 -3
  3. package/dist/endpoint.d.ts.map +1 -1
  4. package/dist/endpoint.js +9 -0
  5. package/dist/endpoints/admin-ai-playground.d.ts +3 -3
  6. package/dist/endpoints/admin-anomalies.d.ts +7 -7
  7. package/dist/endpoints/admin-apm.d.ts +6 -6
  8. package/dist/endpoints/admin-audit.d.ts +94 -58
  9. package/dist/endpoints/admin-audit.d.ts.map +1 -1
  10. package/dist/endpoints/admin-audit.js +8 -1
  11. package/dist/endpoints/admin-billing.d.ts +35 -24
  12. package/dist/endpoints/admin-billing.d.ts.map +1 -1
  13. package/dist/endpoints/admin-billing.js +4 -3
  14. package/dist/endpoints/admin-bootstrap.d.ts +1 -1
  15. package/dist/endpoints/admin-branch-databases.d.ts +43 -0
  16. package/dist/endpoints/admin-branch-databases.d.ts.map +1 -0
  17. package/dist/endpoints/admin-branch-databases.js +41 -0
  18. package/dist/endpoints/admin-broadcasts.d.ts +10 -8
  19. package/dist/endpoints/admin-broadcasts.d.ts.map +1 -1
  20. package/dist/endpoints/admin-broadcasts.js +1 -0
  21. package/dist/endpoints/admin-builds.d.ts +1 -1
  22. package/dist/endpoints/admin-config.d.ts +11 -11
  23. package/dist/endpoints/admin-consent.d.ts +78 -41
  24. package/dist/endpoints/admin-consent.d.ts.map +1 -1
  25. package/dist/endpoints/admin-consent.js +9 -6
  26. package/dist/endpoints/admin-env-services.d.ts +1 -1
  27. package/dist/endpoints/admin-impersonation.d.ts +9 -9
  28. package/dist/endpoints/admin-invitations.d.ts +9 -5
  29. package/dist/endpoints/admin-invitations.d.ts.map +1 -1
  30. package/dist/endpoints/admin-invitations.js +2 -0
  31. package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
  32. package/dist/endpoints/admin-logs.d.ts +7 -7
  33. package/dist/endpoints/admin-plans.d.ts +6 -4
  34. package/dist/endpoints/admin-plans.d.ts.map +1 -1
  35. package/dist/endpoints/admin-plans.js +1 -0
  36. package/dist/endpoints/admin-project-users.d.ts +8 -8
  37. package/dist/endpoints/admin-projects.d.ts +11 -9
  38. package/dist/endpoints/admin-projects.d.ts.map +1 -1
  39. package/dist/endpoints/admin-projects.js +3 -2
  40. package/dist/endpoints/admin-quotas.d.ts +6 -6
  41. package/dist/endpoints/admin-rate-limits.d.ts +2 -2
  42. package/dist/endpoints/admin-reconcile.d.ts +1 -1
  43. package/dist/endpoints/admin-resources.d.ts +2 -2
  44. package/dist/endpoints/admin-secrets.d.ts +2 -2
  45. package/dist/endpoints/admin-services.d.ts +1 -1
  46. package/dist/endpoints/admin-tasks.d.ts +6 -6
  47. package/dist/endpoints/admin-tenants.d.ts +3 -1
  48. package/dist/endpoints/admin-tenants.d.ts.map +1 -1
  49. package/dist/endpoints/admin-tenants.js +1 -0
  50. package/dist/endpoints/admin-traces.d.ts +5 -5
  51. package/dist/endpoints/admin-users.d.ts +8 -8
  52. package/dist/endpoints/admin-webhook-signature-versions.d.ts +5 -3
  53. package/dist/endpoints/admin-webhook-signature-versions.d.ts.map +1 -1
  54. package/dist/endpoints/admin-webhook-signature-versions.js +1 -0
  55. package/dist/endpoints/ai-admin.d.ts +5 -5
  56. package/dist/endpoints/analytics-admin.d.ts +123 -38
  57. package/dist/endpoints/analytics-admin.d.ts.map +1 -1
  58. package/dist/endpoints/analytics-admin.js +17 -9
  59. package/dist/endpoints/analytics.d.ts +4 -4
  60. package/dist/endpoints/audit-chain.d.ts +1 -1
  61. package/dist/endpoints/audit.d.ts +1 -1
  62. package/dist/endpoints/auth-admin.d.ts +5 -5
  63. package/dist/endpoints/auth.d.ts +25 -22
  64. package/dist/endpoints/auth.d.ts.map +1 -1
  65. package/dist/endpoints/auth.js +2 -2
  66. package/dist/endpoints/backups.d.ts +4 -4
  67. package/dist/endpoints/billing-console.d.ts +16 -16
  68. package/dist/endpoints/billing-settings.d.ts +11 -11
  69. package/dist/endpoints/branch-databases.d.ts +8 -4
  70. package/dist/endpoints/branch-databases.d.ts.map +1 -1
  71. package/dist/endpoints/branch-databases.js +2 -0
  72. package/dist/endpoints/challenge.d.ts +5 -5
  73. package/dist/endpoints/ci-settings.d.ts +8 -8
  74. package/dist/endpoints/consent-admin.d.ts +9 -7
  75. package/dist/endpoints/consent-admin.d.ts.map +1 -1
  76. package/dist/endpoints/consent-admin.js +1 -0
  77. package/dist/endpoints/databases.d.ts +189 -323
  78. package/dist/endpoints/databases.d.ts.map +1 -1
  79. package/dist/endpoints/databases.js +42 -41
  80. package/dist/endpoints/deployments.d.ts +71 -18
  81. package/dist/endpoints/deployments.d.ts.map +1 -1
  82. package/dist/endpoints/deployments.js +9 -1
  83. package/dist/endpoints/domains.d.ts +33 -23
  84. package/dist/endpoints/domains.d.ts.map +1 -1
  85. package/dist/endpoints/domains.js +7 -4
  86. package/dist/endpoints/email-admin.d.ts +29 -23
  87. package/dist/endpoints/email-admin.d.ts.map +1 -1
  88. package/dist/endpoints/email-admin.js +3 -0
  89. package/dist/endpoints/email.d.ts +4 -4
  90. package/dist/endpoints/engagement-admin.d.ts +6 -6
  91. package/dist/endpoints/env-vars.d.ts +3 -3
  92. package/dist/endpoints/environments.d.ts +30 -27
  93. package/dist/endpoints/environments.d.ts.map +1 -1
  94. package/dist/endpoints/environments.js +3 -7
  95. package/dist/endpoints/experiments.d.ts +20 -18
  96. package/dist/endpoints/experiments.d.ts.map +1 -1
  97. package/dist/endpoints/experiments.js +1 -0
  98. package/dist/endpoints/flags-admin.d.ts +73 -9
  99. package/dist/endpoints/flags-admin.d.ts.map +1 -1
  100. package/dist/endpoints/flags-admin.js +1 -0
  101. package/dist/endpoints/flags.d.ts +1 -1
  102. package/dist/endpoints/github.d.ts +3 -3
  103. package/dist/endpoints/image-opt.d.ts +2 -2
  104. package/dist/endpoints/kv-admin.d.ts +7 -7
  105. package/dist/endpoints/kv-admin.js +1 -1
  106. package/dist/endpoints/kv.d.ts +27 -21
  107. package/dist/endpoints/kv.d.ts.map +1 -1
  108. package/dist/endpoints/kv.js +9 -9
  109. package/dist/endpoints/monitoring-admin.d.ts +10 -10
  110. package/dist/endpoints/monitoring.d.ts +2 -2
  111. package/dist/endpoints/newsletter.d.ts +30 -24
  112. package/dist/endpoints/newsletter.d.ts.map +1 -1
  113. package/dist/endpoints/newsletter.js +3 -0
  114. package/dist/endpoints/notifications-admin.d.ts +17 -17
  115. package/dist/endpoints/notifications.d.ts +23 -16
  116. package/dist/endpoints/notifications.d.ts.map +1 -1
  117. package/dist/endpoints/oidc.d.ts +6 -4
  118. package/dist/endpoints/oidc.d.ts.map +1 -1
  119. package/dist/endpoints/oidc.js +1 -0
  120. package/dist/endpoints/organizations.d.ts +56 -48
  121. package/dist/endpoints/organizations.d.ts.map +1 -1
  122. package/dist/endpoints/organizations.js +4 -0
  123. package/dist/endpoints/plans.d.ts +9 -7
  124. package/dist/endpoints/plans.d.ts.map +1 -1
  125. package/dist/endpoints/plans.js +1 -0
  126. package/dist/endpoints/privacy.d.ts +11 -9
  127. package/dist/endpoints/privacy.d.ts.map +1 -1
  128. package/dist/endpoints/privacy.js +1 -0
  129. package/dist/endpoints/project-manifest.d.ts +126 -44
  130. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  131. package/dist/endpoints/projects.d.ts +7 -5
  132. package/dist/endpoints/projects.d.ts.map +1 -1
  133. package/dist/endpoints/projects.js +2 -1
  134. package/dist/endpoints/rate-limits.d.ts +4 -4
  135. package/dist/endpoints/realtime-admin.d.ts +6 -4
  136. package/dist/endpoints/realtime-admin.d.ts.map +1 -1
  137. package/dist/endpoints/realtime-admin.js +1 -0
  138. package/dist/endpoints/realtime.d.ts +3 -3
  139. package/dist/endpoints/referrals-admin.d.ts +7 -5
  140. package/dist/endpoints/referrals-admin.d.ts.map +1 -1
  141. package/dist/endpoints/referrals-admin.js +1 -0
  142. package/dist/endpoints/refresh.d.ts +1 -1
  143. package/dist/endpoints/regions.d.ts +5 -22
  144. package/dist/endpoints/regions.d.ts.map +1 -1
  145. package/dist/endpoints/regions.js +5 -27
  146. package/dist/endpoints/runners.d.ts +4 -4
  147. package/dist/endpoints/saml.d.ts +13 -11
  148. package/dist/endpoints/saml.d.ts.map +1 -1
  149. package/dist/endpoints/saml.js +1 -0
  150. package/dist/endpoints/search.d.ts +3 -3
  151. package/dist/endpoints/secrets.d.ts +9 -7
  152. package/dist/endpoints/secrets.d.ts.map +1 -1
  153. package/dist/endpoints/secrets.js +1 -0
  154. package/dist/endpoints/security.d.ts +28 -28
  155. package/dist/endpoints/service-tokens.d.ts +20 -12
  156. package/dist/endpoints/service-tokens.d.ts.map +1 -1
  157. package/dist/endpoints/service-tokens.js +4 -0
  158. package/dist/endpoints/session-replay.d.ts +4 -4
  159. package/dist/endpoints/storage-admin.d.ts +14 -10
  160. package/dist/endpoints/storage-admin.d.ts.map +1 -1
  161. package/dist/endpoints/storage-admin.js +3 -1
  162. package/dist/endpoints/storage.d.ts +30 -12
  163. package/dist/endpoints/storage.d.ts.map +1 -1
  164. package/dist/endpoints/storage.js +11 -1
  165. package/dist/endpoints/tasks.d.ts +13 -9
  166. package/dist/endpoints/tasks.d.ts.map +1 -1
  167. package/dist/endpoints/tasks.js +2 -0
  168. package/dist/endpoints/users.d.ts +12 -12
  169. package/dist/endpoints/webhooks.d.ts +10 -10
  170. package/dist/hono-app.d.ts +55 -26
  171. package/dist/hono-app.d.ts.map +1 -1
  172. package/dist/index.d.ts +1644 -1101
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.js +6 -5
  175. package/dist/schemas/admin-audit.d.ts +50 -0
  176. package/dist/schemas/admin-audit.d.ts.map +1 -1
  177. package/dist/schemas/admin-audit.js +43 -0
  178. package/dist/schemas/admin-billing.d.ts +19 -5
  179. package/dist/schemas/admin-billing.d.ts.map +1 -1
  180. package/dist/schemas/admin-billing.js +16 -5
  181. package/dist/schemas/admin-branch-databases.d.ts +34 -0
  182. package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
  183. package/dist/schemas/admin-branch-databases.js +33 -0
  184. package/dist/schemas/admin-broadcasts.d.ts +6 -6
  185. package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
  186. package/dist/schemas/admin-broadcasts.js +1 -1
  187. package/dist/schemas/admin-consent.d.ts +90 -6
  188. package/dist/schemas/admin-consent.d.ts.map +1 -1
  189. package/dist/schemas/admin-consent.js +50 -3
  190. package/dist/schemas/analytics-admin.d.ts +99 -9
  191. package/dist/schemas/analytics-admin.d.ts.map +1 -1
  192. package/dist/schemas/analytics-admin.js +70 -0
  193. package/dist/schemas/auth.d.ts +1 -0
  194. package/dist/schemas/auth.d.ts.map +1 -1
  195. package/dist/schemas/auth.js +1 -0
  196. package/dist/schemas/database.d.ts +3 -2
  197. package/dist/schemas/database.d.ts.map +1 -1
  198. package/dist/schemas/database.js +3 -2
  199. package/dist/schemas/deployment.d.ts +53 -0
  200. package/dist/schemas/deployment.d.ts.map +1 -1
  201. package/dist/schemas/deployment.js +53 -1
  202. package/dist/schemas/experiments.d.ts +13 -33
  203. package/dist/schemas/experiments.d.ts.map +1 -1
  204. package/dist/schemas/experiments.js +5 -4
  205. package/dist/schemas/flags-admin.d.ts +115 -19
  206. package/dist/schemas/flags-admin.d.ts.map +1 -1
  207. package/dist/schemas/flags-admin.js +28 -8
  208. package/dist/schemas/ids.d.ts +2 -0
  209. package/dist/schemas/ids.d.ts.map +1 -1
  210. package/dist/schemas/ids.js +1 -0
  211. package/dist/schemas/kv-admin.d.ts +1 -1
  212. package/dist/schemas/kv-admin.js +1 -1
  213. package/dist/schemas/kv.d.ts +12 -4
  214. package/dist/schemas/kv.d.ts.map +1 -1
  215. package/dist/schemas/kv.js +17 -5
  216. package/dist/schemas/notifications.d.ts +11 -0
  217. package/dist/schemas/notifications.d.ts.map +1 -1
  218. package/dist/schemas/notifications.js +11 -0
  219. package/dist/schemas/project-manifest.d.ts +239 -76
  220. package/dist/schemas/project-manifest.d.ts.map +1 -1
  221. package/dist/schemas/project-manifest.js +74 -23
  222. package/dist/schemas/project.d.ts +3 -3
  223. package/dist/schemas/project.d.ts.map +1 -1
  224. package/dist/schemas/project.js +2 -2
  225. package/dist/schemas/region.d.ts +4 -52
  226. package/dist/schemas/region.d.ts.map +1 -1
  227. package/dist/schemas/region.js +4 -46
  228. package/dist/schemas/resources.d.ts +59 -8
  229. package/dist/schemas/resources.d.ts.map +1 -1
  230. package/dist/schemas/resources.js +54 -3
  231. package/dist/schemas/storage.d.ts +29 -0
  232. package/dist/schemas/storage.d.ts.map +1 -1
  233. package/dist/schemas/storage.js +19 -0
  234. package/package.json +1 -1
  235. package/dist/endpoints/edge-deployments.d.ts +0 -92
  236. package/dist/endpoints/edge-deployments.d.ts.map +0 -1
  237. package/dist/endpoints/edge-deployments.js +0 -58
  238. package/dist/schemas/edge-deployments.d.ts +0 -140
  239. package/dist/schemas/edge-deployments.d.ts.map +0 -1
  240. package/dist/schemas/edge-deployments.js +0 -87
@@ -18,13 +18,13 @@ export declare const notificationsEndpoints: {
18
18
  }>, import("effect/Schema").Struct<{
19
19
  success: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
20
20
  deviceId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
21
- }>>;
21
+ }>, undefined>;
22
22
  readonly unregisterPush: import("../endpoint.js").Endpoint<"POST", "/notifications/unregister", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
23
23
  endpoint: typeof import("effect/Schema").String;
24
24
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
25
25
  }>, import("effect/Schema").Struct<{
26
26
  success: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
27
- }>>;
27
+ }>, undefined>;
28
28
  readonly sendPush: import("../endpoint.js").Endpoint<"POST", "/notifications/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
29
29
  userId: typeof import("effect/Schema").String;
30
30
  title: typeof import("effect/Schema").String;
@@ -36,20 +36,27 @@ export declare const notificationsEndpoints: {
36
36
  status: import("effect/Schema").optional<import("effect/Schema").Literal<["delivered", "queued", "failed"]>>;
37
37
  messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
38
38
  reason: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
+ sent: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
40
+ failed: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
41
+ platforms: import("effect/Schema").optional<import("effect/Schema").Struct<{
42
+ web: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
43
+ ios: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
44
+ android: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
45
+ }>>;
39
46
  sentTo: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
40
47
  expired: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
41
- }>>;
48
+ }>, undefined>;
42
49
  readonly getPreferences: import("../endpoint.js").Endpoint<"GET", "/notifications/preferences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
43
50
  enabled: typeof import("effect/Schema").Boolean;
44
51
  categories: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>;
45
- }>>;
52
+ }>, undefined>;
46
53
  readonly updatePreferences: import("../endpoint.js").Endpoint<"PUT", "/notifications/preferences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
47
54
  enabled: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
48
55
  categories: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
49
56
  }>, import("effect/Schema").Struct<{
50
57
  enabled: typeof import("effect/Schema").Boolean;
51
58
  categories: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>;
52
- }>>;
59
+ }>, undefined>;
53
60
  readonly listInbox: import("../endpoint.js").Endpoint<"GET", "/notifications/inbox", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
54
61
  userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
55
62
  unreadOnly: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -65,7 +72,7 @@ export declare const notificationsEndpoints: {
65
72
  data: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
66
73
  }>>;
67
74
  total: typeof import("effect/Schema").Number;
68
- }>>;
75
+ }>, undefined>;
69
76
  readonly createSegment: import("../endpoint.js").Endpoint<"POST", "/notifications/segments", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
70
77
  name: typeof import("effect/Schema").String;
71
78
  description: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -79,7 +86,7 @@ export declare const notificationsEndpoints: {
79
86
  computedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
80
87
  createdAt: typeof import("effect/Schema").String;
81
88
  createdBy: typeof import("effect/Schema").String;
82
- }>>;
89
+ }>, undefined>;
83
90
  readonly listSegments: import("../endpoint.js").Endpoint<"GET", "/notifications/segments", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
84
91
  segments: import("effect/Schema").Array$<import("effect/Schema").Struct<{
85
92
  id: typeof import("effect/Schema").String;
@@ -91,7 +98,7 @@ export declare const notificationsEndpoints: {
91
98
  createdAt: typeof import("effect/Schema").String;
92
99
  createdBy: typeof import("effect/Schema").String;
93
100
  }>>;
94
- }>>;
101
+ }>, undefined>;
95
102
  readonly getSegment: import("../endpoint.js").Endpoint<"GET", "/notifications/segments/:id", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
96
103
  id: typeof import("effect/Schema").String;
97
104
  name: typeof import("effect/Schema").String;
@@ -101,10 +108,10 @@ export declare const notificationsEndpoints: {
101
108
  computedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
102
109
  createdAt: typeof import("effect/Schema").String;
103
110
  createdBy: typeof import("effect/Schema").String;
104
- }>>;
111
+ }>, undefined>;
105
112
  readonly deleteSegment: import("../endpoint.js").Endpoint<"DELETE", "/notifications/segments/:id", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
106
113
  success: typeof import("effect/Schema").Boolean;
107
- }>>;
114
+ }>, undefined>;
108
115
  readonly createCampaign: import("../endpoint.js").Endpoint<"POST", "/notifications/campaigns", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
109
116
  name: typeof import("effect/Schema").String;
110
117
  segmentId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -135,7 +142,7 @@ export declare const notificationsEndpoints: {
135
142
  scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
136
143
  sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
137
144
  createdAt: typeof import("effect/Schema").String;
138
- }>>;
145
+ }>, undefined>;
139
146
  readonly getCampaign: import("../endpoint.js").Endpoint<"GET", "/notifications/campaigns/:id", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
140
147
  id: typeof import("effect/Schema").String;
141
148
  name: typeof import("effect/Schema").String;
@@ -153,7 +160,7 @@ export declare const notificationsEndpoints: {
153
160
  scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
154
161
  sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
155
162
  createdAt: typeof import("effect/Schema").String;
156
- }>>;
163
+ }>, undefined>;
157
164
  readonly scheduleCampaign: import("../endpoint.js").Endpoint<"POST", "/notifications/campaigns/:id/schedule", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
158
165
  scheduledAt: typeof import("effect/Schema").String;
159
166
  }>, import("effect/Schema").Struct<{
@@ -173,7 +180,7 @@ export declare const notificationsEndpoints: {
173
180
  scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
174
181
  sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
175
182
  createdAt: typeof import("effect/Schema").String;
176
- }>>;
183
+ }>, undefined>;
177
184
  readonly sendCampaign: import("../endpoint.js").Endpoint<"POST", "/notifications/campaigns/:id/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
178
185
  id: typeof import("effect/Schema").String;
179
186
  name: typeof import("effect/Schema").String;
@@ -191,7 +198,7 @@ export declare const notificationsEndpoints: {
191
198
  scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
192
199
  sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
193
200
  createdAt: typeof import("effect/Schema").String;
194
- }>>;
201
+ }>, undefined>;
195
202
  readonly cancelCampaign: import("../endpoint.js").Endpoint<"POST", "/notifications/campaigns/:id/cancel", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
196
203
  id: typeof import("effect/Schema").String;
197
204
  name: typeof import("effect/Schema").String;
@@ -209,7 +216,7 @@ export declare const notificationsEndpoints: {
209
216
  scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
210
217
  sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
211
218
  createdAt: typeof import("effect/Schema").String;
212
- }>>;
219
+ }>, undefined>;
213
220
  readonly getCampaignStats: import("../endpoint.js").Endpoint<"GET", "/notifications/campaigns/:id/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
214
221
  campaignId: typeof import("effect/Schema").String;
215
222
  totalDeliveries: typeof import("effect/Schema").Number;
@@ -220,6 +227,6 @@ export declare const notificationsEndpoints: {
220
227
  failed: typeof import("effect/Schema").Number;
221
228
  clicked: typeof import("effect/Schema").Number;
222
229
  }>>;
223
- }>>;
230
+ }>, undefined>;
224
231
  };
225
232
  //# sourceMappingURL=notifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/endpoints/notifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IzB,CAAA"}
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/endpoints/notifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IzB,CAAA"}
@@ -29,7 +29,9 @@ export declare const oidcEndpoints: {
29
29
  createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
30
30
  createdAt: typeof import("effect/Schema").String;
31
31
  updatedAt: typeof import("effect/Schema").String;
32
- }>>;
32
+ }>, {
33
+ status: 201;
34
+ }>;
33
35
  readonly listPolicies: import("../endpoint.js").Endpoint<"GET", "/projects/:projectId/oidc-policies", import("effect/Schema").Struct<{
34
36
  projectId: typeof import("effect/Schema").String;
35
37
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -47,13 +49,13 @@ export declare const oidcEndpoints: {
47
49
  createdAt: typeof import("effect/Schema").String;
48
50
  updatedAt: typeof import("effect/Schema").String;
49
51
  }>>;
50
- }>>;
52
+ }>, undefined>;
51
53
  readonly deletePolicy: import("../endpoint.js").Endpoint<"DELETE", "/projects/:projectId/oidc-policies/:id", import("effect/Schema").Struct<{
52
54
  projectId: typeof import("effect/Schema").String;
53
55
  id: typeof import("effect/Schema").String;
54
56
  }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
55
57
  deleted: typeof import("effect/Schema").Boolean;
56
- }>>;
58
+ }>, undefined>;
57
59
  readonly exchange: import("../endpoint.js").Endpoint<"POST", "/oidc/exchange", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
58
60
  jwt: typeof import("effect/Schema").String;
59
61
  projectId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -62,6 +64,6 @@ export declare const oidcEndpoints: {
62
64
  token: typeof import("effect/Schema").String;
63
65
  expiresAt: typeof import("effect/Schema").String;
64
66
  scopes: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
65
- }>>;
67
+ }>, undefined>;
66
68
  };
67
69
  //# sourceMappingURL=oidc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oidc.d.ts","sourceRoot":"","sources":["../../src/endpoints/oidc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsChB,CAAA"}
1
+ {"version":3,"file":"oidc.d.ts","sourceRoot":"","sources":["../../src/endpoints/oidc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuChB,CAAA"}
@@ -12,6 +12,7 @@ export const oidcEndpoints = {
12
12
  createPolicy: defineEndpoint({
13
13
  method: 'POST',
14
14
  path: '/projects/:projectId/oidc-policies',
15
+ success: { status: 201 },
15
16
  params: OidcProjectIdParams,
16
17
  body: CreateOidcPolicyInput,
17
18
  response: OidcPolicyView,
@@ -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"}