@arbol-ai/cli 2.9.0 → 2.11.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 +3283 -629
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -11088,6 +11088,42 @@ var commands = {
11088
11088
  required: true,
11089
11089
  description: "Member document number as a string; preserve leading zeros. Never an organization selector."
11090
11090
  },
11091
+ {
11092
+ name: "agentMode",
11093
+ flag: "agent-mode",
11094
+ kind: "boolean",
11095
+ required: false,
11096
+ description: "True: concise Spanish text in data.text (HTTP) and MCP text content. False or omitted: structured JSON. Presentation never changes tenant, coverage or provider admission.",
11097
+ default: false
11098
+ },
11099
+ {
11100
+ name: "fields",
11101
+ flag: "fields",
11102
+ kind: "list",
11103
+ required: false,
11104
+ description: "Return only these top-level fields. member opts into additional personal data; timings opts into measured durations. Omit for the standard affiliation record. Agent text always retains affiliation and primary-provider warnings.",
11105
+ choices: [
11106
+ "documentType",
11107
+ "documentNumber",
11108
+ "affiliated",
11109
+ "callerIsPrimaryProvider",
11110
+ "state",
11111
+ "kind",
11112
+ "category",
11113
+ "primaryProvider",
11114
+ "messages",
11115
+ "member",
11116
+ "timings"
11117
+ ]
11118
+ },
11119
+ {
11120
+ name: "includeTimings",
11121
+ flag: "include-timings",
11122
+ kind: "boolean",
11123
+ required: false,
11124
+ description: "Include measured operation durations; equivalent to requesting timings in fields. Durations overlap as documented and are observations, not latency guarantees.",
11125
+ default: false
11126
+ },
11091
11127
  {
11092
11128
  name: "connectionId",
11093
11129
  flag: "connection-id",
@@ -11174,6 +11210,71 @@ var commands = {
11174
11210
  description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
11175
11211
  type: "string"
11176
11212
  },
11213
+ agentMode: {
11214
+ default: false,
11215
+ description: "True: concise Spanish text in data.text (HTTP) and MCP text content. False or omitted: structured JSON. Presentation never changes tenant, coverage or provider admission.",
11216
+ type: "boolean"
11217
+ },
11218
+ fields: {
11219
+ minItems: 1,
11220
+ maxItems: 11,
11221
+ uniqueItems: true,
11222
+ description: "Return only these top-level fields. member opts into additional personal data; timings opts into measured durations. Omit for the standard affiliation record. Agent text always retains affiliation and primary-provider warnings.",
11223
+ type: "array",
11224
+ items: {
11225
+ anyOf: [
11226
+ {
11227
+ const: "documentType",
11228
+ type: "string"
11229
+ },
11230
+ {
11231
+ const: "documentNumber",
11232
+ type: "string"
11233
+ },
11234
+ {
11235
+ const: "affiliated",
11236
+ type: "string"
11237
+ },
11238
+ {
11239
+ const: "callerIsPrimaryProvider",
11240
+ type: "string"
11241
+ },
11242
+ {
11243
+ const: "state",
11244
+ type: "string"
11245
+ },
11246
+ {
11247
+ const: "kind",
11248
+ type: "string"
11249
+ },
11250
+ {
11251
+ const: "category",
11252
+ type: "string"
11253
+ },
11254
+ {
11255
+ const: "primaryProvider",
11256
+ type: "string"
11257
+ },
11258
+ {
11259
+ const: "messages",
11260
+ type: "string"
11261
+ },
11262
+ {
11263
+ const: "member",
11264
+ type: "string"
11265
+ },
11266
+ {
11267
+ const: "timings",
11268
+ type: "string"
11269
+ }
11270
+ ]
11271
+ }
11272
+ },
11273
+ includeTimings: {
11274
+ default: false,
11275
+ description: "Include measured operation durations; equivalent to requesting timings in fields. Durations overlap as documented and are observations, not latency guarantees.",
11276
+ type: "boolean"
11277
+ },
11177
11278
  connectionId: {
11178
11279
  pattern: "^con_[0-9A-Za-z]{26}$",
11179
11280
  type: "string"
@@ -11181,7 +11282,7 @@ var commands = {
11181
11282
  }
11182
11283
  },
11183
11284
  title: "Look up member affiliation",
11184
- description: "Read affiliation and the provider capitation warning. A provider failure is never an absent member. No clinical writes are performed.",
11285
+ description: "Read member affiliation and primary-provider warnings. Default: structured JSON. Set agentMode=true for concise Spanish text; fields selects top-level output properties. Request member explicitly for additional personal data and timings for measured durations. A provider failure is never an absent member; active affiliation never authorizes a procedure or confirms a clinic contract. No clinical writes are performed.",
11185
11286
  effect: "read",
11186
11287
  confirmation: null,
11187
11288
  hidden: false
@@ -11196,17 +11297,18 @@ var commands = {
11196
11297
  pathField: "id",
11197
11298
  fields: [],
11198
11299
  inputSchema: {
11199
- additionalProperties: false,
11200
11300
  type: "object",
11201
- required: [
11202
- "id"
11203
- ],
11204
11301
  properties: {
11205
11302
  id: {
11206
11303
  pattern: "^con_[0-9A-Za-z]{26}$",
11207
- type: "string"
11304
+ type: "string",
11305
+ description: "The id."
11208
11306
  }
11209
- }
11307
+ },
11308
+ required: [
11309
+ "id"
11310
+ ],
11311
+ additionalProperties: false
11210
11312
  },
11211
11313
  title: "Remove a provider connection",
11212
11314
  description: "Remove the provider-owned connection before Account retires its sealed credentials. Login cooldowns remain durable.",
@@ -11224,17 +11326,18 @@ var commands = {
11224
11326
  pathField: "id",
11225
11327
  fields: [],
11226
11328
  inputSchema: {
11227
- additionalProperties: false,
11228
11329
  type: "object",
11229
- required: [
11230
- "id"
11231
- ],
11232
11330
  properties: {
11233
11331
  id: {
11234
11332
  pattern: "^con_[0-9A-Za-z]{26}$",
11235
- type: "string"
11333
+ type: "string",
11334
+ description: "The id."
11236
11335
  }
11237
- }
11336
+ },
11337
+ required: [
11338
+ "id"
11339
+ ],
11340
+ additionalProperties: false
11238
11341
  },
11239
11342
  title: "Get a provider connection",
11240
11343
  description: "One connection owned by the verified organization. Never a credential or a provider request.",
@@ -11280,9 +11383,7 @@ var commands = {
11280
11383
  }
11281
11384
  ],
11282
11385
  inputSchema: {
11283
- additionalProperties: false,
11284
11386
  type: "object",
11285
- required: [],
11286
11387
  properties: {
11287
11388
  cursor: {
11288
11389
  description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
@@ -11309,7 +11410,8 @@ var commands = {
11309
11410
  type: "integer",
11310
11411
  default: 25
11311
11412
  }
11312
- }
11413
+ },
11414
+ additionalProperties: false
11313
11415
  },
11314
11416
  title: "List provider connections",
11315
11417
  description: "The organization’s Account connections, without reading credentials or contacting the provider.",
