@arbol-ai/sdk 3.0.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +170 -58
- package/dist/agenda/appointments/client.js +19 -11
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/availability/client.d.ts +12 -74
- package/dist/agenda/availability/client.js +5 -14
- package/dist/agenda/availability/index.d.ts +1 -1
- package/dist/agenda/bookingLocations/client.d.ts +51 -0
- package/dist/agenda/bookingLocations/client.js +19 -0
- package/dist/agenda/bookingLocations/index.d.ts +4 -0
- package/dist/agenda/bookingLocations/index.js +4 -0
- package/dist/agenda/bookingOfferings/client.d.ts +82 -0
- package/dist/agenda/bookingOfferings/client.js +18 -0
- package/dist/agenda/bookingOfferings/index.d.ts +5 -0
- package/dist/agenda/bookingOfferings/index.js +4 -0
- package/dist/agenda/bookingOfferings/models.d.ts +92 -0
- package/dist/agenda/bookingOfferings/models.js +3 -0
- package/dist/agenda/bookingRequirements/client.d.ts +118 -0
- package/dist/agenda/bookingRequirements/client.js +18 -0
- package/dist/agenda/bookingRequirements/index.d.ts +4 -0
- package/dist/agenda/bookingRequirements/index.js +4 -0
- package/dist/agenda/bookingSlots/client.d.ts +78 -0
- package/dist/agenda/bookingSlots/client.js +19 -0
- package/dist/agenda/bookingSlots/index.d.ts +4 -0
- package/dist/agenda/bookingSlots/index.js +4 -0
- package/dist/agenda/bookings/client.d.ts +49 -381
- package/dist/agenda/bookings/client.js +10 -52
- package/dist/agenda/bookings/index.d.ts +2 -2
- package/dist/agenda/bookings/models.d.ts +0 -92
- package/dist/agenda/client.d.ts +14 -0
- package/dist/agenda/client.js +35 -0
- package/dist/agenda/firstAvailability/client.d.ts +74 -0
- package/dist/agenda/firstAvailability/client.js +19 -0
- package/dist/agenda/firstAvailability/index.d.ts +5 -0
- package/dist/agenda/firstAvailability/index.js +4 -0
- package/dist/agenda/firstAvailability/models.d.ts +31 -0
- package/dist/agenda/firstAvailability/models.js +7 -0
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +26 -95
- package/dist/agenda/models.js +0 -3
- package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
- package/dist/agenda/nearestBookingSlots/client.js +19 -0
- package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
- package/dist/agenda/nearestBookingSlots/index.js +4 -0
- package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
- package/dist/agenda/nearestBookingSlots/models.js +7 -0
- package/dist/agenda/offerings/client.d.ts +6 -6
- package/dist/agenda/offerings/client.js +1 -1
- package/dist/agenda/resourceSchedules/client.d.ts +75 -0
- package/dist/agenda/resourceSchedules/client.js +19 -0
- package/dist/agenda/resourceSchedules/index.d.ts +4 -0
- package/dist/agenda/resourceSchedules/index.js +4 -0
- package/dist/agenda/resources/client.d.ts +6 -6
- package/dist/agenda/resources/client.js +1 -1
- package/dist/agenda/scheduleRules/client.d.ts +129 -89
- package/dist/agenda/scheduleRules/client.js +17 -16
- package/dist/agenda/scheduleRules/index.d.ts +2 -1
- package/dist/agenda/scheduleRules/models.d.ts +33 -0
- package/dist/agenda/scheduleRules/models.js +6 -0
- package/dist/agenda/services/client.d.ts +6 -6
- package/dist/agenda/services/client.js +1 -1
- package/dist/agenda/waitlist/client.d.ts +42 -32
- package/dist/agenda/waitlist/client.js +4 -4
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +17 -0
- package/dist/agenda/waitlist/models.js +4 -1
- package/dist/axxa/authorizations/client.d.ts +3 -35
- package/dist/axxa/authorizations/client.js +1 -1
- package/dist/axxa/authorizations/index.d.ts +1 -0
- package/dist/axxa/authorizations/models.d.ts +112 -0
- package/dist/axxa/authorizations/models.js +3 -0
- package/dist/axxa/connections/client.d.ts +19 -44
- package/dist/axxa/connections/client.js +10 -11
- package/dist/axxa/connections/index.d.ts +1 -0
- package/dist/axxa/connections/models.d.ts +269 -0
- package/dist/axxa/connections/models.js +3 -0
- package/dist/axxa/eligibility/client.d.ts +3 -25
- package/dist/axxa/eligibility/client.js +1 -1
- package/dist/axxa/eligibility/index.d.ts +1 -0
- package/dist/axxa/eligibility/models.d.ts +102 -0
- package/dist/axxa/eligibility/models.js +3 -0
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +245 -164
- package/dist/axxa/provider/client.d.ts +5 -11
- package/dist/axxa/provider/client.js +1 -1
- package/dist/axxa/provider/index.d.ts +1 -0
- package/dist/axxa/provider/models.d.ts +87 -0
- package/dist/axxa/provider/models.js +3 -0
- package/dist/gmedic/agendaServices/client.d.ts +13 -9
- package/dist/gmedic/agendaServices/client.js +2 -2
- package/dist/gmedic/agendaServices/index.d.ts +1 -1
- package/dist/gmedic/agendaServices/models.d.ts +53 -1
- package/dist/gmedic/agendas/client.d.ts +16 -9
- package/dist/gmedic/agendas/client.js +2 -2
- package/dist/gmedic/agendas/index.d.ts +1 -1
- package/dist/gmedic/agendas/models.d.ts +53 -1
- package/dist/gmedic/appointments/client.d.ts +34 -241
- package/dist/gmedic/appointments/client.js +12 -10
- package/dist/gmedic/appointments/index.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +518 -1
- package/dist/gmedic/appointments/models.js +28 -2
- package/dist/gmedic/availability/client.d.ts +24 -10
- package/dist/gmedic/availability/client.js +4 -3
- package/dist/gmedic/availability/index.d.ts +1 -1
- package/dist/gmedic/availability/models.d.ts +57 -1
- package/dist/gmedic/availability/models.js +7 -1
- package/dist/gmedic/availableDays/client.d.ts +11 -8
- package/dist/gmedic/availableDays/client.js +1 -1
- package/dist/gmedic/availableDays/index.d.ts +1 -1
- package/dist/gmedic/availableDays/models.d.ts +53 -1
- package/dist/gmedic/branchOffices/client.d.ts +13 -9
- package/dist/gmedic/branchOffices/client.js +2 -2
- package/dist/gmedic/branchOffices/index.d.ts +1 -1
- package/dist/gmedic/branchOffices/models.d.ts +58 -1
- package/dist/gmedic/connections/client.d.ts +19 -41
- package/dist/gmedic/connections/client.js +10 -11
- package/dist/gmedic/connections/index.d.ts +1 -0
- package/dist/gmedic/connections/models.d.ts +162 -0
- package/dist/gmedic/connections/models.js +3 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
- package/dist/gmedic/dictionaryEntries/client.js +2 -2
- package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
- package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
- package/dist/gmedic/healthPartners/client.d.ts +19 -9
- package/dist/gmedic/healthPartners/client.js +2 -2
- package/dist/gmedic/healthPartners/index.d.ts +1 -1
- package/dist/gmedic/healthPartners/models.d.ts +53 -1
- package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
- package/dist/gmedic/healthPromotionEntities/client.js +2 -2
- package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
- package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
- package/dist/gmedic/laboralRiskManagers/client.js +2 -2
- package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
- package/dist/gmedic/models.d.ts +196 -129
- package/dist/gmedic/occupations/client.d.ts +19 -9
- package/dist/gmedic/occupations/client.js +2 -2
- package/dist/gmedic/occupations/index.d.ts +1 -1
- package/dist/gmedic/occupations/models.d.ts +53 -1
- package/dist/gmedic/patientNotes/client.d.ts +25 -55
- package/dist/gmedic/patientNotes/client.js +5 -5
- package/dist/gmedic/patientNotes/index.d.ts +1 -1
- package/dist/gmedic/patientNotes/models.d.ts +232 -1
- package/dist/gmedic/patients/client.d.ts +40 -359
- package/dist/gmedic/patients/client.js +13 -5
- package/dist/gmedic/patients/index.d.ts +2 -2
- package/dist/gmedic/patients/models.d.ts +795 -1
- package/dist/gmedic/services/client.d.ts +22 -16
- package/dist/gmedic/services/client.js +2 -2
- package/dist/gmedic/services/index.d.ts +1 -1
- package/dist/gmedic/services/models.d.ts +53 -3
- package/dist/gmedic/sessionPackages/client.d.ts +21 -58
- package/dist/gmedic/sessionPackages/client.js +5 -5
- package/dist/gmedic/sessionPackages/index.d.ts +1 -1
- package/dist/gmedic/sessionPackages/models.d.ts +183 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +354 -5
- package/dist/models.js +6 -0
- package/dist/nuevaEps/affiliations/client.js +1 -1
- package/dist/nuevaEps/affiliations/models.d.ts +11 -9
- package/dist/nuevaEps/connections/client.d.ts +10 -9
- package/dist/nuevaEps/connections/client.js +9 -9
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +22 -80
- package/dist/nuevaEps/connections/models.js +1 -8
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/bulletins/client.d.ts +7 -6
- package/dist/raiz/campaigns/client.d.ts +5 -6
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +1 -1
- package/dist/raiz/conversations/client.d.ts +8 -8
- package/dist/raiz/definitions/client.d.ts +5 -5
- package/dist/raiz/evalCases/client.d.ts +4 -4
- package/dist/raiz/evalRuns/client.d.ts +3 -4
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +1 -1
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +6 -7
- package/dist/raiz/models.d.ts +8 -2
- package/dist/raiz/organization/client.d.ts +4 -5
- package/dist/raiz/profiles/client.d.ts +5 -6
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/tasks/client.d.ts +5 -6
- package/dist/raiz/tasks/client.js +1 -1
- package/dist/raiz/templates/client.d.ts +3 -4
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +3 -36
- package/dist/sura/affiliations/client.js +6 -6
- package/dist/sura/affiliations/index.d.ts +1 -0
- package/dist/sura/affiliations/models.d.ts +71 -0
- package/dist/sura/affiliations/models.js +8 -0
- package/dist/sura/appointments/client.d.ts +27 -328
- package/dist/sura/appointments/client.js +15 -21
- package/dist/sura/appointments/index.d.ts +2 -1
- package/dist/sura/appointments/models.d.ts +310 -0
- package/dist/sura/appointments/models.js +22 -0
- package/dist/sura/authorizations/client.d.ts +3 -44
- package/dist/sura/authorizations/client.js +6 -6
- package/dist/sura/authorizations/index.d.ts +1 -0
- package/dist/sura/authorizations/models.d.ts +79 -0
- package/dist/sura/authorizations/models.js +8 -0
- package/dist/sura/availability/client.d.ts +4 -69
- package/dist/sura/availability/client.js +9 -9
- package/dist/sura/availability/index.d.ts +2 -1
- package/dist/sura/availability/models.d.ts +103 -0
- package/dist/sura/availability/models.js +8 -0
- package/dist/sura/bookingOptions/client.d.ts +35 -0
- package/dist/sura/bookingOptions/client.js +19 -0
- package/dist/sura/bookingOptions/index.d.ts +5 -0
- package/dist/sura/bookingOptions/index.js +4 -0
- package/dist/sura/bookingOptions/models.d.ts +143 -0
- package/dist/sura/bookingOptions/models.js +8 -0
- package/dist/sura/client.d.ts +2 -0
- package/dist/sura/client.js +5 -0
- package/dist/sura/connections/client.d.ts +20 -97
- package/dist/sura/connections/client.js +10 -10
- package/dist/sura/connections/index.d.ts +1 -1
- package/dist/sura/connections/models.d.ts +102 -1
- package/dist/sura/connections/models.js +6 -0
- package/dist/sura/copays/client.d.ts +4 -41
- package/dist/sura/copays/client.js +9 -9
- package/dist/sura/copays/index.d.ts +2 -1
- package/dist/sura/copays/models.d.ts +75 -0
- package/dist/sura/copays/models.js +8 -0
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +204 -142
- package/dist/sura/models.js +20 -1
- package/dist/sura/operations/client.d.ts +2 -8
- package/dist/sura/operations/client.js +4 -4
- package/dist/sura/operations/index.d.ts +1 -0
- package/dist/sura/operations/models.d.ts +43 -0
- package/dist/sura/operations/models.js +8 -0
- package/dist/sura/patients/client.d.ts +3 -41
- package/dist/sura/patients/client.js +6 -6
- package/dist/sura/patients/index.d.ts +1 -0
- package/dist/sura/patients/models.d.ts +76 -0
- package/dist/sura/patients/models.js +8 -0
- package/dist/sura/professionals/client.d.ts +7 -10
- package/dist/sura/professionals/client.js +3 -4
- package/dist/sura/professionals/index.d.ts +1 -1
- package/dist/sura/professionals/models.d.ts +40 -1
- package/dist/sura/services/client.d.ts +7 -9
- package/dist/sura/services/client.js +3 -4
- package/dist/sura/services/index.d.ts +1 -0
- package/dist/sura/services/models.d.ts +40 -0
- package/dist/sura/services/models.js +3 -0
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +2 -176
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
|
@@ -1,5 +1,107 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import type { AccountProductRole } from "../models.js";
|
|
1
|
+
import type { Empty, ForbiddenFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountAccountNotConfiguredFailure, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* This person already has an Arbol account. Give them access with
|
|
5
|
+
* members.create.
|
|
6
|
+
*/
|
|
7
|
+
export interface AccountAccountExistsFailure {
|
|
8
|
+
/**
|
|
9
|
+
* The failure code, stable across releases.
|
|
10
|
+
*/
|
|
11
|
+
code: "ACCOUNT_EXISTS";
|
|
12
|
+
/**
|
|
13
|
+
* No fields.
|
|
14
|
+
*/
|
|
15
|
+
data: Empty;
|
|
16
|
+
/**
|
|
17
|
+
* What went wrong, for people; it never contains input values.
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether repeating the same request may succeed.
|
|
22
|
+
*/
|
|
23
|
+
retryable: false;
|
|
24
|
+
}
|
|
25
|
+
export interface AccountCreateInvitationBody {
|
|
26
|
+
/**
|
|
27
|
+
* Who to invite: someone who does not have an Arbol account yet.
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
* A product whose team Account administers: Raíz, Agenda, Ámbar or Account
|
|
32
|
+
* itself.
|
|
33
|
+
*/
|
|
34
|
+
product: "raiz" | "agenda" | "ambar" | "account";
|
|
35
|
+
/**
|
|
36
|
+
* A role name, such as calendar:operator.
|
|
37
|
+
*/
|
|
38
|
+
role: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A failed answer.
|
|
42
|
+
*/
|
|
43
|
+
export interface AccountCreateInvitationConflictError {
|
|
44
|
+
data: null;
|
|
45
|
+
error: AccountCreateInvitationConflictFailure;
|
|
46
|
+
/**
|
|
47
|
+
* What every answer carries besides its data or error.
|
|
48
|
+
*/
|
|
49
|
+
metadata: ResponseMetadata;
|
|
50
|
+
success: false;
|
|
51
|
+
}
|
|
52
|
+
export type AccountCreateInvitationConflictFailure = AccountIdentityRejectedFailure | AccountMemberExistsFailure | AccountAccountExistsFailure | AccountInvitationExistsFailure;
|
|
53
|
+
/**
|
|
54
|
+
* A failed answer.
|
|
55
|
+
*/
|
|
56
|
+
export interface AccountCreateInvitationForbiddenError {
|
|
57
|
+
data: null;
|
|
58
|
+
error: AccountCreateInvitationForbiddenFailure;
|
|
59
|
+
/**
|
|
60
|
+
* What every answer carries besides its data or error.
|
|
61
|
+
*/
|
|
62
|
+
metadata: ResponseMetadata;
|
|
63
|
+
success: false;
|
|
64
|
+
}
|
|
65
|
+
export type AccountCreateInvitationForbiddenFailure = ForbiddenFailure | AccountRoleNotAssignableFailure;
|
|
66
|
+
/**
|
|
67
|
+
* A failed answer.
|
|
68
|
+
*/
|
|
69
|
+
export interface AccountCreateInvitationServiceUnavailableError {
|
|
70
|
+
data: null;
|
|
71
|
+
error: AccountCreateInvitationServiceUnavailableFailure;
|
|
72
|
+
/**
|
|
73
|
+
* What every answer carries besides its data or error.
|
|
74
|
+
*/
|
|
75
|
+
metadata: ResponseMetadata;
|
|
76
|
+
success: false;
|
|
77
|
+
}
|
|
78
|
+
export type AccountCreateInvitationServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
79
|
+
/**
|
|
80
|
+
* A failed answer.
|
|
81
|
+
*/
|
|
82
|
+
export interface AccountDeleteInvitationForbiddenError {
|
|
83
|
+
data: null;
|
|
84
|
+
error: AccountDeleteInvitationForbiddenFailure;
|
|
85
|
+
/**
|
|
86
|
+
* What every answer carries besides its data or error.
|
|
87
|
+
*/
|
|
88
|
+
metadata: ResponseMetadata;
|
|
89
|
+
success: false;
|
|
90
|
+
}
|
|
91
|
+
export type AccountDeleteInvitationForbiddenFailure = ForbiddenFailure | AccountMemberProtectedFailure;
|
|
92
|
+
/**
|
|
93
|
+
* A failed answer.
|
|
94
|
+
*/
|
|
95
|
+
export interface AccountDeleteInvitationServiceUnavailableError {
|
|
96
|
+
data: null;
|
|
97
|
+
error: AccountDeleteInvitationServiceUnavailableFailure;
|
|
98
|
+
/**
|
|
99
|
+
* What every answer carries besides its data or error.
|
|
100
|
+
*/
|
|
101
|
+
metadata: ResponseMetadata;
|
|
102
|
+
success: false;
|
|
103
|
+
}
|
|
104
|
+
export type AccountDeleteInvitationServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
3
105
|
export interface AccountInvitation {
|
|
4
106
|
createdAt: Temporal.Instant;
|
|
5
107
|
email: string;
|
|
@@ -11,6 +113,63 @@ export interface AccountInvitation {
|
|
|
11
113
|
revocable: boolean;
|
|
12
114
|
roles: AccountProductRole[];
|
|
13
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* This person already has a pending invitation to this product.
|
|
118
|
+
*/
|
|
119
|
+
export interface AccountInvitationExistsFailure {
|
|
120
|
+
/**
|
|
121
|
+
* The failure code, stable across releases.
|
|
122
|
+
*/
|
|
123
|
+
code: "INVITATION_EXISTS";
|
|
124
|
+
/**
|
|
125
|
+
* No fields.
|
|
126
|
+
*/
|
|
127
|
+
data: Empty;
|
|
128
|
+
/**
|
|
129
|
+
* What went wrong, for people; it never contains input values.
|
|
130
|
+
*/
|
|
131
|
+
message: string;
|
|
132
|
+
/**
|
|
133
|
+
* Whether repeating the same request may succeed.
|
|
134
|
+
*/
|
|
135
|
+
retryable: false;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A failed answer.
|
|
139
|
+
*/
|
|
140
|
+
export interface AccountInvitationNotFoundError {
|
|
141
|
+
data: null;
|
|
142
|
+
/**
|
|
143
|
+
* This invitation does not exist.
|
|
144
|
+
*/
|
|
145
|
+
error: AccountInvitationNotFoundFailure;
|
|
146
|
+
/**
|
|
147
|
+
* What every answer carries besides its data or error.
|
|
148
|
+
*/
|
|
149
|
+
metadata: ResponseMetadata;
|
|
150
|
+
success: false;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* This invitation does not exist.
|
|
154
|
+
*/
|
|
155
|
+
export interface AccountInvitationNotFoundFailure {
|
|
156
|
+
/**
|
|
157
|
+
* The failure code, stable across releases.
|
|
158
|
+
*/
|
|
159
|
+
code: "INVITATION_NOT_FOUND";
|
|
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
|
+
}
|
|
14
173
|
export interface AccountInvitationPage {
|
|
15
174
|
/**
|
|
16
175
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -25,5 +184,65 @@ export interface AccountInvitationPage {
|
|
|
25
184
|
*/
|
|
26
185
|
pageInfo: PageInfo;
|
|
27
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* A successful answer.
|
|
189
|
+
*/
|
|
190
|
+
export interface AccountInvitationPageResponse {
|
|
191
|
+
data: AccountInvitationPage;
|
|
192
|
+
error: null;
|
|
193
|
+
/**
|
|
194
|
+
* What every answer carries besides its data or error.
|
|
195
|
+
*/
|
|
196
|
+
metadata: ResponseMetadata;
|
|
197
|
+
success: true;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* A successful answer.
|
|
201
|
+
*/
|
|
202
|
+
export interface AccountInvitationResponse {
|
|
203
|
+
data: AccountInvitation;
|
|
204
|
+
error: null;
|
|
205
|
+
/**
|
|
206
|
+
* What every answer carries besides its data or error.
|
|
207
|
+
*/
|
|
208
|
+
metadata: ResponseMetadata;
|
|
209
|
+
success: true;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* A failed answer.
|
|
213
|
+
*/
|
|
214
|
+
export interface AccountListInvitationsServiceUnavailableError {
|
|
215
|
+
data: null;
|
|
216
|
+
error: AccountListInvitationsServiceUnavailableFailure;
|
|
217
|
+
/**
|
|
218
|
+
* What every answer carries besides its data or error.
|
|
219
|
+
*/
|
|
220
|
+
metadata: ResponseMetadata;
|
|
221
|
+
success: false;
|
|
222
|
+
}
|
|
223
|
+
export type AccountListInvitationsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
224
|
+
/**
|
|
225
|
+
* This person is already a member.
|
|
226
|
+
*/
|
|
227
|
+
export interface AccountMemberExistsFailure {
|
|
228
|
+
/**
|
|
229
|
+
* The failure code, stable across releases.
|
|
230
|
+
*/
|
|
231
|
+
code: "MEMBER_EXISTS";
|
|
232
|
+
/**
|
|
233
|
+
* No fields.
|
|
234
|
+
*/
|
|
235
|
+
data: Empty;
|
|
236
|
+
/**
|
|
237
|
+
* What went wrong, for people; it never contains input values.
|
|
238
|
+
*/
|
|
239
|
+
message: string;
|
|
240
|
+
/**
|
|
241
|
+
* Whether repeating the same request may succeed.
|
|
242
|
+
*/
|
|
243
|
+
retryable: false;
|
|
244
|
+
}
|
|
28
245
|
export declare const AccountInvitationCodec: import("../../_/codec.js").Codec;
|
|
29
246
|
export declare const AccountInvitationPageCodec: import("../../_/codec.js").Codec;
|
|
247
|
+
export declare const AccountInvitationPageResponseCodec: import("../../_/codec.js").Codec;
|
|
248
|
+
export declare const AccountInvitationResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -8,3 +8,9 @@ export const AccountInvitationCodec = object([
|
|
|
8
8
|
export const AccountInvitationPageCodec = object([
|
|
9
9
|
["data", null, array(() => AccountInvitationCodec)],
|
|
10
10
|
]);
|
|
11
|
+
export const AccountInvitationPageResponseCodec = object([
|
|
12
|
+
["data", null, () => AccountInvitationPageCodec],
|
|
13
|
+
]);
|
|
14
|
+
export const AccountInvitationResponseCodec = object([
|
|
15
|
+
["data", null, () => AccountInvitationCodec],
|
|
16
|
+
]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AccountInvoiceDocumentResponse } 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
|
+
* Download an invoice's PDF
|
|
12
|
+
*
|
|
13
|
+
* The legal invoice document, as base64.
|
|
14
|
+
*/
|
|
15
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
18
|
+
export declare function bind(transport: Transport): Client;
|
|
19
|
+
export interface GetRequest {
|
|
20
|
+
/**
|
|
21
|
+
* The invoice's id, as invoices.list answers it.
|
|
22
|
+
*/
|
|
23
|
+
invoiceId: string;
|
|
24
|
+
}
|
|
25
|
+
export type GetResponse = AccountInvoiceDocumentResponse;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const GetOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/account/invoice-documents/{invoiceId}",
|
|
15
|
+
response: null,
|
|
16
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
17
|
+
};
|
|
@@ -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, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { AccountGetInvoiceDocumentServiceUnavailableError, AccountGetInvoiceDocumentServiceUnavailableFailure, AccountInvoiceDocument, AccountInvoiceDocumentResponse, } from "./models.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountGetInvoiceDocumentServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountGetInvoiceDocumentServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountGetInvoiceDocumentServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
16
|
+
export interface AccountInvoiceDocument {
|
|
17
|
+
contentType: "application/pdf";
|
|
18
|
+
/**
|
|
19
|
+
* The PDF, base64.
|
|
20
|
+
*/
|
|
21
|
+
data: string;
|
|
22
|
+
filename: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A successful answer.
|
|
26
|
+
*/
|
|
27
|
+
export interface AccountInvoiceDocumentResponse {
|
|
28
|
+
data: AccountInvoiceDocument;
|
|
29
|
+
error: null;
|
|
30
|
+
/**
|
|
31
|
+
* What every answer carries besides its data or error.
|
|
32
|
+
*/
|
|
33
|
+
metadata: ResponseMetadata;
|
|
34
|
+
success: true;
|
|
35
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AccountInvoiceDetail, type AccountInvoicePage } from "./models.js";
|
|
2
|
+
import { type AccountInvoiceDetailResponse, type AccountInvoicePageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -8,12 +7,6 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
8
7
|
baseUrl: string;
|
|
9
8
|
}
|
|
10
9
|
export interface Client {
|
|
11
|
-
/**
|
|
12
|
-
* Download an invoice's PDF
|
|
13
|
-
*
|
|
14
|
-
* The legal invoice document, as base64.
|
|
15
|
-
*/
|
|
16
|
-
document(request: DocumentRequest, options?: RequestOptions): Promise<DocumentResponse>;
|
|
17
10
|
/**
|
|
18
11
|
* Get an invoice
|
|
19
12
|
*
|
|
@@ -29,28 +22,13 @@ export interface Client {
|
|
|
29
22
|
}
|
|
30
23
|
export declare function createClient(options: ClientOptions): Client;
|
|
31
24
|
export declare function bind(transport: Transport): Client;
|
|
32
|
-
export interface DocumentRequest {
|
|
33
|
-
id: string;
|
|
34
|
-
}
|
|
35
|
-
export interface DocumentResponse {
|
|
36
|
-
data: {
|
|
37
|
-
contentType: "application/pdf";
|
|
38
|
-
data: string;
|
|
39
|
-
filename: string;
|
|
40
|
-
};
|
|
41
|
-
error: null;
|
|
42
|
-
metadata: ResponseMetadata;
|
|
43
|
-
success: true;
|
|
44
|
-
}
|
|
45
25
|
export interface GetRequest {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
error: null;
|
|
51
|
-
metadata: ResponseMetadata;
|
|
52
|
-
success: true;
|
|
26
|
+
/**
|
|
27
|
+
* The invoice's id, as invoices.list answers it.
|
|
28
|
+
*/
|
|
29
|
+
invoiceId: string;
|
|
53
30
|
}
|
|
31
|
+
export type GetResponse = AccountInvoiceDetailResponse;
|
|
54
32
|
export interface ListRequest {
|
|
55
33
|
/**
|
|
56
34
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -66,9 +44,4 @@ export interface ListRequest {
|
|
|
66
44
|
*/
|
|
67
45
|
limit?: number;
|
|
68
46
|
}
|
|
69
|
-
export
|
|
70
|
-
data: AccountInvoicePage;
|
|
71
|
-
error: null;
|
|
72
|
-
metadata: ResponseMetadata;
|
|
73
|
-
success: true;
|
|
74
|
-
}
|
|
47
|
+
export type ListResponse = AccountInvoicePageResponse;
|
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountInvoiceDetailResponseCodec, AccountInvoicePageResponseCodec, } 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
|
-
document: (request, options) => transport.send(DocumentOperation, request, options),
|
|
11
10
|
get: (request, options) => transport.send(GetOperation, request, options),
|
|
12
11
|
list: (request, options) => transport.send(ListOperation, request, options),
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
|
-
const DocumentOperation = {
|
|
16
|
-
method: "GET",
|
|
17
|
-
route: "/v1/account/invoices/{id}/document",
|
|
18
|
-
response: null,
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
-
};
|
|
21
14
|
const GetOperation = {
|
|
22
15
|
method: "GET",
|
|
23
|
-
route: "/v1/account/invoices/{
|
|
24
|
-
response:
|
|
25
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
16
|
+
route: "/v1/account/invoices/{invoiceId}",
|
|
17
|
+
response: AccountInvoiceDetailResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
26
19
|
};
|
|
27
20
|
const ListOperation = {
|
|
28
21
|
method: "GET",
|
|
29
22
|
route: "/v1/account/invoices",
|
|
30
23
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
31
|
-
response:
|
|
32
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
24
|
+
response: AccountInvoicePageResponseCodec,
|
|
25
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
33
26
|
};
|
|
@@ -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,
|
|
5
|
-
export type { AccountInvoice, AccountInvoiceDetail, AccountInvoicePage, } from "./models.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { AccountGetInvoiceServiceUnavailableError, AccountGetInvoiceServiceUnavailableFailure, AccountInvoice, AccountInvoiceDetail, AccountInvoiceDetailResponse, AccountInvoicePage, AccountInvoicePageResponse, AccountListInvoicesServiceUnavailableError, AccountListInvoicesServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountGetInvoiceServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountGetInvoiceServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountGetInvoiceServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
2
16
|
export interface AccountInvoice {
|
|
3
17
|
/**
|
|
4
18
|
* Micros of the currency named with it.
|
|
@@ -15,8 +29,20 @@ export interface AccountInvoice {
|
|
|
15
29
|
kind: "statement" | "top_up" | "pack";
|
|
16
30
|
number: string;
|
|
17
31
|
paidAt: Temporal.Instant | null;
|
|
32
|
+
/**
|
|
33
|
+
* Deprecated: use `periodEndsAt`. Answered until 2027-01-28.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
18
37
|
periodEnd: Temporal.Instant | null;
|
|
38
|
+
periodEndsAt: Temporal.Instant | null;
|
|
39
|
+
/**
|
|
40
|
+
* Deprecated: use `periodStartsAt`. Answered until 2027-01-28.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
19
44
|
periodStart: Temporal.Instant | null;
|
|
45
|
+
periodStartsAt: Temporal.Instant | null;
|
|
20
46
|
status: "draft" | "open" | "paid" | "void" | "uncollectible";
|
|
21
47
|
/**
|
|
22
48
|
* Micros of the currency named with it.
|
|
@@ -51,6 +77,18 @@ export interface AccountInvoiceDetail {
|
|
|
51
77
|
unitPriceMicros: number;
|
|
52
78
|
}[];
|
|
53
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* A successful answer.
|
|
82
|
+
*/
|
|
83
|
+
export interface AccountInvoiceDetailResponse {
|
|
84
|
+
data: AccountInvoiceDetail;
|
|
85
|
+
error: null;
|
|
86
|
+
/**
|
|
87
|
+
* What every answer carries besides its data or error.
|
|
88
|
+
*/
|
|
89
|
+
metadata: ResponseMetadata;
|
|
90
|
+
success: true;
|
|
91
|
+
}
|
|
54
92
|
export interface AccountInvoicePage {
|
|
55
93
|
/**
|
|
56
94
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -65,6 +103,33 @@ export interface AccountInvoicePage {
|
|
|
65
103
|
*/
|
|
66
104
|
pageInfo: PageInfo;
|
|
67
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* A successful answer.
|
|
108
|
+
*/
|
|
109
|
+
export interface AccountInvoicePageResponse {
|
|
110
|
+
data: AccountInvoicePage;
|
|
111
|
+
error: null;
|
|
112
|
+
/**
|
|
113
|
+
* What every answer carries besides its data or error.
|
|
114
|
+
*/
|
|
115
|
+
metadata: ResponseMetadata;
|
|
116
|
+
success: true;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* A failed answer.
|
|
120
|
+
*/
|
|
121
|
+
export interface AccountListInvoicesServiceUnavailableError {
|
|
122
|
+
data: null;
|
|
123
|
+
error: AccountListInvoicesServiceUnavailableFailure;
|
|
124
|
+
/**
|
|
125
|
+
* What every answer carries besides its data or error.
|
|
126
|
+
*/
|
|
127
|
+
metadata: ResponseMetadata;
|
|
128
|
+
success: false;
|
|
129
|
+
}
|
|
130
|
+
export type AccountListInvoicesServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
68
131
|
export declare const AccountInvoiceCodec: import("../../_/codec.js").Codec;
|
|
69
132
|
export declare const AccountInvoiceDetailCodec: import("../../_/codec.js").Codec;
|
|
133
|
+
export declare const AccountInvoiceDetailResponseCodec: import("../../_/codec.js").Codec;
|
|
70
134
|
export declare const AccountInvoicePageCodec: import("../../_/codec.js").Codec;
|
|
135
|
+
export declare const AccountInvoicePageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -6,11 +6,19 @@ export const AccountInvoiceCodec = object([
|
|
|
6
6
|
["issuedAt", null, instant],
|
|
7
7
|
["paidAt", null, instant],
|
|
8
8
|
["periodEnd", null, instant],
|
|
9
|
+
["periodEndsAt", null, instant],
|
|
9
10
|
["periodStart", null, instant],
|
|
11
|
+
["periodStartsAt", null, instant],
|
|
10
12
|
]);
|
|
11
13
|
export const AccountInvoiceDetailCodec = object([
|
|
12
14
|
["invoice", null, () => AccountInvoiceCodec],
|
|
13
15
|
]);
|
|
16
|
+
export const AccountInvoiceDetailResponseCodec = object([
|
|
17
|
+
["data", null, () => AccountInvoiceDetailCodec],
|
|
18
|
+
]);
|
|
14
19
|
export const AccountInvoicePageCodec = object([
|
|
15
20
|
["data", null, array(() => AccountInvoiceCodec)],
|
|
16
21
|
]);
|
|
22
|
+
export const AccountInvoicePageResponseCodec = object([
|
|
23
|
+
["data", null, () => AccountInvoicePageCodec],
|
|
24
|
+
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { DeletedObjectResponse } from "../../models.js";
|
|
3
|
+
import type { AccountCreateMemberBody, AccountMemberPageResponse, AccountMemberResponse, AccountUpdateMemberBody } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -41,40 +41,15 @@ export interface Client {
|
|
|
41
41
|
}
|
|
42
42
|
export declare function createClient(options: ClientOptions): Client;
|
|
43
43
|
export declare function bind(transport: Transport): Client;
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* or another.
|
|
48
|
-
*/
|
|
49
|
-
email: string;
|
|
50
|
-
/**
|
|
51
|
-
* A product whose team Account administers: Raíz, Agenda, Ámbar or Account
|
|
52
|
-
* itself.
|
|
53
|
-
*/
|
|
54
|
-
product: "raiz" | "agenda" | "ambar" | "account";
|
|
44
|
+
export type CreateRequest = AccountCreateMemberBody;
|
|
45
|
+
export type CreateResponse = AccountMemberResponse;
|
|
46
|
+
export interface DeleteRequest {
|
|
55
47
|
/**
|
|
56
|
-
*
|
|
48
|
+
* The member's id, as members.list answers it.
|
|
57
49
|
*/
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
export interface CreateResponse {
|
|
61
|
-
data: AccountMember;
|
|
62
|
-
error: null;
|
|
63
|
-
metadata: ResponseMetadata;
|
|
64
|
-
success: true;
|
|
65
|
-
}
|
|
66
|
-
export interface DeleteRequest {
|
|
67
|
-
id: string;
|
|
68
|
-
body: {
|
|
69
|
-
[key: string]: unknown;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export interface DeleteResponse {
|
|
73
|
-
data: DeletedObject;
|
|
74
|
-
error: null;
|
|
75
|
-
metadata: ResponseMetadata;
|
|
76
|
-
success: true;
|
|
50
|
+
memberId: string;
|
|
77
51
|
}
|
|
52
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
78
53
|
export interface ListRequest {
|
|
79
54
|
/**
|
|
80
55
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -90,27 +65,11 @@ export interface ListRequest {
|
|
|
90
65
|
*/
|
|
91
66
|
limit?: number;
|
|
92
67
|
}
|
|
93
|
-
export
|
|
94
|
-
|
|
95
|
-
error: null;
|
|
96
|
-
metadata: ResponseMetadata;
|
|
97
|
-
success: true;
|
|
98
|
-
}
|
|
99
|
-
export interface UpdateRequest {
|
|
100
|
-
id: string;
|
|
68
|
+
export type ListResponse = AccountMemberPageResponse;
|
|
69
|
+
export type UpdateRequest = {
|
|
101
70
|
/**
|
|
102
|
-
*
|
|
103
|
-
* itself.
|
|
71
|
+
* The member's id, as members.list answers it.
|
|
104
72
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*/
|
|
109
|
-
role: string | null;
|
|
110
|
-
}
|
|
111
|
-
export interface UpdateResponse {
|
|
112
|
-
data: AccountMember;
|
|
113
|
-
error: null;
|
|
114
|
-
metadata: ResponseMetadata;
|
|
115
|
-
success: true;
|
|
116
|
-
}
|
|
73
|
+
memberId: string;
|
|
74
|
+
} & AccountUpdateMemberBody;
|
|
75
|
+
export type UpdateResponse = AccountMemberResponse;
|