Package-level declarations

Types

Link copied to clipboard
This is where all the API version info lives.
Link copied to clipboard

An exception derived from a Mobile App Attestation Challenge API endpoint failure response. See https://docs.google.com/document/d/1MGw0-dO4Q-CJLNuqYBSYKAbEUy484lpLLX20ZIvwU6Y/edit?tab=t.0 TODO: Replace with final documentation when available. ECJ20260311

Link copied to clipboard
BatchRequest: Class to represent a batch request.
Link copied to clipboard
open class BatchResponse
BatchResponse: Class to represent response for a BatchRequest.
Link copied to clipboard
open class ClientManager
Factory for authenticated RestClient instances belonging to one persisted user.
Link copied to clipboard
CollectionCreateResponse: Class to represent response for a sobject collection create/update/upsert or delete request.
Link copied to clipboard
CompositeRequest: Class to represent a composite request.
Link copied to clipboard
CompositeResponse: Class to represent response for a CompositeRequest.
Link copied to clipboard
@Serializable
data class NotificationsActionsResponseBody(val message: String?)

Models a Notifications API actions endpoint response. See https://salesforce.quip.com/dwjPAf3py4Br TODO: Replace the documentation link with the final documentation. ECJ20250320

Link copied to clipboard

Provides REST client methods for a variety of notifications API endpoints.

Link copied to clipboard
@Serializable
data class NotificationsApiErrorResponseBody(val errorCode: String? = null, val message: String? = null, val messageCode: String? = null)

Models the Salesforce Notifications API actions endpoint's error response. See https://salesforce.quip.com/dwjPAf3py4Br TODO: Replace the documentation link with the final documentation. ECJ20250320

Link copied to clipboard
class NotificationsApiException(val errorCode: String? = null, message: String? = null, val messageCode: String? = null, val source: String? = null) : Exception

An exception derived from a Salesforce Notifications API endpoint failure response.

Link copied to clipboard
@Serializable
data class NotificationsTypesResponseBody(val notificationTypes: Array<NotificationsTypesResponseBody.NotificationType>? = null)

Models a Notifications API Types endpoint response. See https://salesforce.quip.com/KGU3ALoXRCjK#RcfABAPLVfg TODO: Replace the documentation link with the final documentation. ECJ20250310

Link copied to clipboard
PrimingRecordsResponse: Class to represent response for a priming records request.
Link copied to clipboard
open class RestClient
RestClient allows you to send authenticated HTTP requests to a force.com server.
Link copied to clipboard
open class RestRequest
RestRequest: Class to represent any REST request.
Link copied to clipboard
open class RestResponse
RestResponse: Class to represent any REST response.
Link copied to clipboard

Models a sfap_api chat-generations endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=generateChat

Link copied to clipboard
@Serializable
data class SfapApiChatGenerationsResponseBody(val id: String? = null, val generationDetails: SfapApiChatGenerationsResponseBody.GenerationDetails? = null)

Models a sfap_api "chat-generations" endpoint response.

Link copied to clipboard
class SfapApiClient(apiHostName: String, modelName: String? = null, restClient: RestClient)

Provides REST client methods for a variety of sfap_api endpoints.

Link copied to clipboard
@Serializable
data class SfapApiEmbeddingsRequestBody(val input: Array<String>)

Models a sfap_api embeddings endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=generateText

Link copied to clipboard
@Serializable
data class SfapApiEmbeddingsResponseBody(val embeddings: Array<SfapApiEmbeddingsResponseBody.Embedding>? = null, val parameters: SfapApiEmbeddingsResponseBody.Parameters? = null)

Models a sfap_api embeddings endpoint response.

Link copied to clipboard
@Serializable
data class SfapApiErrorResponseBody(val errorCode: String? = null, val message: String? = null, val messageCode: String? = null)

Models a sfap_api endpoint's error response. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=generateText

Link copied to clipboard
class SfapApiException(val errorCode: String? = null, message: String? = null, val messageCode: String? = null, val source: String? = null) : Exception

An exception derived from an sfap_api endpoint failure response. See https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-rest.html#step-3-use-models-rest-api

Link copied to clipboard
@Serializable
open class SfapApiFeedbackRequestBody(val id: String? = null, val appGeneration: String? = null, val appGenerationId: String? = null, val feedback: String? = null, val feedbackText: String? = null, val generationId: String? = null, val source: String? = null)

Models a sfap_api feedback endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=submitFeedback

Link copied to clipboard
@Serializable
data class SfapApiFeedbackResponseBody(val message: String? = null)

Models a sfap_api feedback endpoint response.

Link copied to clipboard
@Serializable
data class SfapApiGenerationsRequestBody(val prompt: String)

Models a sfap_api generations endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=generateText

Link copied to clipboard
@Serializable
data class SfapApiGenerationsResponseBody(val id: String? = null, val generation: SfapApiGenerationsResponseBody.Generation? = null, val moreGenerations: String? = null, val parameters: SfapApiGenerationsResponseBody.Parameters? = null, val prompt: String? = null)

Models a sfap_api "generations" endpoint response.