@pimia/sdk 0.19.0 → 0.20.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/api.d.ts CHANGED
@@ -5083,7 +5083,7 @@ export interface paths {
5083
5083
  put?: never;
5084
5084
  /**
5085
5085
  * POST tasks/{task}/delegate — delega esta tarea CRM a su agente Pim
5086
- * @description **Reservada al panel de Pimia.** Exige `crm:write`, `delegation:write`, que el Authorization Server emite SOLO al client de primera parte: un client de integrador no puede pedir esos scopes —se le rechazan en el registro y no se le anuncian— y con cualquier otro token la llamada recibe `403`. Está en el contrato porque es el panel web de Pimia quien la consume, y sus tipos salen de aquí.
5086
+ * @description **Reservada al panel de Pimia.** Exige `work:write`, `delegation:write`, que el Authorization Server emite SOLO al client de primera parte: un client de integrador no puede pedir esos scopes —se le rechazan en el registro y no se le anuncian— y con cualquier otro token la llamada recibe `403`. Está en el contrato porque es el panel web de Pimia quien la consume, y sus tipos salen de aquí.
5087
5087
  *
5088
5088
  * Reusa el plano async `delegated_tasks` (el mismo que ya cierra el round-trip
5089
5089
  * delegar→agente→callback→sello): compone un context rico desde la tarea (título,
@@ -5512,6 +5512,14 @@ export interface paths {
5512
5512
  * ejecución: sin él, `meta`, `depends_on`, `dependents` e `installed_slugs`
5513
5513
  * se publicaban sin tipar. Es PHPDoc normal, no una dependencia del
5514
5514
  * generador.
5515
+ *
5516
+ * `listed` dice si el módulo se OFRECE en el escaparate. Los de
5517
+ * cumplimiento fiscal salen con `false`: su presencia la decide el país del
5518
+ * emisor y no es mercancía —«no se ofrece desactivar una obligación
5519
+ * legal»—. La tienda del núcleo ya lo respetaba; el contrato no lo
5520
+ * publicaba, así que el panel web enseñaba un botón de «Desactivar» sobre
5521
+ * `compliance-es` y otro de «Instalar» sobre `compliance-fr` en una empresa
5522
+ * española (épica #677).
5515
5523
  */
5516
5524
  get: operations["tenantModules.index"];
5517
5525
  put?: never;
@@ -9528,7 +9536,7 @@ export interface components {
9528
9536
  * ningún permiso es una operación legítima, y `required` la
9529
9537
  * prohibiría (un array vacío no pasa `required`).
9530
9538
  */
9531
- abilities: ("dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count")[];
9539
+ abilities: ("dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-supplier" | "create-supplier" | "edit-supplier" | "delete-supplier" | "view-received-invoice" | "create-received-invoice" | "edit-received-invoice" | "delete-received-invoice" | "view-bank-account" | "create-bank-account" | "edit-bank-account" | "delete-bank-account" | "view-bank-transaction" | "import-bank-transaction" | "reconcile-bank-transaction" | "view-sepa-remittance" | "create-sepa-remittance" | "delete-sepa-remittance" | "view-investment-asset" | "create-investment-asset" | "edit-investment-asset" | "delete-investment-asset" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count")[];
9532
9540
  };
9533
9541
  /**
9534
9542
  * RoleRequest
@@ -9553,7 +9561,7 @@ export interface components {
9553
9561
  name: string;
9554
9562
  abilities?: {
9555
9563
  /** @enum {string} */
9556
- ability: "dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count";
9564
+ ability: "dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-supplier" | "create-supplier" | "edit-supplier" | "delete-supplier" | "view-received-invoice" | "create-received-invoice" | "edit-received-invoice" | "delete-received-invoice" | "view-bank-account" | "create-bank-account" | "edit-bank-account" | "delete-bank-account" | "view-bank-transaction" | "import-bank-transaction" | "reconcile-bank-transaction" | "view-sepa-remittance" | "create-sepa-remittance" | "delete-sepa-remittance" | "view-investment-asset" | "create-investment-asset" | "edit-investment-asset" | "delete-investment-asset" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count";
9557
9565
  }[] | null;
9558
9566
  };