@@ -11376,17 +11478,12 @@ var commands = {
11376
11478
  additionalProperties: false,
11377
11479
  type: "object",
11378
11480
  required: [
11379
- "connectionId",
11380
11481
  "name",
11381
11482
  "username",
11382
11483
  "password",
11383
11484
  "documentType"
11384
11485
  ],
11385
11486
  properties: {
11386
- connectionId: {
11387
- pattern: "^con_[0-9A-Za-z]{26}$",
11388
- type: "string"
11389
- },
11390
11487
  name: {
11391
11488
  minLength: 1,
11392
11489
  maxLength: 80,
@@ -40268,9 +40365,100 @@ var schemaComponents = {
40268
40365
  }
40269
40366
  }
40270
40367
  },
40271
- NuevaEpsFailureResponse: {
40368
+ NuevaEpsAuthorizationsUnavailableError: {
40369
+ type: "object",
40370
+ description: "A failed answer.",
40371
+ additionalProperties: false,
40372
+ required: [
40373
+ "success",
40374
+ "data",
40375
+ "error",
40376
+ "metadata"
40377
+ ],
40378
+ properties: {
40379
+ success: {
40380
+ type: "boolean",
40381
+ enum: [
40382
+ false
40383
+ ]
40384
+ },
40385
+ data: {
40386
+ const: null
40387
+ },
40388
+ error: {
40389
+ $ref: "#/components/schemas/NuevaEpsAuthorizationsUnavailableFailure"
40390
+ },
40391
+ metadata: {
40392
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40393
+ }
40394
+ }
40395
+ },
40396
+ NuevaEpsAuthorizationsUnavailableFailure: {
40397
+ type: "object",
40398
+ description: "The provider authorization lookup has not been verified. No empty result is implied.",
40399
+ additionalProperties: false,
40400
+ required: [
40401
+ "code",
40402
+ "message",
40403
+ "retryable",
40404
+ "data"
40405
+ ],
40406
+ properties: {
40407
+ code: {
40408
+ type: "string",
40409
+ enum: [
40410
+ "AUTHORIZATIONS_UNAVAILABLE"
40411
+ ],
40412
+ description: "The failure code, stable across releases."
40413
+ },
40414
+ message: {
40415
+ type: "string",
40416
+ description: "What went wrong, for people; it never contains input values."
40417
+ },
40418
+ retryable: {
40419
+ type: "boolean",
40420
+ enum: [
40421
+ false
40422
+ ],
40423
+ description: "Whether repeating the same request may succeed."
40424
+ },
40425
+ data: {
40426
+ $ref: "#/components/schemas/NuevaEpsEmpty"
40427
+ }
40428
+ }
40429
+ },
40430
+ NuevaEpsConnectionPageResponse: {
40431
+ type: "object",
40432
+ description: "A successful answer.",
40272
40433
  additionalProperties: false,
40434
+ required: [
40435
+ "success",
40436
+ "data",
40437
+ "error",
40438
+ "metadata"
40439
+ ],
40440
+ properties: {
40441
+ success: {
40442
+ type: "boolean",
40443
+ enum: [
40444
+ true
40445
+ ]
40446
+ },
40447
+ data: {
40448
+ $ref: "#/components/schemas/ConnectionPage"
40449
+ },
40450
+ error: {
40451
+ const: null
40452
+ },
40453
+ metadata: {
40454
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40455
+ }
40456
+ }
40457
+ },
40458
+ NuevaEpsConnectionResponse: {
40273
40459
  type: "object",
40460
+ description: "A successful answer.",
40461
+ additionalProperties: false,
40274
40462
  required: [
40275
40463
  "success",
40276
40464
  "data",
@@ -40279,640 +40467,2703 @@ var schemaComponents = {
40279
40467
  ],
40280
40468
  properties: {
40281
40469
  success: {
40282
- const: false,
40283
- type: "boolean"
40470
+ type: "boolean",
40471
+ enum: [
40472
+ true
40473
+ ]
40284
40474
  },
40285
40475
  data: {
40286
- type: "null"
40476
+ $ref: "#/components/schemas/Connection"
40287
40477
  },
40288
40478
  error: {
40289
- allOf: [
40290
- {
40291
- $ref: "#/components/schemas/Failure"
40292
- }
40479
+ const: null
40480
+ },
40481
+ metadata: {
40482
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40483
+ }
40484
+ }
40485
+ },
40486
+ NuevaEpsDeleteConnectionBadGatewayError: {
40487
+ type: "object",
40488
+ description: "A failed answer.",
40489
+ additionalProperties: false,
40490
+ required: [
40491
+ "success",
40492
+ "data",
40493
+ "error",
40494
+ "metadata"
40495
+ ],
40496
+ properties: {
40497
+ success: {
40498
+ type: "boolean",
40499
+ enum: [
40500
+ false
40501
+ ]
40502
+ },
40503
+ data: {
40504
+ const: null
40505
+ },
40506
+ error: {
40507
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionBadGatewayFailure"
40508
+ },
40509
+ metadata: {
40510
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40511
+ }
40512
+ }
40513
+ },
40514
+ NuevaEpsDeleteConnectionBadGatewayFailure: {
40515
+ oneOf: [
40516
+ {
40517
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
40518
+ },
40519
+ {
40520
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
40521
+ }
40522
+ ],
40523
+ discriminator: {
40524
+ propertyName: "code",
40525
+ mapping: {
40526
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
40527
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
40528
+ }
40529
+ }
40530
+ },
40531
+ NuevaEpsDeleteConnectionConflictError: {
40532
+ type: "object",
40533
+ description: "A failed answer.",
40534
+ additionalProperties: false,
40535
+ required: [
40536
+ "success",
40537
+ "data",
40538
+ "error",
40539
+ "metadata"
40540
+ ],
40541
+ properties: {
40542
+ success: {
40543
+ type: "boolean",
40544
+ enum: [
40545
+ false
40546
+ ]
40547
+ },
40548
+ data: {
40549
+ const: null
40550
+ },
40551
+ error: {
40552
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionConflictFailure"
40553
+ },
40554
+ metadata: {
40555
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40556
+ }
40557
+ }
40558
+ },
40559
+ NuevaEpsDeleteConnectionConflictFailure: {
40560
+ oneOf: [
40561
+ {
40562
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
40563
+ },
40564
+ {
40565
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
40566
+ },
40567
+ {
40568
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
40569
+ }
40570
+ ],
40571
+ discriminator: {
40572
+ propertyName: "code",
40573
+ mapping: {
40574
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
40575
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
40576
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
40577
+ }
40578
+ }
40579
+ },
40580
+ NuevaEpsDeleteConnectionForbiddenError: {
40581
+ type: "object",
40582
+ description: "A failed answer.",
40583
+ additionalProperties: false,
40584
+ required: [
40585
+ "success",
40586
+ "data",
40587
+ "error",
40588
+ "metadata"
40589
+ ],
40590
+ properties: {
40591
+ success: {
40592
+ type: "boolean",
40593
+ enum: [
40594
+ false
40595
+ ]
40596
+ },
40597
+ data: {
40598
+ const: null
40599
+ },
40600
+ error: {
40601
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionForbiddenFailure"
40602
+ },
40603
+ metadata: {
40604
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40605
+ }
40606
+ }
40607
+ },
40608
+ NuevaEpsDeleteConnectionForbiddenFailure: {
40609
+ oneOf: [
40610
+ {
40611
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
40612
+ },
40613
+ {
40614
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40615
+ }
40616
+ ],
40617
+ discriminator: {
40618
+ propertyName: "code",
40619
+ mapping: {
40620
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
40621
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40622
+ }
40623
+ }
40624
+ },
40625
+ NuevaEpsDeleteConnectionServiceUnavailableError: {
40626
+ type: "object",
40627
+ description: "A failed answer.",
40628
+ additionalProperties: false,
40629
+ required: [
40630
+ "success",
40631
+ "data",
40632
+ "error",
40633
+ "metadata"
40634
+ ],
40635
+ properties: {
40636
+ success: {
40637
+ type: "boolean",
40638
+ enum: [
40639
+ false
40640
+ ]
40641
+ },
40642
+ data: {
40643
+ const: null
40644
+ },
40645
+ error: {
40646
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionServiceUnavailableFailure"
40647
+ },
40648
+ metadata: {
40649
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40650
+ }
40651
+ }
40652
+ },
40653
+ NuevaEpsDeleteConnectionServiceUnavailableFailure: {
40654
+ oneOf: [
40655
+ {
40656
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
40657
+ },
40658
+ {
40659
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
40660
+ },
40661
+ {
40662
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40663
+ }
40664
+ ],
40665
+ discriminator: {
40666
+ propertyName: "code",
40667
+ mapping: {
40668
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
40669
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
40670
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40671
+ }
40672
+ }
40673
+ },
40674
+ NuevaEpsDeleteConnectionTooManyRequestsError: {
40675
+ type: "object",
40676
+ description: "A failed answer.",
40677
+ additionalProperties: false,
40678
+ required: [
40679
+ "success",
40680
+ "data",
40681
+ "error",
40682
+ "metadata"
40683
+ ],
40684
+ properties: {
40685
+ success: {
40686
+ type: "boolean",
40687
+ enum: [
40688
+ false
40689
+ ]
40690
+ },
40691
+ data: {
40692
+ const: null
40693
+ },
40694
+ error: {
40695
+ $ref: "#/components/schemas/NuevaEpsDeleteConnectionTooManyRequestsFailure"
40696
+ },
40697
+ metadata: {
40698
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40699
+ }
40700
+ }
40701
+ },
40702
+ NuevaEpsDeleteConnectionTooManyRequestsFailure: {
40703
+ oneOf: [
40704
+ {
40705
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
40706
+ },
40707
+ {
40708
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40709
+ }
40710
+ ],
40711
+ discriminator: {
40712
+ propertyName: "code",
40713
+ mapping: {
40714
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
40715
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40716
+ }
40717
+ }
40718
+ },
40719
+ NuevaEpsDeletedObjectResponse: {
40720
+ type: "object",
40721
+ description: "A successful answer.",
40722
+ additionalProperties: false,
40723
+ required: [
40724
+ "success",
40725
+ "data",
40726
+ "error",
40727
+ "metadata"
40728
+ ],
40729
+ properties: {
40730
+ success: {
40731
+ type: "boolean",
40732
+ enum: [
40733
+ true
40734
+ ]
40735
+ },
40736
+ data: {
40737
+ $ref: "#/components/schemas/DeletedObject"
40738
+ },
40739
+ error: {
40740
+ const: null
40741
+ },
40742
+ metadata: {
40743
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40744
+ }
40745
+ }
40746
+ },
40747
+ NuevaEpsEmpty: {
40748
+ type: "object",
40749
+ description: "No fields.",
40750
+ additionalProperties: false,
40751
+ properties: {}
40752
+ },
40753
+ NuevaEpsForbiddenFailure: {
40754
+ type: "object",
40755
+ description: "The token does not authorize this operation.",
40756
+ additionalProperties: false,
40757
+ required: [
40758
+ "code",
40759
+ "message",
40760
+ "retryable",
40761
+ "data"
40762
+ ],
40763
+ properties: {
40764
+ code: {
40765
+ type: "string",
40766
+ enum: [
40767
+ "FORBIDDEN"
40293
40768
  ],
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.",
40769
+ description: "The failure code, stable across releases."
40770
+ },
40771
+ message: {
40772
+ type: "string",
40773
+ description: "What went wrong, for people; it never contains input values."
40774
+ },
40775
+ retryable: {
40776
+ type: "boolean",
40777
+ enum: [
40778
+ false
40779
+ ],
40780
+ description: "Whether repeating the same request may succeed."
40781
+ },
40782
+ data: {
40783
+ $ref: "#/components/schemas/NuevaEpsEmpty"
40784
+ }
40785
+ }
40786
+ },
40787
+ NuevaEpsGetConnectionBadGatewayError: {
40788
+ type: "object",
40789
+ description: "A failed answer.",
40790
+ additionalProperties: false,
40791
+ required: [
40792
+ "success",
40793
+ "data",
40794
+ "error",
40795
+ "metadata"
40796
+ ],
40797
+ properties: {
40798
+ success: {
40799
+ type: "boolean",
40800
+ enum: [
40801
+ false
40802
+ ]
40803
+ },
40804
+ data: {
40805
+ const: null
40806
+ },
40807
+ error: {
40808
+ $ref: "#/components/schemas/NuevaEpsGetConnectionBadGatewayFailure"
40809
+ },
40810
+ metadata: {
40811
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40812
+ }
40813
+ }
40814
+ },
40815
+ NuevaEpsGetConnectionBadGatewayFailure: {
40816
+ oneOf: [
40817
+ {
40818
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
40819
+ },
40820
+ {
40821
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
40822
+ }
40823
+ ],
40824
+ discriminator: {
40825
+ propertyName: "code",
40826
+ mapping: {
40827
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
40828
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
40829
+ }
40830
+ }
40831
+ },
40832
+ NuevaEpsGetConnectionConflictError: {
40833
+ type: "object",
40834
+ description: "A failed answer.",
40835
+ additionalProperties: false,
40836
+ required: [
40837
+ "success",
40838
+ "data",
40839
+ "error",
40840
+ "metadata"
40841
+ ],
40842
+ properties: {
40843
+ success: {
40844
+ type: "boolean",
40845
+ enum: [
40846
+ false
40847
+ ]
40848
+ },
40849
+ data: {
40850
+ const: null
40851
+ },
40852
+ error: {
40853
+ $ref: "#/components/schemas/NuevaEpsGetConnectionConflictFailure"
40854
+ },
40855
+ metadata: {
40856
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40857
+ }
40858
+ }
40859
+ },
40860
+ NuevaEpsGetConnectionConflictFailure: {
40861
+ oneOf: [
40862
+ {
40863
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
40864
+ },
40865
+ {
40866
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
40867
+ },
40868
+ {
40869
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
40870
+ }
40871
+ ],
40872
+ discriminator: {
40873
+ propertyName: "code",
40874
+ mapping: {
40875
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
40876
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
40877
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
40878
+ }
40879
+ }
40880
+ },
40881
+ NuevaEpsGetConnectionForbiddenError: {
40882
+ type: "object",
40883
+ description: "A failed answer.",
40884
+ additionalProperties: false,
40885
+ required: [
40886
+ "success",
40887
+ "data",
40888
+ "error",
40889
+ "metadata"
40890
+ ],
40891
+ properties: {
40892
+ success: {
40893
+ type: "boolean",
40894
+ enum: [
40895
+ false
40896
+ ]
40897
+ },
40898
+ data: {
40899
+ const: null
40900
+ },
40901
+ error: {
40902
+ $ref: "#/components/schemas/NuevaEpsGetConnectionForbiddenFailure"
40903
+ },
40904
+ metadata: {
40905
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40906
+ }
40907
+ }
40908
+ },
40909
+ NuevaEpsGetConnectionForbiddenFailure: {
40910
+ oneOf: [
40911
+ {
40912
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
40913
+ },
40914
+ {
40915
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40916
+ }
40917
+ ],
40918
+ discriminator: {
40919
+ propertyName: "code",
40920
+ mapping: {
40921
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
40922
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
40923
+ }
40924
+ }
40925
+ },
40926
+ NuevaEpsGetConnectionServiceUnavailableError: {
40927
+ type: "object",
40928
+ description: "A failed answer.",
40929
+ additionalProperties: false,
40930
+ required: [
40931
+ "success",
40932
+ "data",
40933
+ "error",
40934
+ "metadata"
40935
+ ],
40936
+ properties: {
40937
+ success: {
40938
+ type: "boolean",
40939
+ enum: [
40940
+ false
40941
+ ]
40942
+ },
40943
+ data: {
40944
+ const: null
40945
+ },
40946
+ error: {
40947
+ $ref: "#/components/schemas/NuevaEpsGetConnectionServiceUnavailableFailure"
40948
+ },
40949
+ metadata: {
40950
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
40951
+ }
40952
+ }
40953
+ },
40954
+ NuevaEpsGetConnectionServiceUnavailableFailure: {
40955
+ oneOf: [
40956
+ {
40957
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
40958
+ },
40959
+ {
40960
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
40961
+ },
40962
+ {
40963
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40964
+ }
40965
+ ],
40966
+ discriminator: {
40967
+ propertyName: "code",
40968
+ mapping: {
40969
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
40970
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
40971
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
40972
+ }
40973
+ }
40974
+ },
40975
+ NuevaEpsGetConnectionTooManyRequestsError: {
40976
+ type: "object",
40977
+ description: "A failed answer.",
40978
+ additionalProperties: false,
40979
+ required: [
40980
+ "success",
40981
+ "data",
40982
+ "error",
40983
+ "metadata"
40984
+ ],
40985
+ properties: {
40986
+ success: {
40987
+ type: "boolean",
40988
+ enum: [
40989
+ false
40990
+ ]
40991
+ },
40992
+ data: {
40993
+ const: null
40994
+ },
40995
+ error: {
40996
+ $ref: "#/components/schemas/NuevaEpsGetConnectionTooManyRequestsFailure"
40997
+ },
40998
+ metadata: {
40999
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41000
+ }
41001
+ }
41002
+ },
41003
+ NuevaEpsGetConnectionTooManyRequestsFailure: {
41004
+ oneOf: [
41005
+ {
41006
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
41007
+ },
41008
+ {
41009
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41010
+ }
41011
+ ],
41012
+ discriminator: {
41013
+ propertyName: "code",
41014
+ mapping: {
41015
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
41016
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41017
+ }
41018
+ }
41019
+ },
41020
+ NuevaEpsInternalError: {
41021
+ type: "object",
41022
+ description: "A failed answer.",
41023
+ additionalProperties: false,
41024
+ required: [
41025
+ "success",
41026
+ "data",
41027
+ "error",
41028
+ "metadata"
41029
+ ],
41030
+ properties: {
41031
+ success: {
41032
+ type: "boolean",
41033
+ enum: [
41034
+ false
41035
+ ]
41036
+ },
41037
+ data: {
41038
+ const: null
41039
+ },
41040
+ error: {
41041
+ $ref: "#/components/schemas/NuevaEpsInternalFailure"
41042
+ },
41043
+ metadata: {
41044
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41045
+ }
41046
+ }
41047
+ },
41048
+ NuevaEpsInternalFailure: {
41049
+ type: "object",
41050
+ description: "The service could not complete the operation.",
41051
+ additionalProperties: false,
41052
+ required: [
41053
+ "code",
41054
+ "message",
41055
+ "retryable",
41056
+ "data"
41057
+ ],
41058
+ properties: {
41059
+ code: {
41060
+ type: "string",
41061
+ enum: [
41062
+ "INTERNAL_ERROR"
41063
+ ],
41064
+ description: "The failure code, stable across releases."
41065
+ },
41066
+ message: {
41067
+ type: "string",
41068
+ description: "What went wrong, for people; it never contains input values."
41069
+ },
41070
+ retryable: {
41071
+ type: "boolean",
41072
+ enum: [
41073
+ false
41074
+ ],
41075
+ description: "Whether repeating the same request may succeed."
41076
+ },
41077
+ data: {
41078
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41079
+ }
41080
+ }
41081
+ },
41082
+ NuevaEpsInvalidInputError: {
41083
+ type: "object",
41084
+ description: "A failed answer.",
41085
+ additionalProperties: false,
41086
+ required: [
41087
+ "success",
41088
+ "data",
41089
+ "error",
41090
+ "metadata"
41091
+ ],
41092
+ properties: {
41093
+ success: {
41094
+ type: "boolean",
41095
+ enum: [
41096
+ false
41097
+ ]
41098
+ },
41099
+ data: {
41100
+ const: null
41101
+ },
41102
+ error: {
41103
+ $ref: "#/components/schemas/NuevaEpsInvalidInputFailure"
41104
+ },
41105
+ metadata: {
41106
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41107
+ }
41108
+ }
41109
+ },
41110
+ NuevaEpsInvalidInputFailure: {
41111
+ type: "object",
41112
+ description: "The request does not match the published schema.",
41113
+ additionalProperties: false,
41114
+ required: [
41115
+ "code",
41116
+ "message",
41117
+ "retryable",
41118
+ "data"
41119
+ ],
41120
+ properties: {
41121
+ code: {
41122
+ type: "string",
41123
+ enum: [
41124
+ "INVALID_INPUT"
41125
+ ],
41126
+ description: "The failure code, stable across releases."
41127
+ },
41128
+ message: {
41129
+ type: "string",
41130
+ description: "What went wrong, for people; it never contains input values."
41131
+ },
41132
+ retryable: {
41133
+ type: "boolean",
41134
+ enum: [
41135
+ false
41136
+ ],
41137
+ description: "Whether repeating the same request may succeed."
41138
+ },
41139
+ data: {
41140
+ $ref: "#/components/schemas/NuevaEpsInvalidInputFailureData"
41141
+ }
41142
+ }
41143
+ },
41144
+ NuevaEpsInvalidInputFailureData: {
41145
+ additionalProperties: false,
41146
+ type: "object",
41147
+ properties: {
41148
+ issues: {
41149
+ maxItems: 10,
41150
+ type: "array",
41151
+ items: {
41152
+ $ref: "#/components/schemas/ValidationIssue"
41153
+ }
41154
+ }
41155
+ }
41156
+ },
41157
+ NuevaEpsListConnectionsBadGatewayError: {
41158
+ type: "object",
41159
+ description: "A failed answer.",
41160
+ additionalProperties: false,
41161
+ required: [
41162
+ "success",
41163
+ "data",
41164
+ "error",
41165
+ "metadata"
41166
+ ],
41167
+ properties: {
41168
+ success: {
41169
+ type: "boolean",
41170
+ enum: [
41171
+ false
41172
+ ]
41173
+ },
41174
+ data: {
41175
+ const: null
41176
+ },
41177
+ error: {
41178
+ $ref: "#/components/schemas/NuevaEpsListConnectionsBadGatewayFailure"
41179
+ },
41180
+ metadata: {
41181
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41182
+ }
41183
+ }
41184
+ },
41185
+ NuevaEpsListConnectionsBadGatewayFailure: {
41186
+ oneOf: [
41187
+ {
41188
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
41189
+ },
41190
+ {
41191
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
41192
+ }
41193
+ ],
41194
+ discriminator: {
41195
+ propertyName: "code",
41196
+ mapping: {
41197
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
41198
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
41199
+ }
41200
+ }
41201
+ },
41202
+ NuevaEpsListConnectionsConflictError: {
41203
+ type: "object",
41204
+ description: "A failed answer.",
41205
+ additionalProperties: false,
41206
+ required: [
41207
+ "success",
41208
+ "data",
41209
+ "error",
41210
+ "metadata"
41211
+ ],
41212
+ properties: {
41213
+ success: {
41214
+ type: "boolean",
41215
+ enum: [
41216
+ false
41217
+ ]
41218
+ },
41219
+ data: {
41220
+ const: null
41221
+ },
41222
+ error: {
41223
+ $ref: "#/components/schemas/NuevaEpsListConnectionsConflictFailure"
41224
+ },
41225
+ metadata: {
41226
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41227
+ }
41228
+ }
41229
+ },
41230
+ NuevaEpsListConnectionsConflictFailure: {
41231
+ oneOf: [
41232
+ {
41233
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
41234
+ },
41235
+ {
41236
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
41237
+ },
41238
+ {
41239
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
41240
+ }
41241
+ ],
41242
+ discriminator: {
41243
+ propertyName: "code",
41244
+ mapping: {
41245
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
41246
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
41247
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
41248
+ }
41249
+ }
41250
+ },
41251
+ NuevaEpsListConnectionsForbiddenError: {
41252
+ type: "object",
41253
+ description: "A failed answer.",
41254
+ additionalProperties: false,
41255
+ required: [
41256
+ "success",
41257
+ "data",
41258
+ "error",
41259
+ "metadata"
41260
+ ],
41261
+ properties: {
41262
+ success: {
41263
+ type: "boolean",
41264
+ enum: [
41265
+ false
41266
+ ]
41267
+ },
41268
+ data: {
41269
+ const: null
41270
+ },
41271
+ error: {
41272
+ $ref: "#/components/schemas/NuevaEpsListConnectionsForbiddenFailure"
41273
+ },
41274
+ metadata: {
41275
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41276
+ }
41277
+ }
41278
+ },
41279
+ NuevaEpsListConnectionsForbiddenFailure: {
41280
+ oneOf: [
41281
+ {
41282
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
41283
+ },
41284
+ {
41285
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41286
+ }
41287
+ ],
41288
+ discriminator: {
41289
+ propertyName: "code",
41290
+ mapping: {
41291
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
41292
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41293
+ }
41294
+ }
41295
+ },
41296
+ NuevaEpsListConnectionsServiceUnavailableError: {
41297
+ type: "object",
41298
+ description: "A failed answer.",
41299
+ additionalProperties: false,
41300
+ required: [
41301
+ "success",
41302
+ "data",
41303
+ "error",
41304
+ "metadata"
41305
+ ],
41306
+ properties: {
41307
+ success: {
41308
+ type: "boolean",
41309
+ enum: [
41310
+ false
41311
+ ]
41312
+ },
41313
+ data: {
41314
+ const: null
41315
+ },
41316
+ error: {
41317
+ $ref: "#/components/schemas/NuevaEpsListConnectionsServiceUnavailableFailure"
41318
+ },
41319
+ metadata: {
41320
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41321
+ }
41322
+ }
41323
+ },
41324
+ NuevaEpsListConnectionsServiceUnavailableFailure: {
41325
+ oneOf: [
41326
+ {
41327
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
41328
+ },
41329
+ {
41330
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
41331
+ },
41332
+ {
41333
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41334
+ }
41335
+ ],
41336
+ discriminator: {
41337
+ propertyName: "code",
41338
+ mapping: {
41339
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
41340
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
41341
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
41342
+ }
41343
+ }
41344
+ },
41345
+ NuevaEpsListConnectionsTooManyRequestsError: {
41346
+ type: "object",
41347
+ description: "A failed answer.",
41348
+ additionalProperties: false,
41349
+ required: [
41350
+ "success",
41351
+ "data",
41352
+ "error",
41353
+ "metadata"
41354
+ ],
41355
+ properties: {
41356
+ success: {
41357
+ type: "boolean",
41358
+ enum: [
41359
+ false
41360
+ ]
41361
+ },
41362
+ data: {
41363
+ const: null
41364
+ },
41365
+ error: {
41366
+ $ref: "#/components/schemas/NuevaEpsListConnectionsTooManyRequestsFailure"
41367
+ },
41368
+ metadata: {
41369
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41370
+ }
41371
+ }
41372
+ },
41373
+ NuevaEpsListConnectionsTooManyRequestsFailure: {
41374
+ oneOf: [
41375
+ {
41376
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
41377
+ },
41378
+ {
41379
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41380
+ }
41381
+ ],
41382
+ discriminator: {
41383
+ propertyName: "code",
41384
+ mapping: {
41385
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
41386
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
41387
+ }
41388
+ }
41389
+ },
41390
+ NuevaEpsLoginCooldownFailure: {
41391
+ type: "object",
41392
+ description: "Login attempts are temporarily paused after a submitted or uncertain attempt.",
41393
+ additionalProperties: false,
41394
+ required: [
41395
+ "code",
41396
+ "message",
41397
+ "retryable",
41398
+ "data"
41399
+ ],
41400
+ properties: {
41401
+ code: {
41402
+ type: "string",
41403
+ enum: [
41404
+ "LOGIN_COOLDOWN"
41405
+ ],
41406
+ description: "The failure code, stable across releases."
41407
+ },
41408
+ message: {
41409
+ type: "string",
41410
+ description: "What went wrong, for people; it never contains input values."
41411
+ },
41412
+ retryable: {
41413
+ type: "boolean",
41414
+ enum: [
41415
+ false
41416
+ ],
41417
+ description: "Whether repeating the same request may succeed."
41418
+ },
41419
+ data: {
41420
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41421
+ }
41422
+ }
41423
+ },
41424
+ NuevaEpsLoginRejectedFailure: {
41425
+ type: "object",
41426
+ description: "Nueva EPS did not accept the provider login. Do not retry automatically.",
41427
+ additionalProperties: false,
41428
+ required: [
41429
+ "code",
41430
+ "message",
41431
+ "retryable",
41432
+ "data"
41433
+ ],
41434
+ properties: {
41435
+ code: {
41436
+ type: "string",
41437
+ enum: [
41438
+ "LOGIN_REJECTED"
41439
+ ],
41440
+ description: "The failure code, stable across releases."
41441
+ },
41442
+ message: {
41443
+ type: "string",
41444
+ description: "What went wrong, for people; it never contains input values."
41445
+ },
41446
+ retryable: {
41447
+ type: "boolean",
41448
+ enum: [
41449
+ false
41450
+ ],
41451
+ description: "Whether repeating the same request may succeed."
41452
+ },
41453
+ data: {
41454
+ $ref: "#/components/schemas/NuevaEpsEmpty"
41455
+ }
41456
+ }
41457
+ },
41458
+ NuevaEpsLookupAffiliationBadGatewayError: {
41459
+ type: "object",
41460
+ description: "A failed answer.",
41461
+ additionalProperties: false,
41462
+ required: [
41463
+ "success",
41464
+ "data",
41465
+ "error",
41466
+ "metadata"
41467
+ ],
41468
+ properties: {
41469
+ success: {
41470
+ type: "boolean",
41471
+ enum: [
41472
+ false
41473
+ ]
41474
+ },
41475
+ data: {
41476
+ const: null
41477
+ },
41478
+ error: {
41479
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationBadGatewayFailure"
41480
+ },
41481
+ metadata: {
41482
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41483
+ }
41484
+ }
41485
+ },
41486
+ NuevaEpsLookupAffiliationBadGatewayFailure: {
41487
+ oneOf: [
41488
+ {
41489
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
41490
+ },
41491
+ {
41492
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
41493
+ }
41494
+ ],
41495
+ discriminator: {
41496
+ propertyName: "code",
41497
+ mapping: {
41498
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
41499
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
41500
+ }
41501
+ }
41502
+ },
41503
+ NuevaEpsLookupAffiliationBody: {
41504
+ additionalProperties: false,
41505
+ type: "object",
41506
+ required: [
41507
+ "documentType",
41508
+ "documentNumber"
41509
+ ],
41510
+ properties: {
41511
+ documentType: {
41512
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
41513
+ anyOf: [
41514
+ {
41515
+ const: "AS",
41516
+ type: "string"
41517
+ },
41518
+ {
41519
+ const: "CC",
41520
+ type: "string"
41521
+ },
41522
+ {
41523
+ const: "CD",
41524
+ type: "string"
41525
+ },
41526
+ {
41527
+ const: "CE",
41528
+ type: "string"
41529
+ },
41530
+ {
41531
+ const: "CN",
41532
+ type: "string"
41533
+ },
41534
+ {
41535
+ const: "ME",
41536
+ type: "string"
41537
+ },
41538
+ {
41539
+ const: "NT",
41540
+ type: "string"
41541
+ },
41542
+ {
41543
+ const: "NU",
41544
+ type: "string"
41545
+ },
41546
+ {
41547
+ const: "PC",
41548
+ type: "string"
41549
+ },
41550
+ {
41551
+ const: "PE",
41552
+ type: "string"
41553
+ },
41554
+ {
41555
+ const: "PS",
41556
+ type: "string"
41557
+ },
41558
+ {
41559
+ const: "PT",
41560
+ type: "string"
41561
+ },
41562
+ {
41563
+ const: "RC",
41564
+ type: "string"
41565
+ },
41566
+ {
41567
+ const: "SC",
41568
+ type: "string"
41569
+ },
41570
+ {
41571
+ const: "TI",
41572
+ type: "string"
41573
+ }
41574
+ ]
41575
+ },
41576
+ documentNumber: {
41577
+ pattern: "^[A-Za-z0-9]{1,25}$",
41578
+ description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
41579
+ type: "string"
41580
+ },
41581
+ agentMode: {
41582
+ default: false,
41583
+ description: "True: concise Spanish text in data.text (HTTP) and MCP text content. False or omitted: structured JSON. Presentation never changes tenant, coverage or provider admission.",
41584
+ type: "boolean"
41585
+ },
41586
+ fields: {
41587
+ minItems: 1,
41588
+ maxItems: 11,
41589
+ uniqueItems: true,
41590
+ description: "Return only these top-level fields. member opts into additional personal data; timings opts into measured durations. Omit for the standard affiliation record. Agent text always retains affiliation and primary-provider warnings.",
41591
+ type: "array",
41592
+ items: {
41593
+ anyOf: [
41594
+ {
41595
+ const: "documentType",
41596
+ type: "string"
41597
+ },
41598
+ {
41599
+ const: "documentNumber",
41600
+ type: "string"
41601
+ },
41602
+ {
41603
+ const: "affiliated",
41604
+ type: "string"
41605
+ },
41606
+ {
41607
+ const: "callerIsPrimaryProvider",
41608
+ type: "string"
41609
+ },
41610
+ {
41611
+ const: "state",
41612
+ type: "string"
41613
+ },
41614
+ {
41615
+ const: "kind",
41616
+ type: "string"
41617
+ },
41618
+ {
41619
+ const: "category",
41620
+ type: "string"
41621
+ },
41622
+ {
41623
+ const: "primaryProvider",
41624
+ type: "string"
41625
+ },
41626
+ {
41627
+ const: "messages",
41628
+ type: "string"
41629
+ },
41630
+ {
41631
+ const: "member",
41632
+ type: "string"
41633
+ },
41634
+ {
41635
+ const: "timings",
41636
+ type: "string"
41637
+ }
41638
+ ]
41639
+ }
41640
+ },
41641
+ includeTimings: {
41642
+ default: false,
41643
+ description: "Include measured operation durations; equivalent to requesting timings in fields. Durations overlap as documented and are observations, not latency guarantees.",
41644
+ type: "boolean"
41645
+ },
41646
+ connectionId: {
41647
+ pattern: "^con_[0-9A-Za-z]{26}$",
41648
+ type: "string"
41649
+ }
41650
+ }
41651
+ },
41652
+ NuevaEpsLookupAffiliationConflictError: {
41653
+ type: "object",
41654
+ description: "A failed answer.",
41655
+ additionalProperties: false,
41656
+ required: [
41657
+ "success",
41658
+ "data",
41659
+ "error",
41660
+ "metadata"
41661
+ ],
41662
+ properties: {
41663
+ success: {
41664
+ type: "boolean",
41665
+ enum: [
41666
+ false
41667
+ ]
41668
+ },
41669
+ data: {
41670
+ const: null
41671
+ },
41672
+ error: {
41673
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationConflictFailure"
41674
+ },
41675
+ metadata: {
41676
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41677
+ }
41678
+ }
41679
+ },
41680
+ NuevaEpsLookupAffiliationConflictFailure: {
41681
+ oneOf: [
41682
+ {
41683
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
41684
+ },
41685
+ {
41686
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
41687
+ },
41688
+ {
41689
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
41690
+ }
41691
+ ],
41692
+ discriminator: {
41693
+ propertyName: "code",
41694
+ mapping: {
41695
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
41696
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
41697
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
41698
+ }
41699
+ }
41700
+ },
41701
+ NuevaEpsLookupAffiliationForbiddenError: {
41702
+ type: "object",
41703
+ description: "A failed answer.",
41704
+ additionalProperties: false,
41705
+ required: [
41706
+ "success",
41707
+ "data",
41708
+ "error",
41709
+ "metadata"
41710
+ ],
41711
+ properties: {
41712
+ success: {
41713
+ type: "boolean",
41714
+ enum: [
41715
+ false
41716
+ ]
41717
+ },
41718
+ data: {
41719
+ const: null
41720
+ },
41721
+ error: {
41722
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationForbiddenFailure"
41723
+ },
41724
+ metadata: {
41725
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
41726
+ }
41727
+ }
41728
+ },
41729
+ NuevaEpsLookupAffiliationForbiddenFailure: {
41730
+ oneOf: [
41731
+ {
41732
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
41733
+ },
41734
+ {
41735
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41736
+ }
41737
+ ],
41738
+ discriminator: {
41739
+ propertyName: "code",
41740
+ mapping: {
41741
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
41742
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
41743
+ }
41744
+ }
41745
+ },
41746
+ NuevaEpsLookupAffiliationResult: {
41747
+ anyOf: [
41748
+ {
41749
+ additionalProperties: false,
41750
+ type: "object",
41751
+ properties: {
41752
+ documentType: {
41753
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
41754
+ anyOf: [
41755
+ {
41756
+ const: "AS",
40435
41757
  type: "string"
40436
41758
  },
40437
- retryable: {
40438
- const: false,
40439
- type: "boolean"
41759
+ {
41760
+ const: "CC",
41761
+ type: "string"
40440
41762
  },
40441
- data: {
40442
- additionalProperties: false,
40443
- type: "object",
40444
- properties: {}
41763
+ {
41764
+ const: "CD",
41765
+ type: "string"
41766
+ },
41767
+ {
41768
+ const: "CE",
41769
+ type: "string"
41770
+ },
41771
+ {
41772
+ const: "CN",
41773
+ type: "string"
41774
+ },
41775
+ {
41776
+ const: "ME",
41777
+ type: "string"
41778
+ },
41779
+ {
41780
+ const: "NT",
41781
+ type: "string"
41782
+ },
41783
+ {
41784
+ const: "NU",
41785
+ type: "string"
41786
+ },
41787
+ {
41788
+ const: "PC",
41789
+ type: "string"
41790
+ },
41791
+ {
41792
+ const: "PE",
41793
+ type: "string"
41794
+ },
41795
+ {
41796
+ const: "PS",
41797
+ type: "string"
41798
+ },
41799
+ {
41800
+ const: "PT",
41801
+ type: "string"
41802
+ },
41803
+ {
41804
+ const: "RC",
41805
+ type: "string"
41806
+ },
41807
+ {
41808
+ const: "SC",
41809
+ type: "string"
41810
+ },
41811
+ {
41812
+ const: "TI",
41813
+ type: "string"
41814
+ }
41815
+ ]
41816
+ },
41817
+ documentNumber: {
41818
+ pattern: "^[A-Za-z0-9]{1,25}$",
41819
+ description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
41820
+ type: "string"
41821
+ },
41822
+ affiliated: {
41823
+ description: "True only when the portal returns ACTIVO. A provider failure is an error, never false.",
41824
+ type: "boolean"
41825
+ },
41826
+ callerIsPrimaryProvider: {
41827
+ description: "Whether the portal identifies the authenticated provider as the assigned primary provider. This is not a medical authorization.",
41828
+ type: "boolean"
41829
+ },
41830
+ state: {
41831
+ description: "Original affiliation status reported by Nueva EPS, for example ACTIVO; not connection status.",
41832
+ type: "string"
41833
+ },
41834
+ kind: {
41835
+ description: "Original affiliate type reported by Nueva EPS; preserve the provider value.",
41836
+ type: "string"
41837
+ },
41838
+ category: {
41839
+ description: "Original affiliate category reported by Nueva EPS; preserve the provider value.",
41840
+ type: "string"
41841
+ },
41842
+ primaryProvider: {
41843
+ description: "Name of the assigned primary provider, when present; not an Arbol provider identifier.",
41844
+ type: "string"
41845
+ },
41846
+ messages: {
41847
+ maxItems: 100,
41848
+ type: "array",
41849
+ items: {
41850
+ additionalProperties: false,
41851
+ type: "object",
41852
+ required: [
41853
+ "level",
41854
+ "text"
41855
+ ],
41856
+ properties: {
41857
+ level: {
41858
+ anyOf: [
41859
+ {
41860
+ const: "error",
41861
+ type: "string"
41862
+ },
41863
+ {
41864
+ const: "info",
41865
+ type: "string"
41866
+ }
41867
+ ]
41868
+ },
41869
+ text: {
41870
+ maxLength: 4000,
41871
+ type: "string"
41872
+ }
40445
41873
  }
40446
41874
  }
40447
41875
  },
40448
- {
41876
+ member: {
40449
41877
  additionalProperties: false,
41878
+ description: "Additional member data. Returned only when fields explicitly includes member; null means the portal omitted that field.",
40450
41879
  type: "object",
40451
41880
  required: [
40452
- "code",
40453
- "message",
40454
- "retryable",
40455
- "data"
41881
+ "address",
41882
+ "age",
41883
+ "birthDate",
41884
+ "city",
41885
+ "contributedWeeks",
41886
+ "queriedAt",
41887
+ "sex",
41888
+ "stateProvince",
41889
+ "telephone"
40456
41890
  ],
40457
41891
  properties: {
40458
- code: {
40459
- const: "REQUEST_TOO_LARGE",
40460
- type: "string"
41892
+ address: {
41893
+ description: "Dirección Residencia, exactly as supplied by the portal.",
41894
+ anyOf: [
41895
+ {
41896
+ type: "string"
41897
+ },
41898
+ {
41899
+ type: "null"
41900
+ }
41901
+ ]
40461
41902
  },
40462
- message: {
40463
- const: "The request exceeds the allowed size.",
40464
- type: "string"
41903
+ age: {
41904
+ description: "Edad in completed years; never calculated from another field.",
41905
+ anyOf: [
41906
+ {
41907
+ minimum: 0,
41908
+ type: "integer"
41909
+ },
41910
+ {
41911
+ type: "null"
41912
+ }
41913
+ ]
40465
41914
  },
40466
- retryable: {
40467
- const: false,
40468
- type: "boolean"
41915
+ birthDate: {
41916
+ description: "Fecha Nacimiento in the original portal format; no inferred time zone.",
41917
+ anyOf: [
41918
+ {
41919
+ type: "string"
41920
+ },
41921
+ {
41922
+ type: "null"
41923
+ }
41924
+ ]
40469
41925
  },
40470
- data: {
40471
- additionalProperties: false,
40472
- type: "object",
40473
- properties: {}
41926
+ city: {
41927
+ description: "Municipio.",
41928
+ anyOf: [
41929
+ {
41930
+ type: "string"
41931
+ },
41932
+ {
41933
+ type: "null"
41934
+ }
41935
+ ]
41936
+ },
41937
+ contributedWeeks: {
41938
+ description: "Semanas Cotizadas.",
41939
+ anyOf: [
41940
+ {
41941
+ minimum: 0,
41942
+ type: "integer"
41943
+ },
41944
+ {
41945
+ type: "null"
41946
+ }
41947
+ ]
41948
+ },
41949
+ queriedAt: {
41950
+ description: "Fecha/Hora Consulta as reported by the portal, with its original format.",
41951
+ anyOf: [
41952
+ {
41953
+ type: "string"
41954
+ },
41955
+ {
41956
+ type: "null"
41957
+ }
41958
+ ]
41959
+ },
41960
+ sex: {
41961
+ description: "Sexo, unchanged provider value.",
41962
+ anyOf: [
41963
+ {
41964
+ type: "string"
41965
+ },
41966
+ {
41967
+ type: "null"
41968
+ }
41969
+ ]
41970
+ },
41971
+ stateProvince: {
41972
+ description: "Departamento.",
41973
+ anyOf: [
41974
+ {
41975
+ type: "string"
41976
+ },
41977
+ {
41978
+ type: "null"
41979
+ }
41980
+ ]
41981
+ },
41982
+ telephone: {
41983
+ description: "Teléfono, preserved as text.",
41984
+ anyOf: [
41985
+ {
41986
+ type: "string"
41987
+ },
41988
+ {
41989
+ type: "null"
41990
+ }
41991
+ ]
40474
41992
  }
40475
41993
  }
40476
41994
  },
41995
+ timings: {
41996
+ additionalProperties: false,
41997
+ type: "object",
41998
+ required: [
41999
+ "connectionMs",
42000
+ "accountMs",
42001
+ "sessionMs",
42002
+ "lookupMs",
42003
+ "mappingMs",
42004
+ "totalMs",
42005
+ "sessionReused"
42006
+ ],
42007
+ properties: {
42008
+ connectionMs: {
42009
+ minimum: 0,
42010
+ description: "Account directory selection in this Worker.",
42011
+ type: "number"
42012
+ },
42013
+ accountMs: {
42014
+ minimum: 0,
42015
+ description: "Inclusive Account DO call: vault, queue, container admission and provider execution.",
42016
+ type: "number"
42017
+ },
42018
+ sessionMs: {
42019
+ description: "Provider session check or login inside the container; included in accountMs.",
42020
+ anyOf: [
42021
+ {
42022
+ minimum: 0,
42023
+ type: "number"
42024
+ },
42025
+ {
42026
+ type: "null"
42027
+ }
42028
+ ]
42029
+ },
42030
+ lookupMs: {
42031
+ description: "Fresh portal view plus affiliation query and bounded retries; included in accountMs.",
42032
+ anyOf: [
42033
+ {
42034
+ minimum: 0,
42035
+ type: "number"
42036
+ },
42037
+ {
42038
+ type: "null"
42039
+ }
42040
+ ]
42041
+ },
42042
+ mappingMs: {
42043
+ minimum: 0,
42044
+ description: "Parse and map the provider response in this Worker.",
42045
+ type: "number"
42046
+ },
42047
+ totalMs: {
42048
+ minimum: 0,
42049
+ description: "Operation handler through result mapping; excludes outer Gateway/network and representation encoding. Do not sum overlapping measurements.",
42050
+ type: "number"
42051
+ },
42052
+ sessionReused: {
42053
+ description: "Whether a session was already available when provider execution began.",
42054
+ anyOf: [
42055
+ {
42056
+ type: "boolean"
42057
+ },
42058
+ {
42059
+ type: "null"
42060
+ }
42061
+ ]
42062
+ }
42063
+ }
42064
+ }
42065
+ },
42066
+ description: "Structured affiliation; fields may project its top-level properties."
42067
+ },
42068
+ {
42069
+ additionalProperties: false,
42070
+ type: "object",
42071
+ required: [
42072
+ "text"
42073
+ ],
42074
+ properties: {
42075
+ text: {
42076
+ description: "Concise Spanish affiliation answer when agentMode=true.",
42077
+ type: "string"
42078
+ }
42079
+ }
42080
+ }
42081
+ ]
42082
+ },
42083
+ NuevaEpsLookupAffiliationResultResponse: {
42084
+ type: "object",
42085
+ description: "A successful answer.",
42086
+ additionalProperties: false,
42087
+ required: [
42088
+ "success",
42089
+ "data",
42090
+ "error",
42091
+ "metadata"
42092
+ ],
42093
+ properties: {
42094
+ success: {
42095
+ type: "boolean",
42096
+ enum: [
42097
+ true
42098
+ ]
42099
+ },
42100
+ data: {
42101
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationResult"
42102
+ },
42103
+ error: {
42104
+ const: null
42105
+ },
42106
+ metadata: {
42107
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42108
+ }
42109
+ }
42110
+ },
42111
+ NuevaEpsLookupAffiliationServiceUnavailableError: {
42112
+ type: "object",
42113
+ description: "A failed answer.",
42114
+ additionalProperties: false,
42115
+ required: [
42116
+ "success",
42117
+ "data",
42118
+ "error",
42119
+ "metadata"
42120
+ ],
42121
+ properties: {
42122
+ success: {
42123
+ type: "boolean",
42124
+ enum: [
42125
+ false
42126
+ ]
42127
+ },
42128
+ data: {
42129
+ const: null
42130
+ },
42131
+ error: {
42132
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationServiceUnavailableFailure"
42133
+ },
42134
+ metadata: {
42135
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42136
+ }
42137
+ }
42138
+ },
42139
+ NuevaEpsLookupAffiliationServiceUnavailableFailure: {
42140
+ oneOf: [
42141
+ {
42142
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
42143
+ },
42144
+ {
42145
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
42146
+ },
42147
+ {
42148
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
42149
+ }
42150
+ ],
42151
+ discriminator: {
42152
+ propertyName: "code",
42153
+ mapping: {
42154
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
42155
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
42156
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
42157
+ }
42158
+ }
42159
+ },
42160
+ NuevaEpsLookupAffiliationTooManyRequestsError: {
42161
+ type: "object",
42162
+ description: "A failed answer.",
42163
+ additionalProperties: false,
42164
+ required: [
42165
+ "success",
42166
+ "data",
42167
+ "error",
42168
+ "metadata"
42169
+ ],
42170
+ properties: {
42171
+ success: {
42172
+ type: "boolean",
42173
+ enum: [
42174
+ false
42175
+ ]
42176
+ },
42177
+ data: {
42178
+ const: null
42179
+ },
42180
+ error: {
42181
+ $ref: "#/components/schemas/NuevaEpsLookupAffiliationTooManyRequestsFailure"
42182
+ },
42183
+ metadata: {
42184
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42185
+ }
42186
+ }
42187
+ },
42188
+ NuevaEpsLookupAffiliationTooManyRequestsFailure: {
42189
+ oneOf: [
42190
+ {
42191
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
42192
+ },
42193
+ {
42194
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
42195
+ }
42196
+ ],
42197
+ discriminator: {
42198
+ propertyName: "code",
42199
+ mapping: {
42200
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
42201
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
42202
+ }
42203
+ }
42204
+ },
42205
+ NuevaEpsNotConfiguredFailure: {
42206
+ type: "object",
42207
+ description: "This organization has no verified Nueva EPS connection.",
42208
+ additionalProperties: false,
42209
+ required: [
42210
+ "code",
42211
+ "message",
42212
+ "retryable",
42213
+ "data"
42214
+ ],
42215
+ properties: {
42216
+ code: {
42217
+ type: "string",
42218
+ enum: [
42219
+ "NOT_CONFIGURED"
42220
+ ],
42221
+ description: "The failure code, stable across releases."
42222
+ },
42223
+ message: {
42224
+ type: "string",
42225
+ description: "What went wrong, for people; it never contains input values."
42226
+ },
42227
+ retryable: {
42228
+ type: "boolean",
42229
+ enum: [
42230
+ false
42231
+ ],
42232
+ description: "Whether repeating the same request may succeed."
42233
+ },
42234
+ data: {
42235
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42236
+ }
42237
+ }
42238
+ },
42239
+ NuevaEpsOutcomeUnknownFailure: {
42240
+ type: "object",
42241
+ description: "The operation may have been applied; check its result before repeating it.",
42242
+ additionalProperties: false,
42243
+ required: [
42244
+ "code",
42245
+ "message",
42246
+ "retryable",
42247
+ "data"
42248
+ ],
42249
+ properties: {
42250
+ code: {
42251
+ type: "string",
42252
+ enum: [
42253
+ "OUTCOME_UNKNOWN"
42254
+ ],
42255
+ description: "The failure code, stable across releases."
42256
+ },
42257
+ message: {
42258
+ type: "string",
42259
+ description: "What went wrong, for people; it never contains input values."
42260
+ },
42261
+ retryable: {
42262
+ type: "boolean",
42263
+ enum: [
42264
+ false
42265
+ ],
42266
+ description: "Whether repeating the same request may succeed."
42267
+ },
42268
+ data: {
42269
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42270
+ }
42271
+ }
42272
+ },
42273
+ NuevaEpsPortalChangedFailure: {
42274
+ type: "object",
42275
+ description: "The response does not match the verified provider protocol.",
42276
+ additionalProperties: false,
42277
+ required: [
42278
+ "code",
42279
+ "message",
42280
+ "retryable",
42281
+ "data"
42282
+ ],
42283
+ properties: {
42284
+ code: {
42285
+ type: "string",
42286
+ enum: [
42287
+ "PORTAL_CHANGED"
42288
+ ],
42289
+ description: "The failure code, stable across releases."
42290
+ },
42291
+ message: {
42292
+ type: "string",
42293
+ description: "What went wrong, for people; it never contains input values."
42294
+ },
42295
+ retryable: {
42296
+ type: "boolean",
42297
+ enum: [
42298
+ false
42299
+ ],
42300
+ description: "Whether repeating the same request may succeed."
42301
+ },
42302
+ data: {
42303
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42304
+ }
42305
+ }
42306
+ },
42307
+ NuevaEpsPortalUnavailableFailure: {
42308
+ type: "object",
42309
+ description: "The provider portal could not complete this request.",
42310
+ additionalProperties: false,
42311
+ required: [
42312
+ "code",
42313
+ "message",
42314
+ "retryable",
42315
+ "data"
42316
+ ],
42317
+ properties: {
42318
+ code: {
42319
+ type: "string",
42320
+ enum: [
42321
+ "PORTAL_UNAVAILABLE"
42322
+ ],
42323
+ description: "The failure code, stable across releases."
42324
+ },
42325
+ message: {
42326
+ type: "string",
42327
+ description: "What went wrong, for people; it never contains input values."
42328
+ },
42329
+ retryable: {
42330
+ type: "boolean",
42331
+ enum: [
42332
+ false
42333
+ ],
42334
+ description: "Whether repeating the same request may succeed."
42335
+ },
42336
+ data: {
42337
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42338
+ }
42339
+ }
42340
+ },
42341
+ NuevaEpsRateLimitedFailure: {
42342
+ type: "object",
42343
+ description: "The request rate limit was exceeded. Try again later.",
42344
+ additionalProperties: false,
42345
+ required: [
42346
+ "code",
42347
+ "message",
42348
+ "retryable",
42349
+ "data"
42350
+ ],
42351
+ properties: {
42352
+ code: {
42353
+ type: "string",
42354
+ enum: [
42355
+ "RATE_LIMITED"
42356
+ ],
42357
+ description: "The failure code, stable across releases."
42358
+ },
42359
+ message: {
42360
+ type: "string",
42361
+ description: "What went wrong, for people; it never contains input values."
42362
+ },
42363
+ retryable: {
42364
+ type: "boolean",
42365
+ enum: [
42366
+ true
42367
+ ],
42368
+ description: "Whether repeating the same request may succeed."
42369
+ },
42370
+ data: {
42371
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42372
+ }
42373
+ }
42374
+ },
42375
+ NuevaEpsRegionBlockedFailure: {
42376
+ type: "object",
42377
+ description: "This container cannot access the provider login page.",
42378
+ additionalProperties: false,
42379
+ required: [
42380
+ "code",
42381
+ "message",
42382
+ "retryable",
42383
+ "data"
42384
+ ],
42385
+ properties: {
42386
+ code: {
42387
+ type: "string",
42388
+ enum: [
42389
+ "REGION_BLOCKED"
42390
+ ],
42391
+ description: "The failure code, stable across releases."
42392
+ },
42393
+ message: {
42394
+ type: "string",
42395
+ description: "What went wrong, for people; it never contains input values."
42396
+ },
42397
+ retryable: {
42398
+ type: "boolean",
42399
+ enum: [
42400
+ false
42401
+ ],
42402
+ description: "Whether repeating the same request may succeed."
42403
+ },
42404
+ data: {
42405
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42406
+ }
42407
+ }
42408
+ },
42409
+ NuevaEpsRequestTooLargeError: {
42410
+ type: "object",
42411
+ description: "A failed answer.",
42412
+ additionalProperties: false,
42413
+ required: [
42414
+ "success",
42415
+ "data",
42416
+ "error",
42417
+ "metadata"
42418
+ ],
42419
+ properties: {
42420
+ success: {
42421
+ type: "boolean",
42422
+ enum: [
42423
+ false
42424
+ ]
42425
+ },
42426
+ data: {
42427
+ const: null
42428
+ },
42429
+ error: {
42430
+ $ref: "#/components/schemas/NuevaEpsRequestTooLargeFailure"
42431
+ },
42432
+ metadata: {
42433
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42434
+ }
42435
+ }
42436
+ },
42437
+ NuevaEpsRequestTooLargeFailure: {
42438
+ type: "object",
42439
+ description: "The request exceeds the allowed size.",
42440
+ additionalProperties: false,
42441
+ required: [
42442
+ "code",
42443
+ "message",
42444
+ "retryable",
42445
+ "data"
42446
+ ],
42447
+ properties: {
42448
+ code: {
42449
+ type: "string",
42450
+ enum: [
42451
+ "REQUEST_TOO_LARGE"
42452
+ ],
42453
+ description: "The failure code, stable across releases."
42454
+ },
42455
+ message: {
42456
+ type: "string",
42457
+ description: "What went wrong, for people; it never contains input values."
42458
+ },
42459
+ retryable: {
42460
+ type: "boolean",
42461
+ enum: [
42462
+ false
42463
+ ],
42464
+ description: "Whether repeating the same request may succeed."
42465
+ },
42466
+ data: {
42467
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42468
+ }
42469
+ }
42470
+ },
42471
+ NuevaEpsResponseMetadata: {
42472
+ type: "object",
42473
+ description: "What every answer carries besides its data or error.",
42474
+ additionalProperties: false,
42475
+ required: [
42476
+ "requestId"
42477
+ ],
42478
+ properties: {
42479
+ requestId: {
42480
+ type: "string",
42481
+ description: "Request correlation identifier, also sent as X-Request-Id."
42482
+ }
42483
+ }
42484
+ },
42485
+ NuevaEpsSessionBusyFailure: {
42486
+ type: "object",
42487
+ description: "Another session operation is in progress.",
42488
+ additionalProperties: false,
42489
+ required: [
42490
+ "code",
42491
+ "message",
42492
+ "retryable",
42493
+ "data"
42494
+ ],
42495
+ properties: {
42496
+ code: {
42497
+ type: "string",
42498
+ enum: [
42499
+ "SESSION_BUSY"
42500
+ ],
42501
+ description: "The failure code, stable across releases."
42502
+ },
42503
+ message: {
42504
+ type: "string",
42505
+ description: "What went wrong, for people; it never contains input values."
42506
+ },
42507
+ retryable: {
42508
+ type: "boolean",
42509
+ enum: [
42510
+ true
42511
+ ],
42512
+ description: "Whether repeating the same request may succeed."
42513
+ },
42514
+ data: {
42515
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42516
+ }
42517
+ }
42518
+ },
42519
+ NuevaEpsSessionRequiredFailure: {
42520
+ type: "object",
42521
+ description: "The provider session expired. A new bounded login is required.",
42522
+ additionalProperties: false,
42523
+ required: [
42524
+ "code",
42525
+ "message",
42526
+ "retryable",
42527
+ "data"
42528
+ ],
42529
+ properties: {
42530
+ code: {
42531
+ type: "string",
42532
+ enum: [
42533
+ "SESSION_REQUIRED"
42534
+ ],
42535
+ description: "The failure code, stable across releases."
42536
+ },
42537
+ message: {
42538
+ type: "string",
42539
+ description: "What went wrong, for people; it never contains input values."
42540
+ },
42541
+ retryable: {
42542
+ type: "boolean",
42543
+ enum: [
42544
+ false
42545
+ ],
42546
+ description: "Whether repeating the same request may succeed."
42547
+ },
42548
+ data: {
42549
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42550
+ }
42551
+ }
42552
+ },
42553
+ NuevaEpsUnauthorizedError: {
42554
+ type: "object",
42555
+ description: "A failed answer.",
42556
+ additionalProperties: false,
42557
+ required: [
42558
+ "success",
42559
+ "data",
42560
+ "error",
42561
+ "metadata"
42562
+ ],
42563
+ properties: {
42564
+ success: {
42565
+ type: "boolean",
42566
+ enum: [
42567
+ false
42568
+ ]
42569
+ },
42570
+ data: {
42571
+ const: null
42572
+ },
42573
+ error: {
42574
+ $ref: "#/components/schemas/NuevaEpsUnauthorizedFailure"
42575
+ },
42576
+ metadata: {
42577
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42578
+ }
42579
+ }
42580
+ },
42581
+ NuevaEpsUnauthorizedFailure: {
42582
+ type: "object",
42583
+ description: "A valid access token is required.",
42584
+ additionalProperties: false,
42585
+ required: [
42586
+ "code",
42587
+ "message",
42588
+ "retryable",
42589
+ "data"
42590
+ ],
42591
+ properties: {
42592
+ code: {
42593
+ type: "string",
42594
+ enum: [
42595
+ "UNAUTHORIZED"
42596
+ ],
42597
+ description: "The failure code, stable across releases."
42598
+ },
42599
+ message: {
42600
+ type: "string",
42601
+ description: "What went wrong, for people; it never contains input values."
42602
+ },
42603
+ retryable: {
42604
+ type: "boolean",
42605
+ enum: [
42606
+ false
42607
+ ],
42608
+ description: "Whether repeating the same request may succeed."
42609
+ },
42610
+ data: {
42611
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42612
+ }
42613
+ }
42614
+ },
42615
+ NuevaEpsUnsupportedMediaTypeError: {
42616
+ type: "object",
42617
+ description: "A failed answer.",
42618
+ additionalProperties: false,
42619
+ required: [
42620
+ "success",
42621
+ "data",
42622
+ "error",
42623
+ "metadata"
42624
+ ],
42625
+ properties: {
42626
+ success: {
42627
+ type: "boolean",
42628
+ enum: [
42629
+ false
42630
+ ]
42631
+ },
42632
+ data: {
42633
+ const: null
42634
+ },
42635
+ error: {
42636
+ $ref: "#/components/schemas/NuevaEpsUnsupportedMediaTypeFailure"
42637
+ },
42638
+ metadata: {
42639
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42640
+ }
42641
+ }
42642
+ },
42643
+ NuevaEpsUnsupportedMediaTypeFailure: {
42644
+ type: "object",
42645
+ description: "The request content type is not supported.",
42646
+ additionalProperties: false,
42647
+ required: [
42648
+ "code",
42649
+ "message",
42650
+ "retryable",
42651
+ "data"
42652
+ ],
42653
+ properties: {
42654
+ code: {
42655
+ type: "string",
42656
+ enum: [
42657
+ "UNSUPPORTED_MEDIA_TYPE"
42658
+ ],
42659
+ description: "The failure code, stable across releases."
42660
+ },
42661
+ message: {
42662
+ type: "string",
42663
+ description: "What went wrong, for people; it never contains input values."
42664
+ },
42665
+ retryable: {
42666
+ type: "boolean",
42667
+ enum: [
42668
+ false
42669
+ ],
42670
+ description: "Whether repeating the same request may succeed."
42671
+ },
42672
+ data: {
42673
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42674
+ }
42675
+ }
42676
+ },
42677
+ NuevaEpsUpstreamTimeoutError: {
42678
+ type: "object",
42679
+ description: "A failed answer.",
42680
+ additionalProperties: false,
42681
+ required: [
42682
+ "success",
42683
+ "data",
42684
+ "error",
42685
+ "metadata"
42686
+ ],
42687
+ properties: {
42688
+ success: {
42689
+ type: "boolean",
42690
+ enum: [
42691
+ false
42692
+ ]
42693
+ },
42694
+ data: {
42695
+ const: null
42696
+ },
42697
+ error: {
42698
+ $ref: "#/components/schemas/NuevaEpsUpstreamTimeoutFailure"
42699
+ },
42700
+ metadata: {
42701
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42702
+ }
42703
+ }
42704
+ },
42705
+ NuevaEpsUpstreamTimeoutFailure: {
42706
+ type: "object",
42707
+ description: "The upstream service did not respond before its deadline.",
42708
+ additionalProperties: false,
42709
+ required: [
42710
+ "code",
42711
+ "message",
42712
+ "retryable",
42713
+ "data"
42714
+ ],
42715
+ properties: {
42716
+ code: {
42717
+ type: "string",
42718
+ enum: [
42719
+ "UPSTREAM_TIMEOUT"
42720
+ ],
42721
+ description: "The failure code, stable across releases."
42722
+ },
42723
+ message: {
42724
+ type: "string",
42725
+ description: "What went wrong, for people; it never contains input values."
42726
+ },
42727
+ retryable: {
42728
+ type: "boolean",
42729
+ enum: [
42730
+ true
42731
+ ],
42732
+ description: "Whether repeating the same request may succeed."
42733
+ },
42734
+ data: {
42735
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42736
+ }
42737
+ }
42738
+ },
42739
+ NuevaEpsUpstreamUnavailableFailure: {
42740
+ type: "object",
42741
+ description: "The upstream service could not complete the request.",
42742
+ additionalProperties: false,
42743
+ required: [
42744
+ "code",
42745
+ "message",
42746
+ "retryable",
42747
+ "data"
42748
+ ],
42749
+ properties: {
42750
+ code: {
42751
+ type: "string",
42752
+ enum: [
42753
+ "UPSTREAM_UNAVAILABLE"
42754
+ ],
42755
+ description: "The failure code, stable across releases."
42756
+ },
42757
+ message: {
42758
+ type: "string",
42759
+ description: "What went wrong, for people; it never contains input values."
42760
+ },
42761
+ retryable: {
42762
+ type: "boolean",
42763
+ enum: [
42764
+ true
42765
+ ],
42766
+ description: "Whether repeating the same request may succeed."
42767
+ },
42768
+ data: {
42769
+ $ref: "#/components/schemas/NuevaEpsEmpty"
42770
+ }
42771
+ }
42772
+ },
42773
+ NuevaEpsVerifyConnectionBadGatewayError: {
42774
+ type: "object",
42775
+ description: "A failed answer.",
42776
+ additionalProperties: false,
42777
+ required: [
42778
+ "success",
42779
+ "data",
42780
+ "error",
42781
+ "metadata"
42782
+ ],
42783
+ properties: {
42784
+ success: {
42785
+ type: "boolean",
42786
+ enum: [
42787
+ false
42788
+ ]
42789
+ },
42790
+ data: {
42791
+ const: null
42792
+ },
42793
+ error: {
42794
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionBadGatewayFailure"
42795
+ },
42796
+ metadata: {
42797
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42798
+ }
42799
+ }
42800
+ },
42801
+ NuevaEpsVerifyConnectionBadGatewayFailure: {
42802
+ oneOf: [
42803
+ {
42804
+ $ref: "#/components/schemas/NuevaEpsOutcomeUnknownFailure"
42805
+ },
42806
+ {
42807
+ $ref: "#/components/schemas/NuevaEpsPortalChangedFailure"
42808
+ }
42809
+ ],
42810
+ discriminator: {
42811
+ propertyName: "code",
42812
+ mapping: {
42813
+ OUTCOME_UNKNOWN: "#/components/schemas/NuevaEpsOutcomeUnknownFailure",
42814
+ PORTAL_CHANGED: "#/components/schemas/NuevaEpsPortalChangedFailure"
42815
+ }
42816
+ }
42817
+ },
42818
+ NuevaEpsVerifyConnectionBody: {
42819
+ additionalProperties: false,
42820
+ type: "object",
42821
+ required: [
42822
+ "name",
42823
+ "username",
42824
+ "password",
42825
+ "documentType"
42826
+ ],
42827
+ properties: {
42828
+ name: {
42829
+ minLength: 1,
42830
+ maxLength: 80,
42831
+ type: "string"
42832
+ },
42833
+ username: {
42834
+ minLength: 1,
42835
+ maxLength: 100,
42836
+ description: "Provider portal login identifier; separate from the member document being queried.",
42837
+ type: "string"
42838
+ },
42839
+ password: {
42840
+ minLength: 1,
42841
+ maxLength: 200,
42842
+ writeOnly: true,
42843
+ type: "string"
42844
+ },
42845
+ documentType: {
42846
+ description: "Document type code accepted by Nueva EPS; provider-specific codes retain their original meaning.",
42847
+ anyOf: [
40477
42848
  {
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
- }
42849
+ const: "AS",
42850
+ type: "string"
40505
42851
  },
40506
42852
  {
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
- }
42853
+ const: "CC",
42854
+ type: "string"
40534
42855
  },
40535
- {
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
- }
42856
+ {
42857
+ const: "CD",
42858
+ type: "string"
40563
42859
  },
40564
42860
  {
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
- }
42861
+ const: "CE",
42862
+ type: "string"
40592
42863
  },
40593
42864
  {
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
- }
42865
+ const: "CN",
42866
+ type: "string"
40621
42867
  },
40622
42868
  {
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
- }
42869
+ const: "ME",
42870
+ type: "string"
40650
42871
  },
40651
42872
  {
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
- }
42873
+ const: "NT",
42874
+ type: "string"
40679
42875
  },
40680
42876
  {
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
- }
42877
+ const: "NU",
42878
+ type: "string"
40708
42879
  },
40709
42880
  {
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
- }
42881
+ const: "PC",
42882
+ type: "string"
40737
42883
  },
40738
42884
  {
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
- }
42885
+ const: "PE",
42886
+ type: "string"
40766
42887
  },
40767
42888
  {
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
- }
42889
+ const: "PS",
42890
+ type: "string"
40795
42891
  },
40796
42892
  {
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
- }
42893
+ const: "PT",
42894
+ type: "string"
40824
42895
  },
40825
42896
  {
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
- }
42897
+ const: "RC",
42898
+ type: "string"
40853
42899
  },
40854
42900
  {
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
- }
42901
+ const: "SC",
42902
+ type: "string"
40882
42903
  },
40883
42904
  {
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
- }
42905
+ const: "TI",
42906
+ type: "string"
40911
42907
  }
40912
42908
  ]
