@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
package/README.md
CHANGED
|
@@ -133,6 +133,41 @@ Generate and Publish push and dispatch as the Arbol Bot GitHub App, so their com
|
|
|
133
133
|
organization secret `ARBOL_BOT_PRIVATE_KEY`, and the App installed with contents write access to this
|
|
134
134
|
repository and project-arbol-cli. npm publishing uses the organization secret `NPM_TOKEN`.
|
|
135
135
|
|
|
136
|
+
## Migrating to SDK 5
|
|
137
|
+
|
|
138
|
+
SDK 5 follows the current public owner contracts across the platform. Update
|
|
139
|
+
Account calls inherited from SDK 3:
|
|
140
|
+
|
|
141
|
+
| SDK 3 | SDK 5 |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| `account.organizations.current` | `account.organization.get` |
|
|
144
|
+
| `account.organizations.configure` | `account.organization.update` |
|
|
145
|
+
| `account.billing.overview` | `account.billing.get` |
|
|
146
|
+
| `account.usage.breakdown` | `account.usage.get` |
|
|
147
|
+
| `account.usage.summary` | `account.usageSummary.get` |
|
|
148
|
+
| `account.invoices.document` | `account.invoiceDocuments.get` |
|
|
149
|
+
|
|
150
|
+
Agenda booking discovery now uses `bookingLocations.list`, `bookingOfferings.list`,
|
|
151
|
+
`bookingRequirements.get`, `bookingSlots.list` and `nearestBookingSlots.list`.
|
|
152
|
+
`bookings.lookup` replaces `bookings.list`; `firstAvailability.get` replaces
|
|
153
|
+
`availability.first`; `resourceSchedules.update` replaces `scheduleRules.replace`.
|
|
154
|
+
Schedule rules use separate `create` and `update` methods instead of `upsert`.
|
|
155
|
+
|
|
156
|
+
SURA uses `appointments.lookup`, `bookingOptions.lookup`, `availability.lookup`
|
|
157
|
+
and `copays.lookup` in place of `appointments.list`, `appointments.prepare`,
|
|
158
|
+
`availability.list` and `copays.list`. Lookups containing personal data use the
|
|
159
|
+
owner's current JSON request body. gMedic also exposes `patients.lookup`.
|
|
160
|
+
|
|
161
|
+
Account resource identifiers now use `apiKeyId`, `billingProfileId`, `invitationId`,
|
|
162
|
+
`invoiceId` and `memberId` in place of `id`, as the generated request types declare.
|
|
163
|
+
Connection create, update and delete are staff-user operations outside the public
|
|
164
|
+
SDK. Authorized staff use the private operator CLI; credential-bearing operations
|
|
165
|
+
remain outside MCP. Account still owns and enforces those permissions.
|
|
166
|
+
|
|
167
|
+
Shared generated model exports also follow the current schema names. Update
|
|
168
|
+
explicit model imports using the compiler's diagnostics. The client constructor,
|
|
169
|
+
response envelope, `ApiError` and Temporal values keep their existing behavior.
|
|
170
|
+
|
|
136
171
|
## License
|
|
137
172
|
|
|
138
173
|
[Apache License 2.0](LICENSE)
|
|
@@ -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, Empty } from "../../models.js";
|
|
3
|
+
import { type AccountApiKeyPageResponse, type AccountCreateApiKeyBody, type AccountIssuedApiKeyResponse } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -40,38 +40,15 @@ export interface Client {
|
|
|
40
40
|
}
|
|
41
41
|
export declare function createClient(options: ClientOptions): Client;
|
|
42
42
|
export declare function bind(transport: Transport): Client;
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
name: string;
|
|
43
|
+
export type CreateRequest = AccountCreateApiKeyBody;
|
|
44
|
+
export type CreateResponse = AccountIssuedApiKeyResponse;
|
|
45
|
+
export interface DeleteRequest {
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
50
|
-
* integration left out is decided by the key's scopes alone.
|
|
47
|
+
* The API key's id, as apiKeys.list answers it.
|
|
51
48
|
*/
|
|
52
|
-
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
};
|
|
55
|
-
scopes: string[];
|
|
56
|
-
}
|
|
57
|
-
export interface CreateResponse {
|
|
58
|
-
data: AccountIssuedApiKey;
|
|
59
|
-
error: null;
|
|
60
|
-
metadata: ResponseMetadata;
|
|
61
|
-
success: true;
|
|
62
|
-
}
|
|
63
|
-
export interface DeleteRequest {
|
|
64
|
-
id: string;
|
|
65
|
-
body: {
|
|
66
|
-
[key: string]: unknown;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export interface DeleteResponse {
|
|
70
|
-
data: DeletedObject;
|
|
71
|
-
error: null;
|
|
72
|
-
metadata: ResponseMetadata;
|
|
73
|
-
success: true;
|
|
49
|
+
apiKeyId: string;
|
|
74
50
|
}
|
|
51
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
75
52
|
export interface ListRequest {
|
|
76
53
|
/**
|
|
77
54
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -87,21 +64,12 @@ export interface ListRequest {
|
|
|
87
64
|
*/
|
|
88
65
|
limit?: number;
|
|
89
66
|
}
|
|
90
|
-
export
|
|
91
|
-
data: AccountApiKeyPage;
|
|
92
|
-
error: null;
|
|
93
|
-
metadata: ResponseMetadata;
|
|
94
|
-
success: true;
|
|
95
|
-
}
|
|
67
|
+
export type ListResponse = AccountApiKeyPageResponse;
|
|
96
68
|
export interface RotateRequest {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export interface RotateResponse {
|
|
103
|
-
data: AccountIssuedApiKey;
|
|
104
|
-
error: null;
|
|
105
|
-
metadata: ResponseMetadata;
|
|
106
|
-
success: true;
|
|
69
|
+
/**
|
|
70
|
+
* The API key's id, as apiKeys.list answers it.
|
|
71
|
+
*/
|
|
72
|
+
apiKeyId: string;
|
|
73
|
+
body: Empty;
|
|
107
74
|
}
|
|
75
|
+
export type RotateResponse = AccountIssuedApiKeyResponse;
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { AccountApiKeyPageResponseCodec, AccountIssuedApiKeyResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -17,27 +17,26 @@ const CreateOperation = {
|
|
|
17
17
|
method: "POST",
|
|
18
18
|
route: "/v1/account/api-keys",
|
|
19
19
|
body: "flat",
|
|
20
|
-
response:
|
|
21
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
20
|
+
response: AccountIssuedApiKeyResponseCodec,
|
|
21
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
22
22
|
};
|
|
23
23
|
const DeleteOperation = {
|
|
24
24
|
method: "DELETE",
|
|
25
|
-
route: "/v1/account/api-keys/{
|
|
26
|
-
body: "nested",
|
|
25
|
+
route: "/v1/account/api-keys/{apiKeyId}",
|
|
27
26
|
response: null,
|
|
28
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
29
28
|
};
|
|
30
29
|
const ListOperation = {
|
|
31
30
|
method: "GET",
|
|
32
31
|
route: "/v1/account/api-keys",
|
|
33
32
|
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
34
|
-
response:
|
|
35
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
33
|
+
response: AccountApiKeyPageResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
36
35
|
};
|
|
37
36
|
const RotateOperation = {
|
|
38
37
|
method: "POST",
|
|
39
|
-
route: "/v1/account/api-keys/{
|
|
38
|
+
route: "/v1/account/api-keys/{apiKeyId}/rotate",
|
|
40
39
|
body: "nested",
|
|
41
|
-
response:
|
|
42
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
40
|
+
response: AccountIssuedApiKeyResponseCodec,
|
|
41
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
43
42
|
};
|
|
@@ -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, CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, ListRequest, ListResponse, RotateRequest, RotateResponse, } from "./client.js";
|
|
5
|
-
export type { AccountApiKey, AccountApiKeyPage, AccountIssuedApiKey, } from "./models.js";
|
|
5
|
+
export type { AccountApiKey, AccountApiKeyNotFoundError, AccountApiKeyNotFoundFailure, AccountApiKeyPage, AccountApiKeyPageResponse, AccountCreateApiKeyBody, AccountCreateApiKeyForbiddenError, AccountCreateApiKeyForbiddenFailure, AccountCreateApiKeyServiceUnavailableError, AccountCreateApiKeyServiceUnavailableFailure, AccountDeleteApiKeyServiceUnavailableError, AccountDeleteApiKeyServiceUnavailableFailure, AccountIssuedApiKey, AccountIssuedApiKeyResponse, AccountListApiKeysServiceUnavailableError, AccountListApiKeysServiceUnavailableFailure, AccountPermissionNotGrantableFailure, AccountRotateApiKeyServiceUnavailableError, AccountRotateApiKeyServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { Empty, ForbiddenFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountAccountNotConfiguredFailure, AccountIdentityUnavailableFailure } from "../models.js";
|
|
2
3
|
export interface AccountApiKey {
|
|
3
4
|
createdAt: Temporal.Instant | null;
|
|
4
5
|
createdBy: string | null;
|
|
@@ -16,6 +17,42 @@ export interface AccountApiKey {
|
|
|
16
17
|
} | null;
|
|
17
18
|
scopes: string[];
|
|
18
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* A failed answer.
|
|
22
|
+
*/
|
|
23
|
+
export interface AccountApiKeyNotFoundError {
|
|
24
|
+
data: null;
|
|
25
|
+
/**
|
|
26
|
+
* This API key does not exist.
|
|
27
|
+
*/
|
|
28
|
+
error: AccountApiKeyNotFoundFailure;
|
|
29
|
+
/**
|
|
30
|
+
* What every answer carries besides its data or error.
|
|
31
|
+
*/
|
|
32
|
+
metadata: ResponseMetadata;
|
|
33
|
+
success: false;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* This API key does not exist.
|
|
37
|
+
*/
|
|
38
|
+
export interface AccountApiKeyNotFoundFailure {
|
|
39
|
+
/**
|
|
40
|
+
* The failure code, stable across releases.
|
|
41
|
+
*/
|
|
42
|
+
code: "API_KEY_NOT_FOUND";
|
|
43
|
+
/**
|
|
44
|
+
* No fields.
|
|
45
|
+
*/
|
|
46
|
+
data: Empty;
|
|
47
|
+
/**
|
|
48
|
+
* What went wrong, for people; it never contains input values.
|
|
49
|
+
*/
|
|
50
|
+
message: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether repeating the same request may succeed.
|
|
53
|
+
*/
|
|
54
|
+
retryable: false;
|
|
55
|
+
}
|
|
19
56
|
export interface AccountApiKeyPage {
|
|
20
57
|
/**
|
|
21
58
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -30,6 +67,71 @@ export interface AccountApiKeyPage {
|
|
|
30
67
|
*/
|
|
31
68
|
pageInfo: PageInfo;
|
|
32
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* A successful answer.
|
|
72
|
+
*/
|
|
73
|
+
export interface AccountApiKeyPageResponse {
|
|
74
|
+
data: AccountApiKeyPage;
|
|
75
|
+
error: null;
|
|
76
|
+
/**
|
|
77
|
+
* What every answer carries besides its data or error.
|
|
78
|
+
*/
|
|
79
|
+
metadata: ResponseMetadata;
|
|
80
|
+
success: true;
|
|
81
|
+
}
|
|
82
|
+
export interface AccountCreateApiKeyBody {
|
|
83
|
+
/**
|
|
84
|
+
* What uses it, such as "Billing backend".
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Per integration (sura, visoft, agenda): what the key may use there. An
|
|
89
|
+
* integration left out is decided by the key's scopes alone.
|
|
90
|
+
*/
|
|
91
|
+
restrictions?: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
scopes: string[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A failed answer.
|
|
98
|
+
*/
|
|
99
|
+
export interface AccountCreateApiKeyForbiddenError {
|
|
100
|
+
data: null;
|
|
101
|
+
error: AccountCreateApiKeyForbiddenFailure;
|
|
102
|
+
/**
|
|
103
|
+
* What every answer carries besides its data or error.
|
|
104
|
+
*/
|
|
105
|
+
metadata: ResponseMetadata;
|
|
106
|
+
success: false;
|
|
107
|
+
}
|
|
108
|
+
export type AccountCreateApiKeyForbiddenFailure = ForbiddenFailure | AccountPermissionNotGrantableFailure;
|
|
109
|
+
/**
|
|
110
|
+
* A failed answer.
|
|
111
|
+
*/
|
|
112
|
+
export interface AccountCreateApiKeyServiceUnavailableError {
|
|
113
|
+
data: null;
|
|
114
|
+
error: AccountCreateApiKeyServiceUnavailableFailure;
|
|
115
|
+
/**
|
|
116
|
+
* What every answer carries besides its data or error.
|
|
117
|
+
*/
|
|
118
|
+
metadata: ResponseMetadata;
|
|
119
|
+
success: false;
|
|
120
|
+
}
|
|
121
|
+
export type AccountCreateApiKeyServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
122
|
+
/**
|
|
123
|
+
* A failed answer.
|
|
124
|
+
*/
|
|
125
|
+
export interface AccountDeleteApiKeyServiceUnavailableError {
|
|
126
|
+
data: null;
|
|
127
|
+
error: AccountDeleteApiKeyServiceUnavailableFailure;
|
|
128
|
+
/**
|
|
129
|
+
* What every answer carries besides its data or error.
|
|
130
|
+
*/
|
|
131
|
+
metadata: ResponseMetadata;
|
|
132
|
+
success: false;
|
|
133
|
+
}
|
|
134
|
+
export type AccountDeleteApiKeyServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
33
135
|
export interface AccountIssuedApiKey {
|
|
34
136
|
apiKey: AccountApiKey;
|
|
35
137
|
/**
|
|
@@ -37,6 +139,67 @@ export interface AccountIssuedApiKey {
|
|
|
37
139
|
*/
|
|
38
140
|
key: string;
|
|
39
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* A successful answer.
|
|
144
|
+
*/
|
|
145
|
+
export interface AccountIssuedApiKeyResponse {
|
|
146
|
+
data: AccountIssuedApiKey;
|
|
147
|
+
error: null;
|
|
148
|
+
/**
|
|
149
|
+
* What every answer carries besides its data or error.
|
|
150
|
+
*/
|
|
151
|
+
metadata: ResponseMetadata;
|
|
152
|
+
success: true;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* A failed answer.
|
|
156
|
+
*/
|
|
157
|
+
export interface AccountListApiKeysServiceUnavailableError {
|
|
158
|
+
data: null;
|
|
159
|
+
error: AccountListApiKeysServiceUnavailableFailure;
|
|
160
|
+
/**
|
|
161
|
+
* What every answer carries besides its data or error.
|
|
162
|
+
*/
|
|
163
|
+
metadata: ResponseMetadata;
|
|
164
|
+
success: false;
|
|
165
|
+
}
|
|
166
|
+
export type AccountListApiKeysServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
167
|
+
/**
|
|
168
|
+
* An API key cannot hold a permission you do not hold.
|
|
169
|
+
*/
|
|
170
|
+
export interface AccountPermissionNotGrantableFailure {
|
|
171
|
+
/**
|
|
172
|
+
* The failure code, stable across releases.
|
|
173
|
+
*/
|
|
174
|
+
code: "PERMISSION_NOT_GRANTABLE";
|
|
175
|
+
/**
|
|
176
|
+
* No fields.
|
|
177
|
+
*/
|
|
178
|
+
data: Empty;
|
|
179
|
+
/**
|
|
180
|
+
* What went wrong, for people; it never contains input values.
|
|
181
|
+
*/
|
|
182
|
+
message: string;
|
|
183
|
+
/**
|
|
184
|
+
* Whether repeating the same request may succeed.
|
|
185
|
+
*/
|
|
186
|
+
retryable: false;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A failed answer.
|
|
190
|
+
*/
|
|
191
|
+
export interface AccountRotateApiKeyServiceUnavailableError {
|
|
192
|
+
data: null;
|
|
193
|
+
error: AccountRotateApiKeyServiceUnavailableFailure;
|
|
194
|
+
/**
|
|
195
|
+
* What every answer carries besides its data or error.
|
|
196
|
+
*/
|
|
197
|
+
metadata: ResponseMetadata;
|
|
198
|
+
success: false;
|
|
199
|
+
}
|
|
200
|
+
export type AccountRotateApiKeyServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
40
201
|
export declare const AccountApiKeyCodec: import("../../_/codec.js").Codec;
|
|
41
202
|
export declare const AccountApiKeyPageCodec: import("../../_/codec.js").Codec;
|
|
203
|
+
export declare const AccountApiKeyPageResponseCodec: import("../../_/codec.js").Codec;
|
|
42
204
|
export declare const AccountIssuedApiKeyCodec: import("../../_/codec.js").Codec;
|
|
205
|
+
export declare const AccountIssuedApiKeyResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -7,6 +7,12 @@ export const AccountApiKeyCodec = object([
|
|
|
7
7
|
export const AccountApiKeyPageCodec = object([
|
|
8
8
|
["data", null, array(() => AccountApiKeyCodec)],
|
|
9
9
|
]);
|
|
10
|
+
export const AccountApiKeyPageResponseCodec = object([
|
|
11
|
+
["data", null, () => AccountApiKeyPageCodec],
|
|
12
|
+
]);
|
|
10
13
|
export const AccountIssuedApiKeyCodec = object([
|
|
11
14
|
["apiKey", null, () => AccountApiKeyCodec],
|
|
12
15
|
]);
|
|
16
|
+
export const AccountIssuedApiKeyResponseCodec = object([
|
|
17
|
+
["data", null, () => AccountIssuedApiKeyCodec],
|
|
18
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type AccountBillingOverview } from "./models.js";
|
|
2
|
+
import { type AccountBillingOverviewResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -14,15 +13,10 @@ export interface Client {
|
|
|
14
13
|
* The organization's billing status, balance, active plans, allowances and
|
|
15
14
|
* what it spent this month.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
18
17
|
}
|
|
19
18
|
export declare function createClient(options: ClientOptions): Client;
|
|
20
19
|
export declare function bind(transport: Transport): Client;
|
|
21
|
-
export interface
|
|
22
|
-
}
|
|
23
|
-
export interface OverviewResponse {
|
|
24
|
-
data: AccountBillingOverview;
|
|
25
|
-
error: null;
|
|
26
|
-
metadata: ResponseMetadata;
|
|
27
|
-
success: true;
|
|
20
|
+
export interface GetRequest {
|
|
28
21
|
}
|
|
22
|
+
export type GetResponse = AccountBillingOverviewResponse;
|
|
@@ -1,18 +1,18 @@
|
|
|
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 { AccountBillingOverviewResponseCodec, } 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
|
-
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const GetOperation = {
|
|
14
14
|
method: "GET",
|
|
15
|
-
route: "/v1/account/billing
|
|
16
|
-
response:
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
15
|
+
route: "/v1/account/billing",
|
|
16
|
+
response: AccountBillingOverviewResponseCodec,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
|
@@ -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 { AccountBillingOverview } from "./models.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { AccountBillingOverview, AccountBillingOverviewResponse, AccountGetBillingOverviewServiceUnavailableError, AccountGetBillingOverviewServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
1
3
|
export interface AccountBillingOverview {
|
|
2
4
|
balances: {
|
|
3
5
|
creditRemainingMicros: number;
|
|
@@ -10,8 +12,10 @@ export interface AccountBillingOverview {
|
|
|
10
12
|
billingMode: "prepaid" | "postpaid";
|
|
11
13
|
monthToDate: {
|
|
12
14
|
end: Temporal.Instant;
|
|
15
|
+
endsAt: Temporal.Instant;
|
|
13
16
|
priceMicros: number;
|
|
14
17
|
start: Temporal.Instant;
|
|
18
|
+
startsAt: Temporal.Instant;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
21
|
* Whether the billing profile has what invoices need.
|
|
@@ -21,7 +25,9 @@ export interface AccountBillingOverview {
|
|
|
21
25
|
subscriptions: {
|
|
22
26
|
cancelAt: Temporal.Instant | null;
|
|
23
27
|
currentPeriodEnd: Temporal.Instant | null;
|
|
28
|
+
currentPeriodEndsAt: Temporal.Instant | null;
|
|
24
29
|
currentPeriodStart: Temporal.Instant | null;
|
|
30
|
+
currentPeriodStartsAt: Temporal.Instant | null;
|
|
25
31
|
endsAt: Temporal.Instant | null;
|
|
26
32
|
id: string;
|
|
27
33
|
kind: "recurring" | "pack";
|
|
@@ -39,4 +45,30 @@ export interface AccountBillingOverview {
|
|
|
39
45
|
unlimitedCredit: boolean;
|
|
40
46
|
};
|
|
41
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* A successful answer.
|
|
50
|
+
*/
|
|
51
|
+
export interface AccountBillingOverviewResponse {
|
|
52
|
+
data: AccountBillingOverview;
|
|
53
|
+
error: null;
|
|
54
|
+
/**
|
|
55
|
+
* What every answer carries besides its data or error.
|
|
56
|
+
*/
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
|
+
success: true;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A failed answer.
|
|
62
|
+
*/
|
|
63
|
+
export interface AccountGetBillingOverviewServiceUnavailableError {
|
|
64
|
+
data: null;
|
|
65
|
+
error: AccountGetBillingOverviewServiceUnavailableFailure;
|
|
66
|
+
/**
|
|
67
|
+
* What every answer carries besides its data or error.
|
|
68
|
+
*/
|
|
69
|
+
metadata: ResponseMetadata;
|
|
70
|
+
success: false;
|
|
71
|
+
}
|
|
72
|
+
export type AccountGetBillingOverviewServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
42
73
|
export declare const AccountBillingOverviewCodec: import("../../_/codec.js").Codec;
|
|
74
|
+
export declare const AccountBillingOverviewResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, instant, object } from "../../_/index.js";
|
|
4
4
|
export const AccountBillingOverviewCodec = object([
|
|
5
|
-
["monthToDate", null, object([["end", null, instant], ["start", null, instant]])],
|
|
6
|
-
["subscriptions", null, array(object([["cancelAt", null, instant], ["currentPeriodEnd", null, instant], ["currentPeriodStart", null, instant], ["endsAt", null, instant], ["startsAt", null, instant]]))],
|
|
5
|
+
["monthToDate", null, object([["end", null, instant], ["endsAt", null, instant], ["start", null, instant], ["startsAt", null, instant]])],
|
|
6
|
+
["subscriptions", null, array(object([["cancelAt", null, instant], ["currentPeriodEnd", null, instant], ["currentPeriodEndsAt", null, instant], ["currentPeriodStart", null, instant], ["currentPeriodStartsAt", null, instant], ["endsAt", null, instant], ["startsAt", null, instant]]))],
|
|
7
|
+
]);
|
|
8
|
+
export const AccountBillingOverviewResponseCodec = object([
|
|
9
|
+
["data", null, () => AccountBillingOverviewCodec],
|
|
7
10
|
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { AccountBillingProfile } from "./models.js";
|
|
2
|
+
import type { AccountBillingProfileResponse, AccountUpdateBillingProfileBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -25,26 +24,16 @@ export interface Client {
|
|
|
25
24
|
export declare function createClient(options: ClientOptions): Client;
|
|
26
25
|
export declare function bind(transport: Transport): Client;
|
|
27
26
|
export interface GetRequest {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
error: null;
|
|
33
|
-
metadata: ResponseMetadata;
|
|
34
|
-
success: true;
|
|
35
|
-
}
|
|
36
|
-
export interface UpdateRequest {
|
|
37
|
-
id: string;
|
|
38
|
-
billingDay?: number;
|
|
39
|
-
email?: string;
|
|
40
|
-
legalName?: string;
|
|
41
|
-
taxId?: string;
|
|
42
|
-
taxIdType?: string;
|
|
43
|
-
withholdingAgent?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface UpdateResponse {
|
|
46
|
-
data: AccountBillingProfile;
|
|
47
|
-
error: null;
|
|
48
|
-
metadata: ResponseMetadata;
|
|
49
|
-
success: true;
|
|
27
|
+
/**
|
|
28
|
+
* The billing profile's id: the caller's own organization's id.
|
|
29
|
+
*/
|
|
30
|
+
billingProfileId: string;
|
|
50
31
|
}
|
|
32
|
+
export type GetResponse = AccountBillingProfileResponse;
|
|
33
|
+
export type UpdateRequest = {
|
|
34
|
+
/**
|
|
35
|
+
* The billing profile's id: the caller's own organization's id.
|
|
36
|
+
*/
|
|
37
|
+
billingProfileId: string;
|
|
38
|
+
} & AccountUpdateBillingProfileBody;
|
|
39
|
+
export type UpdateResponse = AccountBillingProfileResponse;
|
|
@@ -12,14 +12,14 @@ export function bind(transport) {
|
|
|
12
12
|
}
|
|
13
13
|
const GetOperation = {
|
|
14
14
|
method: "GET",
|
|
15
|
-
route: "/v1/account/billing-profiles/{
|
|
15
|
+
route: "/v1/account/billing-profiles/{billingProfileId}",
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
|
19
19
|
const UpdateOperation = {
|
|
20
20
|
method: "PATCH",
|
|
21
|
-
route: "/v1/account/billing-profiles/{
|
|
21
|
+
route: "/v1/account/billing-profiles/{billingProfileId}",
|
|
22
22
|
body: "flat",
|
|
23
23
|
response: null,
|
|
24
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
24
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
25
25
|
};
|
|
@@ -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, GetRequest, GetResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { AccountBillingProfile } from "./models.js";
|
|
5
|
+
export type { AccountBillingProfile, AccountBillingProfileResponse, AccountGetBillingProfileServiceUnavailableError, AccountGetBillingProfileServiceUnavailableFailure, AccountUpdateBillingProfileBody, AccountUpdateBillingProfileServiceUnavailableError, AccountUpdateBillingProfileServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingUnavailableFailure } from "../models.js";
|
|
1
3
|
export interface AccountBillingProfile {
|
|
2
4
|
billingDay: number;
|
|
3
5
|
complete: boolean;
|
|
@@ -8,3 +10,49 @@ export interface AccountBillingProfile {
|
|
|
8
10
|
taxIdType: string | null;
|
|
9
11
|
withholdingAgent: boolean;
|
|
10
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A successful answer.
|
|
15
|
+
*/
|
|
16
|
+
export interface AccountBillingProfileResponse {
|
|
17
|
+
data: AccountBillingProfile;
|
|
18
|
+
error: null;
|
|
19
|
+
/**
|
|
20
|
+
* What every answer carries besides its data or error.
|
|
21
|
+
*/
|
|
22
|
+
metadata: ResponseMetadata;
|
|
23
|
+
success: true;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A failed answer.
|
|
27
|
+
*/
|
|
28
|
+
export interface AccountGetBillingProfileServiceUnavailableError {
|
|
29
|
+
data: null;
|
|
30
|
+
error: AccountGetBillingProfileServiceUnavailableFailure;
|
|
31
|
+
/**
|
|
32
|
+
* What every answer carries besides its data or error.
|
|
33
|
+
*/
|
|
34
|
+
metadata: ResponseMetadata;
|
|
35
|
+
success: false;
|
|
36
|
+
}
|
|
37
|
+
export type AccountGetBillingProfileServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|
|
38
|
+
export interface AccountUpdateBillingProfileBody {
|
|
39
|
+
billingDay?: number;
|
|
40
|
+
email?: string;
|
|
41
|
+
legalName?: string;
|
|
42
|
+
taxId?: string;
|
|
43
|
+
taxIdType?: string;
|
|
44
|
+
withholdingAgent?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A failed answer.
|
|
48
|
+
*/
|
|
49
|
+
export interface AccountUpdateBillingProfileServiceUnavailableError {
|
|
50
|
+
data: null;
|
|
51
|
+
error: AccountUpdateBillingProfileServiceUnavailableFailure;
|
|
52
|
+
/**
|
|
53
|
+
* What every answer carries besides its data or error.
|
|
54
|
+
*/
|
|
55
|
+
metadata: ResponseMetadata;
|
|
56
|
+
success: false;
|
|
57
|
+
}
|
|
58
|
+
export type AccountUpdateBillingProfileServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
|