@vitrina/api 17.94.0 → 17.95.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/dist/index.d.cts CHANGED
@@ -16678,6 +16678,161 @@ interface paths {
16678
16678
  patch?: never;
16679
16679
  trace?: never;
16680
16680
  };
16681
+ "/tenant/country-profiles": {
16682
+ parameters: {
16683
+ query?: never;
16684
+ header?: never;
16685
+ path?: never;
16686
+ cookie?: never;
16687
+ };
16688
+ /**
16689
+ * Read the country profiles
16690
+ * @description The table of countries Vitrina has defaults for (the backend’s single source): time zone, currency, phone region and calling code, money locale, informal form of address, national holiday calendar and identity document. Static and non-sensitive: any authenticated member may read it, no scope required. `PUT /tenant/settings` `country` accepts any ISO country; one without a row here has no defaults.
16691
+ */
16692
+ get: {
16693
+ parameters: {
16694
+ query?: never;
16695
+ header?: never;
16696
+ path?: never;
16697
+ cookie?: never;
16698
+ };
16699
+ requestBody?: never;
16700
+ responses: {
16701
+ /** @description Country profiles */
16702
+ 200: {
16703
+ headers: {
16704
+ [name: string]: unknown;
16705
+ };
16706
+ content: {
16707
+ /**
16708
+ * @example {
16709
+ * "data": [
16710
+ * {
16711
+ * "country": "CL",
16712
+ * "name": "Chile",
16713
+ * "timezone": "America/Santiago",
16714
+ * "currency": "CLP",
16715
+ * "phone_region": "CL",
16716
+ * "dial_code": "56",
16717
+ * "money_locale": "es-CL",
16718
+ * "informal_address": "tu",
16719
+ * "holiday_calendar": "cl-national",
16720
+ * "document_kind": "rut"
16721
+ * },
16722
+ * {
16723
+ * "country": "AR",
16724
+ * "name": "Argentina",
16725
+ * "timezone": "America/Argentina/Buenos_Aires",
16726
+ * "currency": "ARS",
16727
+ * "phone_region": "AR",
16728
+ * "dial_code": "54",
16729
+ * "money_locale": "es-AR",
16730
+ * "informal_address": "vos",
16731
+ * "holiday_calendar": null,
16732
+ * "document_kind": "dni"
16733
+ * }
16734
+ * ]
16735
+ * }
16736
+ */
16737
+ "application/json": {
16738
+ data: {
16739
+ /** @description ISO 3166-1 alpha-2. */
16740
+ country: string;
16741
+ /** @description English country name. */
16742
+ name: string;
16743
+ /** @description Default IANA time zone (the capital’s). */
16744
+ timezone: string;
16745
+ /** @description Default ISO 4217 currency. */
16746
+ currency: string;
16747
+ /** @description Region used to read national phone numbers typed by a person. */
16748
+ phone_region: string;
16749
+ /** @description International calling code, no `+`. */
16750
+ dial_code: string;
16751
+ /** @description BCP-47 locale for money and number formatting. */
16752
+ money_locale: string;
16753
+ /**
16754
+ * @description The informal second person of the country.
16755
+ * @enum {string}
16756
+ */
16757
+ informal_address: "tu" | "vos";
16758
+ /**
16759
+ * @description The national holiday calendar the platform ships, or null.
16760
+ * @enum {string|null}
16761
+ */
16762
+ holiday_calendar: "cl-national" | null;
16763
+ /**
16764
+ * @description The main national identity document.
16765
+ * @enum {string}
16766
+ */
16767
+ document_kind: "rut" | "curp" | "cedula" | "dni" | "ci";
16768
+ }[];
16769
+ };
16770
+ };
16771
+ };
16772
+ /** @description Validation error */
16773
+ 400: {
16774
+ headers: {
16775
+ [name: string]: unknown;
16776
+ };
16777
+ content: {
16778
+ "application/json": components["schemas"]["Error"];
16779
+ };
16780
+ };
16781
+ /** @description Unauthorized */
16782
+ 401: {
16783
+ headers: {
16784
+ [name: string]: unknown;
16785
+ };
16786
+ content: {
16787
+ "application/json": components["schemas"]["Error"];
16788
+ };
16789
+ };
16790
+ /** @description Forbidden */
16791
+ 403: {
16792
+ headers: {
16793
+ [name: string]: unknown;
16794
+ };
16795
+ content: {
16796
+ "application/json": components["schemas"]["Error"];
16797
+ };
16798
+ };
16799
+ /** @description Not found */
16800
+ 404: {
16801
+ headers: {
16802
+ [name: string]: unknown;
16803
+ };
16804
+ content: {
16805
+ "application/json": components["schemas"]["Error"];
16806
+ };
16807
+ };
16808
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
16809
+ 409: {
16810
+ headers: {
16811
+ [name: string]: unknown;
16812
+ };
16813
+ content: {
16814
+ "application/json": components["schemas"]["Error"];
16815
+ };
16816
+ };
16817
+ /** @description Rate limited */
16818
+ 429: {
16819
+ headers: {
16820
+ [name: string]: unknown;
16821
+ };
16822
+ content: {
16823
+ "application/json": components["schemas"]["Error"];
16824
+ };
16825
+ };
16826
+ };
16827
+ };
16828
+ put?: never;
16829
+ post?: never;
16830
+ delete?: never;
16831
+ options?: never;
16832
+ head?: never;
16833
+ patch?: never;
16834
+ trace?: never;
16835
+ };
16681
16836
  "/tenant/modules": {
16682
16837
  parameters: {
16683
16838
  query?: never;
package/dist/index.d.ts CHANGED
@@ -16678,6 +16678,161 @@ interface paths {
16678
16678
  patch?: never;
16679
16679
  trace?: never;
16680
16680
  };
16681
+ "/tenant/country-profiles": {
16682
+ parameters: {
16683
+ query?: never;
16684
+ header?: never;
16685
+ path?: never;
16686
+ cookie?: never;
16687
+ };
16688
+ /**
16689
+ * Read the country profiles
16690
+ * @description The table of countries Vitrina has defaults for (the backend’s single source): time zone, currency, phone region and calling code, money locale, informal form of address, national holiday calendar and identity document. Static and non-sensitive: any authenticated member may read it, no scope required. `PUT /tenant/settings` `country` accepts any ISO country; one without a row here has no defaults.
16691
+ */
16692
+ get: {
16693
+ parameters: {
16694
+ query?: never;
16695
+ header?: never;
16696
+ path?: never;
16697
+ cookie?: never;
16698
+ };
16699
+ requestBody?: never;
16700
+ responses: {
16701
+ /** @description Country profiles */
16702
+ 200: {
16703
+ headers: {
16704
+ [name: string]: unknown;
16705
+ };
16706
+ content: {
16707
+ /**
16708
+ * @example {
16709
+ * "data": [
16710
+ * {
16711
+ * "country": "CL",
16712
+ * "name": "Chile",
16713
+ * "timezone": "America/Santiago",
16714
+ * "currency": "CLP",
16715
+ * "phone_region": "CL",
16716
+ * "dial_code": "56",
16717
+ * "money_locale": "es-CL",
16718
+ * "informal_address": "tu",
16719
+ * "holiday_calendar": "cl-national",
16720
+ * "document_kind": "rut"
16721
+ * },
16722
+ * {
16723
+ * "country": "AR",
16724
+ * "name": "Argentina",
16725
+ * "timezone": "America/Argentina/Buenos_Aires",
16726
+ * "currency": "ARS",
16727
+ * "phone_region": "AR",
16728
+ * "dial_code": "54",
16729
+ * "money_locale": "es-AR",
16730
+ * "informal_address": "vos",
16731
+ * "holiday_calendar": null,
16732
+ * "document_kind": "dni"
16733
+ * }
16734
+ * ]
16735
+ * }
16736
+ */
16737
+ "application/json": {
16738
+ data: {
16739
+ /** @description ISO 3166-1 alpha-2. */
16740
+ country: string;
16741
+ /** @description English country name. */
16742
+ name: string;
16743
+ /** @description Default IANA time zone (the capital’s). */
16744
+ timezone: string;
16745
+ /** @description Default ISO 4217 currency. */
16746
+ currency: string;
16747
+ /** @description Region used to read national phone numbers typed by a person. */
16748
+ phone_region: string;
16749
+ /** @description International calling code, no `+`. */
16750
+ dial_code: string;
16751
+ /** @description BCP-47 locale for money and number formatting. */
16752
+ money_locale: string;
16753
+ /**
16754
+ * @description The informal second person of the country.
16755
+ * @enum {string}
16756
+ */
16757
+ informal_address: "tu" | "vos";
16758
+ /**
16759
+ * @description The national holiday calendar the platform ships, or null.
16760
+ * @enum {string|null}
16761
+ */
16762
+ holiday_calendar: "cl-national" | null;
16763
+ /**
16764
+ * @description The main national identity document.
16765
+ * @enum {string}
16766
+ */
16767
+ document_kind: "rut" | "curp" | "cedula" | "dni" | "ci";
16768
+ }[];
16769
+ };
16770
+ };
16771
+ };
16772
+ /** @description Validation error */
16773
+ 400: {
16774
+ headers: {
16775
+ [name: string]: unknown;
16776
+ };
16777
+ content: {
16778
+ "application/json": components["schemas"]["Error"];
16779
+ };
16780
+ };
16781
+ /** @description Unauthorized */
16782
+ 401: {
16783
+ headers: {
16784
+ [name: string]: unknown;
16785
+ };
16786
+ content: {
16787
+ "application/json": components["schemas"]["Error"];
16788
+ };
16789
+ };
16790
+ /** @description Forbidden */
16791
+ 403: {
16792
+ headers: {
16793
+ [name: string]: unknown;
16794
+ };
16795
+ content: {
16796
+ "application/json": components["schemas"]["Error"];
16797
+ };
16798
+ };
16799
+ /** @description Not found */
16800
+ 404: {
16801
+ headers: {
16802
+ [name: string]: unknown;
16803
+ };
16804
+ content: {
16805
+ "application/json": components["schemas"]["Error"];
16806
+ };
16807
+ };
16808
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
16809
+ 409: {
16810
+ headers: {
16811
+ [name: string]: unknown;
16812
+ };
16813
+ content: {
16814
+ "application/json": components["schemas"]["Error"];
16815
+ };
16816
+ };
16817
+ /** @description Rate limited */
16818
+ 429: {
16819
+ headers: {
16820
+ [name: string]: unknown;
16821
+ };
16822
+ content: {
16823
+ "application/json": components["schemas"]["Error"];
16824
+ };
16825
+ };
16826
+ };
16827
+ };
16828
+ put?: never;
16829
+ post?: never;
16830
+ delete?: never;
16831
+ options?: never;
16832
+ head?: never;
16833
+ patch?: never;
16834
+ trace?: never;
16835
+ };
16681
16836
  "/tenant/modules": {
16682
16837
  parameters: {
16683
16838
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.94.0",
3
+ "version": "17.95.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",