star2star-js-ms-sdk

4.14.1

Accounts

Accounts
Static Members
createAccount
createRelationship
deleteAccount
getAccount
listAccountChildren
listAccountRelationships
listAccounts
listUserRootAccounts
modifyAccount
reinstateAccount
suspendAccount

Activity

Activity
Static Members
getReport
listReportTemplates
runReport
listRegisteredTypes
listRegisteredSubTypes
registerType
registerSubType
createReportTemplate
deleteReportTemplate
updateReportTemplate

Auth

Auth
Static Members
activateRole
addResourcesToGroup
addUsersToGroup
assignPermissionsToRole
assignRolesToUserGroup
assignScopedRoleToUserGroup
authorizeUserByAccount
createApplicationResourceGroup
createPermission
createUserGroup
createRole
deactivateRole
deletePermissionFromRole
deleteRole
deleteRoleFromUserGroup
deleteUserGroup
getAccountDefaultGroups
getApplicationDefaultResourceGroups
getApplicationDefaultUserGroups
getApplicationResourceGroups
getResourceUsers
getResourceGroupRoles
getRole
getUserGroupMembers
listAccessByGroups
listAccessByPermissions
listAccountUserGroups
listUserGroupRoles
listPermissions
listPermissionRoles
listRoleUserGroups
listRolePermissions
listRoles
listRolesForUser
listUserGroups
modifyRole
modifyUserGroup
removeResourceFromGroup
removeUsersFromGroup

Campaigns

Campaigns
Static Members
assignToSMSCampaign
createCampaign
createBrand
deleteBrand
deleteCampaign
getBrand
getBrandUseCases
getCampaign
getEnumerations
listCampaigns
removeFromSMSCampaign
updateCampaign

Chat

Chat
Static Members
addMember
createChannel
deleteMember
deleteChannel
getMessages
getChannel
getChannelInfo
getChannelMembers
listChannels
listUsersChannels
sendMessageToChannel
updateChannelInfo
updateChannelMeta

Contacts

Contacts
Static Members
createUserContact
deleteContact
getContact
exportContacts
listContacts
updateContact

Email

Email
Static Members
sendEmail
sendEmailAttachment

Entitlements

Entitlements
Static Members
activateUserEntitlement
bulkDeleteEntitlement
bulkUserEntitlement
disableAccountProduct
disableAccountProductType
enableAccountProduct
enableAccountProductType
getProduct
getProductByApplicationUuid
getProducts
getUserEntitlements
getUserEntitlementsV2
listAccountEntitlements
listAccountDisabledProducts
listAccountDisabledProductTypes
updateProduct

Forms

Forms
Static Members
createFormInstance
createFormTemplate
deleteFormInstance
deleteFormTemplate
getFormInstance
getFormTemplate
listFormTemplates
listUserForms
listUserFormSubmissions
updateFormTemplate

Groups

Groups
Static Members
addMembersToGroup
createGroup
deactivateGroup
deleteGroup
deleteGroupMembers
getGroup
listGroups
listGroupMembers
modifyGroup
reactivateGroup

Identity

Identity
Static Members
createAlias
createIdentity
deactivateIdentity
deleteAccountPasswordPolicy
deleteIdentity
deleteIdentityMFASMS
generatePasswordToken
getAccountMFAPolicy
getAccountPasswordPolicy
getIdentity
getIdentityDetails
getIdentityMFA
getMyIdentityData
listIdentitiesByAccount
listIdentitiesByAccountOrFilter
listPasswordPolicies
login
lookupIdentity
modifyIdentity
modifyIdentityProps
reactivateIdentity
resetPassword
updateAliasWithDID
updateAccountMFAPolicy
updateAccountPasswordPolicy
updateIdentityMFA
validatePasswordToken

Index

Index
Static Members
getMsHost
setMsHost
setMsAuthHost
setMSVersion

Lambda

Lambda
Static Members
listLambdas
invokeLambda

Media

Media
Static Members
deleteMedia
getGlobalMedia
getMediaFileUrl
listUserMedia
shareMedia
uploadFile
uploadGlobalMediaFile

Messaging

Messaging
Static Members
deleteConversation
deleteMultipleConversations
deleteMessage
deleteMultipleMessages
getConversation
getConversationUuid
getSMSNumber
markAllConversationMessagesRead
retrieveConversation
retrieveConversations
retrieveMessages
sendMessage
sendMessage
sendSimpleSMS
sendSMS
sendSMSMessage
snoozeUnsnoozeConversation
archiveUnarchiveConversation

Metadata

Metadata
Static Members
getMetadataSubsystems

Mobile

Mobile
Static Members
getUserRegistrations
registerPushToken
sendPushNotification
unregisterPushToken

Numbers

Numbers
Static Members
deprovisionNumbers
getAvailableAreaCodes
getAvailableRateCenters
getAvailableStates
getProvisionedNumbersByAccount
getProvisionedNumbersByUser
listAvailableNumbers
provisionNumbers
provisionNumbersHelp
provisionNumbersReference

Oauth

Oauth
Static Members
assignPolicyToClientApp
createClientApp
generateBasicToken
getAccessToken
getClientToken
invalidateToken
listClientTokens
listOauthClients
listScopes
refreshAccessToken
scopeClientApp
validateToken

Objects

