@protobase/schema 0.66.5 → 0.66.7

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,4 @@
1
+ //#region src/email-code-lifetime.d.ts
2
+ /** How many minutes an emailed sign-in, sign-up, two-factor or address-change code works: the server expires it by this, and the page and the email say it. */
3
+ export declare const emailCodeMinutes = 10;
4
+ //#endregion
@@ -0,0 +1,5 @@
1
+ //#region src/email-code-lifetime.ts
2
+ /** How many minutes an emailed sign-in, sign-up, two-factor or address-change code works: the server expires it by this, and the page and the email say it. */
3
+ const emailCodeMinutes = 10;
4
+ //#endregion
5
+ export { emailCodeMinutes };
@@ -0,0 +1,7 @@
1
+ //#region src/first-party-code.d.ts
2
+ /**
3
+ * The key the app's own scripts are built with, which marks them for the browser's error reporting: an error raised
4
+ * only outside them, such as in a browser extension or an injected script, is not the app's and goes unreported.
5
+ */
6
+ export declare const firstPartyCodeKey = "protobase-app";
7
+ //#endregion
@@ -0,0 +1,8 @@
1
+ //#region src/first-party-code.ts
2
+ /**
3
+ * The key the app's own scripts are built with, which marks them for the browser's error reporting: an error raised
4
+ * only outside them, such as in a browser extension or an injected script, is not the app's and goes unreported.
5
+ */
6
+ const firstPartyCodeKey = "protobase-app";
7
+ //#endregion
8
+ export { firstPartyCodeKey };
@@ -15,6 +15,7 @@ import { SearchTerm, matchedSearchField, matchesSearch, searchTerms, termMatches
15
15
  import { defaultRecentLimit, navRecentErrors, statusTones } from "./nav-recent.js";
16
16
  import { PluginHost, PluginRequirement, inRange, pluginProblem } from "./plugin-version.js";
17
17
  import { redactSecrets } from "./redact-secrets.js";
18
+ import { firstPartyCodeKey } from "./first-party-code.js";
18
19
  import { updateSetErrors, updateValues } from "./update-set.js";
19
20
  import { addressPlaceholders, appHrefError, fillAddress, hrefField, hrefPlaceholders, leavesApp, linkActionError } from "./address-template.js";
20
21
  import { promptError, promptFields, renderPrompt } from "./ai-prompt.js";
@@ -30,6 +31,7 @@ import { labelFieldOf, recordTitle, recordTitleField } from "./record-title.js";
30
31
  import { apiOriginMeta } from "./api-origin-meta.js";
31
32
  import { MobileReleaseAnswer, ReleaseBinding, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, releaseManifestFile, releaseStatementContext, releaseStatementFile } from "./mobile-release-address.js";
32
33
  import { authBasePath } from "./auth-base-path.js";
34
+ import { emailCodeMinutes } from "./email-code-lifetime.js";
33
35
  import { capacitorOrigin } from "./capacitor-origins.js";
34
36
  import { pushRecord, serviceWorkerFile } from "./push-record.js";
35
37
  import { deviceIdParam, devicesPath } from "./devices-path.js";
@@ -40,4 +42,4 @@ import { builtInFieldTypes } from "./built-in-field-types.js";
40
42
  import { CallCandidate, CallClientMessage, CallDescription, CallGuestLink, CallGuestRefusal, CallGuestState, CallLeftReason, CallLobbyGuest, CallMode, CallRemoteTrack, CallResume, CallRosterMember, CallServerMessage, CallTrackRequest, CallTrackSource, CallVideoLayer } from "./calls/call-protocol.js";
41
43
  import { guestCallsPath } from "./calls/call-guests.js";
42
44
  import { CallRing, callsChannelEvent, declineWord, ringNotice, ringsPath } from "./calls/call-rings.js";
43
- export { type AddressCheck, type Availability, type CallCandidate, type CallClientMessage, type CallDescription, type CallGuestLink, type CallGuestRefusal, type CallGuestState, type CallLeftReason, type CallLobbyGuest, type CallMode, type CallRemoteTrack, type CallResume, type CallRing, type CallRosterMember, type CallServerMessage, type CallTrackRequest, type CallTrackSource, type CallVideoLayer, type FormulaNode, type Locale, type MobileReleaseAnswer, type PersonStatus, type PluginHost, type PluginRequirement, type PropShapes, type RefShape, type ReleaseBinding, type SearchTerm, type StatusInput, actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, callsChannelEvent, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, declineWord, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, guestCallsPath, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, ringNotice, ringsPath, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
45
+ export { type AddressCheck, type Availability, type CallCandidate, type CallClientMessage, type CallDescription, type CallGuestLink, type CallGuestRefusal, type CallGuestState, type CallLeftReason, type CallLobbyGuest, type CallMode, type CallRemoteTrack, type CallResume, type CallRing, type CallRosterMember, type CallServerMessage, type CallTrackRequest, type CallTrackSource, type CallVideoLayer, type FormulaNode, type Locale, type MobileReleaseAnswer, type PersonStatus, type PluginHost, type PluginRequirement, type PropShapes, type RefShape, type ReleaseBinding, type SearchTerm, type StatusInput, actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, callsChannelEvent, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, declineWord, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emailCodeMinutes, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, firstPartyCodeKey, guestCallsPath, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, ringNotice, ringsPath, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
package/dist/internal.js CHANGED
@@ -21,6 +21,7 @@ import { webhookResources } from "./webhooks/webhook-resources.js";
21
21
  import { pruneByShape, shapes } from "./ref-shape.js";
22
22
  import { inRange, pluginProblem } from "./plugin-version.js";
23
23
  import { redactSecrets } from "./redact-secrets.js";
24
+ import { firstPartyCodeKey } from "./first-party-code.js";
24
25
  import { addressErrors } from "./address-errors.js";
25
26
  import { applyAssistantEvent, emptyAssistantState } from "./assistant/apply-event.js";
26
27
  import { readEventStream } from "./assistant/event-stream.js";
@@ -30,6 +31,7 @@ import { labelFieldOf, recordTitle, recordTitleField } from "./record-title.js";
30
31
  import { apiOriginMeta } from "./api-origin-meta.js";
31
32
  import { mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, releaseManifestFile, releaseStatementContext, releaseStatementFile } from "./mobile-release-address.js";
32
33
  import { authBasePath } from "./auth-base-path.js";
34
+ import { emailCodeMinutes } from "./email-code-lifetime.js";
33
35
  import { capacitorOrigin } from "./capacitor-origins.js";
34
36
  import { pushRecord, serviceWorkerFile } from "./push-record.js";
35
37
  import { deviceIdParam, devicesPath } from "./devices-path.js";
@@ -39,4 +41,4 @@ import { listColumnNames } from "./list-columns.js";
39
41
  import { builtInFieldTypes } from "./built-in-field-types.js";
40
42
  import { guestCallsPath } from "./calls/call-guests.js";
41
43
  import { callsChannelEvent, declineWord, ringNotice, ringsPath } from "./calls/call-rings.js";
42
- export { actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, callsChannelEvent, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, declineWord, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, guestCallsPath, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, ringNotice, ringsPath, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
44
+ export { actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, availabilities, boardErrors, bottomBarFor, builtInFieldTypes, callsChannelEvent, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, declineWord, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emailCodeMinutes, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, firstPartyCodeKey, guestCallsPath, heldStatus, historyIdParam, historyIdPattern, historyPath, hrefField, hrefPlaceholders, humanize, inRange, isFieldRef, isGroupChart, isLocale, labelFieldOf, layoutItems, leavesApp, linkActionError, listColumnNames, locales, markFieldRefs, matchedSearchField, matchesSearch, maxStatusText, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, recordTitle, recordTitleField, redactSecrets, releaseManifestFile, releaseStatementContext, releaseStatementFile, renderPrompt, ringNotice, ringsPath, searchTerms, serviceWorkerFile, shapes, shownInputs, statusPath, statusTextProblem, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
@@ -171,7 +171,7 @@ const deliveryLogResource = (schema) => resource("webhook_delivery_log").table(`
171
171
  status_code: f.integer().optional().readOnly().filterable(),
172
172
  response: f.text().optional().readOnly(),
173
173
  duration_ms: f.integer().readOnly(),
174
- at: f.timestamp().readOnly().filterable().sortable()
174
+ at: f.timestamp().readOnly().dbDefault().filterable().sortable()
175
175
  }).primaryKey((r) => r.id).tenant((r) => r.tenant_id).explicitGrants().access({
176
176
  create: () => false,
177
177
  update: () => false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/schema",
3
- "version": "0.66.5",
3
+ "version": "0.66.7",
4
4
  "description": "Resource, field, view and access definitions for Protobase configs.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {