@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.
- package/CHANGELOG.md +6 -0
- package/dist/endpoint.d.ts +45 -3
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoint.js +9 -0
- package/dist/endpoints/admin-ai-playground.d.ts +3 -3
- package/dist/endpoints/admin-anomalies.d.ts +7 -7
- package/dist/endpoints/admin-apm.d.ts +6 -6
- package/dist/endpoints/admin-audit.d.ts +94 -58
- package/dist/endpoints/admin-audit.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.js +8 -1
- package/dist/endpoints/admin-billing.d.ts +35 -24
- package/dist/endpoints/admin-billing.d.ts.map +1 -1
- package/dist/endpoints/admin-billing.js +4 -3
- package/dist/endpoints/admin-bootstrap.d.ts +1 -1
- package/dist/endpoints/admin-branch-databases.d.ts +43 -0
- package/dist/endpoints/admin-branch-databases.d.ts.map +1 -0
- package/dist/endpoints/admin-branch-databases.js +41 -0
- package/dist/endpoints/admin-broadcasts.d.ts +10 -8
- package/dist/endpoints/admin-broadcasts.d.ts.map +1 -1
- package/dist/endpoints/admin-broadcasts.js +1 -0
- package/dist/endpoints/admin-builds.d.ts +1 -1
- package/dist/endpoints/admin-config.d.ts +11 -11
- package/dist/endpoints/admin-consent.d.ts +78 -41
- package/dist/endpoints/admin-consent.d.ts.map +1 -1
- package/dist/endpoints/admin-consent.js +9 -6
- package/dist/endpoints/admin-env-services.d.ts +1 -1
- package/dist/endpoints/admin-impersonation.d.ts +9 -9
- package/dist/endpoints/admin-invitations.d.ts +9 -5
- package/dist/endpoints/admin-invitations.d.ts.map +1 -1
- package/dist/endpoints/admin-invitations.js +2 -0
- package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
- package/dist/endpoints/admin-logs.d.ts +7 -7
- package/dist/endpoints/admin-plans.d.ts +6 -4
- package/dist/endpoints/admin-plans.d.ts.map +1 -1
- package/dist/endpoints/admin-plans.js +1 -0
- package/dist/endpoints/admin-project-users.d.ts +8 -8
- package/dist/endpoints/admin-projects.d.ts +11 -9
- package/dist/endpoints/admin-projects.d.ts.map +1 -1
- package/dist/endpoints/admin-projects.js +3 -2
- package/dist/endpoints/admin-quotas.d.ts +6 -6
- package/dist/endpoints/admin-rate-limits.d.ts +2 -2
- package/dist/endpoints/admin-reconcile.d.ts +1 -1
- package/dist/endpoints/admin-resources.d.ts +2 -2
- package/dist/endpoints/admin-secrets.d.ts +2 -2
- package/dist/endpoints/admin-services.d.ts +1 -1
- package/dist/endpoints/admin-tasks.d.ts +6 -6
- package/dist/endpoints/admin-tenants.d.ts +3 -1
- package/dist/endpoints/admin-tenants.d.ts.map +1 -1
- package/dist/endpoints/admin-tenants.js +1 -0
- package/dist/endpoints/admin-traces.d.ts +5 -5
- package/dist/endpoints/admin-users.d.ts +8 -8
- package/dist/endpoints/admin-webhook-signature-versions.d.ts +5 -3
- package/dist/endpoints/admin-webhook-signature-versions.d.ts.map +1 -1
- package/dist/endpoints/admin-webhook-signature-versions.js +1 -0
- package/dist/endpoints/ai-admin.d.ts +5 -5
- package/dist/endpoints/analytics-admin.d.ts +123 -38
- package/dist/endpoints/analytics-admin.d.ts.map +1 -1
- package/dist/endpoints/analytics-admin.js +17 -9
- package/dist/endpoints/analytics.d.ts +4 -4
- package/dist/endpoints/audit-chain.d.ts +1 -1
- package/dist/endpoints/audit.d.ts +1 -1
- package/dist/endpoints/auth-admin.d.ts +5 -5
- package/dist/endpoints/auth.d.ts +25 -22
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +2 -2
- package/dist/endpoints/backups.d.ts +4 -4
- package/dist/endpoints/billing-console.d.ts +16 -16
- package/dist/endpoints/billing-settings.d.ts +11 -11
- package/dist/endpoints/branch-databases.d.ts +8 -4
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +2 -0
- package/dist/endpoints/challenge.d.ts +5 -5
- package/dist/endpoints/ci-settings.d.ts +8 -8
- package/dist/endpoints/consent-admin.d.ts +9 -7
- package/dist/endpoints/consent-admin.d.ts.map +1 -1
- package/dist/endpoints/consent-admin.js +1 -0
- package/dist/endpoints/databases.d.ts +187 -321
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +42 -41
- package/dist/endpoints/deployments.d.ts +71 -18
- package/dist/endpoints/deployments.d.ts.map +1 -1
- package/dist/endpoints/deployments.js +9 -1
- package/dist/endpoints/domains.d.ts +33 -23
- package/dist/endpoints/domains.d.ts.map +1 -1
- package/dist/endpoints/domains.js +7 -4
- package/dist/endpoints/email-admin.d.ts +29 -23
- package/dist/endpoints/email-admin.d.ts.map +1 -1
- package/dist/endpoints/email-admin.js +3 -0
- package/dist/endpoints/email.d.ts +4 -4
- package/dist/endpoints/engagement-admin.d.ts +6 -6
- package/dist/endpoints/env-vars.d.ts +3 -3
- package/dist/endpoints/environments.d.ts +30 -27
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/environments.js +3 -7
- package/dist/endpoints/experiments.d.ts +20 -18
- package/dist/endpoints/experiments.d.ts.map +1 -1
- package/dist/endpoints/experiments.js +1 -0
- package/dist/endpoints/flags-admin.d.ts +73 -9
- package/dist/endpoints/flags-admin.d.ts.map +1 -1
- package/dist/endpoints/flags-admin.js +1 -0
- package/dist/endpoints/flags.d.ts +1 -1
- package/dist/endpoints/github.d.ts +3 -3
- package/dist/endpoints/image-opt.d.ts +2 -2
- package/dist/endpoints/kv-admin.d.ts +6 -6
- package/dist/endpoints/kv.d.ts +8 -8
- package/dist/endpoints/monitoring-admin.d.ts +10 -10
- package/dist/endpoints/monitoring.d.ts +2 -2
- package/dist/endpoints/newsletter.d.ts +30 -24
- package/dist/endpoints/newsletter.d.ts.map +1 -1
- package/dist/endpoints/newsletter.js +3 -0
- package/dist/endpoints/notifications-admin.d.ts +17 -17
- package/dist/endpoints/notifications.d.ts +16 -16
- package/dist/endpoints/oidc.d.ts +6 -4
- package/dist/endpoints/oidc.d.ts.map +1 -1
- package/dist/endpoints/oidc.js +1 -0
- package/dist/endpoints/organizations.d.ts +56 -48
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/organizations.js +4 -0
- package/dist/endpoints/plans.d.ts +9 -7
- package/dist/endpoints/plans.d.ts.map +1 -1
- package/dist/endpoints/plans.js +1 -0
- package/dist/endpoints/privacy.d.ts +11 -9
- package/dist/endpoints/privacy.d.ts.map +1 -1
- package/dist/endpoints/privacy.js +1 -0
- package/dist/endpoints/project-manifest.d.ts +18 -42
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/projects.d.ts +7 -5
- package/dist/endpoints/projects.d.ts.map +1 -1
- package/dist/endpoints/projects.js +2 -1
- package/dist/endpoints/rate-limits.d.ts +4 -4
- package/dist/endpoints/realtime-admin.d.ts +6 -4
- package/dist/endpoints/realtime-admin.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.js +1 -0
- package/dist/endpoints/realtime.d.ts +3 -3
- package/dist/endpoints/referrals-admin.d.ts +7 -5
- package/dist/endpoints/referrals-admin.d.ts.map +1 -1
- package/dist/endpoints/referrals-admin.js +1 -0
- package/dist/endpoints/refresh.d.ts +1 -1
- package/dist/endpoints/regions.d.ts +5 -22
- package/dist/endpoints/regions.d.ts.map +1 -1
- package/dist/endpoints/regions.js +5 -27
- package/dist/endpoints/runners.d.ts +4 -4
- package/dist/endpoints/saml.d.ts +13 -11
- package/dist/endpoints/saml.d.ts.map +1 -1
- package/dist/endpoints/saml.js +1 -0
- package/dist/endpoints/search.d.ts +3 -3
- package/dist/endpoints/secrets.d.ts +9 -7
- package/dist/endpoints/secrets.d.ts.map +1 -1
- package/dist/endpoints/secrets.js +1 -0
- package/dist/endpoints/security.d.ts +28 -28
- package/dist/endpoints/service-tokens.d.ts +20 -12
- package/dist/endpoints/service-tokens.d.ts.map +1 -1
- package/dist/endpoints/service-tokens.js +4 -0
- package/dist/endpoints/session-replay.d.ts +4 -4
- package/dist/endpoints/storage-admin.d.ts +14 -10
- package/dist/endpoints/storage-admin.d.ts.map +1 -1
- package/dist/endpoints/storage-admin.js +3 -1
- package/dist/endpoints/storage.d.ts +12 -12
- package/dist/endpoints/tasks.d.ts +13 -9
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/endpoints/tasks.js +2 -0
- package/dist/endpoints/users.d.ts +12 -12
- package/dist/endpoints/webhooks.d.ts +10 -10
- package/dist/hono-app.d.ts +55 -26
- package/dist/hono-app.d.ts.map +1 -1
- package/dist/index.d.ts +1496 -1090
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/schemas/admin-audit.d.ts +50 -0
- package/dist/schemas/admin-audit.d.ts.map +1 -1
- package/dist/schemas/admin-audit.js +43 -0
- package/dist/schemas/admin-billing.d.ts +19 -5
- package/dist/schemas/admin-billing.d.ts.map +1 -1
- package/dist/schemas/admin-billing.js +16 -5
- package/dist/schemas/admin-branch-databases.d.ts +34 -0
- package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
- package/dist/schemas/admin-branch-databases.js +33 -0
- package/dist/schemas/admin-broadcasts.d.ts +6 -6
- package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
- package/dist/schemas/admin-broadcasts.js +1 -1
- package/dist/schemas/admin-consent.d.ts +90 -6
- package/dist/schemas/admin-consent.d.ts.map +1 -1
- package/dist/schemas/admin-consent.js +50 -3
- package/dist/schemas/analytics-admin.d.ts +99 -9
- package/dist/schemas/analytics-admin.d.ts.map +1 -1
- package/dist/schemas/analytics-admin.js +70 -0
- package/dist/schemas/database.d.ts +1 -0
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +1 -0
- package/dist/schemas/deployment.d.ts +53 -0
- package/dist/schemas/deployment.d.ts.map +1 -1
- package/dist/schemas/deployment.js +53 -1
- package/dist/schemas/experiments.d.ts +13 -33
- package/dist/schemas/experiments.d.ts.map +1 -1
- package/dist/schemas/experiments.js +5 -4
- package/dist/schemas/flags-admin.d.ts +115 -19
- package/dist/schemas/flags-admin.d.ts.map +1 -1
- package/dist/schemas/flags-admin.js +28 -8
- package/dist/schemas/ids.d.ts +2 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +1 -0
- package/dist/schemas/project-manifest.d.ts +16 -70
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +0 -21
- package/dist/schemas/project.d.ts +3 -3
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +2 -2
- package/dist/schemas/region.d.ts +4 -52
- package/dist/schemas/region.d.ts.map +1 -1
- package/dist/schemas/region.js +4 -46
- package/dist/schemas/resources.d.ts +55 -4
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +52 -1
- package/package.json +1 -1
- package/dist/endpoints/edge-deployments.d.ts +0 -92
- package/dist/endpoints/edge-deployments.d.ts.map +0 -1
- package/dist/endpoints/edge-deployments.js +0 -58
- package/dist/schemas/edge-deployments.d.ts +0 -140
- package/dist/schemas/edge-deployments.d.ts.map +0 -1
- package/dist/schemas/edge-deployments.js +0 -87
|
@@ -28,7 +28,7 @@ export declare const newsletterEndpoints: {
|
|
|
28
28
|
}>>;
|
|
29
29
|
total: typeof import("effect/Schema").Number;
|
|
30
30
|
hasMore: typeof import("effect/Schema").Boolean;
|
|
31
|
-
}
|
|
31
|
+
}>, undefined>;
|
|
32
32
|
readonly getSubscriber: import("../endpoint.js").Endpoint<"GET", "/newsletter/subscribers/by-email", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
33
33
|
email: typeof import("effect/Schema").String;
|
|
34
34
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -43,29 +43,29 @@ export declare const newsletterEndpoints: {
|
|
|
43
43
|
preferences: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
44
44
|
metadata: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
45
45
|
updatedAt: typeof import("effect/Schema").String;
|
|
46
|
-
}
|
|
46
|
+
}>, undefined>;
|
|
47
47
|
readonly getPreferences: import("../endpoint.js").Endpoint<"GET", "/newsletter/subscribers/preferences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
48
48
|
email: typeof import("effect/Schema").String;
|
|
49
|
-
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean
|
|
49
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>, undefined>;
|
|
50
50
|
readonly exportSubscribers: import("../endpoint.js").Endpoint<"GET", "/newsletter/subscribers/export", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
51
51
|
verified: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
52
52
|
includeUnsubscribed: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
53
53
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
54
54
|
csv: typeof import("effect/Schema").String;
|
|
55
55
|
filename: typeof import("effect/Schema").String;
|
|
56
|
-
}
|
|
56
|
+
}>, undefined>;
|
|
57
57
|
readonly subscriberStats: import("../endpoint.js").Endpoint<"GET", "/newsletter/subscribers/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
58
58
|
total: typeof import("effect/Schema").Number;
|
|
59
59
|
verified: typeof import("effect/Schema").Number;
|
|
60
60
|
unsubscribed: typeof import("effect/Schema").Number;
|
|
61
61
|
bySource: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Number>;
|
|
62
|
-
}
|
|
62
|
+
}>, undefined>;
|
|
63
63
|
readonly deleteSubscriber: import("../endpoint.js").Endpoint<"DELETE", "/newsletter/subscribers", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
64
64
|
email: typeof import("effect/Schema").String;
|
|
65
65
|
}>, import("effect/Schema").Struct<{
|
|
66
66
|
success: typeof import("effect/Schema").Boolean;
|
|
67
67
|
message: typeof import("effect/Schema").String;
|
|
68
|
-
}
|
|
68
|
+
}>, undefined>;
|
|
69
69
|
readonly bulkDeleteSubscribers: import("../endpoint.js").Endpoint<"POST", "/newsletter/subscribers/bulk-delete", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
70
70
|
projectId: typeof import("effect/Schema").String;
|
|
71
71
|
subscriberIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
@@ -75,12 +75,12 @@ export declare const newsletterEndpoints: {
|
|
|
75
75
|
id: typeof import("effect/Schema").String;
|
|
76
76
|
error: typeof import("effect/Schema").String;
|
|
77
77
|
}>>>;
|
|
78
|
-
}
|
|
78
|
+
}>, undefined>;
|
|
79
79
|
readonly resendVerification: import("../endpoint.js").Endpoint<"POST", "/newsletter/subscribers/resend-verification", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
80
80
|
email: typeof import("effect/Schema").String;
|
|
81
81
|
}>, import("effect/Schema").Struct<{
|
|
82
82
|
sent: typeof import("effect/Schema").Boolean;
|
|
83
|
-
}
|
|
83
|
+
}>, undefined>;
|
|
84
84
|
readonly listSequences: import("../endpoint.js").Endpoint<"GET", "/newsletter/sequences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
85
85
|
projectId: typeof import("effect/Schema").String;
|
|
86
86
|
includeInactive: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -104,7 +104,7 @@ export declare const newsletterEndpoints: {
|
|
|
104
104
|
exitOnUnsubscribe: typeof import("effect/Schema").Boolean;
|
|
105
105
|
createdAt: typeof import("effect/Schema").String;
|
|
106
106
|
updatedAt: typeof import("effect/Schema").String;
|
|
107
|
-
}
|
|
107
|
+
}>>, undefined>;
|
|
108
108
|
readonly createSequence: import("../endpoint.js").Endpoint<"POST", "/newsletter/sequences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
109
109
|
projectId: typeof import("effect/Schema").String;
|
|
110
110
|
name: typeof import("effect/Schema").String;
|
|
@@ -152,7 +152,9 @@ export declare const newsletterEndpoints: {
|
|
|
152
152
|
createdAt: typeof import("effect/Schema").String;
|
|
153
153
|
updatedAt: typeof import("effect/Schema").String;
|
|
154
154
|
}>>;
|
|
155
|
-
}
|
|
155
|
+
}>, {
|
|
156
|
+
status: 201;
|
|
157
|
+
}>;
|
|
156
158
|
readonly getSequence: import("../endpoint.js").Endpoint<"GET", "/newsletter/sequences/:sequenceId", import("effect/Schema").Struct<{
|
|
157
159
|
sequenceId: typeof import("effect/Schema").String;
|
|
158
160
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -186,7 +188,7 @@ export declare const newsletterEndpoints: {
|
|
|
186
188
|
createdAt: typeof import("effect/Schema").String;
|
|
187
189
|
updatedAt: typeof import("effect/Schema").String;
|
|
188
190
|
}>>;
|
|
189
|
-
}
|
|
191
|
+
}>, undefined>;
|
|
190
192
|
readonly updateSequence: import("../endpoint.js").Endpoint<"PATCH", "/newsletter/sequences/:sequenceId", import("effect/Schema").Struct<{
|
|
191
193
|
sequenceId: typeof import("effect/Schema").String;
|
|
192
194
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -236,12 +238,12 @@ export declare const newsletterEndpoints: {
|
|
|
236
238
|
createdAt: typeof import("effect/Schema").String;
|
|
237
239
|
updatedAt: typeof import("effect/Schema").String;
|
|
238
240
|
}>>;
|
|
239
|
-
}
|
|
241
|
+
}>, undefined>;
|
|
240
242
|
readonly deleteSequence: import("../endpoint.js").Endpoint<"DELETE", "/newsletter/sequences/:sequenceId", import("effect/Schema").Struct<{
|
|
241
243
|
sequenceId: typeof import("effect/Schema").String;
|
|
242
244
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
243
245
|
success: typeof import("effect/Schema").Boolean;
|
|
244
|
-
}
|
|
246
|
+
}>, undefined>;
|
|
245
247
|
readonly getSequenceAnalytics: import("../endpoint.js").Endpoint<"GET", "/newsletter/sequences/:sequenceId/analytics", import("effect/Schema").Struct<{
|
|
246
248
|
sequenceId: typeof import("effect/Schema").String;
|
|
247
249
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -258,7 +260,7 @@ export declare const newsletterEndpoints: {
|
|
|
258
260
|
completed: typeof import("effect/Schema").Number;
|
|
259
261
|
avgDurationMs: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
260
262
|
}>>;
|
|
261
|
-
}
|
|
263
|
+
}>, undefined>;
|
|
262
264
|
readonly addStep: import("../endpoint.js").Endpoint<"POST", "/newsletter/steps", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
263
265
|
sequenceId: typeof import("effect/Schema").String;
|
|
264
266
|
stepNumber: typeof import("effect/Schema").Number;
|
|
@@ -276,13 +278,15 @@ export declare const newsletterEndpoints: {
|
|
|
276
278
|
isEnabled: typeof import("effect/Schema").Boolean;
|
|
277
279
|
createdAt: typeof import("effect/Schema").String;
|
|
278
280
|
updatedAt: typeof import("effect/Schema").String;
|
|
279
|
-
}
|
|
281
|
+
}>, {
|
|
282
|
+
status: 201;
|
|
283
|
+
}>;
|
|
280
284
|
readonly reorderSteps: import("../endpoint.js").Endpoint<"POST", "/newsletter/steps/reorder", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
281
285
|
sequenceId: typeof import("effect/Schema").String;
|
|
282
286
|
stepOrder: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
283
287
|
}>, import("effect/Schema").Struct<{
|
|
284
288
|
success: typeof import("effect/Schema").Boolean;
|
|
285
|
-
}
|
|
289
|
+
}>, undefined>;
|
|
286
290
|
readonly updateStep: import("../endpoint.js").Endpoint<"PATCH", "/newsletter/steps/:stepId", import("effect/Schema").Struct<{
|
|
287
291
|
stepId: typeof import("effect/Schema").String;
|
|
288
292
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -300,12 +304,12 @@ export declare const newsletterEndpoints: {
|
|
|
300
304
|
isEnabled: typeof import("effect/Schema").Boolean;
|
|
301
305
|
createdAt: typeof import("effect/Schema").String;
|
|
302
306
|
updatedAt: typeof import("effect/Schema").String;
|
|
303
|
-
}
|
|
307
|
+
}>, undefined>;
|
|
304
308
|
readonly deleteStep: import("../endpoint.js").Endpoint<"DELETE", "/newsletter/steps/:stepId", import("effect/Schema").Struct<{
|
|
305
309
|
stepId: typeof import("effect/Schema").String;
|
|
306
310
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
307
311
|
success: typeof import("effect/Schema").Boolean;
|
|
308
|
-
}
|
|
312
|
+
}>, undefined>;
|
|
309
313
|
readonly listEnrollments: import("../endpoint.js").Endpoint<"GET", "/newsletter/enrollments", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
310
314
|
sequenceId: typeof import("effect/Schema").String;
|
|
311
315
|
status: import("effect/Schema").optional<import("effect/Schema").Literal<["active", "completed", "paused", "cancelled", "unsubscribed"]>>;
|
|
@@ -320,7 +324,7 @@ export declare const newsletterEndpoints: {
|
|
|
320
324
|
context: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
321
325
|
enrolledAt: typeof import("effect/Schema").String;
|
|
322
326
|
completedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
323
|
-
}
|
|
327
|
+
}>>, undefined>;
|
|
324
328
|
readonly enrollSubscriber: import("../endpoint.js").Endpoint<"POST", "/newsletter/enrollments", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
325
329
|
sequenceId: typeof import("effect/Schema").String;
|
|
326
330
|
subscriberId: typeof import("effect/Schema").String;
|
|
@@ -334,7 +338,9 @@ export declare const newsletterEndpoints: {
|
|
|
334
338
|
context: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
335
339
|
enrolledAt: typeof import("effect/Schema").String;
|
|
336
340
|
completedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
337
|
-
}
|
|
341
|
+
}>, {
|
|
342
|
+
status: 201;
|
|
343
|
+
}>;
|
|
338
344
|
readonly getEnrollment: import("../endpoint.js").Endpoint<"GET", "/newsletter/enrollments/:enrollmentId", import("effect/Schema").Struct<{
|
|
339
345
|
enrollmentId: typeof import("effect/Schema").String;
|
|
340
346
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -346,21 +352,21 @@ export declare const newsletterEndpoints: {
|
|
|
346
352
|
context: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
347
353
|
enrolledAt: typeof import("effect/Schema").String;
|
|
348
354
|
completedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
349
|
-
}
|
|
355
|
+
}>, undefined>;
|
|
350
356
|
readonly cancelEnrollment: import("../endpoint.js").Endpoint<"POST", "/newsletter/enrollments/:enrollmentId/cancel", import("effect/Schema").Struct<{
|
|
351
357
|
enrollmentId: typeof import("effect/Schema").String;
|
|
352
358
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
353
359
|
success: typeof import("effect/Schema").Boolean;
|
|
354
|
-
}
|
|
360
|
+
}>, undefined>;
|
|
355
361
|
readonly pauseEnrollment: import("../endpoint.js").Endpoint<"POST", "/newsletter/enrollments/:enrollmentId/pause", import("effect/Schema").Struct<{
|
|
356
362
|
enrollmentId: typeof import("effect/Schema").String;
|
|
357
363
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
358
364
|
success: typeof import("effect/Schema").Boolean;
|
|
359
|
-
}
|
|
365
|
+
}>, undefined>;
|
|
360
366
|
readonly resumeEnrollment: import("../endpoint.js").Endpoint<"POST", "/newsletter/enrollments/:enrollmentId/resume", import("effect/Schema").Struct<{
|
|
361
367
|
enrollmentId: typeof import("effect/Schema").String;
|
|
362
368
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
363
369
|
success: typeof import("effect/Schema").Boolean;
|
|
364
|
-
}
|
|
370
|
+
}>, undefined>;
|
|
365
371
|
};
|
|
366
372
|
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","sourceRoot":"","sources":["../../src/endpoints/newsletter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsCH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","sourceRoot":"","sources":["../../src/endpoints/newsletter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsCH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoOtB,CAAA"}
|
|
@@ -93,6 +93,7 @@ export const newsletterEndpoints = {
|
|
|
93
93
|
createSequence: defineEndpoint({
|
|
94
94
|
method: 'POST',
|
|
95
95
|
path: '/newsletter/sequences',
|
|
96
|
+
success: { status: 201 },
|
|
96
97
|
body: CreateSequenceInput,
|
|
97
98
|
response: SequenceWithSteps,
|
|
98
99
|
plane: 'management',
|
|
@@ -140,6 +141,7 @@ export const newsletterEndpoints = {
|
|
|
140
141
|
addStep: defineEndpoint({
|
|
141
142
|
method: 'POST',
|
|
142
143
|
path: '/newsletter/steps',
|
|
144
|
+
success: { status: 201 },
|
|
143
145
|
body: AddStepInput,
|
|
144
146
|
response: Step,
|
|
145
147
|
plane: 'management',
|
|
@@ -187,6 +189,7 @@ export const newsletterEndpoints = {
|
|
|
187
189
|
enrollSubscriber: defineEndpoint({
|
|
188
190
|
method: 'POST',
|
|
189
191
|
path: '/newsletter/enrollments',
|
|
192
|
+
success: { status: 201 },
|
|
190
193
|
body: EnrollSubscriberInput,
|
|
191
194
|
response: Enrollment,
|
|
192
195
|
plane: 'management',
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
export declare const notificationsAdminEndpoints: {
|
|
15
15
|
readonly pushConfig: import("../endpoint.js").Endpoint<"GET", "/notifications/push/config", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
16
16
|
configured: typeof import("effect/Schema").Boolean;
|
|
17
|
-
}
|
|
17
|
+
}>, undefined>;
|
|
18
18
|
readonly sendPush: import("../endpoint.js").Endpoint<"POST", "/notifications/push/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
19
19
|
projectId: typeof import("effect/Schema").String;
|
|
20
20
|
userId: typeof import("effect/Schema").String;
|
|
@@ -26,7 +26,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
26
26
|
success: typeof import("effect/Schema").Boolean;
|
|
27
27
|
sentTo: typeof import("effect/Schema").Number;
|
|
28
28
|
expired: typeof import("effect/Schema").Number;
|
|
29
|
-
}
|
|
29
|
+
}>, undefined>;
|
|
30
30
|
readonly broadcastPush: import("../endpoint.js").Endpoint<"POST", "/notifications/push/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
31
31
|
projectId: typeof import("effect/Schema").String;
|
|
32
32
|
title: typeof import("effect/Schema").String;
|
|
@@ -38,7 +38,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
38
38
|
sentTo: typeof import("effect/Schema").Number;
|
|
39
39
|
expired: typeof import("effect/Schema").Number;
|
|
40
40
|
totalUsers: typeof import("effect/Schema").Number;
|
|
41
|
-
}
|
|
41
|
+
}>, undefined>;
|
|
42
42
|
readonly pushStats: import("../endpoint.js").Endpoint<"GET", "/notifications/push/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
43
43
|
projectId: typeof import("effect/Schema").String;
|
|
44
44
|
days: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -63,7 +63,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
63
63
|
days: typeof import("effect/Schema").Number;
|
|
64
64
|
since: typeof import("effect/Schema").String;
|
|
65
65
|
}>;
|
|
66
|
-
}
|
|
66
|
+
}>, undefined>;
|
|
67
67
|
readonly listSubscriptions: import("../endpoint.js").Endpoint<"GET", "/notifications/push/subscriptions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
68
68
|
projectId: typeof import("effect/Schema").String;
|
|
69
69
|
userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -85,21 +85,21 @@ export declare const notificationsAdminEndpoints: {
|
|
|
85
85
|
total: typeof import("effect/Schema").Number;
|
|
86
86
|
limit: typeof import("effect/Schema").Number;
|
|
87
87
|
offset: typeof import("effect/Schema").Number;
|
|
88
|
-
}
|
|
88
|
+
}>, undefined>;
|
|
89
89
|
readonly removeSubscriptions: import("../endpoint.js").Endpoint<"POST", "/notifications/push/subscriptions/remove", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
90
90
|
userId: typeof import("effect/Schema").String;
|
|
91
91
|
projectId: typeof import("effect/Schema").String;
|
|
92
92
|
}>, import("effect/Schema").Struct<{
|
|
93
93
|
success: typeof import("effect/Schema").Boolean;
|
|
94
94
|
removedCount: typeof import("effect/Schema").Number;
|
|
95
|
-
}
|
|
95
|
+
}>, undefined>;
|
|
96
96
|
readonly mobileConfig: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/config", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
97
97
|
projectId: typeof import("effect/Schema").String;
|
|
98
98
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
99
99
|
ios: typeof import("effect/Schema").Boolean;
|
|
100
100
|
android: typeof import("effect/Schema").Boolean;
|
|
101
101
|
anyConfigured: typeof import("effect/Schema").Boolean;
|
|
102
|
-
}
|
|
102
|
+
}>, undefined>;
|
|
103
103
|
readonly sendMobilePush: import("../endpoint.js").Endpoint<"POST", "/notifications/mobile/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
104
104
|
projectId: typeof import("effect/Schema").String;
|
|
105
105
|
userId: typeof import("effect/Schema").String;
|
|
@@ -116,7 +116,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
116
116
|
invalidTokens: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
117
117
|
usersWithDevices: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
118
118
|
totalUsers: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
119
|
-
}
|
|
119
|
+
}>, undefined>;
|
|
120
120
|
readonly broadcastMobilePush: import("../endpoint.js").Endpoint<"POST", "/notifications/mobile/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
121
121
|
projectId: typeof import("effect/Schema").String;
|
|
122
122
|
title: typeof import("effect/Schema").String;
|
|
@@ -132,7 +132,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
132
132
|
invalidTokens: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
133
133
|
usersWithDevices: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
134
134
|
totalUsers: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
135
|
-
}
|
|
135
|
+
}>, undefined>;
|
|
136
136
|
readonly mobileStats: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
137
137
|
projectId: typeof import("effect/Schema").String;
|
|
138
138
|
days: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -149,7 +149,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
149
149
|
days: typeof import("effect/Schema").Number;
|
|
150
150
|
since: typeof import("effect/Schema").String;
|
|
151
151
|
}>;
|
|
152
|
-
}
|
|
152
|
+
}>, undefined>;
|
|
153
153
|
readonly mobilePreferences: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/preferences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
154
154
|
projectId: typeof import("effect/Schema").String;
|
|
155
155
|
userId: typeof import("effect/Schema").String;
|
|
@@ -162,7 +162,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
162
162
|
registeredAt: typeof import("effect/Schema").String;
|
|
163
163
|
lastUsedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
164
164
|
}>>;
|
|
165
|
-
}
|
|
165
|
+
}>, undefined>;
|
|
166
166
|
readonly sendInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
167
167
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
168
168
|
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>>;
|
|
@@ -183,7 +183,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
183
183
|
success: typeof import("effect/Schema").Boolean;
|
|
184
184
|
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
185
185
|
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
186
|
-
}
|
|
186
|
+
}>, undefined>;
|
|
187
187
|
readonly sendInAppBatch: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send-batch", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
188
188
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
189
189
|
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>>;
|
|
@@ -204,7 +204,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
204
204
|
success: typeof import("effect/Schema").Boolean;
|
|
205
205
|
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
206
206
|
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
207
|
-
}
|
|
207
|
+
}>, undefined>;
|
|
208
208
|
readonly broadcastInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
209
209
|
projectId: typeof import("effect/Schema").String;
|
|
210
210
|
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
@@ -221,7 +221,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
221
221
|
success: typeof import("effect/Schema").Boolean;
|
|
222
222
|
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
223
223
|
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
224
|
-
}
|
|
224
|
+
}>, undefined>;
|
|
225
225
|
readonly listInAppMessages: import("../endpoint.js").Endpoint<"GET", "/notifications/in-app/messages", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
226
226
|
projectId: typeof import("effect/Schema").String;
|
|
227
227
|
userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -250,7 +250,7 @@ export declare const notificationsAdminEndpoints: {
|
|
|
250
250
|
createdAt: typeof import("effect/Schema").String;
|
|
251
251
|
}>>;
|
|
252
252
|
total: typeof import("effect/Schema").Number;
|
|
253
|
-
}
|
|
253
|
+
}>, undefined>;
|
|
254
254
|
readonly inAppStats: import("../endpoint.js").Endpoint<"GET", "/notifications/in-app/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
255
255
|
projectId: typeof import("effect/Schema").String;
|
|
256
256
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -258,11 +258,11 @@ export declare const notificationsAdminEndpoints: {
|
|
|
258
258
|
unread: typeof import("effect/Schema").Number;
|
|
259
259
|
byType: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Number>;
|
|
260
260
|
byPriority: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Number>;
|
|
261
|
-
}
|
|
261
|
+
}>, undefined>;
|
|
262
262
|
readonly archiveInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/archive", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
263
263
|
messageId: typeof import("effect/Schema").String;
|
|
264
264
|
}>, import("effect/Schema").Struct<{
|
|
265
265
|
success: typeof import("effect/Schema").Boolean;
|
|
266
|
-
}
|
|
266
|
+
}>, undefined>;
|
|
267
267
|
};
|
|
268
268
|
//# sourceMappingURL=notifications-admin.d.ts.map
|
|
@@ -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;
|
|
@@ -38,18 +38,18 @@ export declare const notificationsEndpoints: {
|
|
|
38
38
|
reason: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
39
39
|
sentTo: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
40
40
|
expired: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
41
|
-
}
|
|
41
|
+
}>, undefined>;
|
|
42
42
|
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
43
|
enabled: typeof import("effect/Schema").Boolean;
|
|
44
44
|
categories: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>;
|
|
45
|
-
}
|
|
45
|
+
}>, undefined>;
|
|
46
46
|
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
47
|
enabled: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
48
48
|
categories: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>>;
|
|
49
49
|
}>, import("effect/Schema").Struct<{
|
|
50
50
|
enabled: typeof import("effect/Schema").Boolean;
|
|
51
51
|
categories: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Boolean>;
|
|
52
|
-
}
|
|
52
|
+
}>, undefined>;
|
|
53
53
|
readonly listInbox: import("../endpoint.js").Endpoint<"GET", "/notifications/inbox", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
54
54
|
userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
55
55
|
unreadOnly: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -65,7 +65,7 @@ export declare const notificationsEndpoints: {
|
|
|
65
65
|
data: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
66
66
|
}>>;
|
|
67
67
|
total: typeof import("effect/Schema").Number;
|
|
68
|
-
}
|
|
68
|
+
}>, undefined>;
|
|
69
69
|
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
70
|
name: typeof import("effect/Schema").String;
|
|
71
71
|
description: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -79,7 +79,7 @@ export declare const notificationsEndpoints: {
|
|
|
79
79
|
computedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
80
80
|
createdAt: typeof import("effect/Schema").String;
|
|
81
81
|
createdBy: typeof import("effect/Schema").String;
|
|
82
|
-
}
|
|
82
|
+
}>, undefined>;
|
|
83
83
|
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
84
|
segments: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
85
85
|
id: typeof import("effect/Schema").String;
|
|
@@ -91,7 +91,7 @@ export declare const notificationsEndpoints: {
|
|
|
91
91
|
createdAt: typeof import("effect/Schema").String;
|
|
92
92
|
createdBy: typeof import("effect/Schema").String;
|
|
93
93
|
}>>;
|
|
94
|
-
}
|
|
94
|
+
}>, undefined>;
|
|
95
95
|
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
96
|
id: typeof import("effect/Schema").String;
|
|
97
97
|
name: typeof import("effect/Schema").String;
|
|
@@ -101,10 +101,10 @@ export declare const notificationsEndpoints: {
|
|
|
101
101
|
computedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
102
102
|
createdAt: typeof import("effect/Schema").String;
|
|
103
103
|
createdBy: typeof import("effect/Schema").String;
|
|
104
|
-
}
|
|
104
|
+
}>, undefined>;
|
|
105
105
|
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
106
|
success: typeof import("effect/Schema").Boolean;
|
|
107
|
-
}
|
|
107
|
+
}>, undefined>;
|
|
108
108
|
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
109
|
name: typeof import("effect/Schema").String;
|
|
110
110
|
segmentId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -135,7 +135,7 @@ export declare const notificationsEndpoints: {
|
|
|
135
135
|
scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
136
136
|
sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
137
137
|
createdAt: typeof import("effect/Schema").String;
|
|
138
|
-
}
|
|
138
|
+
}>, undefined>;
|
|
139
139
|
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
140
|
id: typeof import("effect/Schema").String;
|
|
141
141
|
name: typeof import("effect/Schema").String;
|
|
@@ -153,7 +153,7 @@ export declare const notificationsEndpoints: {
|
|
|
153
153
|
scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
154
154
|
sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
155
155
|
createdAt: typeof import("effect/Schema").String;
|
|
156
|
-
}
|
|
156
|
+
}>, undefined>;
|
|
157
157
|
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
158
|
scheduledAt: typeof import("effect/Schema").String;
|
|
159
159
|
}>, import("effect/Schema").Struct<{
|
|
@@ -173,7 +173,7 @@ export declare const notificationsEndpoints: {
|
|
|
173
173
|
scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
174
174
|
sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
175
175
|
createdAt: typeof import("effect/Schema").String;
|
|
176
|
-
}
|
|
176
|
+
}>, undefined>;
|
|
177
177
|
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
178
|
id: typeof import("effect/Schema").String;
|
|
179
179
|
name: typeof import("effect/Schema").String;
|
|
@@ -191,7 +191,7 @@ export declare const notificationsEndpoints: {
|
|
|
191
191
|
scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
192
192
|
sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
193
193
|
createdAt: typeof import("effect/Schema").String;
|
|
194
|
-
}
|
|
194
|
+
}>, undefined>;
|
|
195
195
|
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
196
|
id: typeof import("effect/Schema").String;
|
|
197
197
|
name: typeof import("effect/Schema").String;
|
|
@@ -209,7 +209,7 @@ export declare const notificationsEndpoints: {
|
|
|
209
209
|
scheduledAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
210
210
|
sentAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
211
211
|
createdAt: typeof import("effect/Schema").String;
|
|
212
|
-
}
|
|
212
|
+
}>, undefined>;
|
|
213
213
|
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
214
|
campaignId: typeof import("effect/Schema").String;
|
|
215
215
|
totalDeliveries: typeof import("effect/Schema").Number;
|
|
@@ -220,6 +220,6 @@ export declare const notificationsEndpoints: {
|
|
|
220
220
|
failed: typeof import("effect/Schema").Number;
|
|
221
221
|
clicked: typeof import("effect/Schema").Number;
|
|
222
222
|
}>>;
|
|
223
|
-
}
|
|
223
|
+
}>, undefined>;
|
|
224
224
|
};
|
|
225
225
|
//# sourceMappingURL=notifications.d.ts.map
|
package/dist/endpoints/oidc.d.ts
CHANGED
|
@@ -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
|
|
1
|
+
{"version":3,"file":"oidc.d.ts","sourceRoot":"","sources":["../../src/endpoints/oidc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuChB,CAAA"}
|
package/dist/endpoints/oidc.js
CHANGED