@surfiran/public-api-client 0.28.0 → 0.29.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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ The repository split and production cutover are complete. This repository is the
18
18
 
19
19
  `contract/public-api-v1.yaml` is the package-local immutable snapshot used for generation. `contract/provenance.json` records its source identity, immutable source revision, checksums, and, for standalone releases, the exact API artifact identity.
20
20
 
21
- The checked-in `0.28.0` snapshot and provenance come from the `SURFIRAN/surfiran-crm-api` main-branch release `public-api-contract/56ba99f1008e85dd59b51d91be29ac23fa3a1051-36217113430-1`. Published `0.20.0` and earlier keep their historical provenance, which may still reference the former monorepo owner or path. Do not rewrite an already published package version solely to rename historical provenance.
21
+ The checked-in `0.29.0` snapshot and provenance come from the `SURFIRAN/surfiran-crm-api` main-branch release `public-api-contract/ad9252578477406f13cb7db52e4f12c32715b00e-36233980383-1`. Published `0.20.0` and earlier keep their historical provenance, which may still reference the former monorepo owner or path. Do not rewrite an already published package version solely to rename historical provenance.
22
22
 
23
23
  New client versions must consume the exact immutable GitHub Release assets produced from a successful `SURFIRAN/surfiran-crm-api` main-branch CI run. The release tag is `public-api-contract/<source SHA>-<run ID>-<attempt>` and contains only `public-api-v1.yaml` and `manifest.json`. Publication verifies the immutable release and both GitHub release attestations, the tag SHA, final successful source run, asset digests, manifest identity, and checked-in snapshot bytes. If any check is unavailable, publication stops. Pull-request artifacts are verification evidence only and are not valid release inputs. This repository must never read another repository's private working tree at build time.
24
24
 
@@ -94,6 +94,6 @@ Published versions are immutable. Rollback means pinning consumers to the previo
94
94
  - This README owns local setup, contract synchronization, CI, publication, and rollback guidance.
95
95
  - [AGENTS.md](AGENTS.md) owns agent operating instructions.
96
96
  - [Repository boundaries and documentation governance](https://github.com/SURFIRAN/surfiran-crm-api/blob/main/docs/architecture/REPOSITORY_BOUNDARIES.md) own shared architecture and current system state.
97
- - [Contract snapshot](contract/public-api-v1.yaml) and [provenance](contract/provenance.json) are immutable evidence for `0.28.0`, not current API ownership authorities.
97
+ - [Contract snapshot](contract/public-api-v1.yaml) and [provenance](contract/provenance.json) are immutable evidence for `0.29.0`, not current API ownership authorities.
98
98
 
99
99
  Update existing guidance instead of creating duplicate contract or publication authorities. Preserve the historical snapshot, provenance, and generated bytes until a reviewed new package version imports a verified API artifact.
package/dist/types.d.ts CHANGED
@@ -1002,6 +1002,18 @@ export type PublicSearchResultItem = {
1002
1002
  slug: string;
1003
1003
  path: string;
1004
1004
  summary: string | null;
1005
+ /**
1006
+ * Present only when a non-English locale was explicitly requested. Locale of
1007
+ * the displayed label, from approved field provenance; `en` means the English
1008
+ * source is displayed as a fallback (always the case for destinations).
1009
+ */
1010
+ labelSourceLocale?: PublicContentLocale;
1011
+ /**
1012
+ * Present only when a non-English locale was explicitly requested. Locale of
1013
+ * the displayed summary, from approved field provenance; null when `summary`
1014
+ * is null, and `en` when the English source is displayed as a fallback.
1015
+ */
1016
+ summarySourceLocale?: PublicContentLocale | null;
1005
1017
  };
1006
1018
  export type PublicSearchResultGroup = {
1007
1019
  type: 'tour' | 'destination';
@@ -1566,7 +1578,7 @@ export type ListPublicToursParams = {
1566
1578
  locale?: PublicContentLocale;
1567
1579
  };
1568
1580
  /** Locales the public content contract will resolve translations for. */
1569
- export type PublicContentLocale = 'en' | 'de' | 'fr' | 'es' | 'it' | 'fa' | 'ar';
1581
+ export type PublicContentLocale = 'en' | 'de' | 'fr' | 'tr' | 'ru' | 'es' | 'it' | 'fa' | 'ar';
1570
1582
  export type GetPublicTourParams = {
1571
1583
  /** See ListPublicToursParams['locale']. */
1572
1584
  locale?: PublicContentLocale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surfiran/public-api-client",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "TypeScript types and client for SURFIRAN CRM Public API V1",
5
5
  "type": "module",
6
6
  "engines": {