@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.
- package/CHANGELOG.md +12 -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 +189 -323
- 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 +7 -7
- package/dist/endpoints/kv-admin.js +1 -1
- package/dist/endpoints/kv.d.ts +27 -21
- package/dist/endpoints/kv.d.ts.map +1 -1
- package/dist/endpoints/kv.js +9 -9
- 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 +23 -16
- package/dist/endpoints/notifications.d.ts.map +1 -1
- 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 +126 -44
- 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 +30 -12
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +11 -1
- 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 +1644 -1101
- 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/auth.d.ts +1 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +1 -0
- package/dist/schemas/database.d.ts +3 -2
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +3 -2
- 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/kv-admin.d.ts +1 -1
- package/dist/schemas/kv-admin.js +1 -1
- package/dist/schemas/kv.d.ts +12 -4
- package/dist/schemas/kv.d.ts.map +1 -1
- package/dist/schemas/kv.js +17 -5
- package/dist/schemas/notifications.d.ts +11 -0
- package/dist/schemas/notifications.d.ts.map +1 -1
- package/dist/schemas/notifications.js +11 -0
- package/dist/schemas/project-manifest.d.ts +239 -76
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +74 -23
- 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 +59 -8
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +54 -3
- package/dist/schemas/storage.d.ts +29 -0
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +19 -0
- 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
|
@@ -46,7 +46,7 @@ export declare const monitoringAdminEndpoints: {
|
|
|
46
46
|
total: typeof import("effect/Schema").Number;
|
|
47
47
|
limit: typeof import("effect/Schema").Number;
|
|
48
48
|
offset: typeof import("effect/Schema").Number;
|
|
49
|
-
}
|
|
49
|
+
}>, undefined>;
|
|
50
50
|
readonly getStats: import("../endpoint.js").Endpoint<"GET", "/monitoring/projects/:id/errors/stats", import("effect/Schema").Struct<{
|
|
51
51
|
id: typeof import("effect/Schema").String;
|
|
52
52
|
}>, import("effect/Schema").Struct<{
|
|
@@ -64,7 +64,7 @@ export declare const monitoringAdminEndpoints: {
|
|
|
64
64
|
lastSeen: typeof import("effect/Schema").String;
|
|
65
65
|
}>>;
|
|
66
66
|
period: typeof import("effect/Schema").String;
|
|
67
|
-
}
|
|
67
|
+
}>, undefined>;
|
|
68
68
|
readonly getServiceData: import("../endpoint.js").Endpoint<"GET", "/monitoring/projects/:id/service-data", import("effect/Schema").Struct<{
|
|
69
69
|
id: typeof import("effect/Schema").String;
|
|
70
70
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -93,7 +93,7 @@ export declare const monitoringAdminEndpoints: {
|
|
|
93
93
|
occurrences: typeof import("effect/Schema").Number;
|
|
94
94
|
lastSeen: typeof import("effect/Schema").String;
|
|
95
95
|
}>>;
|
|
96
|
-
}
|
|
96
|
+
}>, undefined>;
|
|
97
97
|
readonly getError: import("../endpoint.js").Endpoint<"GET", "/monitoring/errors/:errorId", import("effect/Schema").Struct<{
|
|
98
98
|
errorId: typeof import("effect/Schema").String;
|
|
99
99
|
}>, import("effect/Schema").Struct<{
|
|
@@ -130,28 +130,28 @@ export declare const monitoringAdminEndpoints: {
|
|
|
130
130
|
email: typeof import("effect/Schema").String;
|
|
131
131
|
}>>;
|
|
132
132
|
createdAt: typeof import("effect/Schema").String;
|
|
133
|
-
}
|
|
133
|
+
}>, undefined>;
|
|
134
134
|
readonly resolveError: import("../endpoint.js").Endpoint<"POST", "/monitoring/errors/:errorId/resolve", import("effect/Schema").Struct<{
|
|
135
135
|
errorId: typeof import("effect/Schema").String;
|
|
136
136
|
}>, import("effect/Schema").Struct<{
|
|
137
137
|
projectId: typeof import("effect/Schema").String;
|
|
138
138
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
139
139
|
success: typeof import("effect/Schema").Boolean;
|
|
140
|
-
}
|
|
140
|
+
}>, undefined>;
|
|
141
141
|
readonly unresolveError: import("../endpoint.js").Endpoint<"POST", "/monitoring/errors/:errorId/unresolve", import("effect/Schema").Struct<{
|
|
142
142
|
errorId: typeof import("effect/Schema").String;
|
|
143
143
|
}>, import("effect/Schema").Struct<{
|
|
144
144
|
projectId: typeof import("effect/Schema").String;
|
|
145
145
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
146
146
|
success: typeof import("effect/Schema").Boolean;
|
|
147
|
-
}
|
|
147
|
+
}>, undefined>;
|
|
148
148
|
readonly deleteError: import("../endpoint.js").Endpoint<"DELETE", "/monitoring/errors/:errorId", import("effect/Schema").Struct<{
|
|
149
149
|
errorId: typeof import("effect/Schema").String;
|
|
150
150
|
}>, import("effect/Schema").Struct<{
|
|
151
151
|
projectId: typeof import("effect/Schema").String;
|
|
152
152
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
153
153
|
success: typeof import("effect/Schema").Boolean;
|
|
154
|
-
}
|
|
154
|
+
}>, undefined>;
|
|
155
155
|
readonly resolveStackTrace: import("../endpoint.js").Endpoint<"GET", "/monitoring/errors/:errorId/stacktrace", import("effect/Schema").Struct<{
|
|
156
156
|
errorId: typeof import("effect/Schema").String;
|
|
157
157
|
}>, import("effect/Schema").Struct<{
|
|
@@ -172,7 +172,7 @@ export declare const monitoringAdminEndpoints: {
|
|
|
172
172
|
originalName: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
173
173
|
resolved: typeof import("effect/Schema").Boolean;
|
|
174
174
|
}>>;
|
|
175
|
-
}
|
|
175
|
+
}>, undefined>;
|
|
176
176
|
readonly listSourceMaps: import("../endpoint.js").Endpoint<"GET", "/monitoring/projects/:id/source-maps", import("effect/Schema").Struct<{
|
|
177
177
|
id: typeof import("effect/Schema").String;
|
|
178
178
|
}>, import("effect/Schema").Struct<{
|
|
@@ -192,13 +192,13 @@ export declare const monitoringAdminEndpoints: {
|
|
|
192
192
|
total: typeof import("effect/Schema").Number;
|
|
193
193
|
limit: typeof import("effect/Schema").Number;
|
|
194
194
|
offset: typeof import("effect/Schema").Number;
|
|
195
|
-
}
|
|
195
|
+
}>, undefined>;
|
|
196
196
|
readonly deleteSourceMaps: import("../endpoint.js").Endpoint<"DELETE", "/monitoring/projects/:id/source-maps", import("effect/Schema").Struct<{
|
|
197
197
|
id: typeof import("effect/Schema").String;
|
|
198
198
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
199
199
|
release: typeof import("effect/Schema").String;
|
|
200
200
|
}>, import("effect/Schema").Struct<{
|
|
201
201
|
deletedCount: typeof import("effect/Schema").Number;
|
|
202
|
-
}
|
|
202
|
+
}>, undefined>;
|
|
203
203
|
};
|
|
204
204
|
//# sourceMappingURL=monitoring-admin.d.ts.map
|
|
@@ -42,7 +42,7 @@ export declare const monitoringEndpoints: {
|
|
|
42
42
|
isNewError: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
43
43
|
quotaUsage: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
44
44
|
recommendedSampleRate: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
45
|
-
}
|
|
45
|
+
}>, undefined>;
|
|
46
46
|
readonly captureMessage: import("../endpoint.js").Endpoint<"POST", "/sdk/monitoring/message", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
47
47
|
message: typeof import("effect/Schema").String;
|
|
48
48
|
level: import("effect/Schema").optional<import("effect/Schema").Literal<["fatal", "error", "warning", "info"]>>;
|
|
@@ -58,6 +58,6 @@ export declare const monitoringEndpoints: {
|
|
|
58
58
|
isNewError: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
59
59
|
quotaUsage: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
60
60
|
recommendedSampleRate: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
61
|
-
}
|
|
61
|
+
}>, undefined>;
|
|
62
62
|
};
|
|
63
63
|
//# sourceMappingURL=monitoring.d.ts.map
|
|
@@ -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
|