@krak-stack/registry 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/components/ui/data-table.js +212 -207
  4. package/dist/components/ui/effect-form.js +170 -169
  5. package/dist/components/ui/form.js +113 -112
  6. package/dist/components/ui/icon-input.js +43 -40
  7. package/dist/components/ui/pagination.js +2 -2
  8. package/dist/components/ui/sidebar-layout.js +71 -66
  9. package/dist/components/ui/theme-switcher.js +3 -3
  10. package/dist/components/ui/virtualized-combobox.js +34 -31
  11. package/dist/lib/docs.js +138 -133
  12. package/dist/lib/docs.server.js +47 -23
  13. package/dist/lib/documentation-toolkit.js +48 -24
  14. package/dist/lib/httpapi-cli.js +7 -7
  15. package/dist/lib/httpapi-client.js +3 -3
  16. package/dist/lib/httpapi-helpers.js +11 -11
  17. package/dist/lib/httpapi-mcp.js +2 -2
  18. package/dist/lib/httpapi-toolkit.js +2 -2
  19. package/dist/lib/query.js +7 -7
  20. package/dist/lib/seo.js +2 -2
  21. package/dist/lib/webfetch-toolkit.js +6 -6
  22. package/dist/services/agent/client/index.js +128 -127
  23. package/dist/services/agent/schema.js +5 -5
  24. package/dist/services/file-extraction/index.js +4 -4
  25. package/dist/services/file-extraction/schema.js +2 -2
  26. package/dist/services/health/index.js +9 -9
  27. package/dist/services/notification/channels/ses/index.d.ts +2 -2
  28. package/dist/services/notification/channels/ses/index.js +2 -2
  29. package/dist/services/notification/channels/ses/schema.js +2 -2
  30. package/dist/services/notification/client/index.js +5 -5
  31. package/dist/services/notification/index.js +2 -2
  32. package/dist/services/notification/persistence/drizzle.d.ts +868 -0
  33. package/dist/services/notification/persistence/drizzle.js +2 -2
  34. package/dist/services/notification/persistence/index.d.ts +2 -0
  35. package/dist/services/notification/persistence/index.js +15 -15
  36. package/dist/services/notification/persistence/schema.d.ts +143 -0
  37. package/dist/services/notification/persistence/schema.js +12 -12
  38. package/dist/services/notification/public.js +7 -7
  39. package/dist/services/notification/schema.js +2 -2
  40. package/dist/services/s3/index.js +2 -2
  41. package/dist/services/s3/schema.js +2 -2
  42. package/package.json +2 -2
@@ -208,7 +208,7 @@ var notificationDeliveries = pgTable("notification_deliveries", {
208
208
  check("notification_deliveries_lease_check", sql`(${table.claimedBy} is null and ${table.leaseExpiresAt} is null) or (${table.claimedBy} is not null and ${table.leaseExpiresAt} is not null)`)
209
209
  ]);
210
210
  export {
211
- notificationDeliveries,
211
+ notifications,
212
212
  notificationSettings,
213
- notifications
213
+ notificationDeliveries
214
214
  };
@@ -0,0 +1,2 @@
1
+ export * from "./drizzle.js";
2
+ export * from "./schema.js";
@@ -208,20 +208,20 @@ var notificationDeliveries = pgTable("notification_deliveries", {
208
208
  check("notification_deliveries_lease_check", sql`(${table.claimedBy} is null and ${table.leaseExpiresAt} is null) or (${table.claimedBy} is not null and ${table.leaseExpiresAt} is not null)`)
209
209
  ]);
210
210
  export {
211
- EmailDeliveryPayloadV1,
212
- InboxNotificationSchema,
213
- NOTIFICATION_DELIVERY_PURPOSES,
214
- NOTIFICATION_DELIVERY_STATUSES,
215
- NotificationDeliveryId,
216
- NotificationDeliveryPurpose,
217
- NotificationDeliverySchema,
218
- NotificationDeliveryStatus,
219
- NotificationId,
220
- NotificationSettingId,
221
- NotificationSettingSchema,
222
- PersistedNotificationDeliveryPayload,
223
- decodeNotificationDeliveryPayload,
224
- notificationDeliveries,
211
+ notifications,
225
212
  notificationSettings,
226
- notifications
213
+ notificationDeliveries,
214
+ decodeNotificationDeliveryPayload,
215
+ PersistedNotificationDeliveryPayload,
216
+ NotificationSettingSchema,
217
+ NotificationSettingId,
218
+ NotificationId,
219
+ NotificationDeliveryStatus,
220
+ NotificationDeliverySchema,
221
+ NotificationDeliveryPurpose,
222
+ NotificationDeliveryId,
223
+ NOTIFICATION_DELIVERY_STATUSES,
224
+ NOTIFICATION_DELIVERY_PURPOSES,
225
+ InboxNotificationSchema,
226
+ EmailDeliveryPayloadV1
227
227
  };
