@vitrina/api 14.60.0 → 14.61.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.
Files changed (3) hide show
  1. package/dist/index.d.cts +1528 -212
  2. package/dist/index.d.ts +1528 -212
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -168917,7 +168917,7 @@ interface paths {
168917
168917
  };
168918
168918
  /**
168919
168919
  * List proyectos
168920
- * @description Live proyectos, newest first, every filter ANDed: `comuna` (accent- and case-insensitive), `stage` (etapa), `subsidy` (qualifies for any), `sales_office_location_id`, free text `q`. Each row carries `unit_model_count`. Requires `marketplace:read`. A caller whose role narrows proyectos (`project_visibility` `assigned` = ejecutivo, `sales_office` = jefe de sala) only sees the proyectos it admits; any other answers 404, as if it did not exist. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
168920
+ * @description Live proyectos, newest first, every filter ANDed: `comuna` (accent- and case-insensitive), `stage` (etapa), `subsidy` (qualifies for any), `sales_office_location_id`, free text `q`. Each row carries `unit_model_count` and the stock summary `units_total`, `units_available` and `price_from_uf` (the «desde» in UF) and `member_count` (the team). Requires `marketplace:read`. A caller whose role narrows proyectos (`project_visibility` `assigned` = ejecutivo, `sales_office` = jefe de sala) only sees the proyectos it admits; any other answers 404, as if it did not exist. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
168921
168921
  */
168922
168922
  get: {
168923
168923
  parameters: {
@@ -168972,10 +168972,15 @@ interface paths {
168972
168972
  * "120211111111111111"
168973
168973
  * ],
168974
168974
  * "whatsapp_code": "RK482",
168975
+ * "visor_show_prices": false,
168975
168976
  * "created_by": null,
168976
168977
  * "created_at": "2026-10-20T12:00:00.000Z",
168977
168978
  * "updated_at": "2026-10-20T12:00:00.000Z",
168978
- * "unit_model_count": 1
168979
+ * "unit_model_count": 1,
168980
+ * "units_total": 40,
168981
+ * "units_available": 12,
168982
+ * "price_from_uf": 3250.5,
168983
+ * "member_count": 2
168979
168984
  * }
168980
168985
  * ],
