@homespunapps/core 1.6.76 → 1.6.77

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/dist/client.d.ts CHANGED
@@ -1006,6 +1006,21 @@ export interface DeployAppRequest {
1006
1006
  */
1007
1007
  assets?: AppAsset[];
1008
1008
  }
1009
+ /**
1010
+ * One connection a manifest references that has no row on the app.
1011
+ *
1012
+ * `suggested_host` is the host every rule using that connection agrees on,
1013
+ * taken from the manifest, and is a SUGGESTION for a human to approve, never a
1014
+ * binding the tooling may apply on its own: a connection's allowed host is the
1015
+ * exfiltration defence, and a redeploy is not gated on fetcher urls, so
1016
+ * deriving the binding from the same input it defends against would defeat it.
1017
+ * Null when the rules disagree on a host, or resolve their target from a
1018
+ * setting at delivery time.
1019
+ */
1020
+ export interface MissingConnection {
1021
+ name: string;
1022
+ suggested_host: string | null;
1023
+ }
1009
1024
  export interface DeployAppResponse {
1010
1025
  app_id: string;
1011
1026
  slug: string;
@@ -1027,6 +1042,16 @@ export interface DeployAppResponse {
1027
1042
  * to the human.
1028
1043
  */
1029
1044
  warnings?: string[];
1045
+ /**
1046
+ * Connections this manifest references that do not exist on the app, so
1047
+ * every call through them fails at runtime with `connection_not_found`.
1048
+ * Present only when there is at least one. On a CREATE that is every
1049
+ * connection the manifest declares, since a brand-new app has none.
1050
+ *
1051
+ * Machine-readable ON PURPOSE, and separate from the sentence in
1052
+ * `warnings`: a caller gating on this must never have to match prose.
1053
+ */
1054
+ missing_connections?: MissingConnection[];
1030
1055
  }
1031
1056
  /**
1032
1057
  * Request body for `POST /v1/apps/:id/versions`: redeploy (compat-gated).
@@ -1065,6 +1090,17 @@ export interface RedeployAppResponse {
1065
1090
  * warning fires only when the app STILL has no timezone set.
1066
1091
  */
1067
1092
  warnings?: string[];
1093
+ /**
1094
+ * Connections this manifest references that do not exist on the app, so
1095
+ * every call through them fails at runtime with `connection_not_found`.
1096
+ * Present only when there is at least one.
1097
+ *
1098
+ * Machine-readable ON PURPOSE, and separate from the sentence in
1099
+ * `warnings`: a caller gating on this must never have to match prose, which
1100
+ * is free to be reworded and would fail OPEN if grepped. Optional, so a
1101
+ * client talking to an older relay simply sees it absent.
1102
+ */
1103
+ missing_connections?: MissingConnection[];
1068
1104
  }
1069
1105
  /**
1070
1106
  * Result of a DRY-RUN deploy (`checkDeploy`): the deploy validation + compat
@@ -1094,6 +1130,17 @@ export interface DeployCheckResult {
1094
1130
  path: string;
1095
1131
  message: string;
1096
1132
  }>;
1133
+ /**
1134
+ * Connections this manifest references that do not exist on the app, so
1135
+ * every call through them fails at runtime with `connection_not_found`.
1136
+ * Present only when there is at least one.
1137
+ *
1138
+ * Machine-readable ON PURPOSE, and separate from the sentence in
1139
+ * `warnings`: a caller gating on this must never have to match prose, which
1140
+ * is free to be reworded and would fail OPEN if grepped. Optional, so a
1141
+ * client talking to an older relay simply sees it absent.
1142
+ */
1143
+ missing_connections?: MissingConnection[];
1097
1144
  }
1098
1145
  /**
1099
1146
  * Request for a dry-run deploy check. Omit `app_id` to check a CREATE; pass it
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { HomespunClient, HomespunApiError, putPresigned } from "./client.js";
2
- export type { ClientOptions, RelayResponse, AttachmentRef, UploadBlobOptions, PresignBlobOptions, AttachmentTokenMintResponse, ListBlobsOptions, AttachmentTokenAuditEntry, AttachmentTokenListResponse, QueryResponse, AppAsset, DeployAppRequest, DeployAppResponse, RedeployAppRequest, RedeployAppResponse, DeployCheckRequest, DeployCheckResult, KeyMintResult, AppSummary, AppDetail, AppsPage, AppDomain, AppDomainDnsRecord, AppMember, AddAppMemberResult, AppRow, AppRowsPage, ListScalar, ListWhereCondition, ListSortSpec, BatchRowInput, BatchRowResult, BatchResult, BatchWriteOptions, AppFeedEntry, AppFeedPage, CommunitySetupStep, RetentionAxes, CollectionRetentionView, ServiceCredentialGrant, MintAppCredentialResult, AppCredentialSummary, RotateAppCredentialResult, ConnectionSummary, } from "./client.js";
2
+ export type { ClientOptions, RelayResponse, AttachmentRef, UploadBlobOptions, PresignBlobOptions, AttachmentTokenMintResponse, ListBlobsOptions, AttachmentTokenAuditEntry, AttachmentTokenListResponse, QueryResponse, AppAsset, DeployAppRequest, DeployAppResponse, RedeployAppRequest, RedeployAppResponse, DeployCheckRequest, DeployCheckResult, MissingConnection, KeyMintResult, AppSummary, AppDetail, AppsPage, AppDomain, AppDomainDnsRecord, AppMember, AddAppMemberResult, AppRow, AppRowsPage, ListScalar, ListWhereCondition, ListSortSpec, BatchRowInput, BatchRowResult, BatchResult, BatchWriteOptions, AppFeedEntry, AppFeedPage, CommunitySetupStep, RetentionAxes, CollectionRetentionView, ServiceCredentialGrant, MintAppCredentialResult, AppCredentialSummary, RotateAppCredentialResult, ConnectionSummary, } from "./client.js";
3
3
  export { openStream } from "./stream.js";
4
4
  export type { OpenStreamOptions, StreamHandlers, StreamHandle, } from "./stream.js";
5
5
  export { openAppStream, appWsUrlFromAppUrl } from "./app-stream.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespunapps/core",
3
- "version": "1.6.76",
3
+ "version": "1.6.77",
4
4
  "description": "Homespun relay client: typed HTTP + WebSocket operations against a Homespun relay. Framework-free.",
5
5
  "license": "MIT",
6
6
  "type": "module",