Objects
Static Members
createAccountDataObject
createDataObject
createUserDataObject
deleteDataObject
getByType
getDataObject
getDataObjects
getDataObjectByType
getDataObjectByTypeAndName
updateDataObject

Profiles

Profiles
Static Members
createUserProperty
listUserProperties
updateProperty

Providers

Providers
Static Members
authorizeProvider
getProviderToken
getProviderTokenByConnection
getProviderUserProfiles
listAvailableProviders
listUsersProviders
listUserProviderConnections

Pubsub

Pubsub
Static Members
addSubscription
addCustomEventSubscription
broadcastCustomApplication
createCustomApplication
deleteCustomApplication
deleteCustomSubscription
deleteSubscription
getCustomApplication
getCustomSubscription
getSubscription
listCustomApplications
listCustomSubscriptions
listAccountSubscriptions
listSubscriptions
listUserSubscriptions
updateSubscription
updateSubscriptionExpiresDate

Resource CMS

Resource CMS
Static Members
addRelationshipsToRow
addRowToInstance
createInstance
deleteResourceInstanceRow
getResourceInstance
getResourceInstanceByUUID
getResourceInstanceRow
listResources
registerAccountTemplate
registerUserTemplate
searchResourceInstance

Resource Groups

Resource Groups
Static Members
createResourceGroups
cleanUpResourceGroups
updateResourceGroups

Scheduler

Scheduler
Static Members
deleteEvent
getEvent
getNextEventInfo
listEvents
listEventsHistory
scheduleEvent
updateEvent

ShortUrls

ShortUrls
Static Members
createShortUrl
deleteShortCode
listShortUrls

Voice

Voice
Static Members
getExtensionsByAccount

Workflow

Workflow
Static Members
createWorkflowTemplate
cancelWorkflow
deleteWorkflowTemplate
execWorkflow
getRunningWorkflow
getWfInstanceHistory
getWfInstanceWorkflowVars
getWfInstanceIncomingData
getWfInstanceResults
getWfTemplateHistory
getWorkflowGroup
getWorkflowGroupFiltered
getWorkflowGroupMaster
getWorkflowGroupData
getWorkflowGroupChildren
getWorkflowGroupChild
getWorkflowTemplate
listRunningWorkflows
listWorkflowGroups
listWorkflowTemplates
modifyWorkflowTemplate
searchWFHistory
startWorkflow
startWorkflowFlat
updateWorkflowGroup

Usage

Usage
Static Members
createEvent
getAccountBillingCycle
getUsageReport
getUsageTemplate
listUsageTemplates
runUsageReport

Util

Util
Static Members
addUrlQueryParams
extractProps
addRequestTrace
aggregate
createUUID
decrypt
decryptObject
encrypt
encryptObject
filterResponse
findAndReplaceString
formatFetchError
formatError
getEndpoint
getAuthHost
getGlobalThis
getVersion
getValueFromObjectTree
paginate
pendingResource
replaceStaticValues
replaceVariables
request

initiateIdentityMFASetup

This function will initiate proces to add a new source to the identity MFA

initiateIdentityMFASetup
Parameters
accessToken (string = "null accessToken") access token for cpaas systems
userUUID (string = "null userUUID") user uuid
type (string = "null type") "EMAIL" or "SMS"
source (string = "null source") SMS number or email to be added to MFA
trace (object = {}) optional microservice lifecycle trace headers
Returns
Promise<object>: Promise resolving to an object including 'token' to use in confirm

confirmIdentityMFASetup

This function will complete the process to add a new source to the identity MFA by confirming the token and code

confirmIdentityMFASetup
Parameters
accessToken (string = "null accessToken") access token for cpaas systems
userUUID (string = "null userUUID") user uuid
token (string = "null token") token received from InitiateIdentityMFASetup
code (string = "null code") code sent to the source to be added
trace (object = {}) optional microservice lifecycle trace headers
Returns
Promise<object>: Promise resolving to an object including 'token' to use in confirm

changePassword

This function will change a user's password. NOTE THAT THIS IS DIFFERENT FROM RESET PASSWORD function!!

changePassword
Parameters
accessToken (string = "null access token") access token for cpaas systems
email (string? = "null email") user's email address
old_data (any = "null old_data")
new_data (any = "null new_data")
trace (object = {}) optional microservice lifecycle trace headers
string (any) "old_data"] - user's old password
string (any) "new_data"] - user's new password
Returns
Promise<object>: Promise resolving to a as status message; "ok" or "failed"

Entitlement

Entitlement

Type: Object

Properties
account_uuid (string) : CPaaS account uuid to link to.
user_uuid (string) : CPaaS user uuid to entitle.
product_uuid (string) : Sangoma product uuid.
metadata (Object) : Entitlement metadata.

listActivities

This function will list activites based on parameters .

listActivities
Parameters
accessToken (string = "null access token")
filters (object = {}}) optional object consisting of key and value to use in url as parameters.
offset (number = 0) pagination offset
limit (number = 10) = pagination limit
trace (object = {}) optional microservice lifecycle trace headers
Returns
Promise<object>: Promise resolving to a data object of activities

getNumberDetails

This function will get provisioned number detail information including sms enabled provider, origin campaign and help text

getNumberDetails
Parameters
accessToken (string = "null accessToken") cpaas access token
phoneNumber (number?) sms phone number
trace (object = {}) microservice lifecyce headers
Returns
Promise: Promise resolving to item details