@@ -0,0 +1,143 @@
1
+ import { Schema } from "effect";
2
+ export declare const NOTIFICATION_DELIVERY_PURPOSES: readonly ["transactional", "notification"];
3
+ export declare const NOTIFICATION_DELIVERY_STATUSES: readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"];
4
+ export declare const NotificationDeliveryPurpose: Schema.Literals<readonly ["transactional", "notification"]>;
5
+ export declare const NotificationDeliveryStatus: Schema.Literals<readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"]>;
6
+ export declare const NotificationId: Schema.brand<Schema.String, "NotificationId">;
7
+ export declare const NotificationSettingId: Schema.brand<Schema.String, "NotificationSettingId">;
8
+ export declare const NotificationDeliveryId: Schema.brand<Schema.String, "NotificationDeliveryId">;
9
+ export declare const InboxNotificationSchema: Schema.Struct<{
10
+ readonly id: Schema.brand<Schema.String, "NotificationId">;
11
+ readonly idempotencyKey: Schema.NonEmptyString;
12
+ readonly recipientUserId: Schema.NonEmptyString;
13
+ readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
14
+ readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
15
+ readonly eventKey: Schema.NonEmptyString;
16
+ readonly eventVersion: Schema.Int;
17
+ readonly locale: Schema.NonEmptyString;
18
+ readonly title: Schema.NonEmptyString;
19
+ readonly description: Schema.NullOr<Schema.String>;
20
+ readonly href: Schema.NullOr<Schema.String>;
21
+ readonly metadata: Schema.Codec<Schema.Json, Schema.Json, never, never>;
22
+ readonly createdAt: Schema.Date;
23
+ readonly readAt: Schema.NullOr<Schema.Date>;
24
+ readonly archivedAt: Schema.NullOr<Schema.Date>;
25
+ }>;
26
+ export declare const NotificationSettingSchema: Schema.Struct<{
27
+ readonly id: Schema.brand<Schema.String, "NotificationSettingId">;
28
+ readonly recipientUserId: Schema.NonEmptyString;
29
+ readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
30
+ readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
31
+ readonly eventKey: Schema.NullOr<Schema.NonEmptyString>;
32
+ readonly channel: Schema.NonEmptyString;
33
+ readonly enabled: Schema.Boolean;
34
+ readonly createdAt: Schema.Date;
35
+ readonly updatedAt: Schema.Date;
36
+ }>;
37
+ export declare const NotificationDeliverySchema: Schema.Struct<{
38
+ readonly id: Schema.brand<Schema.String, "NotificationDeliveryId">;
39
+ readonly notificationId: Schema.NullOr<Schema.brand<Schema.String, "NotificationId">>;
40
+ readonly idempotencyKey: Schema.NonEmptyString;
41
+ readonly recipientUserId: Schema.NullOr<Schema.NonEmptyString>;
42
+ readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
43
+ readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
44
+ readonly eventKey: Schema.NonEmptyString;
45
+ readonly eventVersion: Schema.Int;
46
+ readonly channel: Schema.NonEmptyString;
47
+ readonly purpose: Schema.Literals<readonly ["transactional", "notification"]>;
48
+ readonly template: Schema.NullOr<Schema.NonEmptyString>;
49
+ readonly recipientAddress: Schema.NonEmptyString;
50
+ readonly recipientName: Schema.NullOr<Schema.NonEmptyString>;
51
+ readonly payloadVersion: Schema.Int;
52
+ readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
53
+ readonly status: Schema.Literals<readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"]>;
54
+ readonly attempts: Schema.Int;
55
+ readonly maxAttempts: Schema.Int;
56
+ readonly provider: Schema.NullOr<Schema.NonEmptyString>;
57
+ readonly providerMessageId: Schema.NullOr<Schema.NonEmptyString>;
58
+ readonly errorMessage: Schema.NullOr<Schema.String>;
59
+ readonly scheduledFor: Schema.Date;
60
+ readonly processingAt: Schema.NullOr<Schema.Date>;
61
+ readonly lastAttemptAt: Schema.NullOr<Schema.Date>;
62
+ readonly leaseExpiresAt: Schema.NullOr<Schema.Date>;
63
+ readonly claimedBy: Schema.NullOr<Schema.NonEmptyString>;
64
+ readonly sentAt: Schema.NullOr<Schema.Date>;
65
+ readonly failedAt: Schema.NullOr<Schema.Date>;
66
+ readonly suppressedAt: Schema.NullOr<Schema.Date>;
67
+ readonly cancelledAt: Schema.NullOr<Schema.Date>;
68
+ readonly createdAt: Schema.Date;
69
+ readonly updatedAt: Schema.Date;
70
+ }>;
71
+ export declare const EmailDeliveryPayloadV1: Schema.refine<{
72
+ readonly from?: string | undefined;
73
+ readonly to: string | readonly [string, ...string[]];
74
+ readonly cc?: readonly string[] | undefined;
75
+ readonly bcc?: readonly string[] | undefined;
76
+ readonly replyTo?: readonly string[] | undefined;
77
+ readonly subject: string;
78
+ readonly text?: string | undefined;
79
+ readonly html?: string | undefined;
80
+ } & ({
81
+ readonly text: string;
82
+ } | {
83
+ readonly html: string;
84
+ }), Schema.Struct<{
85
+ readonly from: Schema.optional<Schema.NonEmptyString>;
86
+ readonly to: Schema.Union<readonly [Schema.NonEmptyString, Schema.NonEmptyArray<Schema.NonEmptyString>]>;
87
+ readonly cc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
88
+ readonly bcc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
89
+ readonly replyTo: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
90
+ readonly subject: Schema.NonEmptyString;
91
+ readonly text: Schema.optional<Schema.NonEmptyString>;
92
+ readonly html: Schema.optional<Schema.NonEmptyString>;
93
+ }>>;
94
+ export declare const PersistedNotificationDeliveryPayload: Schema.Union<readonly [Schema.Struct<{
95
+ readonly channel: Schema.Literal<"email">;
96
+ readonly payloadVersion: Schema.Literal<1>;
97
+ readonly payload: Schema.refine<{
98
+ readonly from?: string | undefined;
99
+ readonly to: string | readonly [string, ...string[]];
100
+ readonly cc?: readonly string[] | undefined;
101
+ readonly bcc?: readonly string[] | undefined;
102
+ readonly replyTo?: readonly string[] | undefined;
103
+ readonly subject: string;
104
+ readonly text?: string | undefined;
105
+ readonly html?: string | undefined;
106
+ } & ({
107
+ readonly text: string;
108
+ } | {
109
+ readonly html: string;
110
+ }), Schema.Struct<{
111
+ readonly from: Schema.optional<Schema.NonEmptyString>;
112
+ readonly to: Schema.Union<readonly [Schema.NonEmptyString, Schema.NonEmptyArray<Schema.NonEmptyString>]>;
113
+ readonly cc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
114
+ readonly bcc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
115
+ readonly replyTo: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
116
+ readonly subject: Schema.NonEmptyString;
117
+ readonly text: Schema.optional<Schema.NonEmptyString>;
118
+ readonly html: Schema.optional<Schema.NonEmptyString>;
119
+ }>>;
120
+ }>]>;
121
+ export declare const decodeNotificationDeliveryPayload: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
122
+ readonly channel: "email";
123
+ readonly payloadVersion: 1;
124
+ readonly payload: {
125
+ readonly from?: string | undefined;
126
+ readonly to: string | readonly [string, ...string[]];
127
+ readonly cc?: readonly string[] | undefined;
128
+ readonly bcc?: readonly string[] | undefined;
129
+ readonly replyTo?: readonly string[] | undefined;
130
+ readonly subject: string;
131
+ readonly text?: string | undefined;
132
+ readonly html?: string | undefined;
133
+ } & ({
134
+ readonly text: string;
135
+ } | {
136
+ readonly html: string;
137
+ });
138
+ }, Schema.SchemaError, never>;
139
+ export type InboxNotification = typeof InboxNotificationSchema.Type;
140
+ export type NotificationSetting = typeof NotificationSettingSchema.Type;
141
+ export type NotificationDelivery = typeof NotificationDeliverySchema.Type;
142
+ export type EmailDeliveryPayloadV1 = typeof EmailDeliveryPayloadV1.Type;
143
+ export type PersistedNotificationDeliveryPayload = typeof PersistedNotificationDeliveryPayload.Type;
@@ -102,17 +102,17 @@ var PersistedNotificationDeliveryPayload = Schema.Union([
102
102
  ]).annotate({ identifier: "PersistedNotificationDeliveryPayload" });