168981
168986
  * "meta": {
@@ -169119,6 +169124,7 @@ interface paths {
169119
169124
  * "120211111111111111"
169120
169125
  * ],
169121
169126
  * "whatsapp_code": "RK482",
169127
+ * "visor_show_prices": false,
169122
169128
  * "created_by": null,
169123
169129
  * "created_at": "2026-10-20T12:00:00.000Z",
169124
169130
  * "updated_at": "2026-10-20T12:00:00.000Z",
@@ -169274,6 +169280,7 @@ interface paths {
169274
169280
  * "120211111111111111"
169275
169281
  * ],
169276
169282
  * "whatsapp_code": "RK482",
169283
+ * "visor_show_prices": false,
169277
169284
  * "created_by": null,
169278
169285
  * "created_at": "2026-10-20T12:00:00.000Z",
169279
169286
  * "updated_at": "2026-10-20T12:00:00.000Z",
@@ -169527,6 +169534,7 @@ interface paths {
169527
169534
  * "120211111111111111"
169528
169535
  * ],
169529
169536
  * "whatsapp_code": "RK482",
169537
+ * "visor_show_prices": false,
169530
169538
  * "created_by": null,
169531
169539
  * "created_at": "2026-10-20T12:00:00.000Z",
169532
169540
  * "updated_at": "2026-10-20T12:00:00.000Z",
@@ -170713,6 +170721,358 @@ interface paths {
170713
170721
  patch?: never;
170714
170722
  trace?: never;
170715
170723
  };
170724
+ "/project-listings": {
170725
+ parameters: {
170726
+ query?: never;
170727
+ header?: never;
170728
+ path?: never;
170729
+ cookie?: never;
170730
+ };
170731
+ /**
170732
+ * List Portal Inmobiliario anuncios and their proyecto
170733
+ * @description Anuncios (portal listings) of the workspace with how many leads arrived on each. `mapped=false` is the queue of anuncios waiting for a proyecto. Requires `marketplace:read`. A question or contact on a Portal Inmobiliario proyecto becomes a lead on the proyecto its anuncio is mapped to (`lead.project_id`), owned by one of its ejecutivos. An anuncio nobody has mapped yet is recorded on its first inquiry and that lead is flagged for mapping (`project_id` null, note on the lead). Only on the Proyectos module; callers whose role narrows proyectos are refused (403).
170734
+ */
170735
+ get: {
170736
+ parameters: {
170737
+ query?: {
170738
+ /** @description `false` = the anuncios still waiting for a proyecto (their leads are flagged for mapping); `true` = the mapped ones. */
170739
+ mapped?: "true" | "false";
170740
+ /** @description Only the anuncios of this proyecto. */
170741
+ project_id?: string;
170742
+ limit?: number;
170743
+ offset?: number | null;
170744
+ };
170745
+ header?: never;
170746
+ path?: never;
170747
+ cookie?: never;
170748
+ };
170749
+ requestBody?: never;
170750
+ responses: {
170751
+ /** @description Anuncios */
170752
+ 200: {
170753
+ headers: {
170754
+ [name: string]: unknown;
170755
+ };
170756
+ content: {
170757
+ /**
170758
+ * @example {
170759
+ * "data": [
170760
+ * {
170761
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
170762
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
170763
+ * "marketplace_account_id": "0199e3a0-0000-7000-8000-000000000601",
170764
+ * "external_id": "MLC1234567890",
170765
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
170766
+ * "title": "Proyecto Parque Central, Ñuñoa",
170767
+ * "permalink": null,
170768
+ * "created_at": "2026-10-20T12:00:00.000Z",
170769
+ * "updated_at": "2026-10-20T12:00:00.000Z",
170770
+ * "lead_count": 4,
170771
+ * "unmapped_lead_count": 0
170772
+ * }
170773
+ * ]
170774
+ * }
170775
+ */
170776
+ "application/json": {
170777
+ data: components["schemas"]["ProjectListingListItem"][];
170778
+ };
170779
+ };
170780
+ };
170781
+ /** @description Validation error */
170782
+ 400: {
170783
+ headers: {
170784
+ [name: string]: unknown;
170785
+ };
170786
+ content: {
170787
+ "application/json": components["schemas"]["Error"];
170788
+ };
170789
+ };
170790
+ /** @description Unauthorized */
170791
+ 401: {
170792
+ headers: {
170793
+ [name: string]: unknown;
170794
+ };
170795
+ content: {
170796
+ "application/json": components["schemas"]["Error"];
170797
+ };
170798
+ };
170799
+ /** @description Forbidden */
170800
+ 403: {
170801
+ headers: {
170802
+ [name: string]: unknown;
170803
+ };
170804
+ content: {
170805
+ "application/json": components["schemas"]["Error"];
170806
+ };
170807
+ };
170808
+ /** @description Not found */
170809
+ 404: {
170810
+ headers: {
170811
+ [name: string]: unknown;
170812
+ };
170813
+ content: {
170814
+ "application/json": components["schemas"]["Error"];
170815
+ };
170816
+ };
170817
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
170818
+ 409: {
170819
+ headers: {
170820
+ [name: string]: unknown;
170821
+ };
170822
+ content: {
170823
+ "application/json": components["schemas"]["Error"];
170824
+ };
170825
+ };
170826
+ /** @description Rate limited */
170827
+ 429: {
170828
+ headers: {
170829
+ [name: string]: unknown;
170830
+ };
170831
+ content: {
170832
+ "application/json": components["schemas"]["Error"];
170833
+ };
170834
+ };
170835
+ };
170836
+ };
170837
+ put?: never;
170838
+ /**
170839
+ * Map a Portal Inmobiliario anuncio to a proyecto
170840
+ * @description Maps the portal's listing id to a proyecto ahead of its first inquiry. Idempotent on the anuncio: posting an already-seen id re-maps it, stamps the proyecto on its waiting leads and routes the unowned ones to the proyecto's ejecutivos. Requires `marketplace:write`. A question or contact on a Portal Inmobiliario proyecto becomes a lead on the proyecto its anuncio is mapped to (`lead.project_id`), owned by one of its ejecutivos. An anuncio nobody has mapped yet is recorded on its first inquiry and that lead is flagged for mapping (`project_id` null, note on the lead). Only on the Proyectos module; callers whose role narrows proyectos are refused (403).
170841
+ */
170842
+ post: {
170843
+ parameters: {
170844
+ query?: never;
170845
+ header?: {
170846
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
170847
+ "Idempotency-Key"?: string;
170848
+ };
170849
+ path?: never;
170850
+ cookie?: never;
170851
+ };
170852
+ requestBody?: {
170853
+ content: {
170854
+ /**
170855
+ * @example {
170856
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
170857
+ * "external_id": "MLC1234567890"
170858
+ * }
170859
+ */
170860
+ "application/json": components["schemas"]["CreateProjectListingBody"];
170861
+ };
170862
+ };
170863
+ responses: {
170864
+ /** @description Mapped */
170865
+ 201: {
170866
+ headers: {
170867
+ [name: string]: unknown;
170868
+ };
170869
+ content: {
170870
+ /**
170871
+ * @example {
170872
+ * "data": {
170873
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
170874
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
170875
+ * "marketplace_account_id": "0199e3a0-0000-7000-8000-000000000601",
170876
+ * "external_id": "MLC1234567890",
170877
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
170878
+ * "title": "Proyecto Parque Central, Ñuñoa",
170879
+ * "permalink": null,
170880
+ * "created_at": "2026-10-20T12:00:00.000Z",
170881
+ * "updated_at": "2026-10-20T12:00:00.000Z",
170882
+ * "leads_mapped": 0
170883
+ * }
170884
+ * }
170885
+ */
170886
+ "application/json": {
170887
+ data: components["schemas"]["MappedProjectListing"];
170888
+ };
170889
+ };
170890
+ };
170891
+ /** @description Validation error */
170892
+ 400: {
170893
+ headers: {
170894
+ [name: string]: unknown;
170895
+ };
170896
+ content: {
170897
+ "application/json": components["schemas"]["Error"];
170898
+ };
170899
+ };
170900
+ /** @description Unauthorized */
170901
+ 401: {
170902
+ headers: {
170903
+ [name: string]: unknown;
170904
+ };
170905
+ content: {
170906
+ "application/json": components["schemas"]["Error"];
170907
+ };
170908
+ };
170909
+ /** @description Forbidden */
170910
+ 403: {
170911
+ headers: {
170912
+ [name: string]: unknown;
170913
+ };
170914
+ content: {
170915
+ "application/json": components["schemas"]["Error"];
170916
+ };
170917
+ };
170918
+ /** @description Not found */
170919
+ 404: {
170920
+ headers: {
170921
+ [name: string]: unknown;
170922
+ };
170923
+ content: {
170924
+ "application/json": components["schemas"]["Error"];
170925
+ };
170926
+ };
170927
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
170928
+ 409: {
170929
+ headers: {
170930
+ [name: string]: unknown;
170931
+ };
170932
+ content: {
170933
+ "application/json": components["schemas"]["Error"];
170934
+ };
170935
+ };
170936
+ /** @description Rate limited */
170937
+ 429: {
170938
+ headers: {
170939
+ [name: string]: unknown;
170940
+ };
170941
+ content: {
170942
+ "application/json": components["schemas"]["Error"];
170943
+ };
170944
+ };
170945
+ };
170946
+ };
170947
+ delete?: never;
170948
+ options?: never;
170949
+ head?: never;
170950
+ patch?: never;
170951
+ trace?: never;
170952
+ };
170953
+ "/project-listings/{id}": {
170954
+ parameters: {
170955
+ query?: never;
170956
+ header?: never;
170957
+ path?: never;
170958
+ cookie?: never;
170959
+ };
170960
+ get?: never;
170961
+ put?: never;
170962
+ post?: never;
170963
+ delete?: never;
170964
+ options?: never;
170965
+ head?: never;
170966
+ /**
170967
+ * Map or unmap a Portal Inmobiliario anuncio
170968
+ * @description Sets the proyecto of an anuncio (`project_id`), or clears it with `null`. Mapping stamps the proyecto on the leads waiting on the anuncio and routes the unowned ones to its ejecutivos; unmapping only affects leads that arrive afterwards. Requires `marketplace:write`. A question or contact on a Portal Inmobiliario proyecto becomes a lead on the proyecto its anuncio is mapped to (`lead.project_id`), owned by one of its ejecutivos. An anuncio nobody has mapped yet is recorded on its first inquiry and that lead is flagged for mapping (`project_id` null, note on the lead). Only on the Proyectos module; callers whose role narrows proyectos are refused (403).
170969
+ */
170970
+ patch: {
170971
+ parameters: {
170972
+ query?: never;
170973
+ header?: never;
170974
+ path: {
170975
+ /** @description The anuncio (portal listing) id. */
170976
+ id: string;
170977
+ };
170978
+ cookie?: never;
170979
+ };
170980
+ requestBody?: {
170981
+ content: {
170982
+ /**
170983
+ * @example {
170984
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101"
170985
+ * }
170986
+ */
170987
+ "application/json": components["schemas"]["UpdateProjectListingBody"];
170988
+ };
170989
+ };
170990
+ responses: {
170991
+ /** @description Updated */
170992
+ 200: {
170993
+ headers: {
170994
+ [name: string]: unknown;
170995
+ };
170996
+ content: {
170997
+ /**
170998
+ * @example {
170999
+ * "data": {
171000
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
171001
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
171002
+ * "marketplace_account_id": "0199e3a0-0000-7000-8000-000000000601",
171003
+ * "external_id": "MLC1234567890",
171004
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
171005
+ * "title": "Proyecto Parque Central, Ñuñoa",
171006
+ * "permalink": null,
171007
+ * "created_at": "2026-10-20T12:00:00.000Z",
171008
+ * "updated_at": "2026-10-20T12:00:00.000Z",
171009
+ * "leads_mapped": 3
171010
+ * }
171011
+ * }
171012
+ */
171013
+ "application/json": {
171014
+ data: components["schemas"]["MappedProjectListing"];
171015
+ };
171016
+ };
171017
+ };
171018
+ /** @description Validation error */
171019
+ 400: {
171020
+ headers: {
171021
+ [name: string]: unknown;
171022
+ };
171023
+ content: {
171024
+ "application/json": components["schemas"]["Error"];
171025
+ };
171026
+ };
171027
+ /** @description Unauthorized */
171028
+ 401: {
171029
+ headers: {
171030
+ [name: string]: unknown;
171031
+ };
171032
+ content: {
171033
+ "application/json": components["schemas"]["Error"];
171034
+ };
171035
+ };
171036
+ /** @description Forbidden */
171037
+ 403: {
171038
+ headers: {
171039
+ [name: string]: unknown;
171040
+ };
171041
+ content: {
171042
+ "application/json": components["schemas"]["Error"];
171043
+ };
171044
+ };
171045
+ /** @description Not found */
171046
+ 404: {
171047
+ headers: {
171048
+ [name: string]: unknown;
171049
+ };
171050
+ content: {
171051
+ "application/json": components["schemas"]["Error"];
171052
+ };
171053
+ };
171054
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
171055
+ 409: {
171056
+ headers: {
171057
+ [name: string]: unknown;
171058
+ };
171059
+ content: {
171060
+ "application/json": components["schemas"]["Error"];
171061
+ };
171062
+ };
171063
+ /** @description Rate limited */
171064
+ 429: {
171065
+ headers: {
171066
+ [name: string]: unknown;
171067
+ };
171068
+ content: {
171069
+ "application/json": components["schemas"]["Error"];
171070
+ };
171071
+ };
171072
+ };
171073
+ };
171074
+ trace?: never;
171075
+ };
170716
171076
  "/units": {
170717
171077
  parameters: {
170718
171078
  query?: never;
@@ -171454,7 +171814,892 @@ interface paths {
171454
171814
  patch?: never;
171455
171815
  trace?: never;
171456
171816
  };
171457
- "/units/{id}": {
171817
+ "/units/{id}": {
171818
+ parameters: {
171819
+ query?: never;
171820
+ header?: never;
171821
+ path?: never;
171822
+ cookie?: never;
171823
+ };
171824
+ /**
171825
+ * One unidad
171826
+ * @description By uuid or display id (`I-42`). Requires `marketplace:read`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171827
+ */
171828
+ get: {
171829
+ parameters: {
171830
+ query?: never;
171831
+ header?: never;
171832
+ path: {
171833
+ /** @description The unidad’s uuid or its display id (`I-12`). */
171834
+ id: string;
171835
+ };
171836
+ cookie?: never;
171837
+ };
171838
+ requestBody?: never;
171839
+ responses: {
171840
+ /** @description Unidad */
171841
+ 200: {
171842
+ headers: {
171843
+ [name: string]: unknown;
171844
+ };
171845
+ content: {
171846
+ /**
171847
+ * @example {
171848
+ * "data": {
171849
+ * "id": "0199e3a0-0000-7000-8000-000000000401",
171850
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
171851
+ * "display_id": "I-42",
171852
+ * "title": "Departamento 1203 · Parque Los Aromos",
171853
+ * "description": null,
171854
+ * "operation": "venta",
171855
+ * "property_type": "departamento",
171856
+ * "kind": "departamento",
171857
+ * "status": "disponible",
171858
+ * "region": "Metropolitana",
171859
+ * "comuna": "La Florida",
171860
+ * "sector": null,
171861
+ * "address": null,
171862
+ * "sale_price_amount": 3250.5,
171863
+ * "sale_price_currency": "UF",
171864
+ * "rent_price_amount": null,
171865
+ * "rent_price_currency": null,
171866
+ * "common_expenses_clp": null,
171867
+ * "property_tax_clp": null,
171868
+ * "bedrooms": 3,
171869
+ * "bathrooms": 2,
171870
+ * "usable_area_m2": 72.5,
171871
+ * "terrace_area_m2": 6,
171872
+ * "total_area_m2": 78.5,
171873
+ * "parking_spaces": null,
171874
+ * "storage_units": null,
171875
+ * "orientation": "nororiente",
171876
+ * "floor": 12,
171877
+ * "year_built": null,
171878
+ * "furnished": null,
171879
+ * "pets_allowed": null,
171880
+ * "photos": [],
171881
+ * "broker_user_id": null,
171882
+ * "owner_name": null,
171883
+ * "owner_phone": null,
171884
+ * "owner_email": null,
171885
+ * "source": "import",
171886
+ * "external_ref": null,
171887
+ * "protected_fields": [],
171888
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
171889
+ * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
171890
+ * "unit_number": "1203",
171891
+ * "hold_expires_at": null,
171892
+ * "created_by": null,
171893
+ * "created_at": "2026-10-20T12:00:00.000Z",
171894
+ * "updated_at": "2026-10-20T12:00:00.000Z",
171895
+ * "sale_price": {
171896
+ * "amount": 3250.5,
171897
+ * "currency": "UF",
171898
+ * "amount_clp": 128500000,
171899
+ * "amount_uf": 3250.5
171900
+ * },
171901
+ * "rent_price": null,
171902
+ * "project": {
171903
+ * "id": "0199e3a0-0000-7000-8000-000000000101",
171904
+ * "name": "Parque Los Aromos"
171905
+ * },
171906
+ * "unit_model": {
171907
+ * "id": "0199e3a0-0000-7000-8000-000000000201",
171908
+ * "name": "3D2B 78 m²"
171909
+ * }
171910
+ * }
171911
+ * }
171912
+ */
171913
+ "application/json": {
171914
+ data: components["schemas"]["Unit"];
171915
+ };
171916
+ };
171917
+ };
171918
+ /** @description Validation error */
171919
+ 400: {
171920
+ headers: {
171921
+ [name: string]: unknown;
171922
+ };
171923
+ content: {
171924
+ "application/json": components["schemas"]["Error"];
171925
+ };
171926
+ };
171927
+ /** @description Unauthorized */
171928
+ 401: {
171929
+ headers: {
171930
+ [name: string]: unknown;
171931
+ };
171932
+ content: {
171933
+ "application/json": components["schemas"]["Error"];
171934
+ };
171935
+ };
171936
+ /** @description Forbidden */
171937
+ 403: {
171938
+ headers: {
171939
+ [name: string]: unknown;
171940
+ };
171941
+ content: {
171942
+ "application/json": components["schemas"]["Error"];
171943
+ };
171944
+ };
171945
+ /** @description Not found */
171946
+ 404: {
171947
+ headers: {
171948
+ [name: string]: unknown;
171949
+ };
171950
+ content: {
171951
+ "application/json": components["schemas"]["Error"];
171952
+ };
171953
+ };
171954
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
171955
+ 409: {
171956
+ headers: {
171957
+ [name: string]: unknown;
171958
+ };
171959
+ content: {
171960
+ "application/json": components["schemas"]["Error"];
171961
+ };
171962
+ };
171963
+ /** @description Rate limited */
171964
+ 429: {
171965
+ headers: {
171966
+ [name: string]: unknown;
171967
+ };
171968
+ content: {
171969
+ "application/json": components["schemas"]["Error"];
171970
+ };
171971
+ };
171972
+ };
171973
+ };
171974
+ put?: never;
171975
+ post?: never;
171976
+ /**
171977
+ * Remove a unidad
171978
+ * @description Takes it out of the stock. A unidad a negocio holds (bloqueada, reservada, promesada, vendida) cannot be removed (409 `unit_held_by_negocio`). Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171979
+ */
171980
+ delete: {
171981
+ parameters: {
171982
+ query?: never;
171983
+ header?: never;
171984
+ path: {
171985
+ /** @description The unidad’s uuid or its display id (`I-12`). */
171986
+ id: string;
171987
+ };
171988
+ cookie?: never;
171989
+ };
171990
+ requestBody?: never;
171991
+ responses: {
171992
+ /** @description Removed */
171993
+ 200: {
171994
+ headers: {
171995
+ [name: string]: unknown;
171996
+ };
171997
+ content: {
171998
+ /**
171999
+ * @example {
172000
+ * "data": {
172001
+ * "id": "0199e3a0-0000-7000-8000-000000000401",
172002
+ * "display_id": "I-42",
172003
+ * "unit_number": "1203",
172004
+ * "deleted": true
172005
+ * }
172006
+ * }
172007
+ */
172008
+ "application/json": {
172009
+ data: {
172010
+ /** Format: uuid */
172011
+ id: string;
172012
+ display_id: string;
172013
+ unit_number: string;
172014
+ /** @enum {boolean} */
172015
+ deleted: true;
172016
+ };
172017
+ };
172018
+ };
172019
+ };
172020
+ /** @description Validation error */
172021
+ 400: {
172022
+ headers: {
172023
+ [name: string]: unknown;
172024
+ };
172025
+ content: {
172026
+ "application/json": components["schemas"]["Error"];
172027
+ };
172028
+ };
172029
+ /** @description Unauthorized */
172030
+ 401: {
172031
+ headers: {
172032
+ [name: string]: unknown;
172033
+ };
172034
+ content: {
172035
+ "application/json": components["schemas"]["Error"];
172036
+ };
172037
+ };
172038
+ /** @description Forbidden */
172039
+ 403: {
172040
+ headers: {
172041
+ [name: string]: unknown;
172042
+ };
172043
+ content: {
172044
+ "application/json": components["schemas"]["Error"];
172045
+ };
172046
+ };
172047
+ /** @description Not found */
172048
+ 404: {
172049
+ headers: {
172050
+ [name: string]: unknown;
172051
+ };
172052
+ content: {
172053
+ "application/json": components["schemas"]["Error"];
172054
+ };
172055
+ };
172056
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
172057
+ 409: {
172058
+ headers: {
172059
+ [name: string]: unknown;
172060
+ };
172061
+ content: {
172062
+ "application/json": components["schemas"]["Error"];
172063
+ };
172064
+ };
172065
+ /** @description Rate limited */
172066
+ 429: {
172067
+ headers: {
172068
+ [name: string]: unknown;
172069
+ };
172070
+ content: {
172071
+ "application/json": components["schemas"]["Error"];
172072
+ };
172073
+ };
172074
+ };
172075
+ };
172076
+ options?: never;
172077
+ head?: never;
172078
+ /**
172079
+ * Edit a unidad
172080
+ * @description Partial update; `null` clears a field. The proyecto is fixed. A field edited by hand on an imported unidad is protected from the next import (release it with `POST /units/{id}/release-fields`). A unidad’s status is its negocio’s: by hand it can only be paused and put back (disponible ⇄ pausada), and no import ever writes it. A status change while a negocio holds the unidad is a 409 `unit_status_owned_by_negocio`. Once the proyecto has a published lista de precios (`/price-lists`), its unidades’ prices change only by publishing a new version: a price here answers 409 `unit_price_owned_by_price_list`. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172081
+ */
172082
+ patch: {
172083
+ parameters: {
172084
+ query?: never;
172085
+ header?: never;
172086
+ path: {
172087
+ /** @description The unidad’s uuid or its display id (`I-12`). */
172088
+ id: string;
172089
+ };
172090
+ cookie?: never;
172091
+ };
172092
+ requestBody?: {
172093
+ content: {
172094
+ /**
172095
+ * @example {
172096
+ * "status": "pausada"
172097
+ * }
172098
+ */
172099
+ "application/json": components["schemas"]["UpdateUnitBody"];
172100
+ };
172101
+ };
172102
+ responses: {
172103
+ /** @description Updated */
172104
+ 200: {
172105
+ headers: {
172106
+ [name: string]: unknown;
172107
+ };
172108
+ content: {
172109
+ /**
172110
+ * @example {
172111
+ * "data": {
172112
+ * "id": "0199e3a0-0000-7000-8000-000000000401",
172113
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
172114
+ * "display_id": "I-42",
172115
+ * "title": "Departamento 1203 · Parque Los Aromos",
172116
+ * "description": null,
172117
+ * "operation": "venta",
172118
+ * "property_type": "departamento",
172119
+ * "kind": "departamento",
172120
+ * "status": "disponible",
172121
+ * "region": "Metropolitana",
172122
+ * "comuna": "La Florida",
172123
+ * "sector": null,
172124
+ * "address": null,
172125
+ * "sale_price_amount": 3250.5,
172126
+ * "sale_price_currency": "UF",
172127
+ * "rent_price_amount": null,
172128
+ * "rent_price_currency": null,
172129
+ * "common_expenses_clp": null,
172130
+ * "property_tax_clp": null,
172131
+ * "bedrooms": 3,
172132
+ * "bathrooms": 2,
172133
+ * "usable_area_m2": 72.5,
172134
+ * "terrace_area_m2": 6,
172135
+ * "total_area_m2": 78.5,
172136
+ * "parking_spaces": null,
172137
+ * "storage_units": null,
172138
+ * "orientation": "nororiente",
172139
+ * "floor": 12,
172140
+ * "year_built": null,
172141
+ * "furnished": null,
172142
+ * "pets_allowed": null,
172143
+ * "photos": [],
172144
+ * "broker_user_id": null,
172145
+ * "owner_name": null,
172146
+ * "owner_phone": null,
172147
+ * "owner_email": null,
172148
+ * "source": "import",
172149
+ * "external_ref": null,
172150
+ * "protected_fields": [],
172151
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
172152
+ * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
172153
+ * "unit_number": "1203",
172154
+ * "hold_expires_at": null,
172155
+ * "created_by": null,
172156
+ * "created_at": "2026-10-20T12:00:00.000Z",
172157
+ * "updated_at": "2026-10-20T12:00:00.000Z",
172158
+ * "sale_price": {
172159
+ * "amount": 3250.5,
172160
+ * "currency": "UF",
172161
+ * "amount_clp": 128500000,
172162
+ * "amount_uf": 3250.5
172163
+ * },
172164
+ * "rent_price": null,
172165
+ * "project": {
172166
+ * "id": "0199e3a0-0000-7000-8000-000000000101",
172167
+ * "name": "Parque Los Aromos"
172168
+ * },
172169
+ * "unit_model": {
172170
+ * "id": "0199e3a0-0000-7000-8000-000000000201",
172171
+ * "name": "3D2B 78 m²"
172172
+ * }
172173
+ * }
172174
+ * }
172175
+ */
172176
+ "application/json": {
172177
+ data: components["schemas"]["Unit"];
172178
+ };
172179
+ };
172180
+ };
172181
+ /** @description Validation error */
172182
+ 400: {
172183
+ headers: {
172184
+ [name: string]: unknown;
172185
+ };
172186
+ content: {
172187
+ "application/json": components["schemas"]["Error"];
172188
+ };
172189
+ };
172190
+ /** @description Unauthorized */
172191
+ 401: {
172192
+ headers: {
172193
+ [name: string]: unknown;
172194
+ };
172195
+ content: {
172196
+ "application/json": components["schemas"]["Error"];
172197
+ };
172198
+ };
172199
+ /** @description Forbidden */
172200
+ 403: {
172201
+ headers: {
172202
+ [name: string]: unknown;
172203
+ };
172204
+ content: {
172205
+ "application/json": components["schemas"]["Error"];
172206
+ };
172207
+ };
172208
+ /** @description Not found */
172209
+ 404: {
172210
+ headers: {
172211
+ [name: string]: unknown;
172212
+ };
172213
+ content: {
172214
+ "application/json": components["schemas"]["Error"];
172215
+ };
172216
+ };
172217
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
172218
+ 409: {
172219
+ headers: {
172220
+ [name: string]: unknown;
172221
+ };
172222
+ content: {
172223
+ "application/json": components["schemas"]["Error"];
172224
+ };
172225
+ };
172226
+ /** @description Rate limited */
172227
+ 429: {
172228
+ headers: {
172229
+ [name: string]: unknown;
172230
+ };
172231
+ content: {
172232
+ "application/json": components["schemas"]["Error"];
172233
+ };
172234
+ };
172235
+ };
172236
+ };
172237
+ trace?: never;
172238
+ };
172239
+ "/units/{id}/release-fields": {
172240
+ parameters: {
172241
+ query?: never;
172242
+ header?: never;
172243
+ path?: never;
172244
+ cookie?: never;
172245
+ };
172246
+ get?: never;
172247
+ put?: never;
172248
+ /**
172249
+ * Let a unidad’s protected fields follow the import again
172250
+ * @description Removes fields from `protected_fields`, so the next import may overwrite them. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172251
+ */
172252
+ post: {
172253
+ parameters: {
172254
+ query?: never;
172255
+ header?: {
172256
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
172257
+ "Idempotency-Key"?: string;
172258
+ };
172259
+ path: {
172260
+ /** @description The unidad’s uuid or its display id (`I-12`). */
172261
+ id: string;
172262
+ };
172263
+ cookie?: never;
172264
+ };
172265
+ requestBody?: {
172266
+ content: {
172267
+ /**
172268
+ * @example {
172269
+ * "fields": [
172270
+ * "sale_price_amount"
172271
+ * ]
172272
+ * }
172273
+ */
172274
+ "application/json": {
172275
+ /** @description Protected fields to hand back to the stock import, so the next import may overwrite them again. */
172276
+ fields: string[];
172277
+ };
172278
+ };
172279
+ };
172280
+ responses: {
172281
+ /** @description Released */
172282
+ 200: {
172283
+ headers: {
172284
+ [name: string]: unknown;
172285
+ };
172286
+ content: {
172287
+ /**
172288
+ * @example {
172289
+ * "data": {
172290
+ * "id": "0199e3a0-0000-7000-8000-000000000401",
172291
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
172292
+ * "display_id": "I-42",
172293
+ * "title": "Departamento 1203 · Parque Los Aromos",
172294
+ * "description": null,
172295
+ * "operation": "venta",
172296
+ * "property_type": "departamento",
172297
+ * "kind": "departamento",
172298
+ * "status": "disponible",
172299
+ * "region": "Metropolitana",
172300
+ * "comuna": "La Florida",
172301
+ * "sector": null,
172302
+ * "address": null,
172303
+ * "sale_price_amount": 3250.5,
172304
+ * "sale_price_currency": "UF",
172305
+ * "rent_price_amount": null,
172306
+ * "rent_price_currency": null,
172307
+ * "common_expenses_clp": null,
172308
+ * "property_tax_clp": null,
172309
+ * "bedrooms": 3,
172310
+ * "bathrooms": 2,
172311
+ * "usable_area_m2": 72.5,
172312
+ * "terrace_area_m2": 6,
172313
+ * "total_area_m2": 78.5,
172314
+ * "parking_spaces": null,
172315
+ * "storage_units": null,
172316
+ * "orientation": "nororiente",
172317
+ * "floor": 12,
172318
+ * "year_built": null,
172319
+ * "furnished": null,
172320
+ * "pets_allowed": null,
172321
+ * "photos": [],
172322
+ * "broker_user_id": null,
172323
+ * "owner_name": null,
172324
+ * "owner_phone": null,
172325
+ * "owner_email": null,
172326
+ * "source": "import",
172327
+ * "external_ref": null,
172328
+ * "protected_fields": [],
172329
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
172330
+ * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
172331
+ * "unit_number": "1203",
172332
+ * "hold_expires_at": null,
172333
+ * "created_by": null,
172334
+ * "created_at": "2026-10-20T12:00:00.000Z",
172335
+ * "updated_at": "2026-10-20T12:00:00.000Z",
172336
+ * "sale_price": {
172337
+ * "amount": 3250.5,
172338
+ * "currency": "UF",
172339
+ * "amount_clp": 128500000,
172340
+ * "amount_uf": 3250.5
172341
+ * },
172342
+ * "rent_price": null,
172343
+ * "project": {
172344
+ * "id": "0199e3a0-0000-7000-8000-000000000101",
172345
+ * "name": "Parque Los Aromos"
172346
+ * },
172347
+ * "unit_model": {
172348
+ * "id": "0199e3a0-0000-7000-8000-000000000201",
172349
+ * "name": "3D2B 78 m²"
172350
+ * }
172351
+ * }
172352
+ * }
172353
+ */
172354
+ "application/json": {
172355
+ data: components["schemas"]["Unit"];
172356
+ };
172357
+ };
172358
+ };
172359
+ /** @description Validation error */
172360
+ 400: {
172361
+ headers: {
172362
+ [name: string]: unknown;
172363
+ };
172364
+ content: {
172365
+ "application/json": components["schemas"]["Error"];
172366
+ };
172367
+ };
172368
+ /** @description Unauthorized */
172369
+ 401: {
172370
+ headers: {
172371
+ [name: string]: unknown;
172372
+ };
172373
+ content: {
172374
+ "application/json": components["schemas"]["Error"];
172375
+ };
172376
+ };
172377
+ /** @description Forbidden */
172378
+ 403: {
172379
+ headers: {
172380
+ [name: string]: unknown;
172381
+ };
172382
+ content: {
172383
+ "application/json": components["schemas"]["Error"];
172384
+ };
172385
+ };
172386
+ /** @description Not found */
172387
+ 404: {
172388
+ headers: {
172389
+ [name: string]: unknown;
172390
+ };
172391
+ content: {
172392
+ "application/json": components["schemas"]["Error"];
172393
+ };
172394
+ };
172395
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
172396
+ 409: {
172397
+ headers: {
172398
+ [name: string]: unknown;
172399
+ };
172400
+ content: {
172401
+ "application/json": components["schemas"]["Error"];
172402
+ };
172403
+ };
172404
+ /** @description Rate limited */
172405
+ 429: {
172406
+ headers: {
172407
+ [name: string]: unknown;
172408
+ };
172409
+ content: {
172410
+ "application/json": components["schemas"]["Error"];
172411
+ };
172412
+ };
172413
+ };
172414
+ };
172415
+ delete?: never;
172416
+ options?: never;
172417
+ head?: never;
172418
+ patch?: never;
172419
+ trace?: never;
172420
+ };
172421
+ "/projects/{id}/floor-plans": {
172422
+ parameters: {
172423
+ query?: never;
172424
+ header?: never;
172425
+ path?: never;
172426
+ cookie?: never;
172427
+ };
172428
+ /**
172429
+ * List a proyecto’s floor plans
172430
+ * @description The proyecto’s plans in display order (`sort_order`, then floor, then name), each with the unidades placed on it as polygons normalised to the image. The plans feed the embeddable floor-plan visor, which colours each placed unidad by its live status on the inmobiliaria’s own site; whether it shows prices is the proyecto’s `visor_show_prices`. Requires `marketplace:read`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172431
+ */
172432
+ get: {
172433
+ parameters: {
172434
+ query?: never;
172435
+ header?: never;
172436
+ path: {
172437
+ /** @description The proyecto id. */
172438
+ id: string;
172439
+ };
172440
+ cookie?: never;
172441
+ };
172442
+ requestBody?: never;
172443
+ responses: {
172444
+ /** @description Floor plans */
172445
+ 200: {
172446
+ headers: {
172447
+ [name: string]: unknown;
172448
+ };
172449
+ content: {
172450
+ /**
172451
+ * @example {
172452
+ * "data": [
172453
+ * {
172454
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
172455
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
172456
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
172457
+ * "name": "Piso 12",
172458
+ * "floor": 12,
172459
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
172460
+ * "image_width": 1600,
172461
+ * "image_height": 1000,
172462
+ * "sort_order": 12,
172463
+ * "created_by": null,
172464
+ * "created_at": "2026-10-20T12:00:00.000Z",
172465
+ * "updated_at": "2026-10-20T12:00:00.000Z",
172466
+ * "units": [
172467
+ * {
172468
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
172469
+ * "shape": [
172470
+ * [
172471
+ * 0.1,
172472
+ * 0.2
172473
+ * ],
172474
+ * [
172475
+ * 0.3,
172476
+ * 0.2
172477
+ * ],
172478
+ * [
172479
+ * 0.3,
172480
+ * 0.45
172481
+ * ],
172482
+ * [
172483
+ * 0.1,
172484
+ * 0.45
172485
+ * ]
172486
+ * ]
172487
+ * }
172488
+ * ]
172489
+ * }
172490
+ * ]
172491
+ * }
172492
+ */
172493
+ "application/json": {
172494
+ data: components["schemas"]["FloorPlan"][];
172495
+ };
172496
+ };
172497
+ };
172498
+ /** @description Validation error */
172499
+ 400: {
172500
+ headers: {
172501
+ [name: string]: unknown;
172502
+ };
172503
+ content: {
172504
+ "application/json": components["schemas"]["Error"];
172505
+ };
172506
+ };
172507
+ /** @description Unauthorized */
172508
+ 401: {
172509
+ headers: {
172510
+ [name: string]: unknown;
172511
+ };
172512
+ content: {
172513
+ "application/json": components["schemas"]["Error"];
172514
+ };
172515
+ };
172516
+ /** @description Forbidden */
172517
+ 403: {
172518
+ headers: {
172519
+ [name: string]: unknown;
172520
+ };
172521
+ content: {
172522
+ "application/json": components["schemas"]["Error"];
172523
+ };
172524
+ };
172525
+ /** @description Not found */
172526
+ 404: {
172527
+ headers: {
172528
+ [name: string]: unknown;
172529
+ };
172530
+ content: {
172531
+ "application/json": components["schemas"]["Error"];
172532
+ };
172533
+ };
172534
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
172535
+ 409: {
172536
+ headers: {
172537
+ [name: string]: unknown;
172538
+ };
172539
+ content: {
172540
+ "application/json": components["schemas"]["Error"];
172541
+ };
172542
+ };
172543
+ /** @description Rate limited */
172544
+ 429: {
172545
+ headers: {
172546
+ [name: string]: unknown;
172547
+ };
172548
+ content: {
172549
+ "application/json": components["schemas"]["Error"];
172550
+ };
172551
+ };
172552
+ };
172553
+ };
172554
+ put?: never;
172555
+ /**
172556
+ * Add a floor plan to a proyecto
172557
+ * @description A plan image (a floor, a planta tipo, a site plan of casas). Upload the image with `POST /tenant/media` first and send its `url`; send its pixel size too so the visor reserves the aspect ratio. The name is unique inside the proyecto (409 otherwise). Place unidades with `PUT /floor-plans/{id}/units`. The plans feed the embeddable floor-plan visor, which colours each placed unidad by its live status on the inmobiliaria’s own site; whether it shows prices is the proyecto’s `visor_show_prices`. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172558
+ */
172559
+ post: {
172560
+ parameters: {
172561
+ query?: never;
172562
+ header?: {
172563
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
172564
+ "Idempotency-Key"?: string;
172565
+ };
172566
+ path: {
172567
+ /** @description The proyecto id. */
172568
+ id: string;
172569
+ };
172570
+ cookie?: never;
172571
+ };
172572
+ requestBody?: {
172573
+ content: {
172574
+ /**
172575
+ * @example {
172576
+ * "name": "Piso 12",
172577
+ * "floor": 12,
172578
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
172579
+ * "image_width": 1600,
172580
+ * "image_height": 1000,
172581
+ * "sort_order": 12
172582
+ * }
172583
+ */
172584
+ "application/json": components["schemas"]["CreateFloorPlanBody"];
172585
+ };
172586
+ };
172587
+ responses: {
172588
+ /** @description The plan, with no unidades yet */
172589
+ 201: {
172590
+ headers: {
172591
+ [name: string]: unknown;
172592
+ };
172593
+ content: {
172594
+ /**
172595
+ * @example {
172596
+ * "data": {
172597
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
172598
+ * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
172599
+ * "project_id": "0199e3a0-0000-7000-8000-000000000101",
172600
+ * "name": "Piso 12",
172601
+ * "floor": 12,
172602
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
172603
+ * "image_width": 1600,
172604
+ * "image_height": 1000,
172605
+ * "sort_order": 12,
172606
+ * "created_by": null,
172607
+ * "created_at": "2026-10-20T12:00:00.000Z",
172608
+ * "updated_at": "2026-10-20T12:00:00.000Z",
172609
+ * "units": [
172610
+ * {
172611
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
172612
+ * "shape": [
172613
+ * [
172614
+ * 0.1,
172615
+ * 0.2
172616
+ * ],
172617
+ * [
172618
+ * 0.3,
172619
+ * 0.2
172620
+ * ],
172621
+ * [
172622
+ * 0.3,
172623
+ * 0.45
172624
+ * ],
172625
+ * [
172626
+ * 0.1,
172627
+ * 0.45
172628
+ * ]
172629
+ * ]
172630
+ * }
172631
+ * ]
172632
+ * }
172633
+ * }
172634
+ */
172635
+ "application/json": {
172636
+ data: components["schemas"]["FloorPlan"];
172637
+ };
172638
+ };
172639
+ };
172640
+ /** @description Validation error */
172641
+ 400: {
172642
+ headers: {
172643
+ [name: string]: unknown;
172644
+ };
172645
+ content: {
172646
+ "application/json": components["schemas"]["Error"];
172647
+ };
172648
+ };
172649
+ /** @description Unauthorized */
172650
+ 401: {
172651
+ headers: {
172652
+ [name: string]: unknown;
172653
+ };
172654
+ content: {
172655
+ "application/json": components["schemas"]["Error"];
172656
+ };
172657
+ };
172658
+ /** @description Forbidden */
172659
+ 403: {
172660
+ headers: {
172661
+ [name: string]: unknown;
172662
+ };
172663
+ content: {
172664
+ "application/json": components["schemas"]["Error"];
172665
+ };
172666
+ };
172667
+ /** @description Not found */
172668
+ 404: {
172669
+ headers: {
172670
+ [name: string]: unknown;
172671
+ };
172672
+ content: {
172673
+ "application/json": components["schemas"]["Error"];
172674
+ };
172675
+ };
172676
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
172677
+ 409: {
172678
+ headers: {
172679
+ [name: string]: unknown;
172680
+ };
172681
+ content: {
172682
+ "application/json": components["schemas"]["Error"];
172683
+ };
172684
+ };
172685
+ /** @description Rate limited */
172686
+ 429: {
172687
+ headers: {
172688
+ [name: string]: unknown;
172689
+ };
172690
+ content: {
172691
+ "application/json": components["schemas"]["Error"];
172692
+ };
172693
+ };
172694
+ };
172695
+ };
172696
+ delete?: never;
172697
+ options?: never;
172698
+ head?: never;
172699
+ patch?: never;
172700
+ trace?: never;
172701
+ };
172702
+ "/floor-plans/{id}": {
171458
172703
  parameters: {
171459
172704
  query?: never;
171460
172705
  header?: never;
@@ -171462,22 +172707,22 @@ interface paths {
171462
172707
  cookie?: never;
171463
172708
  };
171464
172709
  /**
171465
- * One unidad
171466
- * @description By uuid or display id (`I-42`). Requires `marketplace:read`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172710
+ * Get a floor plan
172711
+ * @description One plan with the live unidades placed on it. Requires `marketplace:read`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171467
172712
  */
171468
172713
  get: {
171469
172714
  parameters: {
171470
172715
  query?: never;
171471
172716
  header?: never;
171472
172717
  path: {
171473
- /** @description The unidad’s uuid or its display id (`I-12`). */
172718
+ /** @description The plan id. */
171474
172719
  id: string;
171475
172720
  };
171476
172721
  cookie?: never;
171477
172722
  };
171478
172723
  requestBody?: never;
171479
172724
  responses: {
171480
- /** @description Unidad */
172725
+ /** @description The plan */
171481
172726
  200: {
171482
172727
  headers: {
171483
172728
  [name: string]: unknown;
@@ -171486,72 +172731,46 @@ interface paths {
171486
172731
  /**
171487
172732
  * @example {
171488
172733
  * "data": {
171489
- * "id": "0199e3a0-0000-7000-8000-000000000401",
172734
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
171490
172735
  * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
171491
- * "display_id": "I-42",
171492
- * "title": "Departamento 1203 · Parque Los Aromos",
171493
- * "description": null,
171494
- * "operation": "venta",
171495
- * "property_type": "departamento",
171496
- * "kind": "departamento",
171497
- * "status": "disponible",
171498
- * "region": "Metropolitana",
171499
- * "comuna": "La Florida",
171500
- * "sector": null,
171501
- * "address": null,
171502
- * "sale_price_amount": 3250.5,
171503
- * "sale_price_currency": "UF",
171504
- * "rent_price_amount": null,
171505
- * "rent_price_currency": null,
171506
- * "common_expenses_clp": null,
171507
- * "property_tax_clp": null,
171508
- * "bedrooms": 3,
171509
- * "bathrooms": 2,
171510
- * "usable_area_m2": 72.5,
171511
- * "terrace_area_m2": 6,
171512
- * "total_area_m2": 78.5,
171513
- * "parking_spaces": null,
171514
- * "storage_units": null,
171515
- * "orientation": "nororiente",
171516
- * "floor": 12,
171517
- * "year_built": null,
171518
- * "furnished": null,
171519
- * "pets_allowed": null,
171520
- * "photos": [],
171521
- * "broker_user_id": null,
171522
- * "owner_name": null,
171523
- * "owner_phone": null,
171524
- * "owner_email": null,
171525
- * "source": "import",
171526
- * "external_ref": null,
171527
- * "protected_fields": [],
171528
172736
  * "project_id": "0199e3a0-0000-7000-8000-000000000101",
171529
- * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
171530
- * "unit_number": "1203",
171531
- * "hold_expires_at": null,
172737
+ * "name": "Piso 12",
172738
+ * "floor": 12,
172739
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
172740
+ * "image_width": 1600,
172741
+ * "image_height": 1000,
172742
+ * "sort_order": 12,
171532
172743
  * "created_by": null,
171533
172744
  * "created_at": "2026-10-20T12:00:00.000Z",
171534
172745
  * "updated_at": "2026-10-20T12:00:00.000Z",
171535
- * "sale_price": {
171536
- * "amount": 3250.5,
171537
- * "currency": "UF",
171538
- * "amount_clp": 128500000,
171539
- * "amount_uf": 3250.5
171540
- * },
171541
- * "rent_price": null,
171542
- * "project": {
171543
- * "id": "0199e3a0-0000-7000-8000-000000000101",
171544
- * "name": "Parque Los Aromos"
171545
- * },
171546
- * "unit_model": {
171547
- * "id": "0199e3a0-0000-7000-8000-000000000201",
171548
- * "name": "3D2B 78 m²"
171549
- * }
172746
+ * "units": [
172747
+ * {
172748
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
172749
+ * "shape": [
172750
+ * [
172751
+ * 0.1,
172752
+ * 0.2
172753
+ * ],
172754
+ * [
172755
+ * 0.3,
172756
+ * 0.2
172757
+ * ],
172758
+ * [
172759
+ * 0.3,
172760
+ * 0.45
172761
+ * ],
172762
+ * [
172763
+ * 0.1,
172764
+ * 0.45
172765
+ * ]
172766
+ * ]
172767
+ * }
172768
+ * ]
171550
172769
  * }
171551
172770
  * }
171552
172771
  */
171553
172772
  "application/json": {
171554
- data: components["schemas"]["Unit"];
172773
+ data: components["schemas"]["FloorPlan"];
171555
172774
  };
171556
172775
  };
171557
172776
  };
@@ -171614,15 +172833,15 @@ interface paths {
171614
172833
  put?: never;
171615
172834
  post?: never;
171616
172835
  /**
171617
- * Remove a unidad
171618
- * @description Takes it out of the stock. A unidad a negocio holds (bloqueada, reservada, promesada, vendida) cannot be removed (409 `unit_held_by_negocio`). Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172836
+ * Remove a floor plan
172837
+ * @description Removes the plan and its placements. The unidades themselves are untouched. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171619
172838
  */
171620
172839
  delete: {
171621
172840
  parameters: {
171622
172841
  query?: never;
171623
172842
  header?: never;
171624
172843
  path: {
171625
- /** @description The unidad’s uuid or its display id (`I-12`). */
172844
+ /** @description The plan id. */
171626
172845
  id: string;
171627
172846
  };
171628
172847
  cookie?: never;
@@ -171638,21 +172857,15 @@ interface paths {
171638
172857
  /**
171639
172858
  * @example {
171640
172859
  * "data": {
171641
- * "id": "0199e3a0-0000-7000-8000-000000000401",
171642
- * "display_id": "I-42",
171643
- * "unit_number": "1203",
172860
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
171644
172861
  * "deleted": true
171645
172862
  * }
171646
172863
  * }
171647
172864
  */
171648
172865
  "application/json": {
171649
172866
  data: {
171650
- /** Format: uuid */
171651
172867
  id: string;
171652
- display_id: string;
171653
- unit_number: string;
171654
- /** @enum {boolean} */
171655
- deleted: true;
172868
+ deleted: boolean;
171656
172869
  };
171657
172870
  };
171658
172871
  };
@@ -171716,15 +172929,15 @@ interface paths {
171716
172929
  options?: never;
171717
172930
  head?: never;
171718
172931
  /**
171719
- * Edit a unidad
171720
- * @description Partial update; `null` clears a field. The proyecto is fixed. A field edited by hand on an imported unidad is protected from the next import (release it with `POST /units/{id}/release-fields`). A unidad’s status is its negocio’s: by hand it can only be paused and put back (disponible ⇄ pausada), and no import ever writes it. A status change while a negocio holds the unidad is a 409 `unit_status_owned_by_negocio`. Once the proyecto has a published lista de precios (`/price-lists`), its unidades’ prices change only by publishing a new version: a price here answers 409 `unit_price_owned_by_price_list`. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
172932
+ * Edit a floor plan
172933
+ * @description Rename it, change its floor, order or image. Changing the image keeps the placements: their coordinates are fractions of the image, so a re-export of the same plan at another size still fits. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171721
172934
  */
171722
172935
  patch: {
171723
172936
  parameters: {
171724
172937
  query?: never;
171725
172938
  header?: never;
171726
172939
  path: {
171727
- /** @description The unidad’s uuid or its display id (`I-12`). */
172940
+ /** @description The plan id. */
171728
172941
  id: string;
171729
172942
  };
171730
172943
  cookie?: never;
@@ -171733,14 +172946,14 @@ interface paths {
171733
172946
  content: {
171734
172947
  /**
171735
172948
  * @example {
171736
- * "status": "pausada"
172949
+ * "name": "Piso 12 (torre A)"
171737
172950
  * }
171738
172951
  */
171739
- "application/json": components["schemas"]["UpdateUnitBody"];
172952
+ "application/json": components["schemas"]["UpdateFloorPlanBody"];
171740
172953
  };
171741
172954
  };
171742
172955
  responses: {
171743
- /** @description Updated */
172956
+ /** @description The plan, edited */
171744
172957
  200: {
171745
172958
  headers: {
171746
172959
  [name: string]: unknown;
@@ -171749,72 +172962,46 @@ interface paths {
171749
172962
  /**
171750
172963
  * @example {
171751
172964
  * "data": {
171752
- * "id": "0199e3a0-0000-7000-8000-000000000401",
172965
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
171753
172966
  * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
171754
- * "display_id": "I-42",
171755
- * "title": "Departamento 1203 · Parque Los Aromos",
171756
- * "description": null,
171757
- * "operation": "venta",
171758
- * "property_type": "departamento",
171759
- * "kind": "departamento",
171760
- * "status": "disponible",
171761
- * "region": "Metropolitana",
171762
- * "comuna": "La Florida",
171763
- * "sector": null,
171764
- * "address": null,
171765
- * "sale_price_amount": 3250.5,
171766
- * "sale_price_currency": "UF",
171767
- * "rent_price_amount": null,
171768
- * "rent_price_currency": null,
171769
- * "common_expenses_clp": null,
171770
- * "property_tax_clp": null,
171771
- * "bedrooms": 3,
171772
- * "bathrooms": 2,
171773
- * "usable_area_m2": 72.5,
171774
- * "terrace_area_m2": 6,
171775
- * "total_area_m2": 78.5,
171776
- * "parking_spaces": null,
171777
- * "storage_units": null,
171778
- * "orientation": "nororiente",
171779
- * "floor": 12,
171780
- * "year_built": null,
171781
- * "furnished": null,
171782
- * "pets_allowed": null,
171783
- * "photos": [],
171784
- * "broker_user_id": null,
171785
- * "owner_name": null,
171786
- * "owner_phone": null,
171787
- * "owner_email": null,
171788
- * "source": "import",
171789
- * "external_ref": null,
171790
- * "protected_fields": [],
171791
172967
  * "project_id": "0199e3a0-0000-7000-8000-000000000101",
171792
- * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
171793
- * "unit_number": "1203",
171794
- * "hold_expires_at": null,
172968
+ * "name": "Piso 12",
172969
+ * "floor": 12,
172970
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
172971
+ * "image_width": 1600,
172972
+ * "image_height": 1000,
172973
+ * "sort_order": 12,
171795
172974
  * "created_by": null,
171796
172975
  * "created_at": "2026-10-20T12:00:00.000Z",
171797
172976
  * "updated_at": "2026-10-20T12:00:00.000Z",
171798
- * "sale_price": {
171799
- * "amount": 3250.5,
171800
- * "currency": "UF",
171801
- * "amount_clp": 128500000,
171802
- * "amount_uf": 3250.5
171803
- * },
171804
- * "rent_price": null,
171805
- * "project": {
171806
- * "id": "0199e3a0-0000-7000-8000-000000000101",
171807
- * "name": "Parque Los Aromos"
171808
- * },
171809
- * "unit_model": {
171810
- * "id": "0199e3a0-0000-7000-8000-000000000201",
171811
- * "name": "3D2B 78 m²"
171812
- * }
172977
+ * "units": [
172978
+ * {
172979
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
172980
+ * "shape": [
172981
+ * [
172982
+ * 0.1,
172983
+ * 0.2
172984
+ * ],
172985
+ * [
172986
+ * 0.3,
172987
+ * 0.2
172988
+ * ],
172989
+ * [
172990
+ * 0.3,
172991
+ * 0.45
172992
+ * ],
172993
+ * [
172994
+ * 0.1,
172995
+ * 0.45
172996
+ * ]
172997
+ * ]
172998
+ * }
172999
+ * ]
171813
173000
  * }
171814
173001
  * }
171815
173002
  */
171816
173003
  "application/json": {
171817
- data: components["schemas"]["Unit"];
173004
+ data: components["schemas"]["FloorPlan"];
171818
173005
  };
171819
173006
  };
171820
173007
  };
@@ -171876,7 +173063,7 @@ interface paths {
171876
173063
  };
171877
173064
  trace?: never;
171878
173065
  };
171879
- "/units/{id}/release-fields": {
173066
+ "/floor-plans/{id}/units": {
171880
173067
  parameters: {
171881
173068
  query?: never;
171882
173069
  header?: never;
@@ -171884,20 +173071,16 @@ interface paths {
171884
173071
  cookie?: never;
171885
173072
  };
171886
173073
  get?: never;
171887
- put?: never;
171888
173074
  /**
171889
- * Let a unidad’s protected fields follow the import again
171890
- * @description Removes fields from `protected_fields`, so the next import may overwrite them. Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
173075
+ * Place unidades on a floor plan
173076
+ * @description Replaces every placement of the plan with `units`: each a unidad of the plan’s own proyecto, once, with a polygon of 3 to 64 `[x, y]` points as fractions (0..1) of the image, origin top-left. A unidad of another proyecto, a removed one or a repeated one is a 400 naming the ids, and nothing is written. An empty list clears the plan. A unidad may sit on several plans (a dúplex). Requires `marketplace:write`. Only on a workspace that runs the Proyectos module (real-estate vertical, inmobiliaria); any other answers 403 `MODULE_NOT_ENABLED`.
171891
173077
  */
171892
- post: {
173078
+ put: {
171893
173079
  parameters: {
171894
173080
  query?: never;
171895
- header?: {
171896
- /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
171897
- "Idempotency-Key"?: string;
171898
- };
173081
+ header?: never;
171899
173082
  path: {
171900
- /** @description The unidad’s uuid or its display id (`I-12`). */
173083
+ /** @description The plan id. */
171901
173084
  id: string;
171902
173085
  };
171903
173086
  cookie?: never;
@@ -171906,19 +173089,36 @@ interface paths {
171906
173089
  content: {
171907
173090
  /**
171908
173091
  * @example {
171909
- * "fields": [
171910
- * "sale_price_amount"
173092
+ * "units": [
173093
+ * {
173094
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
173095
+ * "shape": [
173096
+ * [
173097
+ * 0.1,
173098
+ * 0.2
173099
+ * ],
173100
+ * [
173101
+ * 0.3,
173102
+ * 0.2
173103
+ * ],
173104
+ * [
173105
+ * 0.3,
173106
+ * 0.45
173107
+ * ],
173108
+ * [
173109
+ * 0.1,
173110
+ * 0.45
173111
+ * ]
173112
+ * ]
173113
+ * }
171911
173114
  * ]
171912
173115
  * }
171913
173116
  */
171914
- "application/json": {
171915
- /** @description Protected fields to hand back to the stock import, so the next import may overwrite them again. */
171916
- fields: string[];
171917
- };
173117
+ "application/json": components["schemas"]["SetFloorPlanUnitsBody"];
171918
173118
  };
171919
173119
  };
171920
173120
  responses: {
171921
- /** @description Released */
173121
+ /** @description The plan with its unidades */
171922
173122
  200: {
171923
173123
  headers: {
171924
173124
  [name: string]: unknown;
@@ -171927,72 +173127,46 @@ interface paths {
171927
173127
  /**
171928
173128
  * @example {
171929
173129
  * "data": {
171930
- * "id": "0199e3a0-0000-7000-8000-000000000401",
173130
+ * "id": "0199e3a0-0000-7000-8000-000000000501",
171931
173131
  * "tenant_id": "0199e3a0-0000-7000-8000-0000000000aa",
171932
- * "display_id": "I-42",
171933
- * "title": "Departamento 1203 · Parque Los Aromos",
171934
- * "description": null,
171935
- * "operation": "venta",
171936
- * "property_type": "departamento",
171937
- * "kind": "departamento",
171938
- * "status": "disponible",
171939
- * "region": "Metropolitana",
171940
- * "comuna": "La Florida",
171941
- * "sector": null,
171942
- * "address": null,
171943
- * "sale_price_amount": 3250.5,
171944
- * "sale_price_currency": "UF",
171945
- * "rent_price_amount": null,
171946
- * "rent_price_currency": null,
171947
- * "common_expenses_clp": null,
171948
- * "property_tax_clp": null,
171949
- * "bedrooms": 3,
171950
- * "bathrooms": 2,
171951
- * "usable_area_m2": 72.5,
171952
- * "terrace_area_m2": 6,
171953
- * "total_area_m2": 78.5,
171954
- * "parking_spaces": null,
171955
- * "storage_units": null,
171956
- * "orientation": "nororiente",
171957
- * "floor": 12,
171958
- * "year_built": null,
171959
- * "furnished": null,
171960
- * "pets_allowed": null,
171961
- * "photos": [],
171962
- * "broker_user_id": null,
171963
- * "owner_name": null,
171964
- * "owner_phone": null,
171965
- * "owner_email": null,
171966
- * "source": "import",
171967
- * "external_ref": null,
171968
- * "protected_fields": [],
171969
173132
  * "project_id": "0199e3a0-0000-7000-8000-000000000101",
171970
- * "unit_model_id": "0199e3a0-0000-7000-8000-000000000201",
171971
- * "unit_number": "1203",
171972
- * "hold_expires_at": null,
173133
+ * "name": "Piso 12",
173134
+ * "floor": 12,
173135
+ * "image_url": "https://media.example.com/t/other/aromos-piso-12.png",
173136
+ * "image_width": 1600,
173137
+ * "image_height": 1000,
173138
+ * "sort_order": 12,
171973
173139
  * "created_by": null,
171974
173140
  * "created_at": "2026-10-20T12:00:00.000Z",
171975
173141
  * "updated_at": "2026-10-20T12:00:00.000Z",
171976
- * "sale_price": {
171977
- * "amount": 3250.5,
171978
- * "currency": "UF",
171979
- * "amount_clp": 128500000,
171980
- * "amount_uf": 3250.5
171981
- * },
171982
- * "rent_price": null,
171983
- * "project": {
171984
- * "id": "0199e3a0-0000-7000-8000-000000000101",
171985
- * "name": "Parque Los Aromos"
171986
- * },
171987
- * "unit_model": {
171988
- * "id": "0199e3a0-0000-7000-8000-000000000201",
171989
- * "name": "3D2B 78 m²"
171990
- * }
173142
+ * "units": [
173143
+ * {
173144
+ * "unit_id": "0199e3a0-0000-7000-8000-000000000401",
173145
+ * "shape": [
173146
+ * [
173147
+ * 0.1,
173148
+ * 0.2
173149
+ * ],
173150
+ * [
173151
+ * 0.3,
173152
+ * 0.2
173153
+ * ],
173154
+ * [
173155
+ * 0.3,
173156
+ * 0.45
173157
+ * ],
173158
+ * [
173159
+ * 0.1,
173160
+ * 0.45
173161
+ * ]
173162
+ * ]
173163
+ * }
173164
+ * ]
171991
173165
  * }
171992
173166
  * }
171993
173167
  */
171994
173168
  "application/json": {
171995
- data: components["schemas"]["Unit"];
173169
+ data: components["schemas"]["FloorPlan"];
171996
173170
  };
171997
173171
  };
171998
173172
  };
@@ -172052,6 +173226,7 @@ interface paths {
172052
173226
  };
172053
173227
  };
172054
173228
  };
173229
+ post?: never;
172055
173230
  delete?: never;
172056
173231
  options?: never;
172057
173232
  head?: never;
@@ -202722,6 +203897,7 @@ interface components {
202722
203897
  photos: string[];
202723
203898
  brochure_url: string | null;
202724
203899
  meta_ad_ids: string[];
203900
+ visor_show_prices: boolean;
202725
203901
  /** @description The proyecto’s code in its tracked WhatsApp link (two letters + three digits, generated, never edited). A first message that carries it ties the conversation and its lead to this proyecto before the agent replies. `GET /projects/{id}/whatsapp-links` builds the links. */
202726
203902
  whatsapp_code: string;
202727
203903
  created_by: string | null;
@@ -202729,6 +203905,14 @@ interface components {
202729
203905
  updated_at: string;
202730
203906
  /** @description Live tipologías of the proyecto. */
202731
203907
  unit_model_count: number;
203908
+ /** @description Live unidades of the proyecto, in any status. */
203909
+ units_total: number;
203910
+ /** @description Unidades of the proyecto still `disponible`. */
203911
+ units_available: number;
203912
+ /** @description The «desde» price: the lowest UF sale price among the `disponible` unidades (set by the published lista de precios). Null while none is priced in UF. */
203913
+ price_from_uf: number | null;
203914
+ /** @description Ejecutivos on the proyecto’s team. */
203915
+ member_count: number;
202732
203916
  };
202733
203917
  UnitModel: {
202734
203918
  /** Format: uuid */
@@ -202779,6 +203963,7 @@ interface components {
202779
203963
  photos: string[];
202780
203964
  brochure_url: string | null;
202781
203965
  meta_ad_ids: string[];
203966
+ visor_show_prices: boolean;
202782
203967
  /** @description The proyecto’s code in its tracked WhatsApp link (two letters + three digits, generated, never edited). A first message that carries it ties the conversation and its lead to this proyecto before the agent replies. `GET /projects/{id}/whatsapp-links` builds the links. */
202783
203968
  whatsapp_code: string;
202784
203969
  created_by: string | null;
@@ -202824,6 +204009,8 @@ interface components {
202824
204009
  brochure_url?: string | null;
202825
204010
  /** @description The Meta ads (Click-to-WhatsApp, or Instagram / Messenger «Enviar mensaje» ads) that sell this proyecto: a conversation one of them opens is tied to the proyecto before the agent replies, and its lead is about it. One ad sells at most one live proyecto (409 `meta_ad_already_mapped`). Optional: an unmapped ad is still recognised by the proyecto’s name in its campaign, ad set or ad names or in its copy. */
202826
204011
  meta_ad_ids?: string[];
204012
+ /** @description Whether the public floor-plan visor shows the list price of the available unidades. Off by default. */
204013
+ visor_show_prices?: boolean;
202827
204014
  };
202828
204015
  UpdateProjectBody: {
202829
204016
  name?: string;
@@ -202855,6 +204042,8 @@ interface components {
202855
204042
  brochure_url?: string | null;
202856
204043
  /** @description The Meta ads (Click-to-WhatsApp, or Instagram / Messenger «Enviar mensaje» ads) that sell this proyecto: a conversation one of them opens is tied to the proyecto before the agent replies, and its lead is about it. One ad sells at most one live proyecto (409 `meta_ad_already_mapped`). Optional: an unmapped ad is still recognised by the proyecto’s name in its campaign, ad set or ad names or in its copy. */
202857
204044
  meta_ad_ids?: string[];
204045
+ /** @description Whether the public floor-plan visor shows the list price of the available unidades. Off by default. */
204046
+ visor_show_prices?: boolean;
202858
204047
  };
202859
204048
  UnitModelListItem: components["schemas"]["UnitModel"] & {
202860
204049
  /** @description The proyecto it belongs to. */
@@ -202940,6 +204129,57 @@ interface components {
202940
204129
  url: string;
202941
204130
  }[];
202942
204131
  };
204132
+ /** @description A Portal Inmobiliario proyecto listing (anuncio) and the proyecto it maps to. `project_id` null = not mapped yet. */
204133
+ ProjectListing: {
204134
+ /** Format: uuid */
204135
+ id: string;
204136
+ /** Format: uuid */
204137
+ tenant_id: string;
204138
+ /** Format: uuid */
204139
+ marketplace_account_id: string;
204140
+ external_id: string;
204141
+ /** Format: uuid */
204142
+ project_id: string | null;
204143
+ title: string | null;
204144
+ permalink: string | null;
204145
+ created_at: string;
204146
+ updated_at: string;
204147
+ };
204148
+ /** @description A Portal Inmobiliario proyecto listing (anuncio) and the proyecto it maps to. `project_id` null = not mapped yet. */
204149
+ ProjectListingListItem: components["schemas"]["ProjectListing"] & {
204150
+ /** @description Leads that arrived on the anuncio. */
204151
+ lead_count: number;
204152
+ /** @description Of those, the ones still without a proyecto. */
204153
+ unmapped_lead_count: number;
204154
+ };
204155
+ /** @description A Portal Inmobiliario proyecto listing (anuncio) and the proyecto it maps to. `project_id` null = not mapped yet. */
204156
+ MappedProjectListing: components["schemas"]["ProjectListing"] & {
204157
+ /** @description Leads that received the proyecto through this mapping. */
204158
+ leads_mapped: number;
204159
+ };
204160
+ CreateProjectListingBody: {
204161
+ /**
204162
+ * Format: uuid
204163
+ * @description The proyecto the anuncio belongs to.
204164
+ */
204165
+ project_id: string;
204166
+ /** @description The portal’s listing id (the Mercado Libre item id, e.g. `MLC1234567890`). */
204167
+ external_id: string;
204168
+ /**
204169
+ * Format: uuid
204170
+ * @description The Mercado Libre connection. Optional when the workspace has exactly one.
204171
+ */
204172
+ marketplace_account_id?: string;
204173
+ /** @description The anuncio’s title, for display. */
204174
+ title?: string;
204175
+ };
204176
+ UpdateProjectListingBody: {
204177
+ /**
204178
+ * Format: uuid
204179
+ * @description The proyecto to map the anuncio to, or `null` to unmap it. Mapping stamps the proyecto on the leads already waiting on the anuncio and routes the unowned ones to its ejecutivos.
204180
+ */
204181
+ project_id: string | null;
204182
+ };
202943
204183
  Unit: components["schemas"]["Property"] & {
202944
204184
  /**
202945
204185
  * @description Estado: disponible | bloqueada | reservada | promesada | vendida | pausada (arrendada never occurs on a unidad).
@@ -203144,6 +204384,82 @@ interface components {
203144
204384
  */
203145
204385
  status?: "disponible" | "pausada";
203146
204386
  };
204387
+ FloorPlan: {
204388
+ /** Format: uuid */
204389
+ id: string;
204390
+ /** Format: uuid */
204391
+ tenant_id: string;
204392
+ /** Format: uuid */
204393
+ project_id: string;
204394
+ name: string;
204395
+ floor: number | null;
204396
+ image_url: string;
204397
+ image_width: number | null;
204398
+ image_height: number | null;
204399
+ sort_order: number;
204400
+ created_by: string | null;
204401
+ created_at: string;
204402
+ updated_at: string;
204403
+ /** @description The unidades placed on the plan (live ones only). */
204404
+ units: {
204405
+ /** Format: uuid */
204406
+ unit_id: string;
204407
+ /** @description Polygon of 3 to 64 `[x, y]` points, each coordinate a fraction (0..1) of the image width / height, origin top-left. */
204408
+ shape: [
204409
+ number,
204410
+ number
204411
+ ][];
204412
+ }[];
204413
+ };
204414
+ CreateFloorPlanBody: {
204415
+ /** @description «Piso 3», «Planta tipo». */
204416
+ name: string;
204417
+ /** @description The floor this plan shows, when it shows one (negative = subterráneo). */
204418
+ floor?: number | null;
204419
+ /**
204420
+ * Format: uri
204421
+ * @description Public URL of the plan image: upload it with `POST /tenant/media` first and send its `url`.
204422
+ */
204423
+ image_url: string;
204424
+ /** @description Intrinsic width in pixels (with image_height), optional. */
204425
+ image_width?: number | null;
204426
+ /** @description Intrinsic height in pixels (with image_width), optional. */
204427
+ image_height?: number | null;
204428
+ /** @description Display order; lower first. */
204429
+ sort_order?: number;
204430
+ };
204431
+ UpdateFloorPlanBody: {
204432
+ /** @description «Piso 3», «Planta tipo». */
204433
+ name?: string;
204434
+ /** @description The floor this plan shows, when it shows one (negative = subterráneo). */
204435
+ floor?: number | null;
204436
+ /**
204437
+ * Format: uri
204438
+ * @description Public URL of the plan image: upload it with `POST /tenant/media` first and send its `url`.
204439
+ */
204440
+ image_url?: string;
204441
+ /** @description Intrinsic width in pixels (with image_height), optional. */
204442
+ image_width?: number | null;
204443
+ /** @description Intrinsic height in pixels (with image_width), optional. */
204444
+ image_height?: number | null;
204445
+ /** @description Display order; lower first. */
204446
+ sort_order?: number;
204447
+ };
204448
+ SetFloorPlanUnitsBody: {
204449
+ /** @description Every unidad on this plan, each once. Replaces what the plan had; an empty list clears it. */
204450
+ units: {
204451
+ /**
204452
+ * Format: uuid
204453
+ * @description A unidad of the plan’s proyecto.
204454
+ */
204455
+ unit_id: string;
204456
+ /** @description Polygon of 3 to 64 `[x, y]` points, each coordinate a fraction (0..1) of the image width / height, origin top-left. */
204457
+ shape: [
204458
+ number,
204459
+ number
204460
+ ][];
204461
+ }[];
204462
+ };
203147
204463
  PriceList: {
203148
204464
  /**
203149
204465
  * Format: uuid