9559
9567
  /** RoleResource */
@@ -11227,6 +11235,7 @@ export interface operations {
11227
11235
  };
11228
11236
  };
11229
11237
  };
11238
+ 403: components["responses"]["AuthorizationException"];
11230
11239
  };
11231
11240
  };
11232
11241
  "bank-accounts.store": {
@@ -11260,6 +11269,7 @@ export interface operations {
11260
11269
  };
11261
11270
  };
11262
11271
  };
11272
+ 403: components["responses"]["AuthorizationException"];
11263
11273
  422: components["responses"]["ValidationException"];
11264
11274
  };
11265
11275
  };
@@ -11284,6 +11294,7 @@ export interface operations {
11284
11294
  };
11285
11295
  };
11286
11296
  };
11297
+ 403: components["responses"]["AuthorizationException"];
11287
11298
  };
11288
11299
  };
11289
11300
  "bank-accounts.update": {
@@ -11319,6 +11330,7 @@ export interface operations {
11319
11330
  };
11320
11331
  };
11321
11332
  };
11333
+ 403: components["responses"]["AuthorizationException"];
11322
11334
  422: components["responses"]["ValidationException"];
11323
11335
  };
11324
11336
  };
@@ -11344,6 +11356,7 @@ export interface operations {
11344
11356
  };
11345
11357
  };
11346
11358
  };
11359
+ 403: components["responses"]["AuthorizationException"];
11347
11360
  };
11348
11361
  };
11349
11362
  "bankImport.import": {
@@ -11387,6 +11400,7 @@ export interface operations {
11387
11400
  };
11388
11401
  };
11389
11402
  };
11403
+ 403: components["responses"]["AuthorizationException"];
11390
11404
  422: components["responses"]["ValidationException"];
11391
11405
  };
11392
11406
  };
@@ -11409,6 +11423,7 @@ export interface operations {
11409
11423
  };
11410
11424
  };
11411
11425
  };
11426
+ 403: components["responses"]["AuthorizationException"];
11412
11427
  };
11413
11428
  };
11414
11429
  "bankImport.presets": {
@@ -11430,6 +11445,7 @@ export interface operations {
11430
11445
  };
11431
11446
  };
11432
11447
  };
11448
+ 403: components["responses"]["AuthorizationException"];
11433
11449
  };
11434
11450
  };
11435
11451
  "general.bootstrap": {
@@ -15705,6 +15721,7 @@ export interface operations {
15705
15721
  };
15706
15722
  };
15707
15723
  };
15724
+ 403: components["responses"]["AuthorizationException"];
15708
15725
  422: components["responses"]["ValidationException"];
15709
15726
  };
15710
15727
  };
@@ -15756,6 +15773,7 @@ export interface operations {
15756
15773
  };
15757
15774
  };
15758
15775
  };
15776
+ 403: components["responses"]["AuthorizationException"];
15759
15777
  };
15760
15778
  };
15761
15779
  "investment-assets.store": {
@@ -15791,6 +15809,7 @@ export interface operations {
15791
15809
  };
15792
15810
  };
15793
15811
  };
15812
+ 403: components["responses"]["AuthorizationException"];
15794
15813
  422: components["responses"]["ValidationException"];
15795
15814
  };
15796
15815
  };
@@ -15817,6 +15836,7 @@ export interface operations {
15817
15836
  };
15818
15837
  };
15819
15838
  };
15839
+ 403: components["responses"]["AuthorizationException"];
15820
15840
  404: components["responses"]["ModelNotFoundException"];
15821
15841
  };
15822
15842
  };
@@ -15856,6 +15876,7 @@ export interface operations {
15856
15876
  };
15857
15877
  };
15858
15878
  };
15879
+ 403: components["responses"]["AuthorizationException"];
15859
15880
  404: components["responses"]["ModelNotFoundException"];
15860
15881
  422: components["responses"]["ValidationException"];
15861
15882
  };
@@ -15882,6 +15903,7 @@ export interface operations {
15882
15903
  };
15883
15904
  };
15884
15905
  };
