@arbol-ai/cli 2.9.0 → 2.10.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 (2) hide show
  1. package/dist/index.js +2868 -645
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -11196,17 +11196,18 @@ var commands = {
11196
11196
  pathField: "id",
11197
11197
  fields: [],
11198
11198
  inputSchema: {
11199
- additionalProperties: false,
11200
11199
  type: "object",
11201
- required: [
11202
- "id"
11203
- ],
11204
11200
  properties: {
11205
11201
  id: {
11206
11202
  pattern: "^con_[0-9A-Za-z]{26}$",
11207
- type: "string"
11203
+ type: "string",
11204
+ description: "The id."
11208
11205
  }
11209
- }
11206
+ },
11207
+ required: [
11208
+ "id"
11209
+ ],
11210
+ additionalProperties: false
11210
11211
  },
11211
11212
  title: "Remove a provider connection",
11212
11213
  description: "Remove the provider-owned connection before Account retires its sealed credentials. Login cooldowns remain durable.",
@@ -11224,17 +11225,18 @@ var commands = {
11224
11225
  pathField: "id",
11225
11226
  fields: [],
11226
11227
  inputSchema: {
11227
- additionalProperties: false,
11228
11228
  type: "object",
11229
- required: [
11230
- "id"
11231
- ],
11232
11229
  properties: {
11233
11230
  id: {
11234
11231
  pattern: "^con_[0-9A-Za-z]{26}$",
11235
- type: "string"
11232
+ type: "string",
11233
+ description: "The id."
11236
11234
  }
11237
- }
11235
+ },
11236
+ required: [
11237
+ "id"
11238
+ ],
11239
+ additionalProperties: false
11238
11240
  },
11239
11241
  title: "Get a provider connection",
11240
11242
  description: "One connection owned by the verified organization. Never a credential or a provider request.",
@@ -11280,9 +11282,7 @@ var commands = {
11280
11282
  }
11281
11283
  ],
11282
11284
  inputSchema: {
11283
- additionalProperties: false,
11284
11285
  type: "object",
11285
- required: [],
11286
11286
  properties: {
11287
11287
  cursor: {
11288
11288
  description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
@@ -11309,7 +11309,8 @@ var commands = {
11309
11309
  type: "integer",
11310
11310
  default: 25
11311
11311
  }
11312
- }
11312
+ },
11313
+ additionalProperties: false
11313
11314
  },
11314
11315
  title: "List provider connections",
11315
11316
  description: "The organization’s Account connections, without reading credentials or contacting the provider.",
