@arbol-ai/sdk 5.37.0 → 5.38.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 (106) hide show
  1. package/dist/comfachoco/affiliations/client.d.ts +3 -1
  2. package/dist/comfachoco/affiliations/index.d.ts +1 -1
  3. package/dist/comfachoco/affiliations/models.d.ts +8 -1
  4. package/dist/oficlinic/affiliateTypes/client.d.ts +55 -0
  5. package/dist/oficlinic/affiliateTypes/client.js +18 -0
  6. package/dist/oficlinic/affiliateTypes/index.d.ts +5 -0
  7. package/dist/oficlinic/affiliateTypes/index.js +4 -0
  8. package/dist/oficlinic/affiliateTypes/models.d.ts +135 -0
  9. package/dist/oficlinic/affiliateTypes/models.js +3 -0
  10. package/dist/oficlinic/appointments/client.d.ts +69 -5
  11. package/dist/oficlinic/appointments/client.js +17 -0
  12. package/dist/oficlinic/appointments/index.d.ts +2 -2
  13. package/dist/oficlinic/appointments/models.d.ts +591 -5
  14. package/dist/oficlinic/appointments/models.js +13 -1
  15. package/dist/oficlinic/bookingDays/client.d.ts +64 -0
  16. package/dist/oficlinic/bookingDays/client.js +18 -0
  17. package/dist/oficlinic/bookingDays/index.d.ts +5 -0
  18. package/dist/oficlinic/bookingDays/index.js +4 -0
  19. package/dist/oficlinic/bookingDays/models.d.ts +142 -0
  20. package/dist/oficlinic/bookingDays/models.js +3 -0
  21. package/dist/oficlinic/bookingProfessionals/client.d.ts +76 -0
  22. package/dist/oficlinic/bookingProfessionals/client.js +19 -0
  23. package/dist/oficlinic/bookingProfessionals/index.d.ts +5 -0
  24. package/dist/oficlinic/bookingProfessionals/index.js +4 -0
  25. package/dist/oficlinic/bookingProfessionals/models.d.ts +159 -0
  26. package/dist/oficlinic/bookingProfessionals/models.js +12 -0
  27. package/dist/oficlinic/bookingRooms/client.d.ts +60 -0
  28. package/dist/oficlinic/bookingRooms/client.js +18 -0
  29. package/dist/oficlinic/bookingRooms/index.d.ts +5 -0
  30. package/dist/oficlinic/bookingRooms/index.js +4 -0
  31. package/dist/oficlinic/bookingRooms/models.d.ts +136 -0
  32. package/dist/oficlinic/bookingRooms/models.js +3 -0
  33. package/dist/oficlinic/bookingSlots/client.d.ts +63 -0
  34. package/dist/oficlinic/bookingSlots/client.js +19 -0
  35. package/dist/oficlinic/bookingSlots/index.d.ts +5 -0
  36. package/dist/oficlinic/bookingSlots/index.js +4 -0
  37. package/dist/oficlinic/bookingSlots/models.d.ts +167 -0
  38. package/dist/oficlinic/bookingSlots/models.js +13 -0
  39. package/dist/oficlinic/cancellationReasons/client.d.ts +49 -0
  40. package/dist/oficlinic/cancellationReasons/client.js +18 -0
  41. package/dist/oficlinic/cancellationReasons/index.d.ts +5 -0
  42. package/dist/oficlinic/cancellationReasons/index.js +4 -0
  43. package/dist/oficlinic/cancellationReasons/models.d.ts +114 -0
  44. package/dist/oficlinic/cancellationReasons/models.js +3 -0
  45. package/dist/oficlinic/client.d.ts +26 -0
  46. package/dist/oficlinic/client.js +65 -0
  47. package/dist/oficlinic/index.d.ts +1 -1
  48. package/dist/oficlinic/models.d.ts +154 -0
  49. package/dist/oficlinic/patients/client.d.ts +2 -1
  50. package/dist/oficlinic/patients/models.d.ts +8 -2
  51. package/dist/oficlinic/payerContracts/client.d.ts +55 -0
  52. package/dist/oficlinic/payerContracts/client.js +18 -0
  53. package/dist/oficlinic/payerContracts/index.d.ts +5 -0
  54. package/dist/oficlinic/payerContracts/index.js +4 -0
  55. package/dist/oficlinic/payerContracts/models.d.ts +154 -0
  56. package/dist/oficlinic/payerContracts/models.js +3 -0
  57. package/dist/oficlinic/payerPlans/client.d.ts +54 -0
  58. package/dist/oficlinic/payerPlans/client.js +18 -0
  59. package/dist/oficlinic/payerPlans/index.d.ts +5 -0
  60. package/dist/oficlinic/payerPlans/index.js +4 -0
  61. package/dist/oficlinic/payerPlans/models.d.ts +138 -0
  62. package/dist/oficlinic/payerPlans/models.js +3 -0
  63. package/dist/oficlinic/payerSubplans/client.d.ts +58 -0
  64. package/dist/oficlinic/payerSubplans/client.js +18 -0
  65. package/dist/oficlinic/payerSubplans/index.d.ts +5 -0
  66. package/dist/oficlinic/payerSubplans/index.js +4 -0
  67. package/dist/oficlinic/payerSubplans/models.d.ts +150 -0
  68. package/dist/oficlinic/payerSubplans/models.js +3 -0
  69. package/dist/oficlinic/payers/client.d.ts +10 -3
  70. package/dist/oficlinic/payers/client.js +1 -1
  71. package/dist/oficlinic/payers/index.d.ts +1 -1
  72. package/dist/oficlinic/payers/models.d.ts +14 -13
  73. package/dist/oficlinic/professionals/client.d.ts +12 -4
  74. package/dist/oficlinic/professionals/client.js +1 -1
  75. package/dist/oficlinic/professionals/index.d.ts +1 -1
  76. package/dist/oficlinic/professionals/models.d.ts +14 -13
  77. package/dist/oficlinic/programs/client.d.ts +54 -0
  78. package/dist/oficlinic/programs/client.js +18 -0
  79. package/dist/oficlinic/programs/index.d.ts +5 -0
  80. package/dist/oficlinic/programs/index.js +4 -0
  81. package/dist/oficlinic/programs/models.d.ts +133 -0
  82. package/dist/oficlinic/programs/models.js +3 -0
  83. package/dist/oficlinic/regimes/client.d.ts +50 -0
  84. package/dist/oficlinic/regimes/client.js +18 -0
  85. package/dist/oficlinic/regimes/index.d.ts +5 -0
  86. package/dist/oficlinic/regimes/index.js +4 -0
  87. package/dist/oficlinic/regimes/models.d.ts +117 -0
  88. package/dist/oficlinic/regimes/models.js +3 -0
  89. package/dist/oficlinic/relationships/client.d.ts +49 -0
  90. package/dist/oficlinic/relationships/client.js +18 -0
  91. package/dist/oficlinic/relationships/index.d.ts +5 -0
  92. package/dist/oficlinic/relationships/index.js +4 -0
  93. package/dist/oficlinic/relationships/models.d.ts +118 -0
  94. package/dist/oficlinic/relationships/models.js +3 -0
  95. package/dist/oficlinic/serviceCatalog/client.d.ts +50 -0
  96. package/dist/oficlinic/serviceCatalog/client.js +27 -0
  97. package/dist/oficlinic/serviceCatalog/index.d.ts +5 -0
  98. package/dist/oficlinic/serviceCatalog/index.js +4 -0
  99. package/dist/oficlinic/serviceCatalog/models.d.ts +126 -0
  100. package/dist/oficlinic/serviceCatalog/models.js +13 -0
  101. package/dist/oficlinic/services/client.d.ts +44 -3
  102. package/dist/oficlinic/services/client.js +10 -1
  103. package/dist/oficlinic/services/index.d.ts +2 -2
  104. package/dist/oficlinic/services/models.d.ts +311 -14
  105. package/dist/oficlinic/services/models.js +10 -1
  106. package/package.json +3 -3
