@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/dist/account/models.d.ts
CHANGED
|
@@ -1,266 +1,196 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* Account administration is not configured yet.
|
|
4
|
+
*/
|
|
5
|
+
export interface AccountAccountNotConfiguredFailure {
|
|
6
|
+
/**
|
|
7
|
+
* The failure code, stable across releases.
|
|
8
|
+
*/
|
|
9
|
+
code: "ACCOUNT_NOT_CONFIGURED";
|
|
10
|
+
/**
|
|
11
|
+
* No fields.
|
|
12
|
+
*/
|
|
13
|
+
data: Empty;
|
|
14
|
+
/**
|
|
15
|
+
* What went wrong, for people; it never contains input values.
|
|
16
|
+
*/
|
|
17
|
+
message: string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether repeating the same request may succeed.
|
|
20
|
+
*/
|
|
21
|
+
retryable: false;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A failed answer.
|
|
25
|
+
*/
|
|
26
|
+
export interface AccountBillingRecordNotFoundError {
|
|
27
|
+
data: null;
|
|
28
|
+
/**
|
|
29
|
+
* Billing has no such record.
|
|
30
|
+
*/
|
|
31
|
+
error: AccountBillingRecordNotFoundFailure;
|
|
32
|
+
/**
|
|
33
|
+
* What every answer carries besides its data or error.
|
|
34
|
+
*/
|
|
35
|
+
metadata: ResponseMetadata;
|
|
36
|
+
success: false;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Billing has no such record.
|
|
40
|
+
*/
|
|
41
|
+
export interface AccountBillingRecordNotFoundFailure {
|
|
42
|
+
/**
|
|
43
|
+
* The failure code, stable across releases.
|
|
44
|
+
*/
|
|
45
|
+
code: "BILLING_RECORD_NOT_FOUND";
|
|
46
|
+
/**
|
|
47
|
+
* No fields.
|
|
48
|
+
*/
|
|
49
|
+
data: Empty;
|
|
50
|
+
/**
|
|
51
|
+
* What went wrong, for people; it never contains input values.
|
|
52
|
+
*/
|
|
53
|
+
message: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether repeating the same request may succeed.
|
|
56
|
+
*/
|
|
57
|
+
retryable: false;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A failed answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface AccountBillingRejectedError {
|
|
63
|
+
data: null;
|
|
64
|
+
/**
|
|
65
|
+
* Billing refused the request.
|
|
66
|
+
*/
|
|
67
|
+
error: AccountBillingRejectedFailure;
|
|
68
|
+
/**
|
|
69
|
+
* What every answer carries besides its data or error.
|
|
70
|
+
*/
|
|
71
|
+
metadata: ResponseMetadata;
|
|
72
|
+
success: false;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Billing refused the request.
|
|
76
|
+
*/
|
|
77
|
+
export interface AccountBillingRejectedFailure {
|
|
78
|
+
/**
|
|
79
|
+
* The failure code, stable across releases.
|
|
80
|
+
*/
|
|
81
|
+
code: "BILLING_REJECTED";
|
|
82
|
+
/**
|
|
83
|
+
* No fields.
|
|
84
|
+
*/
|
|
85
|
+
data: Empty;
|
|
86
|
+
/**
|
|
87
|
+
* What went wrong, for people; it never contains input values.
|
|
88
|
+
*/
|
|
89
|
+
message: string;
|
|
90
|
+
/**
|
|
91
|
+
* Whether repeating the same request may succeed.
|
|
92
|
+
*/
|
|
93
|
+
retryable: false;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Billing did not answer.
|
|
97
|
+
*/
|
|
98
|
+
export interface AccountBillingUnavailableFailure {
|
|
99
|
+
/**
|
|
100
|
+
* The failure code, stable across releases.
|
|
101
|
+
*/
|
|
102
|
+
code: "BILLING_UNAVAILABLE";
|
|
103
|
+
/**
|
|
104
|
+
* No fields.
|
|
105
|
+
*/
|
|
106
|
+
data: Empty;
|
|
107
|
+
/**
|
|
108
|
+
* What went wrong, for people; it never contains input values.
|
|
109
|
+
*/
|
|
110
|
+
message: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether repeating the same request may succeed.
|
|
113
|
+
*/
|
|
114
|
+
retryable: true;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* A failed answer.
|
|
118
|
+
*/
|
|
119
|
+
export interface AccountIdentityRejectedError {
|
|
3
120
|
data: null;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} | {
|
|
12
|
-
code: "UNAUTHORIZED";
|
|
13
|
-
data: {
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
message: "A valid access token is required.";
|
|
17
|
-
retryable: false;
|
|
18
|
-
} | {
|
|
19
|
-
code: "FORBIDDEN";
|
|
20
|
-
data: {
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
message: "The token does not authorize this operation.";
|
|
24
|
-
retryable: false;
|
|
25
|
-
} | {
|
|
26
|
-
code: "NOT_FOUND";
|
|
27
|
-
data: {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
message: "The requested operation does not exist.";
|
|
31
|
-
retryable: false;
|
|
32
|
-
} | {
|
|
33
|
-
code: "HTTP_METHOD_NOT_ALLOWED";
|
|
34
|
-
data: {
|
|
35
|
-
[key: string]: unknown;
|
|
36
|
-
};
|
|
37
|
-
message: "The HTTP method is not supported for this resource.";
|
|
38
|
-
retryable: false;
|
|
39
|
-
} | {
|
|
40
|
-
code: "REQUEST_TOO_LARGE";
|
|
41
|
-
data: {
|
|
42
|
-
[key: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
message: "The request exceeds the allowed size.";
|
|
45
|
-
retryable: false;
|
|
46
|
-
} | {
|
|
47
|
-
code: "UNSUPPORTED_MEDIA_TYPE";
|
|
48
|
-
data: {
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
message: "The request content type is not supported.";
|
|
52
|
-
retryable: false;
|
|
53
|
-
} | {
|
|
54
|
-
code: "RATE_LIMITED";
|
|
55
|
-
data: {
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
};
|
|
58
|
-
message: "The request rate limit was exceeded. Try again later.";
|
|
59
|
-
retryable: true;
|
|
60
|
-
} | {
|
|
61
|
-
code: "INTERNAL_ERROR";
|
|
62
|
-
data: {
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
message: "The service could not complete the operation.";
|
|
66
|
-
retryable: false;
|
|
67
|
-
} | {
|
|
68
|
-
code: "UPSTREAM_UNAVAILABLE";
|
|
69
|
-
data: {
|
|
70
|
-
[key: string]: unknown;
|
|
71
|
-
};
|
|
72
|
-
message: "The upstream service could not complete the request.";
|
|
73
|
-
retryable: true;
|
|
74
|
-
} | {
|
|
75
|
-
code: "UPSTREAM_TIMEOUT";
|
|
76
|
-
data: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
message: "The upstream service did not respond before its deadline.";
|
|
80
|
-
retryable: true;
|
|
81
|
-
} | {
|
|
82
|
-
code: "OUTCOME_UNKNOWN";
|
|
83
|
-
data: {
|
|
84
|
-
[key: string]: unknown;
|
|
85
|
-
};
|
|
86
|
-
message: "The operation may have been applied; check its result before repeating it.";
|
|
87
|
-
retryable: false;
|
|
88
|
-
} | {
|
|
89
|
-
code: "ACCOUNT_NOT_CONFIGURED";
|
|
90
|
-
data: {
|
|
91
|
-
[key: string]: unknown;
|
|
92
|
-
};
|
|
93
|
-
message: "Account administration is not configured yet.";
|
|
94
|
-
retryable: false;
|
|
95
|
-
} | {
|
|
96
|
-
code: "IDENTITY_UNAVAILABLE";
|
|
97
|
-
data: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
message: "The identity service did not answer.";
|
|
101
|
-
retryable: true;
|
|
102
|
-
} | {
|
|
103
|
-
code: "IDENTITY_REJECTED";
|
|
104
|
-
data: {
|
|
105
|
-
[key: string]: unknown;
|
|
106
|
-
};
|
|
107
|
-
message: "The identity service refused the change.";
|
|
108
|
-
retryable: false;
|
|
109
|
-
} | {
|
|
110
|
-
code: "MEMBER_PROTECTED";
|
|
111
|
-
data: {
|
|
112
|
-
[key: string]: unknown;
|
|
113
|
-
};
|
|
114
|
-
message: "This person holds access that only Arbol changes.";
|
|
115
|
-
retryable: false;
|
|
116
|
-
} | {
|
|
117
|
-
code: "MEMBER_SELF_CHANGE";
|
|
118
|
-
data: {
|
|
119
|
-
[key: string]: unknown;
|
|
120
|
-
};
|
|
121
|
-
message: "You cannot change your own access.";
|
|
122
|
-
retryable: false;
|
|
123
|
-
} | {
|
|
124
|
-
code: "LAST_ADMINISTRATOR";
|
|
125
|
-
data: {
|
|
126
|
-
[key: string]: unknown;
|
|
127
|
-
};
|
|
128
|
-
message: "The product must keep at least one administrator.";
|
|
129
|
-
retryable: false;
|
|
130
|
-
} | {
|
|
131
|
-
code: "ROLE_NOT_ASSIGNABLE";
|
|
132
|
-
data: {
|
|
133
|
-
[key: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
message: "You cannot assign this role.";
|
|
136
|
-
retryable: false;
|
|
137
|
-
} | {
|
|
138
|
-
code: "MEMBER_EXISTS";
|
|
139
|
-
data: {
|
|
140
|
-
[key: string]: unknown;
|
|
141
|
-
};
|
|
142
|
-
message: "This person is already a member.";
|
|
143
|
-
retryable: false;
|
|
144
|
-
} | {
|
|
145
|
-
code: "ACCOUNT_EXISTS";
|
|
146
|
-
data: {
|
|
147
|
-
[key: string]: unknown;
|
|
148
|
-
};
|
|
149
|
-
message: "This person already has an Arbol account. Give them access with members.create.";
|
|
150
|
-
retryable: false;
|
|
151
|
-
} | {
|
|
152
|
-
code: "INVITATION_EXISTS";
|
|
153
|
-
data: {
|
|
154
|
-
[key: string]: unknown;
|
|
155
|
-
};
|
|
156
|
-
message: "This person already has a pending invitation to this product.";
|
|
157
|
-
retryable: false;
|
|
158
|
-
} | {
|
|
159
|
-
code: "PERMISSION_NOT_GRANTABLE";
|
|
160
|
-
data: {
|
|
161
|
-
[key: string]: unknown;
|
|
162
|
-
};
|
|
163
|
-
message: "An API key cannot hold a permission you do not hold.";
|
|
164
|
-
retryable: false;
|
|
165
|
-
} | {
|
|
166
|
-
code: "MEMBER_NOT_FOUND";
|
|
167
|
-
data: {
|
|
168
|
-
[key: string]: unknown;
|
|
169
|
-
};
|
|
170
|
-
message: "No existing Arbol account was found.";
|
|
171
|
-
retryable: false;
|
|
172
|
-
} | {
|
|
173
|
-
code: "INVITATION_NOT_FOUND";
|
|
174
|
-
data: {
|
|
175
|
-
[key: string]: unknown;
|
|
176
|
-
};
|
|
177
|
-
message: "This invitation does not exist.";
|
|
178
|
-
retryable: false;
|
|
179
|
-
} | {
|
|
180
|
-
code: "API_KEY_NOT_FOUND";
|
|
181
|
-
data: {
|
|
182
|
-
[key: string]: unknown;
|
|
183
|
-
};
|
|
184
|
-
message: "This API key does not exist.";
|
|
185
|
-
retryable: false;
|
|
186
|
-
} | {
|
|
187
|
-
code: "BILLING_UNAVAILABLE";
|
|
188
|
-
data: {
|
|
189
|
-
[key: string]: unknown;
|
|
190
|
-
};
|
|
191
|
-
message: "Billing did not answer.";
|
|
192
|
-
retryable: true;
|
|
193
|
-
} | {
|
|
194
|
-
code: "BILLING_REJECTED";
|
|
195
|
-
data: {
|
|
196
|
-
[key: string]: unknown;
|
|
197
|
-
};
|
|
198
|
-
message: "Billing refused the request.";
|
|
199
|
-
retryable: false;
|
|
200
|
-
} | {
|
|
201
|
-
code: "CONNECTION_NAME_TAKEN";
|
|
202
|
-
data: {
|
|
203
|
-
[key: string]: unknown;
|
|
204
|
-
};
|
|
205
|
-
message: "Another connection of this integration already has this name.";
|
|
206
|
-
retryable: false;
|
|
207
|
-
} | {
|
|
208
|
-
code: "INTEGRATION_UNSUPPORTED";
|
|
209
|
-
data: {
|
|
210
|
-
[key: string]: unknown;
|
|
211
|
-
};
|
|
212
|
-
message: "This integration's connections are not managed from Account.";
|
|
213
|
-
retryable: false;
|
|
214
|
-
} | {
|
|
215
|
-
code: "INTEGRATION_REJECTED";
|
|
216
|
-
data: {
|
|
217
|
-
[key: string]: unknown;
|
|
218
|
-
};
|
|
219
|
-
message: "The integration refused the change.";
|
|
220
|
-
retryable: false;
|
|
221
|
-
} | {
|
|
222
|
-
code: "CUSTOM_SERVER_UNREACHABLE";
|
|
223
|
-
data: {
|
|
224
|
-
reason: "destination" | "redirect" | "status" | "too_large" | "timeout" | "network" | "document" | "no_tools";
|
|
225
|
-
};
|
|
226
|
-
message: "The server's tools could not be read.";
|
|
227
|
-
retryable: false;
|
|
228
|
-
} | {
|
|
229
|
-
code: "INSTITUTION_REQUIRED";
|
|
230
|
-
data: {
|
|
231
|
-
connectionId: string;
|
|
232
|
-
institutions: {
|
|
233
|
-
id: string;
|
|
234
|
-
name: string;
|
|
235
|
-
}[];
|
|
236
|
-
};
|
|
237
|
-
message: "The account sees several institutions: send the same request again with the one to schedule in.";
|
|
238
|
-
retryable: false;
|
|
239
|
-
} | {
|
|
240
|
-
code: "LOGIN_REJECTED";
|
|
241
|
-
data: {
|
|
242
|
-
errorCode: string;
|
|
243
|
-
logins: {
|
|
244
|
-
errorCode: string | null;
|
|
245
|
-
index: number;
|
|
246
|
-
login: number | null;
|
|
247
|
-
status: "active" | "rejected";
|
|
248
|
-
username: string;
|
|
249
|
-
}[];
|
|
250
|
-
};
|
|
251
|
-
message: "The portal refused a login: the logins that were not refused are saved, the refused ones change nothing.";
|
|
252
|
-
retryable: false;
|
|
253
|
-
} | {
|
|
254
|
-
code: "VAULT_UNAVAILABLE";
|
|
255
|
-
data: {
|
|
256
|
-
[key: string]: unknown;
|
|
257
|
-
};
|
|
258
|
-
message: "The credential vault did not answer.";
|
|
259
|
-
retryable: true;
|
|
260
|
-
});
|
|
121
|
+
/**
|
|
122
|
+
* The identity service refused the change.
|
|
123
|
+
*/
|
|
124
|
+
error: AccountIdentityRejectedFailure;
|
|
125
|
+
/**
|
|
126
|
+
* What every answer carries besides its data or error.
|
|
127
|
+
*/
|
|
261
128
|
metadata: ResponseMetadata;
|
|
262
129
|
success: false;
|
|
263
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* The identity service refused the change.
|
|
133
|
+
*/
|
|
134
|
+
export interface AccountIdentityRejectedFailure {
|
|
135
|
+
/**
|
|
136
|
+
* The failure code, stable across releases.
|
|
137
|
+
*/
|
|
138
|
+
code: "IDENTITY_REJECTED";
|
|
139
|
+
/**
|
|
140
|
+
* No fields.
|
|
141
|
+
*/
|
|
142
|
+
data: Empty;
|
|
143
|
+
/**
|
|
144
|
+
* What went wrong, for people; it never contains input values.
|
|
145
|
+
*/
|
|
146
|
+
message: string;
|
|
147
|
+
/**
|
|
148
|
+
* Whether repeating the same request may succeed.
|
|
149
|
+
*/
|
|
150
|
+
retryable: false;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The identity service did not answer.
|
|
154
|
+
*/
|
|
155
|
+
export interface AccountIdentityUnavailableFailure {
|
|
156
|
+
/**
|
|
157
|
+
* The failure code, stable across releases.
|
|
158
|
+
*/
|
|
159
|
+
code: "IDENTITY_UNAVAILABLE";
|
|
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: true;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* This person holds access that only Arbol changes.
|
|
175
|
+
*/
|
|
176
|
+
export interface AccountMemberProtectedFailure {
|
|
177
|
+
/**
|
|
178
|
+
* The failure code, stable across releases.
|
|
179
|
+
*/
|
|
180
|
+
code: "MEMBER_PROTECTED";
|
|
181
|
+
/**
|
|
182
|
+
* No fields.
|
|
183
|
+
*/
|
|
184
|
+
data: Empty;
|
|
185
|
+
/**
|
|
186
|
+
* What went wrong, for people; it never contains input values.
|
|
187
|
+
*/
|
|
188
|
+
message: string;
|
|
189
|
+
/**
|
|
190
|
+
* Whether repeating the same request may succeed.
|
|
191
|
+
*/
|
|
192
|
+
retryable: false;
|
|
193
|
+
}
|
|
264
194
|
export interface AccountProductRole {
|
|
265
195
|
/**
|
|
266
196
|
* A product whose team Account administers: Raíz, Agenda, Ámbar or Account
|
|
@@ -272,3 +202,24 @@ export interface AccountProductRole {
|
|
|
272
202
|
*/
|
|
273
203
|
role: string;
|
|
274
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* You cannot assign this role.
|
|
207
|
+
*/
|
|
208
|
+
export interface AccountRoleNotAssignableFailure {
|
|
209
|
+
/**
|
|
210
|
+
* The failure code, stable across releases.
|
|
211
|
+
*/
|
|
212
|
+
code: "ROLE_NOT_ASSIGNABLE";
|
|
213
|
+
/**
|
|
214
|
+
* No fields.
|
|
215
|
+
*/
|
|
216
|
+
data: Empty;
|
|
217
|
+
/**
|
|
218
|
+
* What went wrong, for people; it never contains input values.
|
|
219
|
+
*/
|
|
220
|
+
message: string;
|
|
221
|
+
/**
|
|
222
|
+
* Whether repeating the same request may succeed.
|
|
223
|
+
*/
|
|
224
|
+
retryable: false;
|
|
225
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AccountConfigureOrganizationBody, AccountCurrentOrganizationResponse } 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
|
+
* Get the current organization
|
|
12
|
+
*
|
|
13
|
+
* The organization the caller's token is for, the caller's roles in each of
|
|
14
|
+
* its products and their permissions in Account.
|
|
15
|
+
*/
|
|
16
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update the organization
|
|
19
|
+
*
|
|
20
|
+
* Changes the current organization's name, logo and sign-in colors, as people
|
|
21
|
+
* see them in every Arbol application and on its sign-in page.
|
|
22
|
+
*/
|
|
23
|
+
update(request?: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
24
|
+
}
|
|
25
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
26
|
+
export declare function bind(transport: Transport): Client;
|
|
27
|
+
export interface GetRequest {
|
|
28
|
+
}
|
|
29
|
+
export type GetResponse = AccountCurrentOrganizationResponse;
|
|
30
|
+
export type UpdateRequest = AccountConfigureOrganizationBody;
|
|
31
|
+
export type UpdateResponse = AccountCurrentOrganizationResponse;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/account/organization",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
19
|
+
const UpdateOperation = {
|
|
20
|
+
method: "PATCH",
|
|
21
|
+
route: "/v1/account/organization",
|
|
22
|
+
body: "flat",
|
|
23
|
+
response: null,
|
|
24
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
25
|
+
};
|
|
@@ -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, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
+
export type { AccountConfigureOrganizationBody, AccountConfigureOrganizationServiceUnavailableError, AccountConfigureOrganizationServiceUnavailableFailure, AccountCurrentOrganization, AccountCurrentOrganizationResponse, AccountGetCurrentOrganizationServiceUnavailableError, AccountGetCurrentOrganizationServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountAccountNotConfiguredFailure, AccountIdentityUnavailableFailure } from "../models.js";
|
|
3
|
+
export interface AccountConfigureOrganizationBody {
|
|
4
|
+
/**
|
|
5
|
+
* An https address of the organization's logo; null removes it.
|
|
6
|
+
*/
|
|
7
|
+
logoUrl?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* The name people see.
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
pageBackground?: string | null;
|
|
13
|
+
primaryColor?: string | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A failed answer.
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountConfigureOrganizationServiceUnavailableError {
|
|
19
|
+
data: null;
|
|
20
|
+
error: AccountConfigureOrganizationServiceUnavailableFailure;
|
|
21
|
+
/**
|
|
22
|
+
* What every answer carries besides its data or error.
|
|
23
|
+
*/
|
|
24
|
+
metadata: ResponseMetadata;
|
|
25
|
+
success: false;
|
|
26
|
+
}
|
|
27
|
+
export type AccountConfigureOrganizationServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|
|
28
|
+
export interface AccountCurrentOrganization {
|
|
29
|
+
/**
|
|
30
|
+
* Each of Arbol's products, with the caller's roles in it, for their home.
|
|
31
|
+
*/
|
|
32
|
+
applications: {
|
|
33
|
+
administers: boolean;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
id: "raiz" | "agenda" | "ambar" | "account";
|
|
36
|
+
roles: string[];
|
|
37
|
+
}[];
|
|
38
|
+
/**
|
|
39
|
+
* The colors of its sign-in page.
|
|
40
|
+
*/
|
|
41
|
+
colors: {
|
|
42
|
+
pageBackground: string | null;
|
|
43
|
+
primary: string | null;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The organization the caller's token is for.
|
|
47
|
+
*/
|
|
48
|
+
current: boolean;
|
|
49
|
+
id: string;
|
|
50
|
+
logoUrl: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The display name, or the slug when it has none.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* The caller's Account permissions, as their token carries them: the parts of
|
|
57
|
+
* Account it opens and what it may change there.
|
|
58
|
+
*/
|
|
59
|
+
permissions: string[];
|
|
60
|
+
/**
|
|
61
|
+
* The organization's identifier at Arbol's sign-in, which never changes.
|
|
62
|
+
*/
|
|
63
|
+
slug: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A successful answer.
|
|
67
|
+
*/
|
|
68
|
+
export interface AccountCurrentOrganizationResponse {
|
|
69
|
+
data: AccountCurrentOrganization;
|
|
70
|
+
error: null;
|
|
71
|
+
/**
|
|
72
|
+
* What every answer carries besides its data or error.
|
|
73
|
+
*/
|
|
74
|
+
metadata: ResponseMetadata;
|
|
75
|
+
success: true;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* A failed answer.
|
|
79
|
+
*/
|
|
80
|
+
export interface AccountGetCurrentOrganizationServiceUnavailableError {
|
|
81
|
+
data: null;
|
|
82
|
+
error: AccountGetCurrentOrganizationServiceUnavailableFailure;
|
|
83
|
+
/**
|
|
84
|
+
* What every answer carries besides its data or error.
|
|
85
|
+
*/
|
|
86
|
+
metadata: ResponseMetadata;
|
|
87
|
+
success: false;
|
|
88
|
+
}
|
|
89
|
+
export type AccountGetCurrentOrganizationServiceUnavailableFailure = UpstreamUnavailableFailure | AccountAccountNotConfiguredFailure | AccountIdentityUnavailableFailure;
|