@@ -11376,17 +11377,12 @@ var commands = {
11376
11377
  additionalProperties: false,
11377
11378
  type: "object",
11378
11379
  required: [
11379
- "connectionId",
11380
11380
  "name",
11381
11381
  "username",
11382
11382
  "password",
11383
11383
  "documentType"
11384
11384
  ],
11385
11385
  properties: {
11386
- connectionId: {
11387
- pattern: "^con_[0-9A-Za-z]{26}$",
11388
- type: "string"
11389
- },
11390
11386
  name: {
11391
11387
  minLength: 1,
11392
11388
  maxLength: 80,
@@ -40268,9 +40264,100 @@ var schemaComponents = {
40268
40264
  }
40269
40265
  }
40270
40266
  },
40271
- NuevaEpsFailureResponse: {
40267
+ NuevaEpsAuthorizationsUnavailableError: {
40268
+ type: "object",
40269
+ description: "A failed answer.",
40270
+ additionalProperties: false,
40271
+ required: [
40272
+ "success",
40273
+ "data",
40274
+ "error",
40275
+ "metadata"
40276
+ ],
40277
+ properties: {
40278
+ success: {
40279
+ type: "boolean",
40280
+ enum: [
40281
+ false
40282
+ ]
40283
+ },
40284
+ data: {
40285
+ const: null
40286
+ },
40287
+ error: {
40288
+ $ref: "#/components/schemas/NuevaEpsAuthorizationsUnavailableFailure"
40289
+ },
40290
+ metadata: {
40291
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40292
+ }
40293
+ }
40294
+ },
40295
+ NuevaEpsAuthorizationsUnavailableFailure: {
40296
+ type: "object",
40297
+ description: "The provider authorization lookup has not been verified. No empty result is implied.",
40298
+ additionalProperties: false,
40299
+ required: [
40300
+ "code",
40301
+ "message",
40302
+ "retryable",
40303
+ "data"
40304
+ ],
40305
+ properties: {
40306
+ code: {
40307
+ type: "string",
40308
+ enum: [
40309
+ "AUTHORIZATIONS_UNAVAILABLE"
40310
+ ],
40311
+ description: "The failure code, stable across releases."
40312
+ },
40313
+ message: {
40314
+ type: "string",
40315
+ description: "What went wrong, for people; it never contains input values."
40316
+ },
40317
+ retryable: {
40318
+ type: "boolean",
40319
+ enum: [
40320
+ false
40321
+ ],
40322
+ description: "Whether repeating the same request may succeed."
40323
+ },
40324
+ data: {
40325
+ $ref: "#/components/schemas/NuevaEpsEmpty"
40326
+ }
40327
+ }
40328
+ },
40329
+ NuevaEpsConnectionPageResponse: {
40330
+ type: "object",
40331
+ description: "A successful answer.",
40272
40332
  additionalProperties: false,
40333
+ required: [
40334
+ "success",
40335
+ "data",
40336
+ "error",
40337
+ "metadata"
40338
+ ],
40339
+ properties: {
40340
+ success: {
40341
+ type: "boolean",
40342
+ enum: [
40343
+ true
40344
+ ]
40345
+ },
40346
+ data: {
40347
+ $ref: "#/components/schemas/ConnectionPage"
40348
+ },
40349
+ error: {
40350
+ const: null
40351
+ },
40352
+ metadata: {
40353
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40354
+ }
40355
+ }
40356
+ },
40357
+ NuevaEpsConnectionResponse: {
40273
40358
  type: "object",
40359
+ description: "A successful answer.",
40360
+ additionalProperties: false,
40274
40361
  required: [
40275
40362
  "success",
40276
40363
  "data",
@@ -40279,640 +40366,2438 @@ var schemaComponents = {
40279
40366
  ],
40280
40367
  properties: {
40281
40368
  success: {
40282
- const: false,
40283
- type: "boolean"
40369
+ type: "boolean",
40370
+ enum: [
40371
+ true
40372
+ ]
40284
40373
  },
40285
40374
  data: {
40286
- type: "null"
40375
+ $ref: "#/components/schemas/Connection"
40287
40376
  },
40288
40377
  error: {
40289
- allOf: [
40290
- {
40291
- $ref: "#/components/schemas/Failure"
40292
- }
40378
+ const: null
40379
+ },
40380
+ metadata: {
40381
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40382
+ }
40383
+ }
40384
+ },
40385
+ NuevaEpsDeleteConnectionBadGatewayError: {
40386
+ type: "object",
40387
+ description: "A failed answer.",
40388
+ additionalProperties: false,
40389
+ required: [
40390
+ "success",
40391
+ "data",
40392
+ "error",
40393
+ "metadata"
40394
+ ],
40395
+ properties: {
40396
+ success: {
40397
+ type: "boolean",
40398
+ enum: [
40399
+ false
40400
+ ]
40401
+ },
40402
+ data: {
40403
+ const: null
40404
+ },
40405
+ error: {
40406
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionBadGatewayFailure"
40407
+ },
40408
+ metadata: {
40409
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40410
+ }
40411
+ }
40412
+ },
40413
+ NuevaEpsDeleteConnectionBadGatewayFailure: {
40414
+ oneOf: [
40415
+ {
40416
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
40417
+ },
40418
+ {
40419
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
40420
+ }
40421
+ ],
40422
+ discriminator: {
40423
+ propertyName: "code",
40424
+ mapping: {
40425
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
40426
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
40427
+ }
40428
+ }
40429
+ },
40430
+ NuevaEpsDeleteConnectionConflictError: {
40431
+ type: "object",
40432
+ description: "A failed answer.",
40433
+ additionalProperties: false,
40434
+ required: [
40435
+ "success",
40436
+ "data",
40437
+ "error",
40438
+ "metadata"
40439
+ ],
40440
+ properties: {
40441
+ success: {
40442
+ type: "boolean",
40443
+ enum: [
40444
+ false
40445
+ ]
40446
+ },
40447
+ data: {
40448
+ const: null
40449
+ },
40450
+ error: {
40451
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionConflictFailure"
40452
+ },
40453
+ metadata: {
40454
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40455
+ }
40456
+ }
40457
+ },
40458
+ NuevaEpsDeleteConnectionConflictFailure: {
40459
+ oneOf: [
40460
+ {
40461
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
40462
+ },
40463
+ {
40464
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
40465
+ },
40466
+ {
40467
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
40468
+ }
40469
+ ],
40470
+ discriminator: {
40471
+ propertyName: "code",
40472
+ mapping: {
40473
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
40474
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
40475
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
40476
+ }
40477
+ }
40478
+ },
40479
+ NuevaEpsDeleteConnectionForbiddenError: {
40480
+ type: "object",
40481
+ description: "A failed answer.",
40482
+ additionalProperties: false,
40483
+ required: [
40484
+ "success",
40485
+ "data",
40486
+ "error",
40487
+ "metadata"
40488
+ ],
40489
+ properties: {
40490
+ success: {
40491
+ type: "boolean",
40492
+ enum: [
40493
+ false
40494
+ ]
40495
+ },
40496
+ data: {
40497
+ const: null
40498
+ },
40499
+ error: {
40500
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionForbiddenFailure"
40501
+ },
40502
+ metadata: {
40503
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40504
+ }
40505
+ }
40506
+ },
40507
+ NuevaEpsDeleteConnectionForbiddenFailure: {
40508
+ oneOf: [
40509
+ {
40510
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
40511
+ },
40512
+ {
40513
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40514
+ }
40515
+ ],
40516
+ discriminator: {
40517
+ propertyName: "code",
40518
+ mapping: {
40519
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
40520
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40521
+ }
40522
+ }
40523
+ },
40524
+ NuevaEpsDeleteConnectionServiceUnavailableError: {
40525
+ type: "object",
40526
+ description: "A failed answer.",
40527
+ additionalProperties: false,
40528
+ required: [
40529
+ "success",
40530
+ "data",
40531
+ "error",
40532
+ "metadata"
40533
+ ],
40534
+ properties: {
40535
+ success: {
40536
+ type: "boolean",
40537
+ enum: [
40538
+ false
40539
+ ]
40540
+ },
40541
+ data: {
40542
+ const: null
40543
+ },
40544
+ error: {
40545
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionServiceUnavailableFailure"
40546
+ },
40547
+ metadata: {
40548
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40549
+ }
40550
+ }
40551
+ },
40552
+ NuevaEpsDeleteConnectionServiceUnavailableFailure: {
40553
+ oneOf: [
40554
+ {
40555
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
40556
+ },
40557
+ {
40558
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
40559
+ },
40560
+ {
40561
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40562
+ }
40563
+ ],
40564
+ discriminator: {
40565
+ propertyName: "code",
40566
+ mapping: {
40567
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
40568
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
40569
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40570
+ }
40571
+ }
40572
+ },
40573
+ NuevaEpsDeleteConnectionTooManyRequestsError: {
40574
+ type: "object",
40575
+ description: "A failed answer.",
40576
+ additionalProperties: false,
40577
+ required: [
40578
+ "success",
40579
+ "data",
40580
+ "error",
40581
+ "metadata"
40582
+ ],
40583
+ properties: {
40584
+ success: {
40585
+ type: "boolean",
40586
+ enum: [
40587
+ false
40588
+ ]
40589
+ },
40590
+ data: {
40591
+ const: null
40592
+ },
40593
+ error: {
40594
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionTooManyRequestsFailure"
40595
+ },
40596
+ metadata: {
40597
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40598
+ }
40599
+ }
40600
+ },
40601
+ NuevaEpsDeleteConnectionTooManyRequestsFailure: {
40602
+ oneOf: [
40603
+ {
40604
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
40605
+ },
40606
+ {
40607
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40608
+ }
40609
+ ],
40610
+ discriminator: {
40611
+ propertyName: "code",
40612
+ mapping: {
40613
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
40614
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40615
+ }
40616
+ }
40617
+ },
40618
+ NuevaEpsDeletedObjectResponse: {
40619
+ type: "object",
40620
+ description: "A successful answer.",
40621
+ additionalProperties: false,
40622
+ required: [
40623
+ "success",
40624
+ "data",
40625
+ "error",
40626
+ "metadata"
40627
+ ],
40628
+ properties: {
40629
+ success: {
40630
+ type: "boolean",
40631
+ enum: [
40632
+ true
40633
+ ]
40634
+ },
40635
+ data: {
40636
+ $ref: "#/components/schemas/DeletedObject"
40637
+ },
40638
+ error: {
40639
+ const: null
40640
+ },
40641
+ metadata: {
40642
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40643
+ }
40644
+ }
40645
+ },
40646
+ NuevaEpsEmpty: {
40647
+ type: "object",
40648
+ description: "No fields.",
40649
+ additionalProperties: false,
40650
+ properties: {}
40651
+ },
40652
+ NuevaEpsForbiddenFailure: {
40653
+ type: "object",
40654
+ description: "The token does not authorize this operation.",
40655
+ additionalProperties: false,
40656
+ required: [
40657
+ "code",
40658
+ "message",
40659
+ "retryable",
40660
+ "data"
40661
+ ],
40662
+ properties: {
40663
+ code: {
40664
+ type: "string",
40665
+ enum: [
40666
+ "FORBIDDEN"
40293
40667
  ],
40294
- anyOf: [
40295
- {
40296
- additionalProperties: false,
40297
- type: "object",
40298
- required: [
40299
- "code",
40300
- "message",
40301
- "retryable",
40302
- "data"
40303
- ],
40304
- properties: {
40305
- code: {
40306
- const: "INVALID_INPUT",
40307
- type: "string"
40308
- },
40309
- message: {
40310
- const: "The request does not match the published schema.",
40311
- type: "string"
40312
- },
40313
- retryable: {
40314
- const: false,
40315
- type: "boolean"
40316
- },
40317
- data: {
40318
- additionalProperties: false,
40319
- type: "object",
40320
- properties: {
40321
- issues: {
40322
- maxItems: 10,
40323
- type: "array",
40324
- items: {
40325
- $ref: "#/components/schemas/ValidationIssue"
40326
- }
40327
- }
40328
- }
40329
- }
40330
- }
40331
- },
40332
- {
40333
- additionalProperties: false,
40334
- type: "object",
40335
- required: [
40336
- "code",
40337
- "message",
40338
- "retryable",
40339
- "data"
40340
- ],
40341
- properties: {
40342
- code: {
40343
- const: "UNAUTHORIZED",
40344
- type: "string"
40345
- },
40346
- message: {
40347
- const: "A valid access token is required.",
40348
- type: "string"
40349
- },
40350
- retryable: {
40351
- const: false,
40352
- type: "boolean"
40353
- },
40354
- data: {
40355
- additionalProperties: false,
40356
- type: "object",
40357
- properties: {}
40358
- }
40359
- }
40360
- },
40361
- {
40362
- additionalProperties: false,
40363
- type: "object",
40364
- required: [
40365
- "code",
40366
- "message",
40367
- "retryable",
40368
- "data"
40369
- ],
40370
- properties: {
40371
- code: {
40372
- const: "FORBIDDEN",
40373
- type: "string"
40374
- },
40375
- message: {
40376
- const: "The token does not authorize this operation.",
40377
- type: "string"
40378
- },
40379
- retryable: {
40380
- const: false,
40381
- type: "boolean"
40382
- },
40383
- data: {
40384
- additionalProperties: false,
40385
- type: "object",
40386
- properties: {}
40387
- }
40388
- }
40389
- },
40390
- {
40391
- additionalProperties: false,
40392
- type: "object",
40393
- required: [
40394
- "code",
40395
- "message",
40396
- "retryable",
40397
- "data"
40398
- ],
40399
- properties: {
40400
- code: {
40401
- const: "NOT_FOUND",
40402
- type: "string"
40403
- },
40404
- message: {
40405
- const: "The requested operation does not exist.",
40406
- type: "string"
40407
- },
40408
- retryable: {
40409
- const: false,
40410
- type: "boolean"
40411
- },
40412
- data: {
40413
- additionalProperties: false,
40414
- type: "object",
40415
- properties: {}
40416
- }
40417
- }
40418
- },
40419
- {
40420
- additionalProperties: false,
40421
- type: "object",
40422
- required: [
40423
- "code",
40424
- "message",
40425
- "retryable",
40426
- "data"
40427
- ],
40428
- properties: {
40429
- code: {
40430
- const: "HTTP_METHOD_NOT_ALLOWED",
40431
- type: "string"
40432
- },
40433
- message: {
40434
- const: "The HTTP method is not supported for this resource.",
40435
- type: "string"
40436
- },
40437
- retryable: {
40438
- const: false,
40439
- type: "boolean"
40440
- },
40441
- data: {
40442
- additionalProperties: false,
40443
- type: "object",
40444
- properties: {}
40445
- }
40446
- }
40447
- },
40448
- {
40449
- additionalProperties: false,
40450
- type: "object",
40451
- required: [
40452
- "code",
40453
- "message",
40454
- "retryable",
40455
- "data"
40456
- ],
40457
- properties: {
40458
- code: {
40459
- const: "REQUEST_TOO_LARGE",
40460
- type: "string"
40461
- },
40462
- message: {
40463
- const: "The request exceeds the allowed size.",
40464
- type: "string"
40465
- },
40466
- retryable: {
40467
- const: false,
40468
- type: "boolean"
40469
- },
40470
- data: {
40471
- additionalProperties: false,
40472
- type: "object",
40473
- properties: {}
40474
- }
40475
- }
40476
- },
40477
- {
40478
- additionalProperties: false,
40479
- type: "object",
40480
- required: [
40481
- "code",
40482
- "message",
40483
- "retryable",
40484
- "data"
40485
- ],
40486
- properties: {
40487
- code: {
40488
- const: "UNSUPPORTED_MEDIA_TYPE",
40489
- type: "string"
40490
- },
40491
- message: {
40492
- const: "The request content type is not supported.",
40493
- type: "string"
40494
- },
40495
- retryable: {
40496
- const: false,
40497
- type: "boolean"
40498
- },
40499
- data: {
40500
- additionalProperties: false,
40501
- type: "object",
40502
- properties: {}
40503
- }
40504
- }
40668
+ description: "The failure code, stable across releases."
40669
+ },
40670
+ message: {
40671
+ type: "string",
40672
+ description: "What went wrong, for people; it never contains input values."
40673
+ },
40674
+ retryable: {
40675
+ type: "boolean",
40676
+ enum: [
40677
+ false
40678
+ ],
40679
+ description: "Whether repeating the same request may succeed."
40680
+ },
40681
+ data: {
40682
+ $ref: "#/components/schemas/NuevaEpsEmpty"
40683
+ }
40684
+ }
40685
+ },
40686
+ NuevaEpsGetConnectionBadGatewayError: {
40687
+ type: "object",
40688
+ description: "A failed answer.",
40689
+ additionalProperties: false,
40690
+ required: [
40691
+ "success",
40692
+ "data",
40693
+ "error",
40694
+ "metadata"
40695
+ ],
40696
+ properties: {
40697
+ success: {
40698
+ type: "boolean",
40699
+ enum: [
40700
+ false
40701
+ ]
40702
+ },
40703
+ data: {
40704
+ const: null
40705
+ },
40706
+ error: {
40707
+ $ref: "#/components/schemas/NuevaEpsGetConnectionBadGatewayFailure"
40708
+ },
40709
+ metadata: {
40710
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40711
+ }
40712
+ }
40713
+ },
40714
+ NuevaEpsGetConnectionBadGatewayFailure: {
40715
+ oneOf: [
40716
+ {
40717
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
40718
+ },
40719
+ {
40720
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
40721
+ }
40722
+ ],
40723
+ discriminator: {
40724
+ propertyName: "code",
40725
+ mapping: {
40726
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
40727
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
40728
+ }
40729
+ }
40730
+ },
40731
+ NuevaEpsGetConnectionConflictError: {
40732
+ type: "object",
40733
+ description: "A failed answer.",
40734
+ additionalProperties: false,
40735
+ required: [
40736
+ "success",
40737
+ "data",
40738
+ "error",
40739
+ "metadata"
40740
+ ],
40741
+ properties: {
40742
+ success: {
40743
+ type: "boolean",
40744
+ enum: [
40745
+ false
40746
+ ]
40747
+ },
40748
+ data: {
40749
+ const: null
40750
+ },
40751
+ error: {
40752
+ $ref: "#/components/schemas/NuevaEpsGetConnectionConflictFailure"
40753
+ },
40754
+ metadata: {
40755
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40756
+ }
40757
+ }
40758
+ },
40759
+ NuevaEpsGetConnectionConflictFailure: {
40760
+ oneOf: [
40761
+ {
40762
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
40763
+ },
40764
+ {
40765
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
40766
+ },
40767
+ {
40768
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
40769
+ }
40770
+ ],
40771
+ discriminator: {
40772
+ propertyName: "code",
40773
+ mapping: {
40774
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
40775
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
40776
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
40777
+ }
40778
+ }
40779
+ },
40780
+ NuevaEpsGetConnectionForbiddenError: {
40781
+ type: "object",
40782
+ description: "A failed answer.",
40783
+ additionalProperties: false,
40784
+ required: [
40785
+ "success",
40786
+ "data",
40787
+ "error",
40788
+ "metadata"
40789
+ ],
40790
+ properties: {
40791
+ success: {
40792
+ type: "boolean",
40793
+ enum: [
40794
+ false
40795
+ ]
40796
+ },
40797
+ data: {
40798
+ const: null
40799
+ },
40800
+ error: {
40801
+ $ref: "#/components/schemas/NuevaEpsGetConnectionForbiddenFailure"
40802
+ },
40803
+ metadata: {
40804
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40805
+ }
40806
+ }
40807
+ },
40808
+ NuevaEpsGetConnectionForbiddenFailure: {
40809
+ oneOf: [
40810
+ {
40811
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
40812
+ },
40813
+ {
40814
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40815
+ }
40816
+ ],
40817
+ discriminator: {
40818
+ propertyName: "code",
40819
+ mapping: {
40820
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
40821
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40822
+ }
40823
+ }
40824
+ },
40825
+ NuevaEpsGetConnectionServiceUnavailableError: {
40826
+ type: "object",
40827
+ description: "A failed answer.",
40828
+ additionalProperties: false,
40829
+ required: [
40830
+ "success",
40831
+ "data",
40832
+ "error",
40833
+ "metadata"
40834
+ ],
40835
+ properties: {
40836
+ success: {
40837
+ type: "boolean",
40838
+ enum: [
40839
+ false
40840
+ ]
40841
+ },
40842
+ data: {
40843
+ const: null
40844
+ },
40845
+ error: {
40846
+ $ref: "#/components/schemas/NuevaEpsGetConnectionServiceUnavailableFailure"
40847
+ },
40848
+ metadata: {
40849
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40850
+ }
40851
+ }
40852
+ },
40853
+ NuevaEpsGetConnectionServiceUnavailableFailure: {
40854
+ oneOf: [
40855
+ {
40856
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
40857
+ },
40858
+ {
40859
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
40860
+ },
40861
+ {
40862
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40863
+ }
40864
+ ],
40865
+ discriminator: {
40866
+ propertyName: "code",
40867
+ mapping: {
40868
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
40869
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
40870
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40871
+ }
40872
+ }
40873
+ },
40874
+ NuevaEpsGetConnectionTooManyRequestsError: {
40875
+ type: "object",
40876
+ description: "A failed answer.",
40877
+ additionalProperties: false,
40878
+ required: [
40879
+ "success",
40880
+ "data",
40881
+ "error",
40882
+ "metadata"
40883
+ ],
40884
+ properties: {
40885
+ success: {
40886
+ type: "boolean",
40887
+ enum: [
40888
+ false
40889
+ ]
40890
+ },
40891
+ data: {
40892
+ const: null
40893
+ },
40894
+ error: {
40895
+ $ref: "#/components/schemas/NuevaEpsGetConnectionTooManyRequestsFailure"
40896
+ },
40897
+ metadata: {
40898
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40899
+ }
40900
+ }
40901
+ },
40902
+ NuevaEpsGetConnectionTooManyRequestsFailure: {
40903
+ oneOf: [
40904
+ {
40905
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
40906
+ },
40907
+ {
40908
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40909
+ }
40910
+ ],
40911
+ discriminator: {
40912
+ propertyName: "code",
40913
+ mapping: {
40914
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
40915
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40916
+ }
40917
+ }
40918
+ },
40919
+ NuevaEpsInternalError: {
40920
+ type: "object",
40921
+ description: "A failed answer.",
40922
+ additionalProperties: false,
40923
+ required: [
40924
+ "success",
40925
+ "data",
40926
+ "error",
40927
+ "metadata"
40928
+ ],
40929
+ properties: {
40930
+ success: {
40931
+ type: "boolean",
40932
+ enum: [
40933
+ false
40934
+ ]
40935
+ },
40936
+ data: {
40937
+ const: null
40938
+ },
40939
+ error: {
40940
+ $ref: "#/components/schemas/NuevaEpsInternalFailure"
40941
+ },
40942
+ metadata: {
40943
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40944
+ }
40945
+ }
40946
+ },
40947
+ NuevaEpsInternalFailure: {
40948
+ type: "object",
40949
+ description: "The service could not complete the operation.",
40950
+ additionalProperties: false,
40951
+ required: [
40952
+ "code",
40953
+ "message",
40954
+ "retryable",
40955
+ "data"
40956
+ ],
40957
+ properties: {
40958
+ code: {
40959
+ type: "string",
40960
+ enum: [
40961
+ "INTERNAL_ERROR"
40962
+ ],
40963
+ description: "The failure code, stable across releases."
40964
+ },
40965
+ message: {
40966
+ type: "string",
40967
+ description: "What went wrong, for people; it never contains input values."
40968
+ },
40969
+ retryable: {
40970
+ type: "boolean",
40971
+ enum: [
40972
+ false
40973
+ ],
40974
+ description: "Whether repeating the same request may succeed."
40975
+ },
40976
+ data: {
40977
+ $ref: "#/components/schemas/NuevaEpsEmpty"
40978
+ }
40979
+ }
40980
+ },
40981
+ NuevaEpsInvalidInputError: {
40982
+ type: "object",
40983
+ description: "A failed answer.",
40984
+ additionalProperties: false,
40985
+ required: [
40986
+ "success",
40987
+ "data",
40988
+ "error",
40989
+ "metadata"
40990
+ ],
40991
+ properties: {
40992
+ success: {
40993
+ type: "boolean",
40994
+ enum: [
40995
+ false
40996
+ ]
40997
+ },
40998
+ data: {
40999
+ const: null
41000
+ },
41001
+ error: {
41002
+ $ref: "#/components/schemas/NuevaEpsInvalidInputFailure"
41003
+ },
41004
+ metadata: {
41005
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41006
+ }
41007
+ }
41008
+ },
41009
+ NuevaEpsInvalidInputFailure: {
41010
+ type: "object",
41011
+ description: "The request does not match the published schema.",
41012
+ additionalProperties: false,
41013
+ required: [
41014
+ "code",
41015
+ "message",
41016
+ "retryable",
41017
+ "data"
41018
+ ],
41019
+ properties: {
41020
+ code: {
41021
+ type: "string",
41022
+ enum: [
41023
+ "INVALID_INPUT"
41024
+ ],
41025
+ description: "The failure code, stable across releases."
41026
+ },
41027
+ message: {
41028
+ type: "string",
41029
+ description: "What went wrong, for people; it never contains input values."
41030
+ },
41031
+ retryable: {
41032
+ type: "boolean",
41033
+ enum: [
41034
+ false
41035
+ ],
41036
+ description: "Whether repeating the same request may succeed."
41037
+ },
41038
+ data: {
41039
+ $ref: "#/components/schemas/NuevaEpsInvalidInputFailureData"
41040
+ }
41041
+ }
41042
+ },
41043
+ NuevaEpsInvalidInputFailureData: {
41044
+ additionalProperties: false,
41045
+ type: "object",
41046
+ properties: {
41047
+ issues: {
41048
+ maxItems: 10,
41049
+ type: "array",
41050
+ items: {
41051
+ $ref: "#/components/schemas/ValidationIssue"
41052
+ }
41053
+ }
41054
+ }
41055
+ },
41056
+ NuevaEpsListConnectionsBadGatewayError: {
41057
+ type: "object",
41058
+ description: "A failed answer.",
41059
+ additionalProperties: false,
41060
+ required: [
41061
+ "success",
41062
+ "data",
41063
+ "error",
41064
+ "metadata"
41065
+ ],
41066
+ properties: {
41067
+ success: {
41068
+ type: "boolean",
41069
+ enum: [
41070
+ false
41071
+ ]
41072
+ },
41073
+ data: {
41074
+ const: null
41075
+ },
41076
+ error: {
41077
+ $ref: "#/components/schemas/NuevaEpsListConnectionsBadGatewayFailure"
41078
+ },
41079
+ metadata: {
41080
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41081
+ }
41082
+ }
41083
+ },
41084
+ NuevaEpsListConnectionsBadGatewayFailure: {
41085
+ oneOf: [
41086
+ {
41087
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
41088
+ },
41089
+ {
41090
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
41091
+ }
41092
+ ],
41093
+ discriminator: {
41094
+ propertyName: "code",
41095
+ mapping: {
41096
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
41097
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
41098
+ }
41099
+ }
41100
+ },
41101
+ NuevaEpsListConnectionsConflictError: {
41102
+ type: "object",
41103
+ description: "A failed answer.",
41104
+ additionalProperties: false,
41105
+ required: [
41106
+ "success",
41107
+ "data",
41108
+ "error",
41109
+ "metadata"
41110
+ ],
41111
+ properties: {
41112
+ success: {
41113
+ type: "boolean",
41114
+ enum: [
41115
+ false
41116
+ ]
41117
+ },
41118
+ data: {
41119
+ const: null
41120
+ },
41121
+ error: {
41122
+ $ref: "#/components/schemas/NuevaEpsListConnectionsConflictFailure"
41123
+ },
41124
+ metadata: {
41125
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41126
+ }
41127
+ }
41128
+ },
41129
+ NuevaEpsListConnectionsConflictFailure: {
41130
+ oneOf: [
41131
+ {
41132
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
41133
+ },
41134
+ {
41135
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
41136
+ },
41137
+ {
41138
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
41139
+ }
41140
+ ],
41141
+ discriminator: {
41142
+ propertyName: "code",
41143
+ mapping: {
41144
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
41145
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
41146
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
41147
+ }
41148
+ }
41149
+ },
41150
+ NuevaEpsListConnectionsForbiddenError: {
41151
+ type: "object",
41152
+ description: "A failed answer.",
41153
+ additionalProperties: false,
41154
+ required: [
41155
+ "success",
41156
+ "data",
41157
+ "error",
41158
+ "metadata"
41159
+ ],
41160
+ properties: {
41161
+ success: {
41162
+ type: "boolean",
41163
+ enum: [
41164
+ false
41165
+ ]
41166
+ },
41167
+ data: {
41168
+ const: null
41169
+ },
41170
+ error: {
41171
+ $ref: "#/components/schemas/NuevaEpsListConnectionsForbiddenFailure"
41172
+ },
41173
+ metadata: {
41174
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41175
+ }
41176
+ }
41177
+ },
41178
+ NuevaEpsListConnectionsForbiddenFailure: {
41179
+ oneOf: [
41180
+ {
41181
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
41182
+ },
41183
+ {
41184
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41185
+ }
41186
+ ],
41187
+ discriminator: {
41188
+ propertyName: "code",
41189
+ mapping: {
41190
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
41191
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41192
+ }
41193
+ }
41194
+ },
41195
+ NuevaEpsListConnectionsServiceUnavailableError: {
41196
+ type: "object",
41197
+ description: "A failed answer.",
41198
+ additionalProperties: false,
41199
+ required: [
41200
+ "success",
41201
+ "data",
41202
+ "error",
41203
+ "metadata"
41204
+ ],
41205
+ properties: {
41206
+ success: {
41207
+ type: "boolean",
41208
+ enum: [
41209
+ false
41210
+ ]
41211
+ },
41212
+ data: {
41213
+ const: null
41214
+ },
41215
+ error: {
41216
+ $ref: "#/components/schemas/NuevaEpsListConnectionsServiceUnavailableFailure"
41217
+ },
41218
+ metadata: {
41219
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41220
+ }
41221
+ }
41222
+ },
41223
+ NuevaEpsListConnectionsServiceUnavailableFailure: {
41224
+ oneOf: [
41225
+ {
41226
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
41227
+ },
41228
+ {
41229
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
41230
+ },
41231
+ {
41232
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41233
+ }
41234
+ ],
41235
+ discriminator: {
41236
+ propertyName: "code",
41237
+ mapping: {
41238
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
41239
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
41240
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41241
+ }
41242
+ }
41243
+ },
41244
+ NuevaEpsListConnectionsTooManyRequestsError: {
41245
+ type: "object",
41246
+ description: "A failed answer.",
41247
+ additionalProperties: false,
41248
+ required: [
41249
+ "success",
41250
+ "data",
41251
+ "error",
41252
+ "metadata"
41253
+ ],
41254
+ properties: {
41255
+ success: {
41256
+ type: "boolean",
41257
+ enum: [
41258
+ false
41259
+ ]
41260
+ },
41261
+ data: {
41262
+ const: null
41263
+ },
41264
+ error: {
41265
+ $ref: "#/components/schemas/NuevaEpsListConnectionsTooManyRequestsFailure"
41266
+ },
41267
+ metadata: {
41268
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41269
+ }
41270
+ }
41271
+ },
41272
+ NuevaEpsListConnectionsTooManyRequestsFailure: {
41273
+ oneOf: [
41274
+ {
41275
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
41276
+ },
41277
+ {
41278
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41279
+ }
41280
+ ],
41281
+ discriminator: {
41282
+ propertyName: "code",
41283
+ mapping: {
41284
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
41285
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41286
+ }
41287
+ }
41288
+ },
41289
+ NuevaEpsLoginCooldownFailure: {
41290
+ type: "object",
41291
+ description: "Login attempts are temporarily paused after a submitted or uncertain attempt.",
41292
+ additionalProperties: false,
41293
+ required: [
41294
+ "code",
41295
+ "message",
41296
+ "retryable",
41297
+ "data"
41298
+ ],
41299
+ properties: {
41300
+ code: {
41301
+ type: "string",
41302
+ enum: [
41303
+ "LOGIN_COOLDOWN"
41304
+ ],
41305
+ description: "The failure code, stable across releases."
41306
+ },
41307
+ message: {
41308
+ type: "string",
41309
+ description: "What went wrong, for people; it never contains input values."
41310
+ },
41311
+ retryable: {
41312
+ type: "boolean",
41313
+ enum: [
41314
+ false
41315
+ ],
41316
+ description: "Whether repeating the same request may succeed."
41317
+ },
41318
+ data: {
41319
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41320
+ }
41321
+ }
41322
+ },
41323
+ NuevaEpsLoginRejectedFailure: {
41324
+ type: "object",
41325
+ description: "Nueva EPS did not accept the provider login. Do not retry automatically.",
41326
+ additionalProperties: false,
41327
+ required: [
41328
+ "code",
41329
+ "message",
41330
+ "retryable",
41331
+ "data"
41332
+ ],
41333
+ properties: {
41334
+ code: {
41335
+ type: "string",
41336
+ enum: [
41337
+ "LOGIN_REJECTED"
41338
+ ],
41339
+ description: "The failure code, stable across releases."
41340
+ },
41341
+ message: {
41342
+ type: "string",
41343
+ description: "What went wrong, for people; it never contains input values."
41344
+ },
41345
+ retryable: {
41346
+ type: "boolean",
41347
+ enum: [
41348
+ false
41349
+ ],
41350
+ description: "Whether repeating the same request may succeed."
41351
+ },
41352
+ data: {
41353
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41354
+ }
41355
+ }
41356
+ },
41357
+ NuevaEpsLookupAffiliationBadGatewayError: {
41358
+ type: "object",
41359
+ description: "A failed answer.",
41360
+ additionalProperties: false,
41361
+ required: [
41362
+ "success",
41363
+ "data",
41364
+ "error",
41365
+ "metadata"
41366
+ ],
41367
+ properties: {
41368
+ success: {
41369
+ type: "boolean",
41370
+ enum: [
41371
+ false
41372
+ ]
41373
+ },
41374
+ data: {
41375
+ const: null
41376
+ },
41377
+ error: {
41378
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationBadGatewayFailure"
41379
+ },
41380
+ metadata: {
41381
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41382
+ }
41383
+ }
41384
+ },
41385
+ NuevaEpsLookupAffiliationBadGatewayFailure: {
41386
+ oneOf: [
41387
+ {
41388
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
41389
+ },
41390
+ {
41391
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
41392
+ }
41393
+ ],
41394
+ discriminator: {
41395
+ propertyName: "code",
41396
+ mapping: {
41397
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
41398
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
41399
+ }
41400
+ }
41401
+ },
41402
+ NuevaEpsLookupAffiliationBody: {
41403
+ additionalProperties: false,
41404
+ type: "object",
41405
+ required: [
41406
+ "documentType",
41407
+ "documentNumber"
41408
+ ],
41409
+ properties: {
41410
+ documentType: {
41411
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
41412
+ anyOf: [
41413
+ {
41414
+ const: "AS",
41415
+ type: "string"
41416
+ },
41417
+ {
41418
+ const: "CC",
41419
+ type: "string"
41420
+ },
41421
+ {
41422
+ const: "CD",
41423
+ type: "string"
41424
+ },
41425
+ {
41426
+ const: "CE",
41427
+ type: "string"
41428
+ },
41429
+ {
41430
+ const: "CN",
41431
+ type: "string"
41432
+ },
41433
+ {
41434
+ const: "ME",
41435
+ type: "string"
41436
+ },
41437
+ {
41438
+ const: "NT",
41439
+ type: "string"
41440
+ },
41441
+ {
41442
+ const: "NU",
41443
+ type: "string"
41444
+ },
41445
+ {
41446
+ const: "PC",
41447
+ type: "string"
41448
+ },
41449
+ {
41450
+ const: "PE",
41451
+ type: "string"
41452
+ },
41453
+ {
41454
+ const: "PS",
41455
+ type: "string"
41456
+ },
41457
+ {
41458
+ const: "PT",
41459
+ type: "string"
41460
+ },
41461
+ {
41462
+ const: "RC",
41463
+ type: "string"
41464
+ },
41465
+ {
41466
+ const: "SC",
41467
+ type: "string"
41468
+ },
41469
+ {
41470
+ const: "TI",
41471
+ type: "string"
41472
+ }
41473
+ ]
41474
+ },
41475
+ documentNumber: {
41476
+ pattern: "^[A-Za-z0-9]{1,25}$",
41477
+ description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
41478
+ type: "string"
41479
+ },
41480
+ connectionId: {
41481
+ pattern: "^con_[0-9A-Za-z]{26}$",
41482
+ type: "string"
41483
+ }
41484
+ }
41485
+ },
41486
+ NuevaEpsLookupAffiliationConflictError: {
41487
+ type: "object",
41488
+ description: "A failed answer.",
41489
+ additionalProperties: false,
41490
+ required: [
41491
+ "success",
41492
+ "data",
41493
+ "error",
41494
+ "metadata"
41495
+ ],
41496
+ properties: {
41497
+ success: {
41498
+ type: "boolean",
41499
+ enum: [
41500
+ false
41501
+ ]
41502
+ },
41503
+ data: {
41504
+ const: null
41505
+ },
41506
+ error: {
41507
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationConflictFailure"
41508
+ },
41509
+ metadata: {
41510
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41511
+ }
41512
+ }
41513
+ },
41514
+ NuevaEpsLookupAffiliationConflictFailure: {
41515
+ oneOf: [
41516
+ {
41517
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
41518
+ },
41519
+ {
41520
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
41521
+ },
41522
+ {
41523
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
41524
+ }
41525
+ ],
41526
+ discriminator: {
41527
+ propertyName: "code",
41528
+ mapping: {
41529
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
41530
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
41531
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
41532
+ }
41533
+ }
41534
+ },
41535
+ NuevaEpsLookupAffiliationForbiddenError: {
41536
+ type: "object",
41537
+ description: "A failed answer.",
41538
+ additionalProperties: false,
41539
+ required: [
41540
+ "success",
41541
+ "data",
41542
+ "error",
41543
+ "metadata"
41544
+ ],
41545
+ properties: {
41546
+ success: {
41547
+ type: "boolean",
41548
+ enum: [
41549
+ false
41550
+ ]
41551
+ },
41552
+ data: {
41553
+ const: null
41554
+ },
41555
+ error: {
41556
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationForbiddenFailure"
41557
+ },
41558
+ metadata: {
41559
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41560
+ }
41561
+ }
41562
+ },
41563
+ NuevaEpsLookupAffiliationForbiddenFailure: {
41564
+ oneOf: [
41565
+ {
41566
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
41567
+ },
41568
+ {
41569
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41570
+ }
41571
+ ],
41572
+ discriminator: {
41573
+ propertyName: "code",
41574
+ mapping: {
41575
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
41576
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41577
+ }
41578
+ }
41579
+ },
41580
+ NuevaEpsLookupAffiliationResult: {
41581
+ additionalProperties: false,
41582
+ type: "object",
41583
+ required: [
41584
+ "documentType",
41585
+ "documentNumber",
41586
+ "affiliated",
41587
+ "callerIsPrimaryProvider",
41588
+ "messages"
41589
+ ],
41590
+ properties: {
41591
+ documentType: {
41592
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
41593
+ anyOf: [
41594
+ {
41595
+ const: "AS",
41596
+ type: "string"
41597
+ },
41598
+ {
41599
+ const: "CC",
41600
+ type: "string"
41601
+ },
41602
+ {
41603
+ const: "CD",
41604
+ type: "string"
41605
+ },
41606
+ {
41607
+ const: "CE",
41608
+ type: "string"
41609
+ },
41610
+ {
41611
+ const: "CN",
41612
+ type: "string"
41613
+ },
41614
+ {
41615
+ const: "ME",
41616
+ type: "string"
41617
+ },
41618
+ {
41619
+ const: "NT",
41620
+ type: "string"
41621
+ },
41622
+ {
41623
+ const: "NU",
41624
+ type: "string"
41625
+ },
41626
+ {
41627
+ const: "PC",
41628
+ type: "string"
41629
+ },
41630
+ {
41631
+ const: "PE",
41632
+ type: "string"
41633
+ },
41634
+ {
41635
+ const: "PS",
41636
+ type: "string"
41637
+ },
41638
+ {
41639
+ const: "PT",
41640
+ type: "string"
41641
+ },
41642
+ {
41643
+ const: "RC",
41644
+ type: "string"
40505
41645
  },
40506
41646
  {
40507
- additionalProperties: false,
40508
- type: "object",
40509
- required: [
40510
- "code",
40511
- "message",
40512
- "retryable",
40513
- "data"
40514
- ],
40515
- properties: {
40516
- code: {
40517
- const: "RATE_LIMITED",
40518
- type: "string"
40519
- },
40520
- message: {
40521
- const: "The request rate limit was exceeded. Try again later.",
40522
- type: "string"
40523
- },
40524
- retryable: {
40525
- const: true,
40526
- type: "boolean"
40527
- },
40528
- data: {
40529
- additionalProperties: false,
40530
- type: "object",
40531
- properties: {}
40532
- }
40533
- }
41647
+ const: "SC",
41648
+ type: "string"
41649
+ },
41650
+ {
41651
+ const: "TI",
41652
+ type: "string"
41653
+ }
41654
+ ]
41655
+ },
41656
+ documentNumber: {
41657
+ pattern: "^[A-Za-z0-9]{1,25}$",
41658
+ description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
41659
+ type: "string"
41660
+ },
41661
+ affiliated: {
41662
+ description: "True only when the portal returns ACTIVO. A provider failure is an error, never false.",
41663
+ type: "boolean"
41664
+ },
41665
+ callerIsPrimaryProvider: {
41666
+ description: "Whether the portal identifies the authenticated provider as the assigned primary provider. This is not a medical authorization.",
41667
+ type: "boolean"
41668
+ },
41669
+ state: {
41670
+ description: "Original affiliation status reported by Nueva EPS, for example ACTIVO; not connection status.",
41671
+ type: "string"
41672
+ },
41673
+ kind: {
41674
+ description: "Original affiliate type reported by Nueva EPS; preserve the provider value.",
41675
+ type: "string"
41676
+ },
41677
+ category: {
41678
+ description: "Original affiliate category reported by Nueva EPS; preserve the provider value.",
41679
+ type: "string"
41680
+ },
41681
+ primaryProvider: {
41682
+ description: "Name of the assigned primary provider, when present; not an Arbol provider identifier.",
41683
+ type: "string"
41684
+ },
41685
+ messages: {
41686
+ maxItems: 100,
41687
+ type: "array",
41688
+ items: {
41689
+ additionalProperties: false,
41690
+ type: "object",
41691
+ required: [
41692
+ "level",
41693
+ "text"
41694
+ ],
41695
+ properties: {
41696
+ level: {
41697
+ anyOf: [
41698
+ {
41699
+ const: "error",
41700
+ type: "string"
41701
+ },
41702
+ {
41703
+ const: "info",
41704
+ type: "string"
41705
+ }
41706
+ ]
41707
+ },
41708
+ text: {
41709
+ maxLength: 4000,
41710
+ type: "string"
41711
+ }
41712
+ }
41713
+ }
41714
+ }
41715
+ }
41716
+ },
41717
+ NuevaEpsLookupAffiliationResultResponse: {
41718
+ type: "object",
41719
+ description: "A successful answer.",
41720
+ additionalProperties: false,
41721
+ required: [
41722
+ "success",
41723
+ "data",
41724
+ "error",
41725
+ "metadata"
41726
+ ],
41727
+ properties: {
41728
+ success: {
41729
+ type: "boolean",
41730
+ enum: [
41731
+ true
41732
+ ]
41733
+ },
41734
+ data: {
41735
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationResult"
41736
+ },
41737
+ error: {
41738
+ const: null
41739
+ },
41740
+ metadata: {
41741
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41742
+ }
41743
+ }
41744
+ },
41745
+ NuevaEpsLookupAffiliationServiceUnavailableError: {
41746
+ type: "object",
41747
+ description: "A failed answer.",
41748
+ additionalProperties: false,
41749
+ required: [
41750
+ "success",
41751
+ "data",
41752
+ "error",
41753
+ "metadata"
41754
+ ],
41755
+ properties: {
41756
+ success: {
41757
+ type: "boolean",
41758
+ enum: [
41759
+ false
41760
+ ]
41761
+ },
41762
+ data: {
41763
+ const: null
41764
+ },
41765
+ error: {
41766
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationServiceUnavailableFailure"
41767
+ },
41768
+ metadata: {
41769
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41770
+ }
41771
+ }
41772
+ },
41773
+ NuevaEpsLookupAffiliationServiceUnavailableFailure: {
41774
+ oneOf: [
41775
+ {
41776
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
41777
+ },
41778
+ {
41779
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
41780
+ },
41781
+ {
41782
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41783
+ }
41784
+ ],
41785
+ discriminator: {
41786
+ propertyName: "code",
41787
+ mapping: {
41788
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
41789
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
41790
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41791
+ }
41792
+ }
41793
+ },
41794
+ NuevaEpsLookupAffiliationTooManyRequestsError: {
41795
+ type: "object",
41796
+ description: "A failed answer.",
41797
+ additionalProperties: false,
41798
+ required: [
41799
+ "success",
41800
+ "data",
41801
+ "error",
41802
+ "metadata"
41803
+ ],
41804
+ properties: {
41805
+ success: {
41806
+ type: "boolean",
41807
+ enum: [
41808
+ false
41809
+ ]
41810
+ },
41811
+ data: {
41812
+ const: null
41813
+ },
41814
+ error: {
41815
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationTooManyRequestsFailure"
41816
+ },
41817
+ metadata: {
41818
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41819
+ }
41820
+ }
41821
+ },
41822
+ NuevaEpsLookupAffiliationTooManyRequestsFailure: {
41823
+ oneOf: [
41824
+ {
41825
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
41826
+ },
41827
+ {
41828
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41829
+ }
41830
+ ],
41831
+ discriminator: {
41832
+ propertyName: "code",
41833
+ mapping: {
41834
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
41835
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41836
+ }
41837
+ }
41838
+ },
41839
+ NuevaEpsNotConfiguredFailure: {
41840
+ type: "object",
41841
+ description: "This organization has no verified Nueva EPS connection.",
41842
+ additionalProperties: false,
41843
+ required: [
41844
+ "code",
41845
+ "message",
41846
+ "retryable",
41847
+ "data"
41848
+ ],
41849
+ properties: {
41850
+ code: {
41851
+ type: "string",
41852
+ enum: [
41853
+ "NOT_CONFIGURED"
41854
+ ],
41855
+ description: "The failure code, stable across releases."
41856
+ },
41857
+ message: {
41858
+ type: "string",
41859
+ description: "What went wrong, for people; it never contains input values."
41860
+ },
41861
+ retryable: {
41862
+ type: "boolean",
41863
+ enum: [
41864
+ false
41865
+ ],
41866
+ description: "Whether repeating the same request may succeed."
41867
+ },
41868
+ data: {
41869
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41870
+ }
41871
+ }
41872
+ },
41873
+ NuevaEpsOutcomeUnknownFailure: {
41874
+ type: "object",
41875
+ description: "The operation may have been applied; check its result before repeating it.",
41876
+ additionalProperties: false,
41877
+ required: [
41878
+ "code",
41879
+ "message",
41880
+ "retryable",
41881
+ "data"
41882
+ ],
41883
+ properties: {
41884
+ code: {
41885
+ type: "string",
41886
+ enum: [
41887
+ "OUTCOME_UNKNOWN"
41888
+ ],
41889
+ description: "The failure code, stable across releases."
41890
+ },
41891
+ message: {
41892
+ type: "string",
41893
+ description: "What went wrong, for people; it never contains input values."
41894
+ },
41895
+ retryable: {
41896
+ type: "boolean",
41897
+ enum: [
41898
+ false
41899
+ ],
41900
+ description: "Whether repeating the same request may succeed."
41901
+ },
41902
+ data: {
41903
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41904
+ }
41905
+ }
41906
+ },
41907
+ NuevaEpsPortalChangedFailure: {
41908
+ type: "object",
41909
+ description: "The response does not match the verified provider protocol.",
41910
+ additionalProperties: false,
41911
+ required: [
41912
+ "code",
41913
+ "message",
41914
+ "retryable",
41915
+ "data"
41916
+ ],
41917
+ properties: {
41918
+ code: {
41919
+ type: "string",
41920
+ enum: [
41921
+ "PORTAL_CHANGED"
41922
+ ],
41923
+ description: "The failure code, stable across releases."
41924
+ },
41925
+ message: {
41926
+ type: "string",
41927
+ description: "What went wrong, for people; it never contains input values."
41928
+ },
41929
+ retryable: {
41930
+ type: "boolean",
41931
+ enum: [
41932
+ false
41933
+ ],
41934
+ description: "Whether repeating the same request may succeed."
41935
+ },
41936
+ data: {
41937
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41938
+ }
41939
+ }
41940
+ },
41941
+ NuevaEpsPortalUnavailableFailure: {
41942
+ type: "object",
41943
+ description: "The provider portal could not complete this request.",
41944
+ additionalProperties: false,
41945
+ required: [
41946
+ "code",
41947
+ "message",
41948
+ "retryable",
41949
+ "data"
41950
+ ],
41951
+ properties: {
41952
+ code: {
41953
+ type: "string",
41954
+ enum: [
41955
+ "PORTAL_UNAVAILABLE"
41956
+ ],
41957
+ description: "The failure code, stable across releases."
41958
+ },
41959
+ message: {
41960
+ type: "string",
41961
+ description: "What went wrong, for people; it never contains input values."
41962
+ },
41963
+ retryable: {
41964
+ type: "boolean",
41965
+ enum: [
41966
+ false
41967
+ ],
41968
+ description: "Whether repeating the same request may succeed."
41969
+ },
41970
+ data: {
41971
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41972
+ }
41973
+ }
41974
+ },
41975
+ NuevaEpsRateLimitedFailure: {
41976
+ type: "object",
41977
+ description: "The request rate limit was exceeded. Try again later.",
41978
+ additionalProperties: false,
41979
+ required: [
41980
+ "code",
41981
+ "message",
41982
+ "retryable",
41983
+ "data"
41984
+ ],
41985
+ properties: {
41986
+ code: {
41987
+ type: "string",
41988
+ enum: [
41989
+ "RATE_LIMITED"
41990
+ ],
41991
+ description: "The failure code, stable across releases."
41992
+ },
41993
+ message: {
41994
+ type: "string",
41995
+ description: "What went wrong, for people; it never contains input values."
41996
+ },
41997
+ retryable: {
41998
+ type: "boolean",
41999
+ enum: [
42000
+ true
42001
+ ],
42002
+ description: "Whether repeating the same request may succeed."
42003
+ },
42004
+ data: {
42005
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42006
+ }
42007
+ }
42008
+ },
42009
+ NuevaEpsRegionBlockedFailure: {
42010
+ type: "object",
42011
+ description: "This container cannot access the provider login page.",
42012
+ additionalProperties: false,
42013
+ required: [
42014
+ "code",
42015
+ "message",
42016
+ "retryable",
42017
+ "data"
42018
+ ],
42019
+ properties: {
42020
+ code: {
42021
+ type: "string",
42022
+ enum: [
42023
+ "REGION_BLOCKED"
42024
+ ],
42025
+ description: "The failure code, stable across releases."
42026
+ },
42027
+ message: {
42028
+ type: "string",
42029
+ description: "What went wrong, for people; it never contains input values."
42030
+ },
42031
+ retryable: {
42032
+ type: "boolean",
42033
+ enum: [
42034
+ false
42035
+ ],
42036
+ description: "Whether repeating the same request may succeed."
42037
+ },
42038
+ data: {
42039
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42040
+ }
42041
+ }
42042
+ },
42043
+ NuevaEpsRequestTooLargeError: {
42044
+ type: "object",
42045
+ description: "A failed answer.",
42046
+ additionalProperties: false,
42047
+ required: [
42048
+ "success",
42049
+ "data",
42050
+ "error",
42051
+ "metadata"
42052
+ ],
42053
+ properties: {
42054
+ success: {
42055
+ type: "boolean",
42056
+ enum: [
42057
+ false
42058
+ ]
42059
+ },
42060
+ data: {
42061
+ const: null
42062
+ },
42063
+ error: {
42064
+ $ref: "#/components/schemas/NuevaEpsRequestTooLargeFailure"
42065
+ },
42066
+ metadata: {
42067
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42068
+ }
42069
+ }
42070
+ },
42071
+ NuevaEpsRequestTooLargeFailure: {
42072
+ type: "object",
42073
+ description: "The request exceeds the allowed size.",
42074
+ additionalProperties: false,
42075
+ required: [
42076
+ "code",
42077
+ "message",
42078
+ "retryable",
42079
+ "data"
42080
+ ],
42081
+ properties: {
42082
+ code: {
42083
+ type: "string",
42084
+ enum: [
42085
+ "REQUEST_TOO_LARGE"
42086
+ ],
42087
+ description: "The failure code, stable across releases."
42088
+ },
42089
+ message: {
42090
+ type: "string",
42091
+ description: "What went wrong, for people; it never contains input values."
42092
+ },
42093
+ retryable: {
42094
+ type: "boolean",
42095
+ enum: [
42096
+ false
42097
+ ],
42098
+ description: "Whether repeating the same request may succeed."
42099
+ },
42100
+ data: {
42101
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42102
+ }
42103
+ }
42104
+ },
42105
+ NuevaEpsResponseMetadata: {
42106
+ type: "object",
42107
+ description: "What every answer carries besides its data or error.",
42108
+ additionalProperties: false,
42109
+ required: [
42110
+ "requestId"
42111
+ ],
42112
+ properties: {
42113
+ requestId: {
42114
+ type: "string",
42115
+ description: "Request correlation identifier, also sent as X-Request-Id."
42116
+ }
42117
+ }
42118
+ },
42119
+ NuevaEpsSessionBusyFailure: {
42120
+ type: "object",
42121
+ description: "Another session operation is in progress.",
42122
+ additionalProperties: false,
42123
+ required: [
42124
+ "code",
42125
+ "message",
42126
+ "retryable",
42127
+ "data"
42128
+ ],
42129
+ properties: {
42130
+ code: {
42131
+ type: "string",
42132
+ enum: [
42133
+ "SESSION_BUSY"
42134
+ ],
42135
+ description: "The failure code, stable across releases."
42136
+ },
42137
+ message: {
42138
+ type: "string",
42139
+ description: "What went wrong, for people; it never contains input values."
42140
+ },
42141
+ retryable: {
42142
+ type: "boolean",
42143
+ enum: [
42144
+ true
42145
+ ],
42146
+ description: "Whether repeating the same request may succeed."
42147
+ },
42148
+ data: {
42149
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42150
+ }
42151
+ }
42152
+ },
42153
+ NuevaEpsSessionRequiredFailure: {
42154
+ type: "object",
42155
+ description: "The provider session expired. A new bounded login is required.",
42156
+ additionalProperties: false,
42157
+ required: [
42158
+ "code",
42159
+ "message",
42160
+ "retryable",
42161
+ "data"
42162
+ ],
42163
+ properties: {
42164
+ code: {
42165
+ type: "string",
42166
+ enum: [
42167
+ "SESSION_REQUIRED"
42168
+ ],
42169
+ description: "The failure code, stable across releases."
42170
+ },
42171
+ message: {
42172
+ type: "string",
42173
+ description: "What went wrong, for people; it never contains input values."
42174
+ },
42175
+ retryable: {
42176
+ type: "boolean",
42177
+ enum: [
42178
+ false
42179
+ ],
42180
+ description: "Whether repeating the same request may succeed."
42181
+ },
42182
+ data: {
42183
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42184
+ }
42185
+ }
42186
+ },
42187
+ NuevaEpsUnauthorizedError: {
42188
+ type: "object",
42189
+ description: "A failed answer.",
42190
+ additionalProperties: false,
42191
+ required: [
42192
+ "success",
42193
+ "data",
42194
+ "error",
42195
+ "metadata"
42196
+ ],
42197
+ properties: {
42198
+ success: {
42199
+ type: "boolean",
42200
+ enum: [
42201
+ false
42202
+ ]
42203
+ },
42204
+ data: {
42205
+ const: null
42206
+ },
42207
+ error: {
42208
+ $ref: "#/components/schemas/NuevaEpsUnauthorizedFailure"
42209
+ },
42210
+ metadata: {
42211
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42212
+ }
42213
+ }
42214
+ },
42215
+ NuevaEpsUnauthorizedFailure: {
42216
+ type: "object",
42217
+ description: "A valid access token is required.",
42218
+ additionalProperties: false,
42219
+ required: [
42220
+ "code",
42221
+ "message",
42222
+ "retryable",
42223
+ "data"
42224
+ ],
42225
+ properties: {
42226
+ code: {
42227
+ type: "string",
42228
+ enum: [
42229
+ "UNAUTHORIZED"
42230
+ ],
42231
+ description: "The failure code, stable across releases."
42232
+ },
42233
+ message: {
42234
+ type: "string",
42235
+ description: "What went wrong, for people; it never contains input values."
42236
+ },
42237
+ retryable: {
42238
+ type: "boolean",
42239
+ enum: [
42240
+ false
42241
+ ],
42242
+ description: "Whether repeating the same request may succeed."
42243
+ },
42244
+ data: {
42245
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42246
+ }
42247
+ }
42248
+ },
42249
+ NuevaEpsUnsupportedMediaTypeError: {
42250
+ type: "object",
42251
+ description: "A failed answer.",
42252
+ additionalProperties: false,
42253
+ required: [
42254
+ "success",
42255
+ "data",
42256
+ "error",
42257
+ "metadata"
42258
+ ],
42259
+ properties: {
42260
+ success: {
42261
+ type: "boolean",
42262
+ enum: [
42263
+ false
42264
+ ]
42265
+ },
42266
+ data: {
42267
+ const: null
42268
+ },
42269
+ error: {
42270
+ $ref: "#/components/schemas/NuevaEpsUnsupportedMediaTypeFailure"
42271
+ },
42272
+ metadata: {
42273
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42274
+ }
42275
+ }
42276
+ },
42277
+ NuevaEpsUnsupportedMediaTypeFailure: {
42278
+ type: "object",
42279
+ description: "The request content type is not supported.",
42280
+ additionalProperties: false,
42281
+ required: [
42282
+ "code",
42283
+ "message",
42284
+ "retryable",
42285
+ "data"
42286
+ ],
42287
+ properties: {
42288
+ code: {
42289
+ type: "string",
42290
+ enum: [
42291
+ "UNSUPPORTED_MEDIA_TYPE"
42292
+ ],
42293
+ description: "The failure code, stable across releases."
42294
+ },
42295
+ message: {
42296
+ type: "string",
42297
+ description: "What went wrong, for people; it never contains input values."
42298
+ },
42299
+ retryable: {
42300
+ type: "boolean",
42301
+ enum: [
42302
+ false
42303
+ ],
42304
+ description: "Whether repeating the same request may succeed."
42305
+ },
42306
+ data: {
42307
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42308
+ }
42309
+ }
42310
+ },
42311
+ NuevaEpsUpstreamTimeoutError: {
42312
+ type: "object",
42313
+ description: "A failed answer.",
42314
+ additionalProperties: false,
42315
+ required: [
42316
+ "success",
42317
+ "data",
42318
+ "error",
42319
+ "metadata"
42320
+ ],
42321
+ properties: {
42322
+ success: {
42323
+ type: "boolean",
42324
+ enum: [
42325
+ false
42326
+ ]
42327
+ },
42328
+ data: {
42329
+ const: null
42330
+ },
42331
+ error: {
42332
+ $ref: "#/components/schemas/NuevaEpsUpstreamTimeoutFailure"
42333
+ },
42334
+ metadata: {
42335
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42336
+ }
42337
+ }
42338
+ },
42339
+ NuevaEpsUpstreamTimeoutFailure: {
42340
+ type: "object",
42341
+ description: "The upstream service did not respond before its deadline.",
42342
+ additionalProperties: false,
42343
+ required: [
42344
+ "code",
42345
+ "message",
42346
+ "retryable",
42347
+ "data"
42348
+ ],
42349
+ properties: {
42350
+ code: {
42351
+ type: "string",
42352
+ enum: [
42353
+ "UPSTREAM_TIMEOUT"
42354
+ ],
42355
+ description: "The failure code, stable across releases."
42356
+ },
42357
+ message: {
42358
+ type: "string",
42359
+ description: "What went wrong, for people; it never contains input values."
42360
+ },
42361
+ retryable: {
42362
+ type: "boolean",
42363
+ enum: [
42364
+ true
42365
+ ],
42366
+ description: "Whether repeating the same request may succeed."
42367
+ },
42368
+ data: {
42369
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42370
+ }
42371
+ }
42372
+ },
42373
+ NuevaEpsUpstreamUnavailableFailure: {
42374
+ type: "object",
42375
+ description: "The upstream service could not complete the request.",
42376
+ additionalProperties: false,
42377
+ required: [
42378
+ "code",
42379
+ "message",
42380
+ "retryable",
42381
+ "data"
42382
+ ],
42383
+ properties: {
42384
+ code: {
42385
+ type: "string",
42386
+ enum: [
42387
+ "UPSTREAM_UNAVAILABLE"
42388
+ ],
42389
+ description: "The failure code, stable across releases."
42390
+ },
42391
+ message: {
42392
+ type: "string",
42393
+ description: "What went wrong, for people; it never contains input values."
42394
+ },
42395
+ retryable: {
42396
+ type: "boolean",
42397
+ enum: [
42398
+ true
42399
+ ],
42400
+ description: "Whether repeating the same request may succeed."
42401
+ },
42402
+ data: {
42403
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42404
+ }
42405
+ }
42406
+ },
42407
+ NuevaEpsVerifyConnectionBadGatewayError: {
42408
+ type: "object",
42409
+ description: "A failed answer.",
42410
+ additionalProperties: false,
42411
+ required: [
42412
+ "success",
42413
+ "data",
42414
+ "error",
42415
+ "metadata"
42416
+ ],
42417
+ properties: {
42418
+ success: {
42419
+ type: "boolean",
42420
+ enum: [
42421
+ false
42422
+ ]
42423
+ },
42424
+ data: {
42425
+ const: null
42426
+ },
42427
+ error: {
42428
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionBadGatewayFailure"
42429
+ },
42430
+ metadata: {
42431
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42432
+ }
42433
+ }
42434
+ },
42435
+ NuevaEpsVerifyConnectionBadGatewayFailure: {
42436
+ oneOf: [
42437
+ {
42438
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
42439
+ },
42440
+ {
42441
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
42442
+ }
42443
+ ],
42444
+ discriminator: {
42445
+ propertyName: "code",
42446
+ mapping: {
42447
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
42448
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
42449
+ }
42450
+ }
42451
+ },
42452
+ NuevaEpsVerifyConnectionBody: {
42453
+ additionalProperties: false,
42454
+ type: "object",
42455
+ required: [
42456
+ "name",
42457
+ "username",
42458
+ "password",
42459
+ "documentType"
42460
+ ],
42461
+ properties: {
42462
+ name: {
42463
+ minLength: 1,
42464
+ maxLength: 80,
42465
+ type: "string"
42466
+ },
42467
+ username: {
42468
+ minLength: 1,
42469
+ maxLength: 100,
42470
+ description: "Provider portal login identifier; separate from the member document being queried.",
42471
+ type: "string"
42472
+ },
42473
+ password: {
42474
+ minLength: 1,
42475
+ maxLength: 200,
42476
+ writeOnly: true,
42477
+ type: "string"
42478
+ },
42479
+ documentType: {
42480
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
42481
+ anyOf: [
42482
+ {
42483
+ const: "AS",
42484
+ type: "string"
40534
42485
  },
40535
42486
  {
40536
- additionalProperties: false,
40537
- type: "object",
40538
- required: [
40539
- "code",
40540
- "message",
40541
- "retryable",
40542
- "data"
40543
- ],
40544
- properties: {
40545
- code: {
40546
- const: "INTERNAL_ERROR",
40547
- type: "string"
40548
- },
40549
- message: {
40550
- const: "The service could not complete the operation.",
40551
- type: "string"
40552
- },
40553
- retryable: {
40554
- const: false,
40555
- type: "boolean"
40556
- },
40557
- data: {
40558
- additionalProperties: false,
40559
- type: "object",
40560
- properties: {}
40561
- }
40562
- }
42487
+ const: "CC",
42488
+ type: "string"
42489
+ },
42490
+ {
42491
+ const: "CD",
42492
+ type: "string"
40563
42493
  },
40564
42494
  {
40565
- additionalProperties: false,
40566
- type: "object",
40567
- required: [
40568
- "code",
40569
- "message",
40570
- "retryable",
40571
- "data"
40572
- ],
40573
- properties: {
40574
- code: {
40575
- const: "UPSTREAM_UNAVAILABLE",
40576
- type: "string"
40577
- },
40578
- message: {
40579
- const: "The upstream service could not complete the request.",
40580
- type: "string"
40581
- },
40582
- retryable: {
40583
- const: true,
40584
- type: "boolean"
40585
- },
40586
- data: {
40587
- additionalProperties: false,
40588
- type: "object",
40589
- properties: {}
40590
- }
40591
- }
42495
+ const: "CE",
42496
+ type: "string"
40592
42497
  },
40593
42498
  {
40594
- additionalProperties: false,
40595
- type: "object",
40596
- required: [
40597
- "code",
40598
- "message",
40599
- "retryable",
40600
- "data"
40601
- ],
40602
- properties: {
40603
- code: {
40604
- const: "UPSTREAM_TIMEOUT",
40605
- type: "string"
40606
- },
40607
- message: {
40608
- const: "The upstream service did not respond before its deadline.",
40609
- type: "string"
40610
- },
40611
- retryable: {
40612
- const: true,
40613
- type: "boolean"
40614
- },
40615
- data: {
40616
- additionalProperties: false,
40617
- type: "object",
40618
- properties: {}
40619
- }
40620
- }
42499
+ const: "CN",
42500
+ type: "string"
40621
42501
  },
40622
42502
  {
40623
- additionalProperties: false,
40624
- type: "object",
40625
- required: [
40626
- "code",
40627
- "message",
40628
- "retryable",
40629
- "data"
40630
- ],
40631
- properties: {
40632
- code: {
40633
- const: "OUTCOME_UNKNOWN",
40634
- type: "string"
40635
- },
40636
- message: {
40637
- const: "The operation may have been applied; check its result before repeating it.",
40638
- type: "string"
40639
- },
40640
- retryable: {
40641
- const: false,
40642
- type: "boolean"
40643
- },
40644
- data: {
40645
- additionalProperties: false,
40646
- type: "object",
40647
- properties: {}
40648
- }
40649
- }
42503
+ const: "ME",
42504
+ type: "string"
40650
42505
  },
40651
42506
  {
40652
- additionalProperties: false,
40653
- type: "object",
40654
- required: [
40655
- "code",
40656
- "message",
40657
- "retryable",
40658
- "data"
40659
- ],
40660
- properties: {
40661
- code: {
40662
- const: "NOT_CONFIGURED",
40663
- type: "string"
40664
- },
40665
- message: {
40666
- const: "This organization has no verified Nueva EPS connection.",
40667
- type: "string"
40668
- },
40669
- retryable: {
40670
- const: false,
40671
- type: "boolean"
40672
- },
40673
- data: {
40674
- additionalProperties: false,
40675
- type: "object",
40676
- properties: {}
40677
- }
40678
- }
42507
+ const: "NT",
42508
+ type: "string"
40679
42509
  },
40680
42510
  {
40681
- additionalProperties: false,
40682
- type: "object",
40683
- required: [
40684
- "code",
40685
- "message",
40686
- "retryable",
40687
- "data"
40688
- ],
40689
- properties: {
40690
- code: {
40691
- const: "LOGIN_REJECTED",
40692
- type: "string"
40693
- },
40694
- message: {
40695
- const: "Nueva EPS did not accept the provider login. Do not retry automatically.",
40696
- type: "string"
40697
- },
40698
- retryable: {
40699
- const: false,
40700
- type: "boolean"
40701
- },
40702
- data: {
40703
- additionalProperties: false,
40704
- type: "object",
40705
- properties: {}
40706
- }
40707
- }
42511
+ const: "NU",
42512
+ type: "string"
40708
42513
  },
40709
42514
  {
40710
- additionalProperties: false,
40711
- type: "object",
40712
- required: [
40713
- "code",
40714
- "message",
40715
- "retryable",
40716
- "data"
40717
- ],
40718
- properties: {
40719
- code: {
40720
- const: "PORTAL_UNAVAILABLE",
40721
- type: "string"
40722
- },
40723
- message: {
40724
- const: "The provider portal could not complete this request.",
40725
- type: "string"
40726
- },
40727
- retryable: {
40728
- const: false,
40729
- type: "boolean"
40730
- },
40731
- data: {
40732
- additionalProperties: false,
40733
- type: "object",
40734
- properties: {}
40735
- }
40736
- }
42515
+ const: "PC",
42516
+ type: "string"
40737
42517
  },
40738
42518
  {
40739
- additionalProperties: false,
40740
- type: "object",
40741
- required: [
40742
- "code",
40743
- "message",
40744
- "retryable",
40745
- "data"
40746
- ],
40747
- properties: {
40748
- code: {
40749
- const: "REGION_BLOCKED",
40750
- type: "string"
40751
- },
40752
- message: {
40753
- const: "This container cannot access the provider login page.",
40754
- type: "string"
40755
- },
40756
- retryable: {
40757
- const: false,
40758
- type: "boolean"
40759
- },
40760
- data: {
40761
- additionalProperties: false,
40762
- type: "object",
40763
- properties: {}
40764
- }
40765
- }
42519
+ const: "PE",
42520
+ type: "string"
40766
42521
  },
40767
42522
  {
40768
- additionalProperties: false,
40769
- type: "object",
40770
- required: [
40771
- "code",
40772
- "message",
40773
- "retryable",
40774
- "data"
40775
- ],
40776
- properties: {
40777
- code: {
40778
- const: "PORTAL_CHANGED",
40779
- type: "string"
40780
- },
40781
- message: {
40782
- const: "The response does not match the verified provider protocol.",
40783
- type: "string"
40784
- },
40785
- retryable: {
40786
- const: false,
40787
- type: "boolean"
40788
- },
40789
- data: {
40790
- additionalProperties: false,
40791
- type: "object",
40792
- properties: {}
40793
- }
40794
- }
42523
+ const: "PS",
42524
+ type: "string"
40795
42525
  },
40796
42526
  {
40797
- additionalProperties: false,
40798
- type: "object",
40799
- required: [
40800
- "code",
40801
- "message",
40802
- "retryable",
40803
- "data"
40804
- ],
40805
- properties: {
40806
- code: {
40807
- const: "AUTHORIZATIONS_UNAVAILABLE",
40808
- type: "string"
40809
- },
40810
- message: {
40811
- const: "The provider authorization lookup has not been verified. No empty result is implied.",
40812
- type: "string"
40813
- },
40814
- retryable: {
40815
- const: false,
40816
- type: "boolean"
40817
- },
40818
- data: {
40819
- additionalProperties: false,
40820
- type: "object",
40821
- properties: {}
40822
- }
40823
- }
42527
+ const: "PT",
42528
+ type: "string"
40824
42529
  },
40825
42530
  {
40826
- additionalProperties: false,
40827
- type: "object",
40828
- required: [
40829
- "code",
40830
- "message",
40831
- "retryable",
40832
- "data"
40833
- ],
40834
- properties: {
40835
- code: {
40836
- const: "SESSION_REQUIRED",
40837
- type: "string"
40838
- },
40839
- message: {
40840
- const: "The provider session expired. A new bounded login is required.",
40841
- type: "string"
40842
- },
40843
- retryable: {
40844
- const: false,
40845
- type: "boolean"
40846
- },
40847
- data: {
40848
- additionalProperties: false,
40849
- type: "object",
40850
- properties: {}
40851
- }
40852
- }
42531
+ const: "RC",
42532
+ type: "string"
40853
42533
  },
40854
42534
  {
40855
- additionalProperties: false,
40856
- type: "object",
40857
- required: [
40858
- "code",
40859
- "message",
40860
- "retryable",
40861
- "data"
40862
- ],
40863
- properties: {
40864
- code: {
40865
- const: "SESSION_BUSY",
40866
- type: "string"
40867
- },
40868
- message: {
40869
- const: "Another session operation is in progress.",
40870
- type: "string"
40871
- },
40872
- retryable: {
40873
- const: true,
40874
- type: "boolean"
40875
- },
40876
- data: {
40877
- additionalProperties: false,
40878
- type: "object",
40879
- properties: {}
40880
- }
40881
- }
42535
+ const: "SC",
42536
+ type: "string"
40882
42537
  },
40883
42538
  {
40884
- additionalProperties: false,
40885
- type: "object",
40886
- required: [
40887
- "code",
40888
- "message",
40889
- "retryable",
40890
- "data"
40891
- ],
40892
- properties: {
40893
- code: {
40894
- const: "LOGIN_COOLDOWN",
40895
- type: "string"
40896
- },
40897
- message: {
40898
- const: "Login attempts are temporarily paused after a submitted or uncertain attempt.",
40899
- type: "string"
40900
- },
40901
- retryable: {
40902
- const: false,
40903
- type: "boolean"
40904
- },
40905
- data: {
40906
- additionalProperties: false,
40907
- type: "object",
40908
- properties: {}
40909
- }
40910
- }
42539
+ const: "TI",
42540
+ type: "string"
40911
42541
  }
40912
42542
  ]
42543
+ }
42544
+ }
42545
+ },
42546
+ NuevaEpsVerifyConnectionConflictError: {
42547
+ type: "object",
42548
+ description: "A failed answer.",
42549
+ additionalProperties: false,
42550
+ required: [
42551
+ "success",
42552
+ "data",
42553
+ "error",
42554
+ "metadata"
42555
+ ],
42556
+ properties: {
42557
+ success: {
42558
+ type: "boolean",
42559
+ enum: [
42560
+ false
42561
+ ]
42562
+ },
42563
+ data: {
42564
+ const: null
42565
+ },
42566
+ error: {
42567
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionConflictFailure"
40913
42568
  },
40914
42569
  metadata: {
40915
- $ref: "#/components/schemas/ResponseMetadata"
42570
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42571
+ }
42572
+ }
42573
+ },
42574
+ NuevaEpsVerifyConnectionConflictFailure: {
42575
+ oneOf: [
42576
+ {
42577
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
42578
+ },
42579
+ {
42580
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
42581
+ },
42582
+ {
42583
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
42584
+ }
42585
+ ],
42586
+ discriminator: {
42587
+ propertyName: "code",
42588
+ mapping: {
42589
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
42590
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
42591
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
42592
+ }
42593
+ }
42594
+ },
42595
+ NuevaEpsVerifyConnectionForbiddenError: {
42596
+ type: "object",
42597
+ description: "A failed answer.",
42598
+ additionalProperties: false,
42599
+ required: [
42600
+ "success",
42601
+ "data",
42602
+ "error",
42603
+ "metadata"
42604
+ ],
42605
+ properties: {
42606
+ success: {
42607
+ type: "boolean",
42608
+ enum: [
42609
+ false
42610
+ ]
42611
+ },
42612
+ data: {
42613
+ const: null
42614
+ },
42615
+ error: {
42616
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionForbiddenFailure"
42617
+ },
42618
+ metadata: {
42619
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42620
+ }
42621
+ }
42622
+ },
42623
+ NuevaEpsVerifyConnectionForbiddenFailure: {
42624
+ oneOf: [
42625
+ {
42626
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
42627
+ },
42628
+ {
42629
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
42630
+ }
42631
+ ],
42632
+ discriminator: {
42633
+ propertyName: "code",
42634
+ mapping: {
42635
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
42636
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
42637
+ }
42638
+ }
42639
+ },
42640
+ NuevaEpsVerifyConnectionResult: {
42641
+ anyOf: [
42642
+ {
42643
+ additionalProperties: false,
42644
+ type: "object",
42645
+ required: [
42646
+ "status",
42647
+ "stateRef",
42648
+ "summary"
42649
+ ],
42650
+ properties: {
42651
+ status: {
42652
+ const: "active",
42653
+ type: "string"
42654
+ },
42655
+ stateRef: {
42656
+ type: "string"
42657
+ },
42658
+ summary: {
42659
+ type: "string"
42660
+ }
42661
+ }
42662
+ },
42663
+ {
42664
+ additionalProperties: false,
42665
+ type: "object",
42666
+ required: [
42667
+ "status",
42668
+ "errorCode"
42669
+ ],
42670
+ properties: {
42671
+ status: {
42672
+ const: "rejected",
42673
+ type: "string"
42674
+ },
42675
+ errorCode: {
42676
+ type: "string"
42677
+ }
42678
+ }
42679
+ }
42680
+ ]
42681
+ },
42682
+ NuevaEpsVerifyConnectionResultResponse: {
42683
+ type: "object",
42684
+ description: "A successful answer.",
42685
+ additionalProperties: false,
42686
+ required: [
42687
+ "success",
42688
+ "data",
42689
+ "error",
42690
+ "metadata"
42691
+ ],
42692
+ properties: {
42693
+ success: {
42694
+ type: "boolean",
42695
+ enum: [
42696
+ true
42697
+ ]
42698
+ },
42699
+ data: {
42700
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionResult"
42701
+ },
42702
+ error: {
42703
+ const: null
42704
+ },
42705
+ metadata: {
42706
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42707
+ }
42708
+ }
42709
+ },
42710
+ NuevaEpsVerifyConnectionServiceUnavailableError: {
42711
+ type: "object",
42712
+ description: "A failed answer.",
42713
+ additionalProperties: false,
42714
+ required: [
42715
+ "success",
42716
+ "data",
42717
+ "error",
42718
+ "metadata"
42719
+ ],
42720
+ properties: {
42721
+ success: {
42722
+ type: "boolean",
42723
+ enum: [
42724
+ false
42725
+ ]
42726
+ },
42727
+ data: {
42728
+ const: null
42729
+ },
42730
+ error: {
42731
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionServiceUnavailableFailure"
42732
+ },
42733
+ metadata: {
42734
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42735
+ }
42736
+ }
42737
+ },
42738
+ NuevaEpsVerifyConnectionServiceUnavailableFailure: {
42739
+ oneOf: [
42740
+ {
42741
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
42742
+ },
42743
+ {
42744
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
42745
+ },
42746
+ {
42747
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
42748
+ }
42749
+ ],
42750
+ discriminator: {
42751
+ propertyName: "code",
42752
+ mapping: {
42753
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
42754
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
42755
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
42756
+ }
42757
+ }
42758
+ },
42759
+ NuevaEpsVerifyConnectionTooManyRequestsError: {
42760
+ type: "object",
42761
+ description: "A failed answer.",
42762
+ additionalProperties: false,
42763
+ required: [
42764
+ "success",
42765
+ "data",
42766
+ "error",
42767
+ "metadata"
42768
+ ],
42769
+ properties: {
42770
+ success: {
42771
+ type: "boolean",
42772
+ enum: [
42773
+ false
42774
+ ]
42775
+ },
42776
+ data: {
42777
+ const: null
42778
+ },
42779
+ error: {
42780
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionTooManyRequestsFailure"
42781
+ },
42782
+ metadata: {
42783
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42784
+ }
42785
+ }
42786
+ },
42787
+ NuevaEpsVerifyConnectionTooManyRequestsFailure: {
42788
+ oneOf: [
42789
+ {
42790
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
42791
+ },
42792
+ {
42793
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
42794
+ }
42795
+ ],
42796
+ discriminator: {
42797
+ propertyName: "code",
42798
+ mapping: {
42799
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
42800
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40916
42801
  }
40917
42802
  }
40918
42803
  },
@@ -41526,6 +43411,8 @@ var schemaComponents = {
41526
43411
  additionalProperties: false,
41527
43412
  type: "object",
41528
43413
  required: [
43414
+ "humanEscalation",
43415
+ "recoveryManager",
41529
43416
  "automaticKnowledge",
41530
43417
  "attachmentReader",
41531
43418
  "budgetExhaustedMessage",
@@ -41535,6 +43422,7 @@ var schemaComponents = {
41535
43422
  "followUpMessage",
41536
43423
  "greeting",
41537
43424
  "humanReplyTimeoutMinutes",
43425
+ "investigationsEnabled",
41538
43426
  "model",
41539
43427
  "modelTrial",
41540
43428
  "monthlyTokenBudget",
@@ -41549,6 +43437,145 @@ var schemaComponents = {
41549
43437
  "voice"
41550
43438
  ],
41551
43439
  properties: {
43440
+ humanEscalation: {
43441
+ anyOf: [
43442
+ {
43443
+ description: "Per-Agent human escalation policy. Instructions apply to voice and text. Null keeps the default instructions. A WhatsApp handoff stays with the team until a person explicitly resumes AI; no timeout resumes it.",
43444
+ additionalProperties: false,
43445
+ type: "object",
43446
+ required: [
43447
+ "instructions"
43448
+ ],
43449
+ properties: {
43450
+ instructions: {
43451
+ anyOf: [
43452
+ {
43453
+ maxLength: 4000,
43454
+ description: "When this Agent should ask the business's team to intervene, using only its available handoff capabilities. Null keeps the default instructions; an explicit request for a person is always respected.",
43455
+ type: "string"
43456
+ },
43457
+ {
43458
+ type: "null"
43459
+ }
43460
+ ]
43461
+ }
43462
+ }
43463
+ },
43464
+ {
43465
+ type: "null"
43466
+ }
43467
+ ]
43468
+ },
43469
+ recoveryManager: {
43470
+ anyOf: [
43471
+ {
43472
+ description: "Optional WhatsApp recovery advisor. Null or enabled=false disables it. One tool-free model call per turn before autonomous escalation or after terminal provider failure; unresolved terminal recovery hands off. Completed handoffs and conservatively recognized human requests bypass generation. Model selects the existing provider route. Prices must be conservative upper bounds including provider overhead; missing or invalid prices disable recovery. The cost bound covers only the advisor. No tools or automatic provider retries.",
43473
+ additionalProperties: false,
43474
+ type: "object",
43475
+ required: [
43476
+ "enabled",
43477
+ "model",
43478
+ "maxAttempts",
43479
+ "timeoutMs",
43480
+ "maxInputTokens",
43481
+ "maxOutputTokens",
43482
+ "maxCostUsd",
43483
+ "inputUsdPerMillion",
43484
+ "outputUsdPerMillion"
43485
+ ],
43486
+ properties: {
43487
+ enabled: {
43488
+ type: "boolean"
43489
+ },
43490
+ instructions: {
43491
+ anyOf: [
43492
+ {
43493
+ maxLength: 4000,
43494
+ description: "Operator criteria for when the recovery advisor should help or leave the case to a person. They never override consent, tool permissions, unknown-write fences or an explicit human request. Null keeps the default criteria.",
43495
+ type: "string"
43496
+ },
43497
+ {
43498
+ type: "null"
43499
+ }
43500
+ ]
43501
+ },
43502
+ advisorAgentId: {
43503
+ anyOf: [
43504
+ {
43505
+ description: "Optional active text Agent in the same organization, other than this Agent, whose instructions and skills provide specialist guidance. The configured recovery model and cost bounds stay unchanged; no specialist tools or conversation history are accessed.",
43506
+ examples: [
43507
+ "agt_01m45h8q2rf3t9w6y7z0b1c2d3"
43508
+ ],
43509
+ pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
43510
+ type: "string"
43511
+ },
43512
+ {
43513
+ type: "null"
43514
+ }
43515
+ ]
43516
+ },
43517
+ model: {
43518
+ description: "`arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents.",
43519
+ anyOf: [
43520
+ {
43521
+ const: "arbolito/agile",
43522
+ type: "string"
43523
+ },
43524
+ {
43525
+ const: "arbolito/balanced",
43526
+ type: "string"
43527
+ },
43528
+ {
43529
+ const: "arbolito/advanced",
43530
+ type: "string"
43531
+ },
43532
+ {
43533
+ const: "arbolito/top",
43534
+ type: "string"
43535
+ }
43536
+ ]
43537
+ },
43538
+ maxAttempts: {
43539
+ const: 1,
43540
+ type: "number"
43541
+ },
43542
+ timeoutMs: {
43543
+ minimum: 100,
43544
+ maximum: 15000,
43545
+ type: "integer"
43546
+ },
43547
+ maxInputTokens: {
43548
+ minimum: 4096,
43549
+ maximum: 32768,
43550
+ type: "integer"
43551
+ },
43552
+ maxOutputTokens: {
43553
+ minimum: 128,
43554
+ maximum: 1024,
43555
+ type: "integer"
43556
+ },
43557
+ maxCostUsd: {
43558
+ exclusiveMinimum: 0,
43559
+ maximum: 1,
43560
+ type: "number"
43561
+ },
43562
+ inputUsdPerMillion: {
43563
+ exclusiveMinimum: 0,
43564
+ maximum: 1000,
43565
+ type: "number"
43566
+ },
43567
+ outputUsdPerMillion: {
43568
+ exclusiveMinimum: 0,
43569
+ maximum: 1000,
43570
+ type: "number"
43571
+ }
43572
+ }
43573
+ },
43574
+ {
43575
+ type: "null"
43576
+ }
43577
+ ]
43578
+ },
41552
43579
  automaticKnowledge: {
41553
43580
  anyOf: [
41554
43581
  {
@@ -41657,7 +43684,7 @@ var schemaComponents = {
41657
43684
  humanReplyTimeoutMinutes: {
41658
43685
  anyOf: [
41659
43686
  {
41660
- description: "Text Agents on WhatsApp. When automatic replies are paused for a contact (the Agent handed the conversation to a person, or a person took over) and the contact's newest message waits this many minutes without an answer from a person, the Agent answers again. Null: only a person resumes automatic replies.",
43687
+ description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff always stays with the team until a person explicitly resumes AI. Null: only a person resumes automatic replies.",
41661
43688
  maximum: 1440,
41662
43689
  minimum: 1,
41663
43690
  type: "integer"
@@ -41667,6 +43694,17 @@ var schemaComponents = {
41667
43694
  }
41668
43695
  ]
41669
43696
  },
43697
+ investigationsEnabled: {
43698
+ anyOf: [
43699
+ {
43700
+ description: "Opt this Agent into internal root-cause investigations of tool failures, human escalations, failed outcomes and negative feedback. Incidents are grouped only with participating Agents in the same organization. Null or false: disabled. Turning this off stops new events and pending dispatch when no participating Agent remains; an already active investigation may finish.",
43701
+ type: "boolean"
43702
+ },
43703
+ {
43704
+ type: "null"
43705
+ }
43706
+ ]
43707
+ },
41670
43708
  model: {
41671
43709
  anyOf: [
41672
43710
  {
@@ -41849,6 +43887,145 @@ var schemaComponents = {
41849
43887
  additionalProperties: false,
41850
43888
  type: "object",
41851
43889
  properties: {
43890
+ humanEscalation: {
43891
+ anyOf: [
43892
+ {
43893
+ description: "Per-Agent human escalation policy. Instructions apply to voice and text. Null keeps the default instructions. A WhatsApp handoff stays with the team until a person explicitly resumes AI; no timeout resumes it.",
43894
+ additionalProperties: false,
43895
+ type: "object",
43896
+ required: [
43897
+ "instructions"
43898
+ ],
43899
+ properties: {
43900
+ instructions: {
43901
+ anyOf: [
43902
+ {
43903
+ maxLength: 4000,
43904
+ description: "When this Agent should ask the business's team to intervene, using only its available handoff capabilities. Null keeps the default instructions; an explicit request for a person is always respected.",
43905
+ type: "string"
43906
+ },
43907
+ {
43908
+ type: "null"
43909
+ }
43910
+ ]
43911
+ }
43912
+ }
43913
+ },
43914
+ {
43915
+ type: "null"
43916
+ }
43917
+ ]
43918
+ },
43919
+ recoveryManager: {
43920
+ anyOf: [
43921
+ {
43922
+ description: "Optional WhatsApp recovery advisor. Null or enabled=false disables it. One tool-free model call per turn before autonomous escalation or after terminal provider failure; unresolved terminal recovery hands off. Completed handoffs and conservatively recognized human requests bypass generation. Model selects the existing provider route. Prices must be conservative upper bounds including provider overhead; missing or invalid prices disable recovery. The cost bound covers only the advisor. No tools or automatic provider retries.",
43923
+ additionalProperties: false,
43924
+ type: "object",
43925
+ required: [
43926
+ "enabled",
43927
+ "model",
43928
+ "maxAttempts",
43929
+ "timeoutMs",
43930
+ "maxInputTokens",
43931
+ "maxOutputTokens",
43932
+ "maxCostUsd",
43933
+ "inputUsdPerMillion",
43934
+ "outputUsdPerMillion"
43935
+ ],
43936
+ properties: {
43937
+ enabled: {
43938
+ type: "boolean"
43939
+ },
43940
+ instructions: {
43941
+ anyOf: [
43942
+ {
43943
+ maxLength: 4000,
43944
+ description: "Operator criteria for when the recovery advisor should help or leave the case to a person. They never override consent, tool permissions, unknown-write fences or an explicit human request. Null keeps the default criteria.",
43945
+ type: "string"
43946
+ },
43947
+ {
43948
+ type: "null"
43949
+ }
43950
+ ]
43951
+ },
43952
+ advisorAgentId: {
43953
+ anyOf: [
43954
+ {
43955
+ description: "Optional active text Agent in the same organization, other than this Agent, whose instructions and skills provide specialist guidance. The configured recovery model and cost bounds stay unchanged; no specialist tools or conversation history are accessed.",
43956
+ examples: [
43957
+ "agt_01m45h8q2rf3t9w6y7z0b1c2d3"
43958
+ ],
43959
+ pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
43960
+ type: "string"
43961
+ },
43962
+ {
43963
+ type: "null"
43964
+ }
43965
+ ]
43966
+ },
43967
+ model: {
43968
+ description: "`arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents.",
43969
+ anyOf: [
43970
+ {
43971
+ const: "arbolito/agile",
43972
+ type: "string"
43973
+ },
43974
+ {
43975
+ const: "arbolito/balanced",
43976
+ type: "string"
43977
+ },
43978
+ {
43979
+ const: "arbolito/advanced",
43980
+ type: "string"
43981
+ },
43982
+ {
43983
+ const: "arbolito/top",
43984
+ type: "string"
43985
+ }
43986
+ ]
43987
+ },
43988
+ maxAttempts: {
43989
+ const: 1,
43990
+ type: "number"
43991
+ },
43992
+ timeoutMs: {
43993
+ minimum: 100,
43994
+ maximum: 15000,
43995
+ type: "integer"
43996
+ },
43997
+ maxInputTokens: {
43998
+ minimum: 4096,
43999
+ maximum: 32768,
44000
+ type: "integer"
44001
+ },
44002
+ maxOutputTokens: {
44003
+ minimum: 128,
44004
+ maximum: 1024,
44005
+ type: "integer"
44006
+ },
44007
+ maxCostUsd: {
44008
+ exclusiveMinimum: 0,
44009
+ maximum: 1,
44010
+ type: "number"
44011
+ },
44012
+ inputUsdPerMillion: {
44013
+ exclusiveMinimum: 0,
44014
+ maximum: 1000,
44015
+ type: "number"
44016
+ },
44017
+ outputUsdPerMillion: {
44018
+ exclusiveMinimum: 0,
44019
+ maximum: 1000,
44020
+ type: "number"
44021
+ }
44022
+ }
44023
+ },
44024
+ {
44025
+ type: "null"
44026
+ }
44027
+ ]
44028
+ },
41852
44029
  automaticKnowledge: {
41853
44030
  anyOf: [
41854
44031
  {
@@ -41969,7 +44146,7 @@ var schemaComponents = {
41969
44146
  humanReplyTimeoutMinutes: {
41970
44147
  anyOf: [
41971
44148
  {
41972
- description: "Text Agents on WhatsApp. When automatic replies are paused for a contact (the Agent handed the conversation to a person, or a person took over) and the contact's newest message waits this many minutes without an answer from a person, the Agent answers again. Null: only a person resumes automatic replies.",
44149
+ description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff always stays with the team until a person explicitly resumes AI. Null: only a person resumes automatic replies.",
41973
44150
  maximum: 1440,
41974
44151
  minimum: 1,
41975
44152
  type: "integer"
@@ -41979,6 +44156,17 @@ var schemaComponents = {
41979
44156
  }
41980
44157
  ]
41981
44158
  },
44159
+ investigationsEnabled: {
44160
+ anyOf: [
44161
+ {
44162
+ description: "Opt this Agent into internal root-cause investigations of tool failures, human escalations, failed outcomes and negative feedback. Incidents are grouped only with participating Agents in the same organization. Null or false: disabled. Turning this off stops new events and pending dispatch when no participating Agent remains; an already active investigation may finish.",
44163
+ type: "boolean"
44164
+ },
44165
+ {
44166
+ type: "null"
44167
+ }
44168
+ ]
44169
+ },
41982
44170
  model: {
41983
44171
  anyOf: [
41984
44172
  {
@@ -42336,6 +44524,10 @@ var schemaComponents = {
42336
44524
  description: "Replace numbers entered on the phone keypad with <REDACTED> in stored transcripts and analysis. False (the default) keeps them visible. Applies to future calls; the Agent still receives the digits during the call.",
42337
44525
  type: "boolean"
42338
44526
  },
44527
+ responseDelayMessages: {
44528
+ description: "Speak a short contextual message while preparing a slow response. False disables automatic delay messages. Omitted preserves the current runtime setting.",
44529
+ type: "boolean"
44530
+ },
42339
44531
  silenceEndCallTimeoutSeconds: {
42340
44532
  anyOf: [
42341
44533
  {
@@ -42398,6 +44590,41 @@ var schemaComponents = {
42398
44590
  }
42399
44591
  ]
42400
44592
  },
44593
+ backupModels: {
44594
+ anyOf: [
44595
+ {
44596
+ minItems: 1,
44597
+ maxItems: 3,
44598
+ uniqueItems: true,
44599
+ description: "Ordered backup tiers when the primary voice model fails. Null restores the runtime default. Omitted preserves the current runtime setting. An empty list is not allowed because calls need a fallback.",
44600
+ type: "array",
44601
+ items: {
44602
+ description: "`arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents.",
44603
+ anyOf: [
44604
+ {
44605
+ const: "arbolito/agile",
44606
+ type: "string"
44607
+ },
44608
+ {
44609
+ const: "arbolito/balanced",
44610
+ type: "string"
44611
+ },
44612
+ {
44613
+ const: "arbolito/advanced",
44614
+ type: "string"
44615
+ },
44616
+ {
44617
+ const: "arbolito/top",
44618
+ type: "string"
44619
+ }
44620
+ ]
44621
+ }
44622
+ },
44623
+ {
44624
+ type: "null"
44625
+ }
44626
+ ]
44627
+ },
42401
44628
  llm: {
42402
44629
  anyOf: [
42403
44630
  {
@@ -65525,9 +67752,7 @@ var schemaComponents = {
65525
67752
  }
65526
67753
  },
65527
67754
  NuevaEpsConnectionsListInput: {
65528
- additionalProperties: false,
65529
67755
  type: "object",
65530
- required: [],
65531
67756
  properties: {
65532
67757
  cursor: {
65533
67758
  description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
@@ -65554,23 +67779,19 @@ var schemaComponents = {
65554
67779
  type: "integer",
65555
67780
  default: 25
65556
67781
  }
65557
- }
67782
+ },
67783
+ additionalProperties: false
65558
67784
  },
65559
67785
  NuevaEpsConnectionsVerifyInput: {
65560
67786
  additionalProperties: false,
65561
67787
  type: "object",
65562
67788
  required: [
65563
- "connectionId",
65564
67789
  "name",
65565
67790
  "username",
65566
67791
  "password",
65567
67792
  "documentType"
65568
67793
  ],
65569
67794
  properties: {
65570
- connectionId: {
65571
- pattern: "^con_[0-9A-Za-z]{26}$",
65572
- type: "string"
65573
- },
65574
67795
  name: {
65575
67796
  minLength: 1,
65576
67797
  maxLength: 80,
@@ -65656,30 +67877,32 @@ var schemaComponents = {
65656
67877
  }
65657
67878
  },
65658
67879
  NuevaEpsConnectionsGetInput: {
65659
- additionalProperties: false,
65660
67880
  type: "object",
65661
- required: [
65662
- "id"
65663
- ],
65664
67881
  properties: {
65665
67882
  id: {
65666
67883
  pattern: "^con_[0-9A-Za-z]{26}$",
65667
- type: "string"
67884
+ type: "string",
67885
+ description: "The id."
65668
67886
  }
65669
- }
65670
- },
65671
- NuevaEpsConnectionsDeleteInput: {
65672
- additionalProperties: false,
65673
- type: "object",
67887
+ },
65674
67888
  required: [
65675
67889
  "id"
65676
67890
  ],
67891
+ additionalProperties: false
67892
+ },
67893
+ NuevaEpsConnectionsDeleteInput: {
67894
+ type: "object",
65677
67895
  properties: {
65678
67896
  id: {
65679
67897
  pattern: "^con_[0-9A-Za-z]{26}$",
65680
- type: "string"
67898
+ type: "string",
67899
+ description: "The id."
65681
67900
  }
65682
- }
67901
+ },
67902
+ required: [
67903
+ "id"
67904
+ ],
67905
+ additionalProperties: false
65683
67906
  },
65684
67907
  RaizAgentsListInput: {
65685
67908
  type: "object",
@@ -73794,9 +76017,9 @@ var schemaComponents = {
73794
76017
  // src/generated/generation.json
73795
76018
  var generation_default = {
73796
76019
  formatVersion: 6,
73797
- release: "1.20261023.60554",
73798
- openapiSha256: "86323054a3e408946c70daf18480c82b7084c3e38c73e469d0d34227bf10a117",
73799
- openapiContentSha256: "c05fa12d8b1bed4efd2d1e6a0e29a7dae23ee0e665b8117d08c7dc1d458876d4",
76020
+ release: "1.20261028.53033",
76021
+ openapiSha256: "31595193de26f25ee2a19fe95dbbf2c39ab5105fc839e36735449a02b86bdb05",
76022
+ openapiContentSha256: "8f3dfd71261d36a7c4c9f524d0184c4f77a75c996814612a88efa8275211c38c",
73800
76023
  forge: {
73801
76024
  repository: "https://github.com/cloudflare/forge",
73802
76025
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -73809,7 +76032,7 @@ var generation_default = {
73809
76032
  outputs: [
73810
76033
  {
73811
76034
  path: "src/generated/commands.ts",
73812
- sha256: "a06f367dba10667942695d2565afd2bb43fa1ac72279cec15effe052d47e46b0"
76035
+ sha256: "22ef275833bdae87bcf83186b97e76d5be16fd5e99687104633d8b20dfd9f9cb"
73813
76036
  }
73814
76037
  ]
73815
76038
  };
@@ -74164,7 +76387,7 @@ ${name}`);
74164
76387
  }
74165
76388
 
74166
76389
  // src/index.ts
74167
- var VERSION = "2.9.0";
76390
+ var VERSION = "2.10.0";
74168
76391
  var RELEASE = generation_default.release;
74169
76392
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
74170
76393
  var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();