@arbol-ai/sdk 5.53.0 → 5.54.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.
@@ -39,14 +39,14 @@ export interface Client {
39
39
  * fence on the slot are recorded before the single provider request, which is
40
40
  * never resent. Success means the provider answered a strictly positive
41
41
  * appointment number, the source's own creation signal (verification
42
- * provider_acknowledgement; this path has no live receipt yet).
43
- * OUTCOME_UNKNOWN means the appointment may exist: do not book again; check
44
- * lookup_appointments with status assigned and ask staff.
45
- * WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final
46
- * outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's
47
- * ledger refused a new write and nothing was sent. Repeating the same
48
- * idempotencyKey and request answers the recorded outcome. One-slot, one-unit
49
- * bookings only. agentMode true answers concise Spanish text instead.
42
+ * provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist:
43
+ * do not book again; check lookup_appointments with status assigned and ask
44
+ * staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has
45
+ * no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the
46
+ * connection's ledger refused a new write and nothing was sent. Repeating the
47
+ * same idempotencyKey and request answers the recorded outcome. One-slot,
48
+ * one-unit bookings only. agentMode true answers concise Spanish text
49
+ * instead.
50
50
  */
51
51
  create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
52
52
  /**
@@ -58,10 +58,9 @@ export interface Client {
58
58
  * PATIENT_NOT_FOUND answers only the provider explicit negative, and every
59
59
  * row must name the resolved patient. Staff usernames and free-text
60
60
  * observations are never returned. serviceNumber is the appointment's CAS,
61
- * which reschedule_appointment takes for an assigned appointment. Mapped from
62
- * the provider's source: a live positive answer has not been verified yet.
63
- * Read-only. Pass pageInfo.nextCursor as cursor for more. agentMode true
64
- * answers concise Spanish text instead.
61
+ * which reschedule_appointment takes for an assigned appointment. Read-only.
62
+ * Pass pageInfo.nextCursor as cursor for more. agentMode true answers concise
63
+ * Spanish text instead.
65
64
  */
66
65
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
67
66
  /**
@@ -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, CancelRequest, CancelResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
5
- export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentCancellation, OficlinicAppointmentNotCancellableFailure, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicCancelAppointmentBadGatewayError, OficlinicCancelAppointmentBadGatewayFailure, OficlinicCancelAppointmentBody, OficlinicCancelAppointmentConflictError, OficlinicCancelAppointmentConflictFailure, OficlinicCancelAppointmentNotFoundError, OficlinicCancelAppointmentNotFoundFailure, OficlinicCancelAppointmentResult, OficlinicCancelAppointmentResultResponse, OficlinicCancelAppointmentServiceUnavailableError, OficlinicCancelAppointmentServiceUnavailableFailure, OficlinicCancelAppointmentTooManyRequestsError, OficlinicCancelAppointmentTooManyRequestsFailure, OficlinicCancelAppointmentUnprocessableContentError, OficlinicCancelAppointmentUnprocessableContentFailure, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure, } from "./models.js";
5
+ export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentCancellation, OficlinicAppointmentNotCancellableFailure, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicCancelAppointmentBadGatewayError, OficlinicCancelAppointmentBadGatewayFailure, OficlinicCancelAppointmentBody, OficlinicCancelAppointmentConflictError, OficlinicCancelAppointmentConflictFailure, OficlinicCancelAppointmentNotFoundError, OficlinicCancelAppointmentNotFoundFailure, OficlinicCancelAppointmentResult, OficlinicCancelAppointmentResultResponse, OficlinicCancelAppointmentServiceUnavailableError, OficlinicCancelAppointmentServiceUnavailableFailure, OficlinicCancelAppointmentTooManyRequestsError, OficlinicCancelAppointmentTooManyRequestsFailure, OficlinicCancelAppointmentUnprocessableContentError, OficlinicCancelAppointmentUnprocessableContentFailure, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, } from "./models.js";
@@ -1,5 +1,5 @@
1
1
  import type { CredentialsRejectedFailure, Empty, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
2
+ import type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure } from "../models.js";
3
3
  export interface OficlinicAppointment {
4
4
  assignedAt: string | null;
5
5
  cancellationReason: string | null;
@@ -61,8 +61,8 @@ export interface OficlinicAppointmentBooking {
61
61
  subplanId: string;
62
62
  /**
63
63
  * The only evidence is the provider's acknowledgement, mapped from its
64
- * source; no read has verified the appointment, and this booking path has no
65
- * live receipt yet.
64
+ * source; use appointment lookup to independently verify the saved
65
+ * appointment.
66
66
  */