15906
+ 403: components["responses"]["AuthorizationException"];
15885
15907
  404: components["responses"]["ModelNotFoundException"];
15886
15908
  };
15887
15909
  };
@@ -18891,6 +18913,7 @@ export interface operations {
18891
18913
  };
18892
18914
  };
18893
18915
  };
18916
+ 403: components["responses"]["AuthorizationException"];
18894
18917
  422: components["responses"]["ValidationException"];
18895
18918
  };
18896
18919
  };
@@ -18914,6 +18937,7 @@ export interface operations {
18914
18937
  "application/octet-stream": Blob;
18915
18938
  };
18916
18939
  };
18940
+ 403: components["responses"]["AuthorizationException"];
18917
18941
  404: components["responses"]["ModelNotFoundException"];
18918
18942
  };
18919
18943
  };
@@ -18950,6 +18974,7 @@ export interface operations {
18950
18974
  };
18951
18975
  };
18952
18976
  };
18977
+ 403: components["responses"]["AuthorizationException"];
18953
18978
  404: components["responses"]["ModelNotFoundException"];
18954
18979
  422: components["responses"]["ValidationException"];
18955
18980
  };
@@ -18977,6 +19002,7 @@ export interface operations {
18977
19002
  };
18978
19003
  };
18979
19004
  };
19005
+ 403: components["responses"]["AuthorizationException"];
18980
19006
  404: components["responses"]["ModelNotFoundException"];
18981
19007
  };
18982
19008
  };
@@ -19005,6 +19031,7 @@ export interface operations {
19005
19031
  };
19006
19032
  };
19007
19033
  };
19034
+ 403: components["responses"]["AuthorizationException"];
19008
19035
  };
19009
19036
  };
19010
19037
  "received-invoices.store": {
@@ -19031,6 +19058,7 @@ export interface operations {
19031
19058
  };
19032
19059
  };
19033
19060
  };
19061
+ 403: components["responses"]["AuthorizationException"];
19034
19062
  422: components["responses"]["ValidationException"];
19035
19063
  };
19036
19064
  };
@@ -19057,6 +19085,7 @@ export interface operations {
19057
19085
  };
19058
19086
  };
19059
19087
  };
19088
+ 403: components["responses"]["AuthorizationException"];
19060
19089
  404: components["responses"]["ModelNotFoundException"];
19061
19090
  };
19062
19091
  };
@@ -19087,6 +19116,7 @@ export interface operations {
19087
19116
  };
19088
19117
  };
19089
19118
  };
19119
+ 403: components["responses"]["AuthorizationException"];
19090
19120
  404: components["responses"]["ModelNotFoundException"];
19091
19121
  422: components["responses"]["ValidationException"];
19092
19122
  };
@@ -19118,6 +19148,7 @@ export interface operations {
19118
19148
  };
19119
19149
  };
19120
19150
  };
19151
+ 403: components["responses"]["AuthorizationException"];
19121
19152
  };
19122
19153
  };
19123
19154
  "receivedInvoices.markGoodsReceived": {
@@ -19148,6 +19179,7 @@ export interface operations {
19148
19179
  };
19149
19180
  };
19150
19181
  };
19182
+ 403: components["responses"]["AuthorizationException"];
19151
19183
  422: components["responses"]["ValidationException"];
19152
19184
  };
19153
19185
  };
@@ -19198,6 +19230,7 @@ export interface operations {
19198
19230
  };
19199
19231
  };
19200
19232
  };
19233
+ 403: components["responses"]["AuthorizationException"];
19201
19234
  422: components["responses"]["ValidationException"];
19202
19235
  };
19203
19236
  };
@@ -19230,6 +19263,7 @@ export interface operations {
19230
19263
  };
19231
19264
  };
19232
19265
  };
19266
+ 403: components["responses"]["AuthorizationException"];
19233
19267
  422: components["responses"]["ValidationException"];
19234
19268
  };
19235
19269
  };
@@ -19275,6 +19309,7 @@ export interface operations {
19275
19309
  };
19276
19310
  };
19277
19311
  };
19312
+ 403: components["responses"]["AuthorizationException"];
19278
19313
  422: components["responses"]["ValidationException"];
19279
19314
  };