42909
+ }
42910
+ }
42911
+ },
42912
+ NuevaEpsVerifyConnectionConflictError: {
42913
+ type: "object",
42914
+ description: "A failed answer.",
42915
+ additionalProperties: false,
42916
+ required: [
42917
+ "success",
42918
+ "data",
42919
+ "error",
42920
+ "metadata"
42921
+ ],
42922
+ properties: {
42923
+ success: {
42924
+ type: "boolean",
42925
+ enum: [
42926
+ false
42927
+ ]
42928
+ },
42929
+ data: {
42930
+ const: null
42931
+ },
42932
+ error: {
42933
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionConflictFailure"
40913
42934
  },
40914
42935
  metadata: {
40915
- $ref: "#/components/schemas/ResponseMetadata"
42936
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42937
+ }
42938
+ }
42939
+ },
42940
+ NuevaEpsVerifyConnectionConflictFailure: {
42941
+ oneOf: [
42942
+ {
42943
+ $ref: "#/components/schemas/NuevaEpsNotConfiguredFailure"
42944
+ },
42945
+ {
42946
+ $ref: "#/components/schemas/NuevaEpsSessionRequiredFailure"
42947
+ },
42948
+ {
42949
+ $ref: "#/components/schemas/NuevaEpsSessionBusyFailure"
42950
+ }
42951
+ ],
42952
+ discriminator: {
42953
+ propertyName: "code",
42954
+ mapping: {
42955
+ NOT_CONFIGURED: "#/components/schemas/NuevaEpsNotConfiguredFailure",
42956
+ SESSION_REQUIRED: "#/components/schemas/NuevaEpsSessionRequiredFailure",
42957
+ SESSION_BUSY: "#/components/schemas/NuevaEpsSessionBusyFailure"
42958
+ }
42959
+ }
42960
+ },
42961
+ NuevaEpsVerifyConnectionForbiddenError: {
42962
+ type: "object",
42963
+ description: "A failed answer.",
42964
+ additionalProperties: false,
42965
+ required: [
42966
+ "success",
42967
+ "data",
42968
+ "error",
42969
+ "metadata"
42970
+ ],
42971
+ properties: {
42972
+ success: {
42973
+ type: "boolean",
42974
+ enum: [
42975
+ false
42976
+ ]
42977
+ },
42978
+ data: {
42979
+ const: null
42980
+ },
42981
+ error: {
42982
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionForbiddenFailure"
42983
+ },
42984
+ metadata: {
42985
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
42986
+ }
42987
+ }
42988
+ },
42989
+ NuevaEpsVerifyConnectionForbiddenFailure: {
42990
+ oneOf: [
42991
+ {
42992
+ $ref: "#/components/schemas/NuevaEpsForbiddenFailure"
42993
+ },
42994
+ {
42995
+ $ref: "#/components/schemas/NuevaEpsLoginRejectedFailure"
42996
+ }
42997
+ ],
42998
+ discriminator: {
42999
+ propertyName: "code",
43000
+ mapping: {
43001
+ FORBIDDEN: "#/components/schemas/NuevaEpsForbiddenFailure",
43002
+ LOGIN_REJECTED: "#/components/schemas/NuevaEpsLoginRejectedFailure"
43003
+ }
43004
+ }
43005
+ },
43006
+ NuevaEpsVerifyConnectionResult: {
43007
+ anyOf: [
43008
+ {
43009
+ additionalProperties: false,
43010
+ type: "object",
43011
+ required: [
43012
+ "status",
43013
+ "stateRef",
43014
+ "summary"
43015
+ ],
43016
+ properties: {
43017
+ status: {
43018
+ const: "active",
43019
+ type: "string"
43020
+ },
43021
+ stateRef: {
43022
+ type: "string"
43023
+ },
43024
+ summary: {
43025
+ type: "string"
43026
+ }
43027
+ }
43028
+ },
43029
+ {
43030
+ additionalProperties: false,
43031
+ type: "object",
43032
+ required: [
43033
+ "status",
43034
+ "errorCode"
43035
+ ],
43036
+ properties: {
43037
+ status: {
43038
+ const: "rejected",
43039
+ type: "string"
43040
+ },
43041
+ errorCode: {
43042
+ type: "string"
43043
+ }
43044
+ }
43045
+ }
43046
+ ]
43047
+ },
43048
+ NuevaEpsVerifyConnectionResultResponse: {
43049
+ type: "object",
43050
+ description: "A successful answer.",
43051
+ additionalProperties: false,
43052
+ required: [
43053
+ "success",
43054
+ "data",
43055
+ "error",
43056
+ "metadata"
43057
+ ],
43058
+ properties: {
43059
+ success: {
43060
+ type: "boolean",
43061
+ enum: [
43062
+ true
43063
+ ]
43064
+ },
43065
+ data: {
43066
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionResult"
43067
+ },
43068
+ error: {
43069
+ const: null
43070
+ },
43071
+ metadata: {
43072
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
43073
+ }
43074
+ }
43075
+ },
43076
+ NuevaEpsVerifyConnectionServiceUnavailableError: {
43077
+ type: "object",
43078
+ description: "A failed answer.",
43079
+ additionalProperties: false,
43080
+ required: [
43081
+ "success",
43082
+ "data",
43083
+ "error",
43084
+ "metadata"
43085
+ ],
43086
+ properties: {
43087
+ success: {
43088
+ type: "boolean",
43089
+ enum: [
43090
+ false
43091
+ ]
43092
+ },
43093
+ data: {
43094
+ const: null
43095
+ },
43096
+ error: {
43097
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionServiceUnavailableFailure"
43098
+ },
43099
+ metadata: {
43100
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
43101
+ }
43102
+ }
43103
+ },
43104
+ NuevaEpsVerifyConnectionServiceUnavailableFailure: {
43105
+ oneOf: [
43106
+ {
43107
+ $ref: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure"
43108
+ },
43109
+ {
43110
+ $ref: "#/components/schemas/NuevaEpsPortalUnavailableFailure"
43111
+ },
43112
+ {
43113
+ $ref: "#/components/schemas/NuevaEpsRegionBlockedFailure"
43114
+ }
43115
+ ],
43116
+ discriminator: {
43117
+ propertyName: "code",
43118
+ mapping: {
43119
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/NuevaEpsUpstreamUnavailableFailure",
43120
+ PORTAL_UNAVAILABLE: "#/components/schemas/NuevaEpsPortalUnavailableFailure",
43121
+ REGION_BLOCKED: "#/components/schemas/NuevaEpsRegionBlockedFailure"
43122
+ }
43123
+ }
43124
+ },
43125
+ NuevaEpsVerifyConnectionTooManyRequestsError: {
43126
+ type: "object",
43127
+ description: "A failed answer.",
43128
+ additionalProperties: false,
43129
+ required: [
43130
+ "success",
43131
+ "data",
43132
+ "error",
43133
+ "metadata"
43134
+ ],
43135
+ properties: {
43136
+ success: {
43137
+ type: "boolean",
43138
+ enum: [
43139
+ false
43140
+ ]
43141
+ },
43142
+ data: {
43143
+ const: null
43144
+ },
43145
+ error: {
43146
+ $ref: "#/components/schemas/NuevaEpsVerifyConnectionTooManyRequestsFailure"
43147
+ },
43148
+ metadata: {
43149
+ $ref: "#/components/schemas/NuevaEpsResponseMetadata"
43150
+ }
43151
+ }
43152
+ },
43153
+ NuevaEpsVerifyConnectionTooManyRequestsFailure: {
43154
+ oneOf: [
43155
+ {
43156
+ $ref: "#/components/schemas/NuevaEpsRateLimitedFailure"
43157
+ },
43158
+ {
43159
+ $ref: "#/components/schemas/NuevaEpsLoginCooldownFailure"
43160
+ }
43161
+ ],
43162
+ discriminator: {
43163
+ propertyName: "code",
43164
+ mapping: {
43165
+ RATE_LIMITED: "#/components/schemas/NuevaEpsRateLimitedFailure",
43166
+ LOGIN_COOLDOWN: "#/components/schemas/NuevaEpsLoginCooldownFailure"
40916
43167
  }
40917
43168
  }
40918
43169
  },
