@substrat-run/contracts 0.220.0 → 0.221.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.
@@ -0,0 +1,231 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Calendar-source vocabulary (#3562): what a vertical sees of a provider that holds calendars and
4
+ * task lists, whichever provider it is.
5
+ *
6
+ * A calendar source is a connector whose far side is a calendar: events, some of them recurring,
7
+ * some of them all-day, each in a time zone. The first to land it is the secret iCal address
8
+ * (`connectors/ics`); the Google Workspace and per-person Google connectors (#3564, #3565) land the
9
+ * same shapes, so a vertical codes against these names and swapping how a calendar is brought in
10
+ * keeps its landing operation, its tables and the schemas it parses. The CONNECTION stays the
11
+ * provider's (its credential, its probe, its binding).
12
+ *
13
+ * Two shapes cross, each landed through the vertical's own operation, one record per invoke:
14
+ *
15
+ * - {@link calendarEventChange} — an event as it now stands, or that it is gone;
16
+ * - {@link taskChange} — a task as it now stands, or that it is gone. No connector lands it yet:
17
+ * an iCal feed carries no tasks. It is here so the first provider that does lands on these words.
18
+ *
19
+ * The invariants a provider's sync holds, which no schema here can:
20
+ *
21
+ * - **Delivery is at least once, keyed by the provider's id** (`eventId`, `taskId`). A landing
22
+ * operation upserts by it and may see the same change twice.
23
+ * - **A recurring event arrives once, as its series**, with its rules in `recurrence` as the
24
+ * source states them (RFC 5545 `RRULE`, `RDATE` and `EXDATE` lines). Occurrences are not
25
+ * expanded: a vertical that needs them expands the rules itself, over the window it shows.
26
+ * - **One changed occurrence of a series arrives as an event of its own**, with `seriesId` naming
27
+ * the series and `originalStart` the occurrence it replaces. A cancelled occurrence is such an
28
+ * event with `status: 'cancelled'`, which is how a source says "not this one".
29
+ * - **A removal is reported only for an id that was delivered**, and is as safe to repeat as an
30
+ * upsert. It says the event left the calendar (deleted, or the source stopped showing it); a
31
+ * cancelled event the source still shows is an upsert with that status, never a removal.
32
+ * - **An all-day event has dates, a timed event has instants.** `allDay` says which, both ends are
33
+ * the same kind, and an all-day `end` is the day AFTER the last day, as RFC 5545 and every
34
+ * calendar API count it.
35
+ *
36
+ * An event carries personal data (who meets whom, where, about what). A vertical that lands it
37
+ * declares those columns as such.
38
+ */
39
+ /**
40
+ * When something starts, ends or is due: a whole day (`date`), or an instant (`dateTime`, RFC 3339
41
+ * with its UTC offset) with the time zone the source placed it in, as the source names it (an IANA
42
+ * name such as `Europe/Stockholm`, or the provider's own, such as Outlook's
43
+ * `W. Europe Standard Time`). `timeZone` is `null` when the source named none; the offset is then
44
+ * the whole truth.
45
+ */
46
+ export declare const calendarTime: z.ZodUnion<readonly [z.ZodObject<{
47
+ date: z.ZodISODate;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ dateTime: z.ZodString;
50
+ timeZone: z.ZodNullable<z.ZodString>;
51
+ }, z.core.$strict>]>;
52
+ export type CalendarTime = z.infer<typeof calendarTime>;
53
+ /** Where an event stands at the source. A cancelled one is still shown by the source. */
54
+ export declare const calendarEventStatus: z.ZodEnum<{
55
+ cancelled: "cancelled";
56
+ confirmed: "confirmed";
57
+ tentative: "tentative";
58
+ }>;
59
+ export type CalendarEventStatus = z.infer<typeof calendarEventStatus>;
60
+ /** Most recurrence lines one event may carry. */
61
+ export declare const CALENDAR_RECURRENCE_MAX_LINES = 100;
62
+ /**
63
+ * An event as it now stands at the source. `title` is `''` when the source gave none.
64
+ * `modifiedAt` is when the source last changed it, when the source says.
65
+ */
66
+ export declare const calendarEventUpsert: z.ZodObject<{
67
+ connectionId: z.ZodString;
68
+ calendarId: z.ZodString;
69
+ eventId: z.ZodString;
70
+ change: z.ZodLiteral<"upsert">;
71
+ calendarName: z.ZodNullable<z.ZodString>;
72
+ seriesId: z.ZodNullable<z.ZodString>;
73
+ originalStart: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
74
+ date: z.ZodISODate;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ dateTime: z.ZodString;
77
+ timeZone: z.ZodNullable<z.ZodString>;
78
+ }, z.core.$strict>]>>;
79
+ title: z.ZodString;
80
+ description: z.ZodNullable<z.ZodString>;
81
+ location: z.ZodNullable<z.ZodString>;
82
+ allDay: z.ZodBoolean;
83
+ start: z.ZodUnion<readonly [z.ZodObject<{
84
+ date: z.ZodISODate;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ dateTime: z.ZodString;
87
+ timeZone: z.ZodNullable<z.ZodString>;
88
+ }, z.core.$strict>]>;
89
+ end: z.ZodUnion<readonly [z.ZodObject<{
90
+ date: z.ZodISODate;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ dateTime: z.ZodString;
93
+ timeZone: z.ZodNullable<z.ZodString>;
94
+ }, z.core.$strict>]>;
95
+ recurrence: z.ZodArray<z.ZodString>;
96
+ status: z.ZodEnum<{
97
+ cancelled: "cancelled";
98
+ confirmed: "confirmed";
99
+ tentative: "tentative";
100
+ }>;
101
+ webUrl: z.ZodNullable<z.ZodString>;
102
+ modifiedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
103
+ }, z.core.$strip>;
104
+ /** The event left the calendar. Reported only for an id that was delivered. */
105
+ export declare const calendarEventRemoved: z.ZodObject<{
106
+ connectionId: z.ZodString;
107
+ calendarId: z.ZodString;
108
+ eventId: z.ZodString;
109
+ change: z.ZodLiteral<"removed">;
110
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
111
+ }, z.core.$strip>;
112
+ /**
113
+ * What a calendar sync lands through the binding's operation, one event per invoke. Parsed with
114
+ * this schema on the way out, so a vertical compiled against one version of a connector gets a
115
+ * throw rather than a reshaped change from another.
116
+ */
117
+ export declare const calendarEventChange: z.ZodUnion<readonly [z.ZodObject<{
118
+ connectionId: z.ZodString;
119
+ calendarId: z.ZodString;
120
+ eventId: z.ZodString;
121
+ change: z.ZodLiteral<"upsert">;
122
+ calendarName: z.ZodNullable<z.ZodString>;
123
+ seriesId: z.ZodNullable<z.ZodString>;
124
+ originalStart: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
125
+ date: z.ZodISODate;
126
+ }, z.core.$strict>, z.ZodObject<{
127
+ dateTime: z.ZodString;
128
+ timeZone: z.ZodNullable<z.ZodString>;
129
+ }, z.core.$strict>]>>;
130
+ title: z.ZodString;
131
+ description: z.ZodNullable<z.ZodString>;
132
+ location: z.ZodNullable<z.ZodString>;
133
+ allDay: z.ZodBoolean;
134
+ start: z.ZodUnion<readonly [z.ZodObject<{
135
+ date: z.ZodISODate;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ dateTime: z.ZodString;
138
+ timeZone: z.ZodNullable<z.ZodString>;
139
+ }, z.core.$strict>]>;
140
+ end: z.ZodUnion<readonly [z.ZodObject<{
141
+ date: z.ZodISODate;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ dateTime: z.ZodString;
144
+ timeZone: z.ZodNullable<z.ZodString>;
145
+ }, z.core.$strict>]>;
146
+ recurrence: z.ZodArray<z.ZodString>;
147
+ status: z.ZodEnum<{
148
+ cancelled: "cancelled";
149
+ confirmed: "confirmed";
150
+ tentative: "tentative";
151
+ }>;
152
+ webUrl: z.ZodNullable<z.ZodString>;
153
+ modifiedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ connectionId: z.ZodString;
156
+ calendarId: z.ZodString;
157
+ eventId: z.ZodString;
158
+ change: z.ZodLiteral<"removed">;
159
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
160
+ }, z.core.$strip>]>;
161
+ export type CalendarEventChange = z.infer<typeof calendarEventChange>;
162
+ /** Where a task stands. */
163
+ export declare const taskStatus: z.ZodEnum<{
164
+ completed: "completed";
165
+ open: "open";
166
+ }>;
167
+ export type TaskStatus = z.infer<typeof taskStatus>;
168
+ /** A task as it now stands at the source. */
169
+ export declare const taskUpsert: z.ZodObject<{
170
+ connectionId: z.ZodString;
171
+ listId: z.ZodString;
172
+ taskId: z.ZodString;
173
+ change: z.ZodLiteral<"upsert">;
174
+ listName: z.ZodNullable<z.ZodString>;
175
+ parentTaskId: z.ZodNullable<z.ZodString>;
176
+ title: z.ZodString;
177
+ notes: z.ZodNullable<z.ZodString>;
178
+ status: z.ZodEnum<{
179
+ completed: "completed";
180
+ open: "open";
181
+ }>;
182
+ due: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
183
+ date: z.ZodISODate;
184
+ }, z.core.$strict>, z.ZodObject<{
185
+ dateTime: z.ZodString;
186
+ timeZone: z.ZodNullable<z.ZodString>;
187
+ }, z.core.$strict>]>>;
188
+ completedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
189
+ webUrl: z.ZodNullable<z.ZodString>;
190
+ modifiedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
191
+ }, z.core.$strip>;
192
+ /** The task left its list. Reported only for an id that was delivered. */
193
+ export declare const taskRemoved: z.ZodObject<{
194
+ connectionId: z.ZodString;
195
+ listId: z.ZodString;
196
+ taskId: z.ZodString;
197
+ change: z.ZodLiteral<"removed">;
198
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
199
+ }, z.core.$strip>;
200
+ /** What a task sync lands through the binding's operation, one task per invoke. */
201
+ export declare const taskChange: z.ZodUnion<readonly [z.ZodObject<{
202
+ connectionId: z.ZodString;
203
+ listId: z.ZodString;
204
+ taskId: z.ZodString;
205
+ change: z.ZodLiteral<"upsert">;
206
+ listName: z.ZodNullable<z.ZodString>;
207
+ parentTaskId: z.ZodNullable<z.ZodString>;
208
+ title: z.ZodString;
209
+ notes: z.ZodNullable<z.ZodString>;
210
+ status: z.ZodEnum<{
211
+ completed: "completed";
212
+ open: "open";
213
+ }>;
214
+ due: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
215
+ date: z.ZodISODate;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ dateTime: z.ZodString;
218
+ timeZone: z.ZodNullable<z.ZodString>;
219
+ }, z.core.$strict>]>>;
220
+ completedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
221
+ webUrl: z.ZodNullable<z.ZodString>;
222
+ modifiedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ connectionId: z.ZodString;
225
+ listId: z.ZodString;
226
+ taskId: z.ZodString;
227
+ change: z.ZodLiteral<"removed">;
228
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
229
+ }, z.core.$strip>]>;
230
+ export type TaskChange = z.infer<typeof taskChange>;
231
+ //# sourceMappingURL=calendar-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-source.d.ts","sourceRoot":"","sources":["../src/calendar-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;oBAQvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAKxD,yFAAyF;AACzF,eAAO,MAAM,mBAAmB;;;;EAAkD,CAAC;AACnF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,iDAAiD;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAUjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgC5B,CAAC;AAEL,+EAA+E;AAC/E,eAAO,MAAM,oBAAoB;;;;;;iBAK/B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAuD,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,2BAA2B;AAC3B,eAAO,MAAM,UAAU;;;EAAgC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAUpD,6CAA6C;AAC7C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;iBAoBnB,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,WAAW;;;;;;iBAItB,CAAC;AAEH,mFAAmF;AACnF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAqC,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -0,0 +1,158 @@
1
+ import { z } from 'zod';
2
+ import { calendarDate, instant } from './ids.js';
3
+ /**
4
+ * Calendar-source vocabulary (#3562): what a vertical sees of a provider that holds calendars and
5
+ * task lists, whichever provider it is.
6
+ *
7
+ * A calendar source is a connector whose far side is a calendar: events, some of them recurring,
8
+ * some of them all-day, each in a time zone. The first to land it is the secret iCal address
9
+ * (`connectors/ics`); the Google Workspace and per-person Google connectors (#3564, #3565) land the
10
+ * same shapes, so a vertical codes against these names and swapping how a calendar is brought in
11
+ * keeps its landing operation, its tables and the schemas it parses. The CONNECTION stays the
12
+ * provider's (its credential, its probe, its binding).
13
+ *
14
+ * Two shapes cross, each landed through the vertical's own operation, one record per invoke:
15
+ *
16
+ * - {@link calendarEventChange} — an event as it now stands, or that it is gone;
17
+ * - {@link taskChange} — a task as it now stands, or that it is gone. No connector lands it yet:
18
+ * an iCal feed carries no tasks. It is here so the first provider that does lands on these words.
19
+ *
20
+ * The invariants a provider's sync holds, which no schema here can:
21
+ *
22
+ * - **Delivery is at least once, keyed by the provider's id** (`eventId`, `taskId`). A landing
23
+ * operation upserts by it and may see the same change twice.
24
+ * - **A recurring event arrives once, as its series**, with its rules in `recurrence` as the
25
+ * source states them (RFC 5545 `RRULE`, `RDATE` and `EXDATE` lines). Occurrences are not
26
+ * expanded: a vertical that needs them expands the rules itself, over the window it shows.
27
+ * - **One changed occurrence of a series arrives as an event of its own**, with `seriesId` naming
28
+ * the series and `originalStart` the occurrence it replaces. A cancelled occurrence is such an
29
+ * event with `status: 'cancelled'`, which is how a source says "not this one".
30
+ * - **A removal is reported only for an id that was delivered**, and is as safe to repeat as an
31
+ * upsert. It says the event left the calendar (deleted, or the source stopped showing it); a
32
+ * cancelled event the source still shows is an upsert with that status, never a removal.
33
+ * - **An all-day event has dates, a timed event has instants.** `allDay` says which, both ends are
34
+ * the same kind, and an all-day `end` is the day AFTER the last day, as RFC 5545 and every
35
+ * calendar API count it.
36
+ *
37
+ * An event carries personal data (who meets whom, where, about what). A vertical that lands it
38
+ * declares those columns as such.
39
+ */
40
+ /**
41
+ * When something starts, ends or is due: a whole day (`date`), or an instant (`dateTime`, RFC 3339
42
+ * with its UTC offset) with the time zone the source placed it in, as the source names it (an IANA
43
+ * name such as `Europe/Stockholm`, or the provider's own, such as Outlook's
44
+ * `W. Europe Standard Time`). `timeZone` is `null` when the source named none; the offset is then
45
+ * the whole truth.
46
+ */
47
+ export const calendarTime = z.union([
48
+ z.object({ date: calendarDate }).strict(),
49
+ z
50
+ .object({
51
+ dateTime: z.string().datetime({ offset: true }),
52
+ timeZone: z.string().min(1).max(100).nullable(),
53
+ })
54
+ .strict(),
55
+ ]);
56
+ const isDate = (t) => 'date' in t;
57
+ const startOf = (t) => (isDate(t) ? Date.parse(`${t.date}T00:00:00Z`) : Date.parse(t.dateTime));
58
+ /** Where an event stands at the source. A cancelled one is still shown by the source. */
59
+ export const calendarEventStatus = z.enum(['confirmed', 'tentative', 'cancelled']);
60
+ /** Most recurrence lines one event may carry. */
61
+ export const CALENDAR_RECURRENCE_MAX_LINES = 100;
62
+ const eventKey = {
63
+ connectionId: z.string().min(1),
64
+ /** The calendar's id at the source. One connection may hold several calendars. */
65
+ calendarId: z.string().min(1),
66
+ /** The event's id at the source — the stable key. A changed occurrence has an id of its own. */
67
+ eventId: z.string().min(1),
68
+ };
69
+ /**
70
+ * An event as it now stands at the source. `title` is `''` when the source gave none.
71
+ * `modifiedAt` is when the source last changed it, when the source says.
72
+ */
73
+ export const calendarEventUpsert = z
74
+ .object({
75
+ change: z.literal('upsert'),
76
+ ...eventKey,
77
+ /** The calendar's name, when the source gives one. */
78
+ calendarName: z.string().nullable(),
79
+ /** For one changed occurrence of a series: the series' `eventId`. `null` for anything else. */
80
+ seriesId: z.string().min(1).nullable(),
81
+ /** For one changed occurrence: the start the series gave it, which it replaces. */
82
+ originalStart: calendarTime.nullable(),
83
+ title: z.string(),
84
+ description: z.string().nullable(),
85
+ location: z.string().nullable(),
86
+ allDay: z.boolean(),
87
+ start: calendarTime,
88
+ /** Exclusive: an all-day event on 3 December ends `{ date: '…-12-04' }`. */
89
+ end: calendarTime,
90
+ /** The series' rules, one RFC 5545 line each (`RRULE:…`, `RDATE…`, `EXDATE…`). `[]` when it does not repeat. */
91
+ recurrence: z.array(z.string().min(1)).max(CALENDAR_RECURRENCE_MAX_LINES),
92
+ status: calendarEventStatus,
93
+ /** The event's page at the source, when it has one a person can open. */
94
+ webUrl: z.string().nullable(),
95
+ modifiedAt: instant.nullable(),
96
+ })
97
+ .refine((e) => isDate(e.start) === e.allDay && isDate(e.end) === e.allDay, {
98
+ message: 'an all-day event starts and ends on dates, a timed event on instants',
99
+ path: ['allDay'],
100
+ })
101
+ .refine((e) => startOf(e.end) >= startOf(e.start), { message: 'an event ends no earlier than it starts', path: ['end'] })
102
+ .refine((e) => (e.seriesId === null) === (e.originalStart === null), {
103
+ message: 'a changed occurrence names both its series and the start it replaces',
104
+ path: ['originalStart'],
105
+ });
106
+ /** The event left the calendar. Reported only for an id that was delivered. */
107
+ export const calendarEventRemoved = z.object({
108
+ change: z.literal('removed'),
109
+ ...eventKey,
110
+ /** When the connector saw it gone. */
111
+ observedAt: instant,
112
+ });
113
+ /**
114
+ * What a calendar sync lands through the binding's operation, one event per invoke. Parsed with
115
+ * this schema on the way out, so a vertical compiled against one version of a connector gets a
116
+ * throw rather than a reshaped change from another.
117
+ */
118
+ export const calendarEventChange = z.union([calendarEventUpsert, calendarEventRemoved]);
119
+ /** Where a task stands. */
120
+ export const taskStatus = z.enum(['open', 'completed']);
121
+ const taskKey = {
122
+ connectionId: z.string().min(1),
123
+ /** The task list's id at the source. */
124
+ listId: z.string().min(1),
125
+ /** The task's id at the source — the stable key. */
126
+ taskId: z.string().min(1),
127
+ };
128
+ /** A task as it now stands at the source. */
129
+ export const taskUpsert = z
130
+ .object({
131
+ change: z.literal('upsert'),
132
+ ...taskKey,
133
+ listName: z.string().nullable(),
134
+ /** The task this one is a subtask of, when the source nests them. */
135
+ parentTaskId: z.string().min(1).nullable(),
136
+ title: z.string(),
137
+ notes: z.string().nullable(),
138
+ status: taskStatus,
139
+ /** When it is due: a day, or an instant where the source keeps a time. */
140
+ due: calendarTime.nullable(),
141
+ /** When it was completed; `null` while it is open. */
142
+ completedAt: instant.nullable(),
143
+ webUrl: z.string().nullable(),
144
+ modifiedAt: instant.nullable(),
145
+ })
146
+ .refine((t) => t.status === 'completed' || t.completedAt === null, {
147
+ message: 'an open task has no completion time',
148
+ path: ['completedAt'],
149
+ });
150
+ /** The task left its list. Reported only for an id that was delivered. */
151
+ export const taskRemoved = z.object({
152
+ change: z.literal('removed'),
153
+ ...taskKey,
154
+ observedAt: instant,
155
+ });
156
+ /** What a task sync lands through the binding's operation, one task per invoke. */
157
+ export const taskChange = z.union([taskUpsert, taskRemoved]);
158
+ //# sourceMappingURL=calendar-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../src/calendar-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEjD;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ED
@@ -82,6 +82,7 @@ export * from './money.js';
82
82
  export * from './attachments.js';