103
103
  var decodeNotificationDeliveryPayload = Schema.decodeUnknownEffect(PersistedNotificationDeliveryPayload);
104
104
  export {
105
- EmailDeliveryPayloadV1,
106
- InboxNotificationSchema,
107
- NOTIFICATION_DELIVERY_PURPOSES,
108
- NOTIFICATION_DELIVERY_STATUSES,
109
- NotificationDeliveryId,
110
- NotificationDeliveryPurpose,
111
- NotificationDeliverySchema,
112
- NotificationDeliveryStatus,
113
- NotificationId,
114
- NotificationSettingId,
115
- NotificationSettingSchema,
105
+ decodeNotificationDeliveryPayload,
116
106
  PersistedNotificationDeliveryPayload,
117
- decodeNotificationDeliveryPayload
107
+ NotificationSettingSchema,
108
+ NotificationSettingId,
109
+ NotificationId,
110
+ NotificationDeliveryStatus,
111
+ NotificationDeliverySchema,
112
+ NotificationDeliveryPurpose,
113
+ NotificationDeliveryId,
114
+ NOTIFICATION_DELIVERY_STATUSES,
115
+ NOTIFICATION_DELIVERY_PURPOSES,
116
+ InboxNotificationSchema,
117
+ EmailDeliveryPayloadV1
118
118
  };