67
67
  verification: "provider_acknowledgement";
68
68
  }
@@ -480,27 +480,6 @@ export interface OficlinicCreateAppointmentUnprocessableContentError {
480
480
  success: false;
481
481
  }
482
482
  export type OficlinicCreateAppointmentUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure | OficlinicProgramUnitsNotSupportedFailure;
483
- /**
484
- * The idempotency key was already used for a different request.
485
- */
486
- export interface OficlinicIdempotencyKeyReusedFailure {
487
- /**
488
- * The failure code, stable across releases.
489
- */
490
- code: "IDEMPOTENCY_KEY_REUSED";
491
- /**
492
- * No fields.
493
- */
494
- data: Empty;
495
- /**
496
- * What went wrong, for people; it never contains input values.
497
- */
498
- message: string;
499
- /**
500
- * Whether repeating the same request may succeed.
501
- */
502
- retryable: false;
503
- }
504
483
  /**
505
484
  * A failed answer.
506
485
  */
@@ -880,50 +859,6 @@ export interface OficlinicServiceNotAvailableFailure {
880
859
  */
881
860
  retryable: false;
882
861
  }
883
- /**
884
- * The connection's write ledger is at capacity, so no new write was sent.
885
- * Recorded writes stay answerable; staff must look.
886
- */
887
- export interface OficlinicWriteLedgerFullFailure {
888
- /**
889
- * The failure code, stable across releases.
890
- */
891
- code: "WRITE_LEDGER_FULL";
892
- /**
893
- * No fields.
894
- */
895
- data: Empty;
896
- /**
897
- * What went wrong, for people; it never contains input values.
898
- */
899
- message: string;
900
- /**
901
- * Whether repeating the same request may succeed.
902
- */
903
- retryable: false;
904
- }
905
- /**
906
- * An earlier write to this slot or appointment has no final outcome, so no
907
- * other write to it is sent. Staff must check the provider's appointments.
908
- */
909
- export interface OficlinicWriteTargetUnresolvedFailure {
910
- /**
911
- * The failure code, stable across releases.
912
- */
913
- code: "WRITE_TARGET_UNRESOLVED";
914
- /**
915
- * No fields.
916
- */
917
- data: Empty;
918
- /**
919
- * What went wrong, for people; it never contains input values.
920
- */
921
- message: string;
922
- /**
923
- * Whether repeating the same request may succeed.
924
- */
925
- retryable: false;
926
- }
927
862
  export declare const OficlinicAppointmentBookingCodec: import("../../_/codec.js").Codec;
928
863
  export declare const OficlinicAppointmentRescheduleCodec: import("../../_/codec.js").Codec;
929
864
  export declare const OficlinicCreateAppointmentResultResponseCodec: import("../../_/codec.js").Codec;
@@ -8,6 +8,7 @@ import { type Client as BookingSlotsClient } from "./bookingSlots/client.js";
8
8
  import { type Client as CancellationReasonsClient } from "./cancellationReasons/client.js";
9
9
  import { type Client as ConnectionsClient } from "./connections/client.js";
10
10
  import { type Client as DailyRosterClient } from "./dailyRoster/client.js";
11
+ import { type Client as PatientRegistrationOptionsClient } from "./patientRegistrationOptions/client.js";
11
12
  import { type Client as PatientsClient } from "./patients/client.js";
12
13
  import { type Client as PayerContractsClient } from "./payerContracts/client.js";
13
14
  import { type Client as PayerPlansClient } from "./payerPlans/client.js";