83
83
  export * from './file-source.js';
84
84
  export * from './commerce-source.js';
85
+ export * from './calendar-source.js';
85
86
  export * from './payment-source.js';
86
87
  export * from './mail-in.js';
87
88
  export * from './kernel-events.js';
@@ -98,6 +99,7 @@ export * from './model.js';
98
99
  export * from './operations.js';
99
100
  export * from './lifecycle.js';
100
101
  export * from './client-context.js';
102
+ export * from './routed-geo.js';
101
103
  export * from './model-usage.js';
102
104
  export * from './markup.js';
103
105
  export * from './platform-usage.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,c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,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -84,6 +84,7 @@ export * from './money.js';
84
84
  export * from './attachments.js';
85
85
  export * from './file-source.js';
86
86
  export * from './commerce-source.js';
87
+ export * from './calendar-source.js';
87
88
  export * from './payment-source.js';
88
89
  export * from './mail-in.js';
89
90
  export * from './kernel-events.js';
@@ -100,6 +101,7 @@ export * from './model.js';
100
101
  export * from './operations.js';
101
102
  export * from './lifecycle.js';
102
103
  export * from './client-context.js';
104
+ export * from './routed-geo.js';
103
105
  export * from './model-usage.js';
104
106
  export * from './markup.js';
105
107
  export * from './platform-usage.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,kFAAkF;AAClF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GASzB,MAAM,2BAA2B,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACp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ACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