@@ -1208,12 +1208,12 @@ var formatNotificationDate = (value, locale) => {
1208
1208
  };
1209
1209
  var notificationTitle = (notification) => Schema2.is(Schema2.String)(notification.title) ? notification.title : defaultMessages.en.notifications;
1210
1210
  export {
1211
- NotificationEmpty,
1212
- NotificationList,
1213
- NotificationListItem,
1214
- NotificationMenu,
1215
- NotificationMenuTrigger,
1216
- NotificationPersistenceStore,
1211
+ notificationMenuMessages,
1217
1212
  NotificationService,
1218
- notificationMenuMessages
1213
+ NotificationPersistenceStore,
1214
+ NotificationMenuTrigger,
1215
+ NotificationMenu,
1216
+ NotificationListItem,
1217
+ NotificationList,
1218
+ NotificationEmpty
1219
1219
  };
@@ -25,6 +25,6 @@ class NotificationSendError extends Schema.TaggedError()("NotificationSendError"
25
25
  }) {
26
26
  }
27
27
  export {
28
- NotificationMessageSchema,
29
- NotificationSendError
28
+ NotificationSendError,
29
+ NotificationMessageSchema
30
30
  };
@@ -206,6 +206,6 @@ class S3Service extends Context.Service()("S3Service", {
206
206
  static testLayer = (service) => Layer.succeed(this, service);
207
207
  }
208
208
  export {
209
- S3Service,
210
- S3ServiceConfig
209
+ S3ServiceConfig,
210
+ S3Service
211
211
  };
@@ -31,7 +31,7 @@ class S3ServiceError extends Schema.TaggedError()("S3ServiceError", {
31
31
  }) {
32
32
  }
33
33
  export {
34
- PresignUploadPayload,
34
+ S3ServiceError,
35
35
  PresignedUpload,
36
- S3ServiceError
36
+ PresignUploadPayload
37
37
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/krakcons/krakstack-site.git",
8
+ "url": "git+https://github.com/krakcons/krakstack.git",
9
9
  "directory": "packages/registry"
10
10
  },
11
11
  "files": [