@@ -41526,6 +43777,8 @@ var schemaComponents = {
41526
43777
  additionalProperties: false,
41527
43778
  type: "object",
41528
43779
  required: [
43780
+ "humanEscalation",
43781
+ "recoveryManager",
41529
43782
  "automaticKnowledge",
41530
43783
  "attachmentReader",
41531
43784
  "budgetExhaustedMessage",
@@ -41535,6 +43788,7 @@ var schemaComponents = {
41535
43788
  "followUpMessage",
41536
43789
  "greeting",
41537
43790
  "humanReplyTimeoutMinutes",
43791
+ "investigationsEnabled",
41538
43792
  "model",
41539
43793
  "modelTrial",
41540
43794
  "monthlyTokenBudget",
@@ -41549,6 +43803,145 @@ var schemaComponents = {
41549
43803
  "voice"
41550
43804
  ],
41551
43805
  properties: {
43806
+ humanEscalation: {
43807
+ anyOf: [
43808
+ {
43809
+ 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.",
43810
+ additionalProperties: false,
43811
+ type: "object",
43812
+ required: [
43813
+ "instructions"
43814
+ ],
43815
+ properties: {
43816
+ instructions: {
43817
+ anyOf: [
43818
+ {
43819
+ maxLength: 4000,
43820
+ 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.",
43821
+ type: "string"
43822
+ },
43823
+ {
43824
+ type: "null"
43825
+ }
43826
+ ]
43827
+ }
43828
+ }
43829
+ },
43830
+ {
43831
+ type: "null"
43832
+ }
43833
+ ]
43834
+ },
43835
+ recoveryManager: {
43836
+ anyOf: [
43837
+ {
43838
+ 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.",
43839
+ additionalProperties: false,
43840
+ type: "object",
43841
+ required: [
43842
+ "enabled",
43843
+ "model",
43844
+ "maxAttempts",
43845
+ "timeoutMs",
43846
+ "maxInputTokens",
43847
+ "maxOutputTokens",
43848
+ "maxCostUsd",
43849
+ "inputUsdPerMillion",
43850
+ "outputUsdPerMillion"
43851
+ ],
43852
+ properties: {
43853
+ enabled: {
43854
+ type: "boolean"
43855
+ },
43856
+ instructions: {
43857
+ anyOf: [
43858
+ {
43859
+ maxLength: 4000,
43860
+ 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.",
43861
+ type: "string"
43862
+ },
43863
+ {
43864
+ type: "null"
43865
+ }
43866
+ ]
43867
+ },
43868
+ advisorAgentId: {
43869
+ anyOf: [
43870
+ {
43871
+ 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.",
43872
+ examples: [
43873
+ "agt_01m45h8q2rf3t9w6y7z0b1c2d3"
43874
+ ],
43875
+ 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}))$",
43876
+ type: "string"
43877
+ },
43878
+ {
43879
+ type: "null"
43880
+ }
43881
+ ]
43882
+ },
43883
+ model: {
43884
+ 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.",
43885
+ anyOf: [
43886
+ {
43887
+ const: "arbolito/agile",
43888
+ type: "string"
43889
+ },
43890
+ {
43891
+ const: "arbolito/balanced",
43892
+ type: "string"
43893
+ },
43894
+ {
43895
+ const: "arbolito/advanced",
43896
+ type: "string"
43897
+ },
43898
+ {
43899
+ const: "arbolito/top",
43900
+ type: "string"
43901
+ }
43902
+ ]
43903
+ },
43904
+ maxAttempts: {
43905
+ const: 1,
43906
+ type: "number"
43907
+ },
43908
+ timeoutMs: {
43909
+ minimum: 100,
43910
+ maximum: 15000,
43911
+ type: "integer"
43912
+ },
43913
+ maxInputTokens: {
43914
+ minimum: 4096,
43915
+ maximum: 32768,
43916
+ type: "integer"
43917
+ },
43918
+ maxOutputTokens: {
43919
+ minimum: 128,
43920
+ maximum: 1024,
43921
+ type: "integer"
43922
+ },
43923
+ maxCostUsd: {
43924
+ exclusiveMinimum: 0,
43925
+ maximum: 1,
43926
+ type: "number"
43927
+ },
43928
+ inputUsdPerMillion: {
43929
+ exclusiveMinimum: 0,
43930
+ maximum: 1000,
43931
+ type: "number"
43932
+ },
43933
+ outputUsdPerMillion: {
43934
+ exclusiveMinimum: 0,
43935
+ maximum: 1000,
43936
+ type: "number"
43937
+ }
43938
+ }
43939
+ },
43940
+ {
43941
+ type: "null"
43942
+ }
43943
+ ]
43944
+ },
41552
43945
  automaticKnowledge: {
41553
43946
  anyOf: [
41554
43947
  {
@@ -41657,7 +44050,7 @@ var schemaComponents = {
41657
44050
  humanReplyTimeoutMinutes: {
41658
44051
  anyOf: [
41659
44052
  {
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.",
44053
+ 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
44054
  maximum: 1440,
41662
44055
  minimum: 1,
41663
44056
  type: "integer"
@@ -41667,6 +44060,17 @@ var schemaComponents = {
41667
44060
  }
41668
44061
  ]
41669
44062
  },
44063
+ investigationsEnabled: {
44064
+ anyOf: [
44065
+ {
44066
+ 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.",
44067
+ type: "boolean"
44068
+ },
44069
+ {
44070
+ type: "null"
44071
+ }
44072
+ ]
44073
+ },
41670
44074
  model: {
41671
44075
  anyOf: [
41672
44076
  {
@@ -41849,6 +44253,145 @@ var schemaComponents = {
41849
44253
  additionalProperties: false,
41850
44254
  type: "object",
41851
44255
  properties: {
44256
+ humanEscalation: {
44257
+ anyOf: [
44258
+ {
44259
+ 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.",
44260
+ additionalProperties: false,
44261
+ type: "object",
44262
+ required: [
44263
+ "instructions"
44264
+ ],
44265
+ properties: {
44266
+ instructions: {
44267
+ anyOf: [
44268
+ {
44269
+ maxLength: 4000,
44270
+ 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.",
44271
+ type: "string"
44272
+ },
44273
+ {
44274
+ type: "null"
44275
+ }
44276
+ ]
44277
+ }
44278
+ }
44279
+ },
44280
+ {
44281
+ type: "null"
44282
+ }
44283
+ ]
44284
+ },
44285
+ recoveryManager: {
44286
+ anyOf: [
44287
+ {
44288
+ 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.",
44289
+ additionalProperties: false,
44290
+ type: "object",
44291
+ required: [
44292
+ "enabled",
44293
+ "model",
44294
+ "maxAttempts",
44295
+ "timeoutMs",
44296
+ "maxInputTokens",
44297
+ "maxOutputTokens",
44298
+ "maxCostUsd",
44299
+ "inputUsdPerMillion",
44300
+ "outputUsdPerMillion"
44301
+ ],
44302
+ properties: {
44303
+ enabled: {
44304
+ type: "boolean"
44305
+ },
44306
+ instructions: {
44307
+ anyOf: [
44308
+ {
44309
+ maxLength: 4000,
44310
+ 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.",
44311
+ type: "string"
44312
+ },
44313
+ {
44314
+ type: "null"
44315
+ }
44316
+ ]
44317
+ },
44318
+ advisorAgentId: {
44319
+ anyOf: [
44320
+ {
44321
+ 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.",
44322
+ examples: [
44323
+ "agt_01m45h8q2rf3t9w6y7z0b1c2d3"
44324
+ ],
44325
+ 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}))$",
44326
+ type: "string"
44327
+ },
44328
+ {
44329
+ type: "null"
44330
+ }
44331
+ ]
44332
+ },
44333
+ model: {
44334
+ 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.",
44335
+ anyOf: [
44336
+ {
44337
+ const: "arbolito/agile",
44338
+ type: "string"
44339
+ },
44340
+ {
44341
+ const: "arbolito/balanced",
44342
+ type: "string"
44343
+ },
44344
+ {
44345
+ const: "arbolito/advanced",
44346
+ type: "string"
44347
+ },
44348
+ {
44349
+ const: "arbolito/top",
44350
+ type: "string"
44351
+ }
44352
+ ]
44353
+ },
44354
+ maxAttempts: {
44355
+ const: 1,
44356
+ type: "number"
44357
+ },
44358
+ timeoutMs: {
44359
+ minimum: 100,
44360
+ maximum: 15000,
44361
+ type: "integer"
44362
+ },
44363
+ maxInputTokens: {
44364
+ minimum: 4096,
44365
+ maximum: 32768,
44366
+ type: "integer"
44367
+ },
44368
+ maxOutputTokens: {
44369
+ minimum: 128,
44370
+ maximum: 1024,
44371
+ type: "integer"
44372
+ },
44373
+ maxCostUsd: {
44374
+ exclusiveMinimum: 0,
44375
+ maximum: 1,
44376
+ type: "number"
44377
+ },
44378
+ inputUsdPerMillion: {
44379
+ exclusiveMinimum: 0,
44380
+ maximum: 1000,
44381
+ type: "number"
44382
+ },
44383
+ outputUsdPerMillion: {
44384
+ exclusiveMinimum: 0,
44385
+ maximum: 1000,
44386
+ type: "number"
44387
+ }
44388
+ }
44389
+ },
44390
+ {
44391
+ type: "null"
44392
+ }
44393
+ ]
44394
+ },
41852
44395
  automaticKnowledge: {
41853
44396
  anyOf: [
41854
44397
  {
@@ -41969,7 +44512,7 @@ var schemaComponents = {
41969
44512
  humanReplyTimeoutMinutes: {
41970
44513
  anyOf: [
41971
44514
  {
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.",
44515
+ 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
44516
  maximum: 1440,
41974
44517
  minimum: 1,
41975
44518
  type: "integer"
@@ -41979,6 +44522,17 @@ var schemaComponents = {
41979
44522
  }
41980
44523
  ]
41981
44524
  },
44525
+ investigationsEnabled: {
44526
+ anyOf: [
44527
+ {
44528
+ 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.",
44529
+ type: "boolean"
44530
+ },
44531
+ {
44532
+ type: "null"
44533
+ }
44534
+ ]
44535
+ },
41982
44536
  model: {
41983
44537
  anyOf: [
41984
44538
  {
@@ -42336,6 +44890,10 @@ var schemaComponents = {
42336
44890
  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
44891
  type: "boolean"
42338
44892
  },
44893
+ responseDelayMessages: {
44894
+ description: "Speak a short contextual message while preparing a slow response. False disables automatic delay messages. Omitted preserves the current runtime setting.",
44895
+ type: "boolean"
44896
+ },
42339
44897
  silenceEndCallTimeoutSeconds: {
42340
44898
  anyOf: [
42341
44899
  {
@@ -42398,6 +44956,41 @@ var schemaComponents = {
42398
44956
  }
42399
44957
  ]
42400
44958
  },
44959
+ backupModels: {
44960
+ anyOf: [
44961
+ {
44962
+ minItems: 1,
44963
+ maxItems: 3,
44964
+ uniqueItems: true,
44965
+ 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.",
44966
+ type: "array",
44967
+ items: {
44968
+ 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.",
44969
+ anyOf: [
44970
+ {
44971
+ const: "arbolito/agile",
44972
+ type: "string"
44973
+ },
44974
+ {
44975
+ const: "arbolito/balanced",
44976
+ type: "string"
44977
+ },
44978
+ {
44979
+ const: "arbolito/advanced",
44980
+ type: "string"
44981
+ },
44982
+ {
44983
+ const: "arbolito/top",
44984
+ type: "string"
44985
+ }
44986
+ ]
44987
+ }
44988
+ },
44989
+ {
44990
+ type: "null"
44991
+ }
44992
+ ]
44993
+ },
42401
44994
  llm: {
42402
44995
  anyOf: [
42403
44996
  {
@@ -65518,6 +68111,71 @@ var schemaComponents = {
65518
68111
  description: "Member document number as a string; preserve leading zeros. Never an organization selector.",
65519
68112
  type: "string"
65520
68113
  },
68114
+ agentMode: {
68115
+ default: false,
68116
+ description: "True: concise Spanish text in data.text (HTTP) and MCP text content. False or omitted: structured JSON. Presentation never changes tenant, coverage or provider admission.",
68117
+ type: "boolean"
68118
+ },
68119
+ fields: {
68120
+ minItems: 1,
68121
+ maxItems: 11,
68122
+ uniqueItems: true,
68123
+ description: "Return only these top-level fields. member opts into additional personal data; timings opts into measured durations. Omit for the standard affiliation record. Agent text always retains affiliation and primary-provider warnings.",
68124
+ type: "array",
68125
+ items: {
68126
+ anyOf: [
68127
+ {
68128
+ const: "documentType",
68129
+ type: "string"
68130
+ },
68131
+ {
68132
+ const: "documentNumber",
68133
+ type: "string"
68134
+ },
68135
+ {
68136
+ const: "affiliated",
68137
+ type: "string"
68138
+ },
68139
+ {
68140
+ const: "callerIsPrimaryProvider",
68141
+ type: "string"
68142
+ },
68143
+ {
68144
+ const: "state",
68145
+ type: "string"
68146
+ },
68147
+ {
68148
+ const: "kind",
68149
+ type: "string"
68150
+ },
68151
+ {
68152
+ const: "category",
68153
+ type: "string"
68154
+ },
68155
+ {
68156
+ const: "primaryProvider",
68157
+ type: "string"
68158
+ },
68159
+ {
68160
+ const: "messages",
68161
+ type: "string"
68162
+ },
68163
+ {
68164
+ const: "member",
68165
+ type: "string"
68166
+ },
68167
+ {
68168
+ const: "timings",
68169
+ type: "string"
68170
+ }
68171
+ ]
68172
+ }
68173
+ },
68174
+ includeTimings: {
68175
+ default: false,
68176
+ description: "Include measured operation durations; equivalent to requesting timings in fields. Durations overlap as documented and are observations, not latency guarantees.",
68177
+ type: "boolean"
68178
+ },
65521
68179
  connectionId: {
65522
68180
  pattern: "^con_[0-9A-Za-z]{26}$",
65523
68181
  type: "string"
@@ -65525,9 +68183,7 @@ var schemaComponents = {
65525
68183
  }
65526
68184
  },
65527
68185
  NuevaEpsConnectionsListInput: {
65528
- additionalProperties: false,
65529
68186
  type: "object",
65530
- required: [],
65531
68187
  properties: {
65532
68188
  cursor: {
65533
68189
  description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
@@ -65554,23 +68210,19 @@ var schemaComponents = {
65554
68210
  type: "integer",
65555
68211
  default: 25
65556
68212
  }
65557
- }
68213
+ },
68214
+ additionalProperties: false
65558
68215
  },
65559
68216
  NuevaEpsConnectionsVerifyInput: {
65560
68217
  additionalProperties: false,
65561
68218
  type: "object",
65562
68219
  required: [
65563
- "connectionId",
65564
68220
  "name",
65565
68221
  "username",
65566
68222
  "password",
65567
68223
  "documentType"
65568
68224
  ],
65569
68225
  properties: {
65570
- connectionId: {
65571
- pattern: "^con_[0-9A-Za-z]{26}$",
65572
- type: "string"
65573
- },
65574
68226
  name: {
65575
68227
  minLength: 1,
65576
68228
  maxLength: 80,
@@ -65656,30 +68308,32 @@ var schemaComponents = {
65656
68308
  }
65657
68309
  },
65658
68310
  NuevaEpsConnectionsGetInput: {
65659
- additionalProperties: false,
65660
68311
  type: "object",
65661
- required: [
65662
- "id"
65663
- ],
65664
68312
  properties: {
65665
68313
  id: {
65666
68314
  pattern: "^con_[0-9A-Za-z]{26}$",
65667
- type: "string"
68315
+ type: "string",
68316
+ description: "The id."
65668
68317
  }
65669
- }
65670
- },
65671
- NuevaEpsConnectionsDeleteInput: {
65672
- additionalProperties: false,
65673
- type: "object",
68318
+ },
65674
68319
  required: [
65675
68320
  "id"
65676
68321
  ],
68322
+ additionalProperties: false
68323
+ },
68324
+ NuevaEpsConnectionsDeleteInput: {
68325
+ type: "object",
65677
68326
  properties: {
65678
68327
  id: {
65679
68328
  pattern: "^con_[0-9A-Za-z]{26}$",
65680
- type: "string"
68329
+ type: "string",
68330
+ description: "The id."
65681
68331
  }
65682
- }
68332
+ },
68333
+ required: [
68334
+ "id"
68335
+ ],
68336
+ additionalProperties: false
65683
68337
  },
65684
68338
  RaizAgentsListInput: {
65685
68339
  type: "object",
@@ -73794,9 +76448,9 @@ var schemaComponents = {
73794
76448
  // src/generated/generation.json
73795
76449
  var generation_default = {
73796
76450
  formatVersion: 6,
73797
- release: "1.20261023.60554",
73798
- openapiSha256: "86323054a3e408946c70daf18480c82b7084c3e38c73e469d0d34227bf10a117",
73799
- openapiContentSha256: "c05fa12d8b1bed4efd2d1e6a0e29a7dae23ee0e665b8117d08c7dc1d458876d4",
76451
+ release: "1.20261028.62222",
76452
+ openapiSha256: "4874ed64c067eacd323924eef78b27ea3ffca94e5b71efbc3196579f847582c6",
76453
+ openapiContentSha256: "57c579130b97fa917938797d8b13639a7df3c8bbcf842e85037020196a848fb2",
73800
76454
  forge: {
73801
76455
  repository: "https://github.com/cloudflare/forge",
73802
76456
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -73809,7 +76463,7 @@ var generation_default = {
73809
76463
  outputs: [
73810
76464
  {
73811
76465
  path: "src/generated/commands.ts",
73812
- sha256: "a06f367dba10667942695d2565afd2bb43fa1ac72279cec15effe052d47e46b0"
76466
+ sha256: "70cf075143f6ae2f37da1e44f9ad8c63a4cba599350009e019c8a08e4e297870"
73813
76467
  }
73814
76468
  ]
73815
76469
  };
@@ -74164,7 +76818,7 @@ ${name}`);
74164
76818
  }
74165
76819
 
74166
76820
  // src/index.ts
74167
- var VERSION = "2.9.0";
76821
+ var VERSION = "2.11.0";
74168
76822
  var RELEASE = generation_default.release;
74169
76823
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
74170
76824
  var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();