19280
19315
  };
@@ -19309,6 +19344,7 @@ export interface operations {
19309
19344
  };
19310
19345
  };
19311
19346
  };
19347
+ 403: components["responses"]["AuthorizationException"];
19312
19348
  };
19313
19349
  };
19314
19350
  "reconciliation.match": {
@@ -19341,6 +19377,7 @@ export interface operations {
19341
19377
  };
19342
19378
  };
19343
19379
  };
19380
+ 403: components["responses"]["AuthorizationException"];
19344
19381
  422: components["responses"]["ValidationException"];
19345
19382
  };
19346
19383
  };
@@ -19366,6 +19403,7 @@ export interface operations {
19366
19403
  };
19367
19404
  };
19368
19405
  };
19406
+ 403: components["responses"]["AuthorizationException"];
19369
19407
  };
19370
19408
  };
19371
19409
  "reconciliation.ignore": {
@@ -19390,6 +19428,7 @@ export interface operations {
19390
19428
  };
19391
19429
  };
19392
19430
  };
19431
+ 403: components["responses"]["AuthorizationException"];
19393
19432
  };
19394
19433
  };
19395
19434
  "reconciliation.reconcile": {
@@ -19414,6 +19453,7 @@ export interface operations {
19414
19453
  };
19415
19454
  };
19416
19455
  };
19456
+ 403: components["responses"]["AuthorizationException"];
19417
19457
  };
19418
19458
  };
19419
19459
  "recurringInvoice.delete": {
@@ -20175,6 +20215,7 @@ export interface operations {
20175
20215
  "application/xml": Blob;
20176
20216
  };
20177
20217
  };
20218
+ 403: components["responses"]["AuthorizationException"];
20178
20219
  404: {
20179
20220
  headers: {
20180
20221
  [name: string]: unknown;
@@ -20207,6 +20248,7 @@ export interface operations {
20207
20248
  };
20208
20249
  };
20209
20250
  };
20251
+ 403: components["responses"]["AuthorizationException"];
20210
20252
  };
20211
20253
  };
20212
20254
  "sepa-remittances.index": {
@@ -20228,6 +20270,7 @@ export interface operations {
20228
20270
  };
20229
20271
  };
20230
20272
  };
20273
+ 403: components["responses"]["AuthorizationException"];
20231
20274
  };
20232
20275
  };
20233
20276
  "sepa-remittances.store": {
@@ -20261,6 +20304,7 @@ export interface operations {
20261
20304
  };
20262
20305
  };
20263
20306
  };
20307
+ 403: components["responses"]["AuthorizationException"];
20264
20308
  422: components["responses"]["ValidationException"];
20265
20309
  500: {
20266
20310
  headers: {
@@ -20297,6 +20341,7 @@ export interface operations {
20297
20341
  };
20298
20342
  };
20299
20343
  };
20344
+ 403: components["responses"]["AuthorizationException"];
20300
20345
  };
20301
20346
  };
20302
20347
  "sepa-remittances.destroy": {
@@ -20320,6 +20365,7 @@ export interface operations {
20320
20365
  };
20321
20366
  };
20322
20367
  };
20368
+ 403: components["responses"]["AuthorizationException"];
20323
20369
  };
20324
20370
  };
20325
20371
  "invoice.sharedLink": {
@@ -21182,6 +21228,7 @@ export interface operations {
21182
21228
  };
21183
21229
  };
21184
21230
  };
21231
+ 403: components["responses"]["AuthorizationException"];
21185
21232
  404: components["responses"]["ModelNotFoundException"];
21186
21233
  };
21187
21234
  };
@@ -21208,6 +21255,7 @@ export interface operations {
21208
21255
  };
21209
21256
  };
21210
21257
  };
21258
+ 403: components["responses"]["AuthorizationException"];
21211
21259
  422: components["responses"]["ValidationException"];
21212
21260
  };
21213
21261
  };
@@ -21234,6 +21282,7 @@ export interface operations {
21234
21282
  };
21235
21283
  };
21236
21284
  };
21285
+ 403: components["responses"]["AuthorizationException"];
21237
21286
  };
21238
21287
  };