@@ -36,6 +37,7 @@ export interface Client {
36
37
  readonly cancellationReasons: CancellationReasonsClient;
37
38
  readonly connections: ConnectionsClient;
38
39
  readonly dailyRoster: DailyRosterClient;
40
+ readonly patientRegistrationOptions: PatientRegistrationOptionsClient;
39
41
  readonly patients: PatientsClient;
40
42
  readonly payerContracts: PayerContractsClient;
41
43
  readonly payerPlans: PayerPlansClient;
@@ -10,6 +10,7 @@ import { bind as bindBookingSlots, } from "./bookingSlots/client.js";
10
10
  import { bind as bindCancellationReasons, } from "./cancellationReasons/client.js";
11
11
  import { bind as bindConnections, } from "./connections/client.js";
12
12
  import { bind as bindDailyRoster, } from "./dailyRoster/client.js";
13
+ import { bind as bindPatientRegistrationOptions, } from "./patientRegistrationOptions/client.js";
13
14
  import { bind as bindPatients, } from "./patients/client.js";
14
15
  import { bind as bindPayerContracts, } from "./payerContracts/client.js";
15
16
  import { bind as bindPayerPlans, } from "./payerPlans/client.js";
@@ -35,6 +36,7 @@ export function bind(transport) {
35
36
  let cancellationReasonsClient;
36
37
  let connectionsClient;
37
38
  let dailyRosterClient;
39
+ let patientRegistrationOptionsClient;
38
40
  let patientsClient;
39
41
  let payerContractsClient;
40
42
  let payerPlansClient;
@@ -75,6 +77,9 @@ export function bind(transport) {
75
77
  get dailyRoster() {
76
78
  return (dailyRosterClient ??= bindDailyRoster(transport));
77
79
  },
80
+ get patientRegistrationOptions() {
81
+ return (patientRegistrationOptionsClient ??= bindPatientRegistrationOptions(transport));
82
+ },
78
83
  get patients() {
79
84
  return (patientsClient ??= bindPatients(transport));
80
85
  },
@@ -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, } from "./client.js";
5
- export type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundError, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProfessionalNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionExpiredError, OficlinicSelectionExpiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure, } from "./models.js";
5
+ export type { OficlinicAgentText, OficlinicBookingOptionNotFoundFailure, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionNotFoundError, OficlinicConnectionNotFoundFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicPayerNotFoundFailure, OficlinicPayerOptionNotFoundFailure, OficlinicProfessionalNotFoundFailure, OficlinicProgramUnitsNotSupportedFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSelectionExpiredError, OficlinicSelectionExpiredFailure, OficlinicSelectionNotAvailableFailure, OficlinicSignInOutcomeUnknownFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure, } from "./models.js";
@@ -149,6 +149,27 @@ export interface OficlinicContextNotAvailableFailure {
149
149
  */
150
150
  retryable: false;
151
151
  }
152
+ /**
153
+ * The idempotency key was already used for a different request.
154
+ */
155
+ export interface OficlinicIdempotencyKeyReusedFailure {
156
+ /**
157
+ * The failure code, stable across releases.
158
+ */
159
+ code: "IDEMPOTENCY_KEY_REUSED";
160
+ /**
161
+ * No fields.
162
+ */
163
+ data: Empty;
164
+ /**
165
+ * What went wrong, for people; it never contains input values.
166
+ */
167
+ message: string;
168
+ /**
169
+ * Whether repeating the same request may succeed.
170
+ */
171
+ retryable: false;
172
+ }
152
173
  /**
153
174
  * The cursor is invalid or belongs to another list.
154
175
  */
@@ -423,3 +444,47 @@ export interface OficlinicSignInOutcomeUnknownFailure {
423
444
  */
424
445
  retryable: false;
425
446
  }
447
+ /**
448
+ * The connection's write ledger is at capacity, so no new write was sent.
449
+ * Recorded writes stay answerable; staff must look.
450
+ */
451
+ export interface OficlinicWriteLedgerFullFailure {
452
+ /**
453
+ * The failure code, stable across releases.
454
+ */
455
+ code: "WRITE_LEDGER_FULL";
456
+ /**
457
+ * No fields.
458
+ */
459
+ data: Empty;
460
+ /**
461
+ * What went wrong, for people; it never contains input values.
462
+ */
463
+ message: string;
464
+ /**
465
+ * Whether repeating the same request may succeed.
466
+ */
467
+ retryable: false;
468
+ }
469
+ /**
470
+ * An earlier write to this slot or appointment has no final outcome, so no
471
+ * other write to it is sent. Staff must check the provider's appointments.
472
+ */
473
+ export interface OficlinicWriteTargetUnresolvedFailure {
474
+ /**
475
+ * The failure code, stable across releases.
476
+ */
477
+ code: "WRITE_TARGET_UNRESOLVED";
478
+ /**
479
+ * No fields.
480
+ */
481
+ data: Empty;
482
+ /**
483
+ * What went wrong, for people; it never contains input values.
484
+ */
485
+ message: string;
486
+ /**
487
+ * Whether repeating the same request may succeed.
488
+ */
489
+ retryable: false;
490
+ }
@@ -0,0 +1,60 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OficlinicListPatientRegistrationOptionsResultResponse } 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 patient registration options
12
+ *
13
+ * Find the source codes for a patient's confirmed gender, residence zone or
14
+ * municipality before creating their clinic record. q filters the current
15
+ * provider catalog by name without accents, or exact code; use it for
16
+ * municipalities to keep the result short. A choice is not a fact about the
17
+ * patient: ask for missing profile details and never invent them. For regime,
18
+ * affiliate type and salary range use their dedicated lists. Pass
19
+ * pageInfo.nextCursor with the same kind and q for more. Read-only. agentMode
20
+ * true answers concise Spanish text instead.
21
+ */
22
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
23
+ }
24
+ export declare function createClient(options: ClientOptions): Client;
25
+ export declare function bind(transport: Transport): Client;
26
+ export interface ListRequest {
27
+ /**
28
+ * An Account connection id of the caller's organization.
29
+ */
30
+ connectionId?: string;
31
+ /**
32
+ * The kind.
33
+ */
34
+ kind: "gender" | "zone" | "municipality";
35
+ /**
36
+ * The q.
37
+ */
38
+ q?: string;
39
+ /**
40
+ * An opaque cursor from a previous page's pageInfo.nextCursor or
41
+ * pageInfo.previousCursor.
42
+ */
43
+ cursor?: string;
44
+ /**
45
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
46
+ */
47
+ direction?: "forward" | "backward";
48
+ /**
49
+ * Maximum items returned in one page. Defaults to 25; larger reads require
50
+ * another cursor.
51
+ */
52
+ limit?: number;
53
+ /**
54
+ * true answers { text }: concise Spanish facts for a messaging or voice
55
+ * agent, with the short ids and the cursor needed to continue. false, the
56
+ * default, answers the structured object.
57
+ */
58
+ agentMode?: boolean;
59
+ }
60
+ export type ListResponse = OficlinicListPatientRegistrationOptionsResultResponse;
@@ -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/patient-registration-options",
15
+ query: { connectionId: "connectionId", kind: "kind", q: "q", 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 { OficlinicListPatientRegistrationOptionsBadGatewayError, OficlinicListPatientRegistrationOptionsBadGatewayFailure, OficlinicListPatientRegistrationOptionsBadRequestError, OficlinicListPatientRegistrationOptionsBadRequestFailure, OficlinicListPatientRegistrationOptionsConflictError, OficlinicListPatientRegistrationOptionsConflictFailure, OficlinicListPatientRegistrationOptionsResult, OficlinicListPatientRegistrationOptionsResultResponse, OficlinicListPatientRegistrationOptionsServiceUnavailableError, OficlinicListPatientRegistrationOptionsServiceUnavailableFailure, OficlinicListPatientRegistrationOptionsTooManyRequestsError, OficlinicListPatientRegistrationOptionsTooManyRequestsFailure, OficlinicListPatientRegistrationOptionsUnprocessableContentError, OficlinicListPatientRegistrationOptionsUnprocessableContentFailure, OficlinicRegistrationOption, OficlinicRegistrationOptionPage, } 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,111 @@
1
+ import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicListPatientRegistrationOptionsBadGatewayError {
7
+ data: null;
8
+ error: OficlinicListPatientRegistrationOptionsBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicListPatientRegistrationOptionsBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface OficlinicListPatientRegistrationOptionsBadRequestError {
20
+ data: null;
21
+ error: OficlinicListPatientRegistrationOptionsBadRequestFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type OficlinicListPatientRegistrationOptionsBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface OficlinicListPatientRegistrationOptionsConflictError {
33
+ data: null;
34
+ error: OficlinicListPatientRegistrationOptionsConflictFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type OficlinicListPatientRegistrationOptionsConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
42
+ export type OficlinicListPatientRegistrationOptionsResult = OficlinicRegistrationOptionPage | OficlinicAgentText;
43
+ /**
44
+ * A successful answer.
45
+ */
46
+ export interface OficlinicListPatientRegistrationOptionsResultResponse {
47
+ data: OficlinicListPatientRegistrationOptionsResult;
48
+ error: null;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: ResponseMetadata;
53
+ success: true;
54
+ }
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface OficlinicListPatientRegistrationOptionsServiceUnavailableError {
59
+ data: null;
60
+ error: OficlinicListPatientRegistrationOptionsServiceUnavailableFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: ResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type OficlinicListPatientRegistrationOptionsServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OficlinicListPatientRegistrationOptionsTooManyRequestsError {
72
+ data: null;
73
+ error: OficlinicListPatientRegistrationOptionsTooManyRequestsFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OficlinicListPatientRegistrationOptionsTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OficlinicListPatientRegistrationOptionsUnprocessableContentError {
85
+ data: null;
86
+ error: OficlinicListPatientRegistrationOptionsUnprocessableContentFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OficlinicListPatientRegistrationOptionsUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
94
+ export interface OficlinicRegistrationOption {
95
+ id: string;
96
+ name: string;
97
+ }
98
+ export interface OficlinicRegistrationOptionPage {
99
+ /**
100
+ * Items admitted by this resource contract within the verified organization.
101
+ */
102
+ data: OficlinicRegistrationOption[];
103
+ /**
104
+ * Discriminator for a resource list response.
105
+ */
106
+ object: "list";
107
+ /**
108
+ * Opaque navigation cursors for this page’s stable keyset order.
109
+ */
110
+ pageInfo: PageInfo;
111
+ }
@@ -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 OficlinicLookupPatientBody, type OficlinicLookupPatientResultResponse } from "./models.js";
2
+ import { type OficlinicCreatePatientBody, type OficlinicCreatePatientResultResponse, type OficlinicLookupPatientBody, type OficlinicLookupPatientResultResponse } from "./models.js";
3
3
  export interface ClientOptions extends BaseClientOptions {
4
4
  /**
5
5
  * The URL the paths of the API are relative to.
@@ -7,6 +7,20 @@ export interface ClientOptions extends BaseClientOptions {
7
7
  baseUrl: string;
8
8
  }
9
9
  export interface Client {
10
+ /**
11
+ * Create a patient
12
+ *
13
+ * Create one new patient in e-Oficlinic using the clinic-confirmed legal
14
+ * identity, contact and classification fields. Use only with verified
15
+ * authority to register this person and explicit confirmation of their
16
+ * details. Requires confirm true and one idempotency key for this intent. An
17
+ * existing patient is never changed. An uncertain result must be checked with
18
+ * lookup_patient and must not be sent again. The result contains no patient
19
+ * data. Verify the saved patient with lookup_patient before attempting a
20
+ * booking. The submission follows the live-verified Cardiología scheduling
21
+ * form. agentMode true answers concise Spanish text instead.
22
+ */
23
+ create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
10
24
  /**
11
25
  * Look up a patient by document
12
26
  *
@@ -23,5 +37,7 @@ export interface Client {
23
37
  }
24
38
  export declare function createClient(options: ClientOptions): Client;
25
39
  export declare function bind(transport: Transport): Client;
40
+ export type CreateRequest = OficlinicCreatePatientBody;
41
+ export type CreateResponse = OficlinicCreatePatientResultResponse;
26
42
  export type LookupRequest = OficlinicLookupPatientBody;
27
43
  export type LookupResponse = OficlinicLookupPatientResultResponse;
@@ -1,15 +1,24 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { Transport, } from "../../_/index.js";
4
- import { OficlinicLookupPatientResultResponseCodec, } from "./models.js";
4
+ import { OficlinicCreatePatientBodyCodec, OficlinicLookupPatientResultResponseCodec, } from "./models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
8
8
  export function bind(transport) {
9
9
  return {
10
+ create: (request, options) => transport.send(CreateOperation, request, options),
10
11
  lookup: (request, options) => transport.send(LookupOperation, request, options),
11
12
  };
12
13
  }
14
+ const CreateOperation = {
15
+ method: "POST",
16
+ route: "/v1/oficlinic/patients",
17
+ body: "flat",
18
+ request: OficlinicCreatePatientBodyCodec,
19
+ response: null,
20
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
21
+ };
13
22
  const LookupOperation = {
14
23
  method: "POST",
15
24
  route: "/v1/oficlinic/patients/lookup",
@@ -1,5 +1,5 @@
1
1
  export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { OficlinicLookupPatientBadGatewayError, OficlinicLookupPatientBadGatewayFailure, OficlinicLookupPatientBody, OficlinicLookupPatientConflictError, OficlinicLookupPatientConflictFailure, OficlinicLookupPatientResult, OficlinicLookupPatientResultResponse, OficlinicLookupPatientServiceUnavailableError, OficlinicLookupPatientServiceUnavailableFailure, OficlinicLookupPatientTooManyRequestsError, OficlinicLookupPatientTooManyRequestsFailure, OficlinicLookupPatientUnprocessableContentError, OficlinicLookupPatientUnprocessableContentFailure, OficlinicPatient, OficlinicPatientFound, OficlinicPatientNotFound, } from "./models.js";
4
+ export type { Client, ClientOptions, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { OficlinicCreatePatientBadGatewayError, OficlinicCreatePatientBadGatewayFailure, OficlinicCreatePatientBody, OficlinicCreatePatientConflictError, OficlinicCreatePatientConflictFailure, OficlinicCreatePatientResult, OficlinicCreatePatientResultResponse, OficlinicCreatePatientServiceUnavailableError, OficlinicCreatePatientServiceUnavailableFailure, OficlinicCreatePatientTooManyRequestsError, OficlinicCreatePatientTooManyRequestsFailure, OficlinicCreatePatientUnprocessableContentError, OficlinicCreatePatientUnprocessableContentFailure, OficlinicLookupPatientBadGatewayError, OficlinicLookupPatientBadGatewayFailure, OficlinicLookupPatientBody, OficlinicLookupPatientConflictError, OficlinicLookupPatientConflictFailure, OficlinicLookupPatientResult, OficlinicLookupPatientResultResponse, OficlinicLookupPatientServiceUnavailableError, OficlinicLookupPatientServiceUnavailableFailure, OficlinicLookupPatientTooManyRequestsError, OficlinicLookupPatientTooManyRequestsFailure, OficlinicLookupPatientUnprocessableContentError, OficlinicLookupPatientUnprocessableContentFailure, OficlinicPatient, OficlinicPatientAlreadyRegisteredFailure, OficlinicPatientFound, OficlinicPatientNotFound, OficlinicPatientRegistration, OficlinicRegistrationOptionNotFoundFailure, } from "./models.js";
@@ -1,5 +1,172 @@
1
- import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
1
+ import type { CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OficlinicAgentText, OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicIdempotencyKeyReusedFailure, OficlinicLoginCoolingDownFailure, OficlinicPatientRecordMismatchFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure, OficlinicWriteLedgerFullFailure, OficlinicWriteTargetUnresolvedFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface OficlinicCreatePatientBadGatewayError {
7
+ data: null;
8
+ error: OficlinicCreatePatientBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type OficlinicCreatePatientBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure | OficlinicPatientRecordMismatchFailure;
16
+ export interface OficlinicCreatePatientBody {
17
+ /**
18
+ * The confirmed residence address.
19
+ */
20
+ address: string;
21
+ /**
22
+ * The clinic-confirmed affiliate type code for this regime.
23
+ */
24
+ affiliateTypeId: string;
25
+ /**
26
+ * true answers { text }: concise Spanish facts for a messaging or voice
27
+ * agent, with the short ids and the cursor needed to continue. false, the
28
+ * default, answers the structured object.
29
+ */
30
+ agentMode?: boolean;
31
+ /**
32
+ * The confirmed birth date in YYYY-MM-DD.
33
+ */
34
+ birthDate: Temporal.PlainDate;
35
+ /**
36
+ * The authorized person confirmed the patient's identity and the details to
37
+ * save.
38
+ */
39
+ confirm: true;
40
+ /**
41
+ * An Account connection id of the caller's organization.
42
+ */
43
+ connectionId?: string;
44
+ /**
45
+ * The document number, digits only.
46
+ */
47
+ documentNumber: string;
48
+ /**
49
+ * Colombian citizenship card. Other document types are not verified against
50
+ * the provider yet.
51
+ */
52
+ documentType: "CC";
53
+ /**
54
+ * First legal surname.
55
+ */
56
+ firstFamilyName: string;
57
+ /**
58
+ * First legal given name.
59
+ */
60
+ firstGivenName: string;
61
+ /**
62
+ * The confirmed code from the provider's gender catalog.
63
+ */
64
+ genderId: string;
65
+ /**
66
+ * A key the caller chooses once per intended write, such as a UUID. Repeating
67
+ * it with the same request answers the recorded outcome and never writes
68
+ * again; another request with it answers IDEMPOTENCY_KEY_REUSED.
69
+ */
70
+ idempotencyKey: string;
71
+ /**
72
+ * The confirmed municipality code from the provider's catalog.
73
+ */
74
+ municipalityId: string;
75
+ /**
76
+ * The confirmed contact phone.
77
+ */
78
+ phone: string;
79
+ /**
80
+ * The clinic-confirmed regime code.
81
+ */
82
+ regimeId: string;
83
+ /**
84
+ * The provider relationship code, required when the affiliate type is neither
85
+ * C nor N.
86
+ */
87
+ relationshipId?: string;
88
+ /**
89
+ * The clinic-confirmed salary range code for this regime.
90
+ */
91
+ salaryRangeId: string;
92
+ /**
93
+ * Other legal surnames, if any.
94
+ */
95
+ secondFamilyName?: string;
96
+ /**
97
+ * Other legal given names, if any.
98
+ */
99
+ secondGivenName?: string;
100
+ /**
101
+ * The confirmed code from the provider's residence zone catalog.
102
+ */
103
+ zoneId: string;
104
+ }
105
+ /**
106
+ * A failed answer.
107
+ */
108
+ export interface OficlinicCreatePatientConflictError {
109
+ data: null;
110
+ error: OficlinicCreatePatientConflictFailure;
111
+ /**
112
+ * What every answer carries besides its data or error.
113
+ */
114
+ metadata: ResponseMetadata;
115
+ success: false;
116
+ }
117
+ export type OficlinicCreatePatientConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure | OficlinicPatientAlreadyRegisteredFailure | OficlinicIdempotencyKeyReusedFailure | OficlinicWriteTargetUnresolvedFailure;
118
+ export type OficlinicCreatePatientResult = OficlinicPatientRegistration | OficlinicAgentText;
119
+ /**
120
+ * A successful answer.
121
+ */
122
+ export interface OficlinicCreatePatientResultResponse {
123
+ data: OficlinicCreatePatientResult;
124
+ error: null;
125
+ /**
126
+ * What every answer carries besides its data or error.
127
+ */
128
+ metadata: ResponseMetadata;
129
+ success: true;
130
+ }
131
+ /**
132
+ * A failed answer.
133
+ */
134
+ export interface OficlinicCreatePatientServiceUnavailableError {
135
+ data: null;
136
+ error: OficlinicCreatePatientServiceUnavailableFailure;
137
+ /**
138
+ * What every answer carries besides its data or error.
139
+ */
140
+ metadata: ResponseMetadata;
141
+ success: false;
142
+ }
143
+ export type OficlinicCreatePatientServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure | OficlinicWriteLedgerFullFailure;
144
+ /**
145
+ * A failed answer.
146
+ */
147
+ export interface OficlinicCreatePatientTooManyRequestsError {
148
+ data: null;
149
+ error: OficlinicCreatePatientTooManyRequestsFailure;
150
+ /**
151
+ * What every answer carries besides its data or error.
152
+ */
153
+ metadata: ResponseMetadata;
154
+ success: false;
155
+ }
156
+ export type OficlinicCreatePatientTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
157
+ /**
158
+ * A failed answer.
159
+ */
160
+ export interface OficlinicCreatePatientUnprocessableContentError {
161
+ data: null;
162
+ error: OficlinicCreatePatientUnprocessableContentFailure;
163
+ /**
164
+ * What every answer carries besides its data or error.
165
+ */
166
+ metadata: ResponseMetadata;
167
+ success: false;
168
+ }
169
+ export type OficlinicCreatePatientUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure | OficlinicRegistrationOptionNotFoundFailure;
3
170
  /**
4
171
  * A failed answer.
5
172
  */
@@ -118,6 +285,27 @@ export interface OficlinicPatient {
118
285
  sex: string | null;
119
286
  zone: string | null;
120
287
  }
288
+ /**
289
+ * A patient with this document is already registered.
290
+ */
291
+ export interface OficlinicPatientAlreadyRegisteredFailure {
292
+ /**
293
+ * The failure code, stable across releases.
294
+ */
295
+ code: "PATIENT_ALREADY_REGISTERED";
296
+ /**
297
+ * No fields.
298
+ */
299
+ data: Empty;
300
+ /**
301
+ * What went wrong, for people; it never contains input values.
302
+ */
303
+ message: string;
304
+ /**
305
+ * Whether repeating the same request may succeed.
306
+ */
307
+ retryable: false;
308
+ }
121
309
  export interface OficlinicPatientFound {
122
310
  observedAt: Temporal.Instant;
123
311
  patient: OficlinicPatient;
@@ -128,6 +316,32 @@ export interface OficlinicPatientNotFound {
128
316
  patient: null;
129
317
  status: "not_found";
130
318
  }
319
+ export interface OficlinicPatientRegistration {
320
+ status: "created";
321
+ verification: "provider_acknowledgement";
322
+ }
323
+ /**
324
+ * The provider's patient form did not offer one of the selected options.
325
+ */
326
+ export interface OficlinicRegistrationOptionNotFoundFailure {
327
+ /**
328
+ * The failure code, stable across releases.
329
+ */
330
+ code: "REGISTRATION_OPTION_NOT_FOUND";
331
+ /**
332
+ * No fields.
333
+ */
334
+ data: Empty;
335
+ /**
336
+ * What went wrong, for people; it never contains input values.
337
+ */
338
+ message: string;
339
+ /**
340
+ * Whether repeating the same request may succeed.
341
+ */
342
+ retryable: false;
343
+ }
344
+ export declare const OficlinicCreatePatientBodyCodec: import("../../_/codec.js").Codec;
131
345
  export declare const OficlinicLookupPatientResultCodec: import("../../_/codec.js").Codec;
132
346
  export declare const OficlinicLookupPatientResultResponseCodec: import("../../_/codec.js").Codec;
133
347
  export declare const OficlinicPatientFoundCodec: import("../../_/codec.js").Codec;
@@ -1,6 +1,9 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { instant, object, union } from "../../_/index.js";
3
+ import { date, instant, object, union } from "../../_/index.js";
4
+ export const OficlinicCreatePatientBodyCodec = object([
5
+ ["birthDate", null, date],
6
+ ]);
4
7
  export const OficlinicLookupPatientResultCodec = union([() => OficlinicPatientFoundCodec, () => OficlinicPatientNotFoundCodec]);
5
8
  export const OficlinicLookupPatientResultResponseCodec = object([
6
9
  ["data", null, () => OficlinicLookupPatientResultCodec],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.53.0",
3
+ "version": "5.54.0",
4
4
  "description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -58,8 +58,8 @@
58
58
  "packageManager": "bun@1.4.3",
59
59
  "arbol": {
60
60
  "openapi": {
61
- "release": "1.20261111.193208",
62
- "sha256": "f24022d0de10fcdd240fa99570ed7c239769cc5231f2977de31da1593d1bab3f"
61
+ "release": "1.20261111.205940",
62
+ "sha256": "97756a7305948ba3086f980b2109847a2733b03f0245b151dff3aea1e0a6f334"
63
63
  }
64
64
  }
65
65
  }