@@ -345,8 +345,14 @@ export declare const SIGN_IN_SETUP_REMEDY = "Pick an issuer under Settings \u219
345
345
  *
346
346
  * `delivered` is the install's per-scope config as its author stores it. The deployment's own
347
347
  * bindings are not read: for a hosted vertical they carry only the declared defaults, which
348
- * `resolveScopedEnvSpec` already applies. An issuer the running app refuses (not https) still
349
- * reads `configured` here; that refusal is the app's, and it answers it with a 503 of its own.
348
+ * `resolveScopedEnvSpec` already applies.
349
+ *
350
+ * `issuerRefusal` is the running app's own issuer rule (`issuerRefusal` in
351
+ * `@substrat-run/oidc-rp/discovery`), passed in so this package takes no dependency on it. With
352
+ * it, an issuer the app would refuse (not https, or not a valid issuer identifier) reads
353
+ * `unconfigured`: the app answers every sign-in with a 503 there, exactly as with no issuer.
354
+ * Without it, such an issuer reads `configured`, as before. A secret `OIDC_ISSUER` arrives as
355
+ * {@link SECRET_SETTING_PRESENT}, whose value cannot be judged, so it is never refused here.
350
356
  */
351
357
  export declare function signInSetupOf(input: {
352
358
  /** The declared settings; only each key and its default are read. */
@@ -357,6 +363,8 @@ export declare function signInSetupOf(input: {
357
363
  issuer?: string | undefined;
358
364
  clientId?: string | undefined;
359
365
  } | null;
366
+ /** Why the running app would refuse `issuer`, or null when it would accept it. */
367
+ issuerRefusal?: (issuer: string) => string | null;
360
368
  }): SignInSetup;
361
369
  /**
362
370
  * An entity type a module declares (#1869): the `entityRelations` edges `ctx.link` writes as
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,aAAa,aAEsC,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;kBAUpB,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;iBAShC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc;;;;;;;;kBAMhB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,6FAA6F;AAC7F,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAE1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAA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AClF,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CACnD,GAAG,WAAW,CA8Bd;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,aAK3B,CAAC;AAEL,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsWzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa;;EAAqB,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
package/dist/manifest.js CHANGED
@@ -373,15 +373,31 @@ export const SIGN_IN_SETUP_REMEDY = "Pick an issuer under Settings → Identity
373
373
  *
374
374
  * `delivered` is the install's per-scope config as its author stores it. The deployment's own
375
375
  * bindings are not read: for a hosted vertical they carry only the declared defaults, which
376
- * `resolveScopedEnvSpec` already applies. An issuer the running app refuses (not https) still
377
- * reads `configured` here; that refusal is the app's, and it answers it with a 503 of its own.
376
+ * `resolveScopedEnvSpec` already applies.
377
+ *
378
+ * `issuerRefusal` is the running app's own issuer rule (`issuerRefusal` in
379
+ * `@substrat-run/oidc-rp/discovery`), passed in so this package takes no dependency on it. With
380
+ * it, an issuer the app would refuse (not https, or not a valid issuer identifier) reads
381
+ * `unconfigured`: the app answers every sign-in with a 503 there, exactly as with no issuer.
382
+ * Without it, such an issuer reads `configured`, as before. A secret `OIDC_ISSUER` arrives as
383
+ * {@link SECRET_SETTING_PRESENT}, whose value cannot be judged, so it is never refused here.
378
384
  */
379
385
  export function signInSetupOf(input) {
380
386
  if (!input.envSpec.some((s) => s.key === SIGN_IN_PROVIDER_SETTING))
381
387
  return { state: 'not-applicable' };
388
+ const refused = (issuer) => {
389
+ const why = issuer === SECRET_SETTING_PRESENT ? null : (input.issuerRefusal?.(issuer) ?? null);
390
+ return why === null
391
+ ? null
392
+ : {
393
+ state: 'unconfigured',
394
+ reason: `Sign-in is not configured: the app refuses its issuer ${issuer} (${why}), so every sign-in fails.`,
395
+ remedy: SIGN_IN_SETUP_REMEDY,
396
+ };
397
+ };
382
398
  if (input.identity) {
383
399
  if (input.identity.issuer && input.identity.clientId)
384
- return { state: 'configured' };
400
+ return refused(input.identity.issuer) ?? { state: 'configured' };
385
401
  return {
386
402
  state: 'unconfigured',
387
403
  reason: 'Sign-in is not configured: the identity choice names no issuer or no client.',
@@ -390,8 +406,9 @@ export function signInSetupOf(input) {
390
406
  }
391
407
  // `resolveScopedEnvSpec`'s precedence over an empty environment: a delivered value, else the default.
392
408
  const setting = (key) => input.delivered[key] || input.envSpec.find((s) => s.key === key)?.default || undefined;
393
- if (setting(SIGN_IN_PROVIDER_SETTING) === 'oidc' && setting('OIDC_ISSUER'))
394
- return { state: 'configured' };
409
+ const issuer = setting('OIDC_ISSUER');
410
+ if (setting(SIGN_IN_PROVIDER_SETTING) === 'oidc' && issuer)
411
+ return refused(issuer) ?? { state: 'configured' };
395
412
  return {
396
413
  state: 'unconfigured',
397
414
  reason: 'Sign-in is not configured: no issuer is chosen, and this app has no sign-in of its own, so every sign-in fails.',