21239
21288
  "suppliers.store": {
@@ -21260,6 +21309,7 @@ export interface operations {
21260
21309
  };
21261
21310
  };
21262
21311
  };
21312
+ 403: components["responses"]["AuthorizationException"];
21263
21313
  422: components["responses"]["ValidationException"];
21264
21314
  };
21265
21315
  };
@@ -21286,6 +21336,7 @@ export interface operations {
21286
21336
  };
21287
21337
  };
21288
21338
  };
21339
+ 403: components["responses"]["AuthorizationException"];
21289
21340
  404: components["responses"]["ModelNotFoundException"];
21290
21341
  };
21291
21342
  };
@@ -21316,6 +21367,7 @@ export interface operations {
21316
21367
  };
21317
21368
  };
21318
21369
  };
21370
+ 403: components["responses"]["AuthorizationException"];
21319
21371
  404: components["responses"]["ModelNotFoundException"];
21320
21372
  422: components["responses"]["ValidationException"];
21321
21373
  };
@@ -22365,6 +22417,7 @@ export interface operations {
22365
22417
  name: string;
22366
22418
  description: string | null;
22367
22419
  core: boolean;
22420
+ listed: boolean;
22368
22421
  depends_on: string[];
22369
22422
  abilities_namespace: string | null;
22370
22423
  status: string;
package/dist/index.d.ts CHANGED
@@ -38,8 +38,20 @@ export declare const SCOPES: {
38
38
  readonly itemsWrite: "items:write";
39
39
  readonly bankingRead: "banking:read";
40
40
  readonly bankingWrite: "banking:write";
41
+ /**
42
+ * Leer las OPORTUNIDADES: leads, su embudo y su actividad comercial.
43
+ *
44
+ * ⚠️ Desde la 0.20.0 ya NO alcanza proyectos, tareas ni partes de horas: eso
45
+ * es `work:read` (núcleo galeote/factSaas#677). Un grant vivo que solo pidió
46
+ * `crm:*` tiene que reconectar para recuperarlos.
47
+ */
41
48
  readonly crmRead: "crm:read";
49
+ /** Crear y modificar leads, moverlos de etapa y convertirlos en cliente. */
42
50
  readonly crmWrite: "crm:write";
51
+ /** Leer el trabajo: obras y proyectos, tareas y partes de horas. */
52
+ readonly workRead: "work:read";
53
+ /** Crear y modificar obras y proyectos, tareas y partes de horas. */
54
+ readonly workWrite: "work:write";
43
55
  readonly agendaRead: "agenda:read";
44
56
  readonly agendaWrite: "agenda:write";
45
57
  readonly reportsRead: "reports:read";
package/dist/index.js CHANGED
@@ -34,8 +34,20 @@ export const SCOPES = {
34
34
  itemsWrite: 'items:write',
35
35
  bankingRead: 'banking:read',
36
36
  bankingWrite: 'banking:write',
37
+ /**
38
+ * Leer las OPORTUNIDADES: leads, su embudo y su actividad comercial.
39
+ *
40
+ * ⚠️ Desde la 0.20.0 ya NO alcanza proyectos, tareas ni partes de horas: eso
41
+ * es `work:read` (núcleo galeote/factSaas#677). Un grant vivo que solo pidió
42
+ * `crm:*` tiene que reconectar para recuperarlos.
43
+ */
37
44
  crmRead: 'crm:read',
45
+ /** Crear y modificar leads, moverlos de etapa y convertirlos en cliente. */
38
46
  crmWrite: 'crm:write',
47
+ /** Leer el trabajo: obras y proyectos, tareas y partes de horas. */
48
+ workRead: 'work:read',
49
+ /** Crear y modificar obras y proyectos, tareas y partes de horas. */
50
+ workWrite: 'work:write',
39
51
  agendaRead: 'agenda:read',
40
52
  agendaWrite: 'agenda:write',
41
53
  reportsRead: 'reports:read',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimia/sdk",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Cliente TypeScript de la API de Pimia para apps de partner: OAuth con PKCE, rotación de refresh persistida, reintentos de rate limit y tipos generados del OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Pimia (https://pimia.es)",