@@ -0,0 +1,138 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerPlansBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerPlansBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerPlansBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerPlansBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerPlansBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerPlansBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerPlansConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerPlansConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerPlansConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerPlansNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerPlansNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerPlansNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure;
55
+ export type OficlinicListPayerPlansResult = OficlinicPayerPlanPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerPlansResultResponse {
60
+ data: OficlinicListPayerPlansResult;
61
+ error: null;
62
+ /**
63
+ * What every answer carries besides its data or error.
64
+ */
65
+ metadata: ResponseMetadata;
66
+ success: true;
67
+ }
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPayerPlansServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerPlansServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerPlansServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerPlansTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerPlansTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerPlansTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerPlansUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerPlansUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerPlansUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerPlan {
108
+ /**
109
+ * The provider's ExentoCobro flag; null for an unrecognized value.
110
+ */
111
+ exemptFromCharge: boolean | null;
112
+ /**
113
+ * The provider's plan id (IdPlan).
114
+ */
115
+ id: string;
116
+ /**
117
+ * The plan name (Descripcion), as the provider spells it.
118
+ */
119
+ name: string;
120
+ /**
121
+ * The payer the plan was listed for.
122
+ */
123
+ payerId: string;
124
+ }
125
+ export interface OficlinicPayerPlanPage {
126
+ /**
127
+ * Items admitted by this resource contract within the verified organization.
128
+ */
129
+ data: OficlinicPayerPlan[];
130
+ /**
131
+ * Discriminator for a resource list response.
132
+ */
133
+ object: "list";
134
+ /**
135
+ * Opaque navigation cursors for this page’s stable keyset order.
136
+ */
137
+ pageInfo: PageInfo;
138
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,58 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPayerSubplansResultResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * List payer subplans
12
+ *
13
+ * List the subplans e-Oficlinic offers for one plan of a payer, in the
14
+ * provider's order, as its booking screen loads them (cbclientessubplan). The
15
+ * payer must be the connection's and the plan one of the payer's
16
+ * (list_payer_plans), or PAYER_NOT_FOUND or PAYER_OPTION_NOT_FOUND. A booking
17
+ * takes one of these subplans. Pass pageInfo.nextCursor with the same filters
18
+ * for more. agentMode true answers concise Spanish text instead.
19
+ */
20
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
21
+ }
22
+ export declare function createClient(options: ClientOptions): Client;
23
+ export declare function bind(transport: Transport): Client;
24
+ export interface ListRequest {
25
+ /**
26
+ * An Account connection id of the caller's organization.
27
+ */
28
+ connectionId?: string;
29
+ /**
30
+ * A payer id from list_payers.
31
+ */
32
+ payerId: string;
33
+ /**
34
+ * A plan id of the payer, from list_payer_plans.
35
+ */
36
+ planId: string;
37
+ /**
38
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
39
+ * pageInfo.previousCursor.
40
+ */
41
+ cursor?: string;
42
+ /**
43
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
44
+ */
45
+ direction?: "forward" | "backward";
46
+ /**
47
+ * Maximum items returned in one page. Defaults to 25; larger reads require
48
+ * another cursor.
49
+ */
50
+ limit?: number;
51
+ /**
52
+ * true answers { text }: concise Spanish facts for a messaging or voice
53
+ * agent, with the short ids and the cursor needed to continue. false, the
54
+ * default, answers the structured object.
55
+ */
56
+ agentMode?: boolean;
57
+ }
58
+ export type ListResponse = OficlinicListPayerSubplansResultResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/oficlinic/payer-subplans",
15
+ query: { connectionId: "connectionId", payerId: "payerId", planId: "planId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { OficlinicListPayerSubplansBadGatewayError, OficlinicListPayerSubplansBadGatewayFailure, OficlinicListPayerSubplansBadRequestError, OficlinicListPayerSubplansBadRequestFailure, OficlinicListPayerSubplansConflictError, OficlinicListPayerSubplansConflictFailure, OficlinicListPayerSubplansNotFoundError, OficlinicListPayerSubplansNotFoundFailure, OficlinicListPayerSubplansResult, OficlinicListPayerSubplansResultResponse, OficlinicListPayerSubplansServiceUnavailableError, OficlinicListPayerSubplansServiceUnavailableFailure, OficlinicListPayerSubplansTooManyRequestsError, OficlinicListPayerSubplansTooManyRequestsFailure, OficlinicListPayerSubplansUnprocessableContentError, OficlinicListPayerSubplansUnprocessableContentFailure, OficlinicPayerSubplan, OficlinicPayerSubplanPage, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,150 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPayerSubplansBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPayerSubplansBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPayerSubplansBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPayerSubplansBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPayerSubplansBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPayerSubplansBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPayerSubplansConflictError {
33
+ data: null;
34
+ error: OficlinicListPayerSubplansConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPayerSubplansConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface OficlinicListPayerSubplansNotFoundError {
46
+ data: null;
47
+ error: OficlinicListPayerSubplansNotFoundFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type OficlinicListPayerSubplansNotFoundFailure = OficlinicConnectionNotFoundFailure | OficlinicPayerNotFoundFailure | OficlinicPayerOptionNotFoundFailure;
55
+ export type OficlinicListPayerSubplansResult = OficlinicPayerSubplanPage | OficlinicAgentText;
56
+ /**
57
+ * A successful answer.
58
+ */
59
+ export interface OficlinicListPayerSubplansResultResponse {
60
+ data: OficlinicListPayerSubplansResult;
61
+ error: null;
62
+ /**
63
+ * What every answer carries besides its data or error.
64
+ */
65
+ metadata: ResponseMetadata;
66
+ success: true;
67
+ }
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPayerSubplansServiceUnavailableError {
72
+ data: null;
73
+ error: OficlinicListPayerSubplansServiceUnavailableFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPayerSubplansServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPayerSubplansTooManyRequestsError {
85
+ data: null;
86
+ error: OficlinicListPayerSubplansTooManyRequestsFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPayerSubplansTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OficlinicListPayerSubplansUnprocessableContentError {
98
+ data: null;
99
+ error: OficlinicListPayerSubplansUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: ResponseMetadata;
104
+ success: false;
105
+ }
106
+ export type OficlinicListPayerSubplansUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
107
+ export interface OficlinicPayerSubplan {
108
+ /**
109
+ * The provider's FacturarProcOdo flag; null for an unrecognized value.
110
+ */
111
+ billsDentalProcedures: boolean | null;
112
+ /**
113
+ * The provider's FacturarActMed flag; null for an unrecognized value.
114
+ */
115
+ billsMedicalActivities: boolean | null;
116
+ /**
117
+ * The provider's FacturarProcMed flag; null for an unrecognized value.
118
+ */
119
+ billsMedicalProcedures: boolean | null;
120
+ /**
121
+ * The provider's FacturarActPyP flag; null for an unrecognized value.
122
+ */
123
+ billsPreventionActivities: boolean | null;
124
+ /**
125
+ * The provider's subplan id (IdSubPlan).
126
+ */
127
+ id: string;
128
+ /**
129
+ * The subplan name (Descripcion), as the provider spells it.
130
+ */
131
+ name: string;
132
+ /**
133
+ * The plan the subplan was listed for.
134
+ */
135
+ planId: string;
136
+ }
137
+ export interface OficlinicPayerSubplanPage {
138
+ /**
139
+ * Items admitted by this resource contract within the verified organization.
140
+ */
141
+ data: OficlinicPayerSubplan[];
142
+ /**
143
+ * Discriminator for a resource list response.
144
+ */
145
+ object: "list";
146
+ /**
147
+ * Opaque navigation cursors for this page’s stable keyset order.
148
+ */
149
+ pageInfo: PageInfo;
150
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { OficlinicPayerPageResponse } from "./models.js";
2
+ import type { OficlinicListPayersResultResponse } from "./models.js";
3
3
  export interface ClientOptions extends BaseClientOptions {
4
4
  /**
5
5
  * The URL the paths of the API are relative to.
@@ -14,7 +14,8 @@ export interface Client {
14
14
  * e-Oficlinic for the connection's verified company and IPS, in the
15
15
  * provider's order. Flags the provider does not spell in a recognized way are
16
16
  * null. Pass connectionId when the organization has several active
17
- * connections, and pageInfo.nextCursor as cursor for more.
17
+ * connections, and pageInfo.nextCursor as cursor for more. agentMode true
18
+ * answers concise Spanish text instead.
18
19
  */
19
20
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
20
21
  }
@@ -39,5 +40,11 @@ export interface ListRequest {
39
40
  * another cursor.
40
41
  */
41
42
  limit?: number;
43
+ /**
44
+ * true answers { text }: concise Spanish facts for a messaging or voice
45
+ * agent, with the short ids and the cursor needed to continue. false, the
46
+ * default, answers the structured object.
47
+ */
48
+ agentMode?: boolean;
42
49
  }
43
- export type ListResponse = OficlinicPayerPageResponse;
50
+ export type ListResponse = OficlinicListPayersResultResponse;
@@ -12,7 +12,7 @@ export function bind(transport) {
12
12
  const ListOperation = {
13
13
  method: "GET",
14
14
  route: "/v1/oficlinic/payers",
15
- query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
15
+ query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
16
  response: null,
17
17
  errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
18
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { OficlinicListPayersBadGatewayError, OficlinicListPayersBadGatewayFailure, OficlinicListPayersBadRequestError, OficlinicListPayersBadRequestFailure, OficlinicListPayersConflictError, OficlinicListPayersConflictFailure, OficlinicListPayersServiceUnavailableError, OficlinicListPayersServiceUnavailableFailure, OficlinicListPayersTooManyRequestsError, OficlinicListPayersTooManyRequestsFailure, OficlinicListPayersUnprocessableContentError, OficlinicListPayersUnprocessableContentFailure, OficlinicPayer, OficlinicPayerPage, OficlinicPayerPageResponse, } from "./models.js";
5
+ export type { OficlinicListPayersBadGatewayError, OficlinicListPayersBadGatewayFailure, OficlinicListPayersBadRequestError, OficlinicListPayersBadRequestFailure, OficlinicListPayersConflictError, OficlinicListPayersConflictFailure, OficlinicListPayersResult, OficlinicListPayersResultResponse, OficlinicListPayersServiceUnavailableError, OficlinicListPayersServiceUnavailableFailure, OficlinicListPayersTooManyRequestsError, OficlinicListPayersTooManyRequestsFailure, OficlinicListPayersUnprocessableContentError, OficlinicListPayersUnprocessableContentFailure, OficlinicPayer, OficlinicPayerPage, } from "./models.js";
@@ -1,5 +1,5 @@
1
1
  import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -39,6 +39,19 @@ export interface OficlinicListPayersConflictError {
39
39
  success: false;
40
40
  }
41
41
  export type OficlinicListPayersConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ export type OficlinicListPayersResult = OficlinicPayerPage | OficlinicAgentText;
43
+ /**
44
+ * A successful answer.
45
+ */
46
+ export interface OficlinicListPayersResultResponse {
47
+ data: OficlinicListPayersResult;
48
+ error: null;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: ResponseMetadata;
53
+ success: true;
54
+ }
42
55
  /**
43
56
  * A failed answer.
44
57
  */
@@ -124,15 +137,3 @@ export interface OficlinicPayerPage {
124
137
  */
125
138
  pageInfo: PageInfo;
126
139
  }
127
- /**
128
- * A successful answer.
129
- */
130
- export interface OficlinicPayerPageResponse {
131
- data: OficlinicPayerPage;
132
- error: null;
133
- /**
134
- * What every answer carries besides its data or error.
135
- */
136
- metadata: ResponseMetadata;
137
- success: true;
138
- }
@@ -1,5 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { OficlinicProfessionalPageResponse } from "./models.js";
2
+ import type { OficlinicListProfessionalsResultResponse } from "./models.js";
3
3
  export interface ClientOptions extends BaseClientOptions {
4
4
  /**
5
5
  * The URL the paths of the API are relative to.
@@ -13,8 +13,10 @@ export interface Client {
13
13
  * List the professionals of the e-Oficlinic account's directory, a page at a
14
14
  * time in the provider's order: id, name, specialty and active flag. Identity
15
15
  * documents, addresses and phones of professionals are never returned. This
16
- * directory is not an availability or scheduling answer. Pass
17
- * pageInfo.nextCursor as cursor for more.
16
+ * directory is not an availability or scheduling answer:
17
+ * list_booking_professionals answers who the provider schedules for a
18
+ * service. Pass pageInfo.nextCursor as cursor for more. agentMode true
19
+ * answers concise Spanish text instead.
18
20
  */
19
21
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
20
22
  }
@@ -39,5 +41,11 @@ export interface ListRequest {
39
41
  * another cursor.
40
42
  */
41
43
  limit?: number;
44
+ /**
45
+ * true answers { text }: concise Spanish facts for a messaging or voice
46
+ * agent, with the short ids and the cursor needed to continue. false, the
47
+ * default, answers the structured object.
48
+ */
49
+ agentMode?: boolean;
42
50
  }
43
- export type ListResponse = OficlinicProfessionalPageResponse;
51
+ export type ListResponse = OficlinicListProfessionalsResultResponse;
@@ -12,7 +12,7 @@ export function bind(transport) {
12
12
  const ListOperation = {
13
13
  method: "GET",
14
14
  route: "/v1/oficlinic/professionals",
15
- query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit" },
15
+ query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
16
  response: null,
17
17
  errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
18
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { OficlinicListProfessionalsBadGatewayError, OficlinicListProfessionalsBadGatewayFailure, OficlinicListProfessionalsBadRequestError, OficlinicListProfessionalsBadRequestFailure, OficlinicListProfessionalsConflictError, OficlinicListProfessionalsConflictFailure, OficlinicListProfessionalsServiceUnavailableError, OficlinicListProfessionalsServiceUnavailableFailure, OficlinicListProfessionalsTooManyRequestsError, OficlinicListProfessionalsTooManyRequestsFailure, OficlinicListProfessionalsUnprocessableContentError, OficlinicListProfessionalsUnprocessableContentFailure, OficlinicProfessional, OficlinicProfessionalPage, OficlinicProfessionalPageResponse, } from "./models.js";
5
+ export type { OficlinicListProfessionalsBadGatewayError, OficlinicListProfessionalsBadGatewayFailure, OficlinicListProfessionalsBadRequestError, OficlinicListProfessionalsBadRequestFailure, OficlinicListProfessionalsConflictError, OficlinicListProfessionalsConflictFailure, OficlinicListProfessionalsResult, OficlinicListProfessionalsResultResponse, OficlinicListProfessionalsServiceUnavailableError, OficlinicListProfessionalsServiceUnavailableFailure, OficlinicListProfessionalsTooManyRequestsError, OficlinicListProfessionalsTooManyRequestsFailure, OficlinicListProfessionalsUnprocessableContentError, OficlinicListProfessionalsUnprocessableContentFailure, OficlinicProfessional, OficlinicProfessionalPage, } from "./models.js";
@@ -1,5 +1,5 @@
1
1
  import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -39,6 +39,19 @@ export interface OficlinicListProfessionalsConflictError {
39
39
  success: false;
40
40
  }
41
41
  export type OficlinicListProfessionalsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ export type OficlinicListProfessionalsResult = OficlinicProfessionalPage | OficlinicAgentText;
43
+ /**
44
+ * A successful answer.
45
+ */
46
+ export interface OficlinicListProfessionalsResultResponse {
47
+ data: OficlinicListProfessionalsResult;
48
+ error: null;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: ResponseMetadata;
53
+ success: true;
54
+ }
42
55
  /**
43
56
  * A failed answer.
44
57
  */
@@ -110,15 +123,3 @@ export interface OficlinicProfessionalPage {
110
123
  */
111
124
  pageInfo: PageInfo;
112
125
  }
113
- /**
114
- * A successful answer.
115
- */
116
- export interface OficlinicProfessionalPageResponse {
117
- data: OficlinicProfessionalPage;
118
- error: null;
119
- /**
120
- * What every answer carries besides its data or error.
121
- */
122
- metadata: ResponseMetadata;
123
- success: true;
124
- }
@@ -0,0 +1,54 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListProgramsResultResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * List programs
12
+ *
13
+ * List the programs e-Oficlinic offers on its booking screen (cbprograma),
14
+ * each with the attention types it offers (cbprogramatipoatencion), in the
15
+ * provider's order. Opening an availability flow and booking take a program
16
+ * and one of its attention types whose bookable is true: the source counts
17
+ * exactly one unit for it. Multi-unit programs are listed and not bookable
18
+ * here, and a missing or unrecognized count is null, never assumed to be one.
19
+ * sourcePurpose and exempt are catalog facts: they decide nothing about a
20
+ * booking, whose purposeId and billing values stay explicit. Pass
21
+ * pageInfo.nextCursor as cursor for more. agentMode true answers concise
22
+ * Spanish text instead.
23
+ */
24
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
+ }
26
+ export declare function createClient(options: ClientOptions): Client;
27
+ export declare function bind(transport: Transport): Client;
28
+ export interface ListRequest {
29
+ /**
30
+ * An Account connection id of the caller's organization.
31
+ */
32
+ connectionId?: string;
33
+ /**
34
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
35
+ * pageInfo.previousCursor.
36
+ */
37
+ cursor?: string;
38
+ /**
39
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
40
+ */
41
+ direction?: "forward" | "backward";
42
+ /**
43
+ * Maximum items returned in one page. Defaults to 10; larger reads require
44
+ * another cursor.
45
+ */
46
+ limit?: number;
47
+ /**
48
+ * true answers { text }: concise Spanish facts for a messaging or voice
49
+ * agent, with the short ids and the cursor needed to continue. false, the
50
+ * default, answers the structured object.
51
+ */
52
+ agentMode?: boolean;
53
+ }
54
+ export type ListResponse = OficlinicListProgramsResultResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/oficlinic/programs",
15
+ query: { connectionId: "connectionId", cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { OficlinicListProgramsBadGatewayError, OficlinicListProgramsBadGatewayFailure, OficlinicListProgramsBadRequestError, OficlinicListProgramsBadRequestFailure, OficlinicListProgramsConflictError, OficlinicListProgramsConflictFailure, OficlinicListProgramsResult, OficlinicListProgramsResultResponse, OficlinicListProgramsServiceUnavailableError, OficlinicListProgramsServiceUnavailableFailure, OficlinicListProgramsTooManyRequestsError, OficlinicListProgramsTooManyRequestsFailure, OficlinicListProgramsUnprocessableContentError, OficlinicListProgramsUnprocessableContentFailure, OficlinicProgram, OficlinicProgramPage, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";