GoodMemGoodMem

Decision Models

TypeScript SDK reference for decision models: methods create, decide, delete, get, list, update.

Decision-model registration and typed evaluation.

Methods on this page are called through client.decision_models.

client.decision_models.create

client.decision_models.create(request: CreateDecisionModelRequest, requestOptions?: RequestOptions): Promise<DecisionModelResponseShape>

Saves the connection settings for a decision model. Requires CREATE_DECISION_MODEL for the new model and its owner. You can register the same provider connection more than once, but each registration must have a unique UUID. Credentials are omitted from the response.

HTTP: POST /v1/decision-models

Parameters

ParameterTypeDescription
requestCreateDecisionModelRequestRequest body.
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;DecisionModelResponseShape&gt;

Example

const model = await client.decisionModels.create({
  displayName: "Doc decision model", providerType: "LAYA",
  endpointUrl: "http://localhost:8000", modelIdentifier: "laya",
  monitoringEndpoint: "http://localhost:8000/health",
});

client.decision_models.decide

client.decision_models.decide(id: string, request: DecisionRequest, requestOptions?: RequestOptions): Promise<DecisionResponseShape>

Sends the supplied questions and content to the registered provider. Requires READ_DECISION_MODEL and EXECUTE_DECISION_MODEL. Each request calls the provider once and may incur charges, so do not retry automatically. GoodMem does not store the input or answers. Unsupported questions or media return 400. Problems with the stored provider credentials or settings return 412.

HTTP: POST /v1/decision-models/&#123;id&#125;/decide

Parameters

ParameterTypeDescription
idstringUUID of the decision model
requestDecisionRequestRequest body.
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;DecisionResponseShape&gt;

Example

const result = await client.decisionModels.decide(model.decisionModelId, {
  state: { text: "The account has been verified." },
  questions: { verified: {
    instructions: { text: "Is the account verified?" },
    noul: {},
  } },
});
console.log(result.answers.verified.noul?.probabilityTrue);

client.decision_models.delete

client.decision_models.delete(id: string, requestOptions?: RequestOptions): Promise<void>

Removes the decision model from GoodMem. Requires DELETE_DECISION_MODEL. This does not contact or delete the model at the provider. Returns 404 if the registration has already been deleted.

HTTP: DELETE /v1/decision-models/&#123;id&#125;

Parameters

ParameterTypeDescription
idstringUUID of the decision model
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;void&gt;

Example

await client.decisionModels.delete(model.decisionModelId);

client.decision_models.get

client.decision_models.get(id: string, options?: DecisionModelsGetOptions, requestOptions?: RequestOptions): Promise<DecisionModelResponseShape>

Returns the connection settings and supported features of a decision model. Requires READ_DECISION_MODEL. Set includeCredentials=true to include stored credentials; this also requires READ_DECISION_MODEL_CREDENTIALS. Returns 404 if the model does not exist, or 403 if it exists but you lack permission.

HTTP: GET /v1/decision-models/&#123;id&#125;

Parameters

ParameterTypeDescription
idstringUUID of the decision model
optionsDecisionModelsGetOptions optionalOptional query parameters.
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;DecisionModelResponseShape&gt;

Example

const fetched = await client.decisionModels.get(model.decisionModelId);

client.decision_models.list

client.decision_models.list(options?: DecisionModelsListOptions, requestOptions?: RequestOptions): Promise<ListDecisionModelsResponseShape>

Lists decision models that you have permission to read. Requires LIST_DECISION_MODEL for the instance and READ_DECISION_MODEL for each returned model. Results are ordered by creation time, newest first, with UUID descending to break ties. Credentials are omitted.

LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).

HTTP: GET /v1/decision-models

Parameters

ParameterTypeDescription
optionsDecisionModelsListOptions optionalOptional query parameters.
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;ListDecisionModelsResponseShape&gt;

Example

const page = await client.decisionModels.list({ providerType: "LAYA", pageSize: 20 });
console.log(page.totalCount, page.nextPageToken);

client.decision_models.update

client.decision_models.update(id: string, request: UpdateDecisionModelRequest, requestOptions?: RequestOptions): Promise<DecisionModelResponseShape>

Changes only the fields supplied in the request. Requires UPDATE_DECISION_MODEL. Send an empty string to clear description, version, or monitoringEndpoint. A supplied configuration replaces all existing settings; use {} to reset them to defaults. The provider and owner cannot be changed. Credentials are omitted from the response.

HTTP: PUT /v1/decision-models/&#123;id&#125;

Parameters

ParameterTypeDescription
idstringUUID of the decision model
requestUpdateDecisionModelRequestRequest body.
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;DecisionModelResponseShape&gt;

Example

await client.decisionModels.update(model.decisionModelId, { displayName: "Updated decision model" });

Data Models

Enum Values

DecisionModelProviderType

JEV, LAYA, CLEF

Interfaces

CreateDecisionModelRequest

Connection settings for a new decision model.

FieldTypeRequiredDescription
displayNamestringyesName shown in the console and CLI.
descriptionstring | nullnoOptional description.
providerTypeDecisionModelProviderTypeyesProvider used by this model. This cannot be changed after creation.
endpointUrlstringyesBase URL of the provider, starting with http:// or https://. Do not include a query string, fragment, or username and password.
apiPathstring | nullnoPath appended to endpointUrl when sending a request. Jev and Laya use /v1/systemone if omitted. Clef requires the path for your account and model.
modelIdentifierstringyesModel identifier accepted by the provider.
credentialsEndpointAuthentication | nullnoAPI key for the provider, supplied in credentials.apiKey.inlineSecret with kind set to CREDENTIAL_KIND_API_KEY. May be omitted for Laya when the endpoint allows anonymous access.
configurationRecord&lt;string, unknown&gt; | nullnoProvider settings. Supported keys are image_preview (Jev only), timeout_millis, and max_response_bytes. These settings cannot change which features the model supports.
labelsRecord&lt;string, string&gt; | nullnoLabels for filtering and organization.
versionstring | nullnoOptional version label.
monitoringEndpointstring | nullnoOptional URL for the provider health or metrics endpoint. Must start with http:// or https://.
ownerIdstring | nullnoUUID of the principal that will own the model. If omitted, the authenticated principal becomes the owner.
decisionModelIdstring | nullnoOptional UUID for the new model. GoodMem generates one if omitted. A UUID that is already in use returns 409; reusing connection settings is allowed.

DecisionAnswer

Answer to one question. Exactly one of choice, score, noul, or box is present.

FieldTypeRequiredDescription
choiceDecisionChoiceAnswer | nullnoSelected option and the probability assigned to each option.
scoreDecisionScoreAnswer | nullnoScore and the probability assigned to each score level.
noulDecisionNoulAnswer | nullnoProbability that the statement is true.
boxDecisionBoxAnswer | nullnoNormalized image coordinates.

DecisionArray

Ordered decision content elements.

FieldTypeRequiredDescription
valuesArray&lt;DecisionContent&gt;yesOrdered content elements.

DecisionBoxAnswer

Rectangle with coordinates expressed as fractions of the image width or height. A returned box does not guarantee that the object is present.

FieldTypeRequiredDescription
leftnumberyesLeft edge as a fraction of image width.
topnumberyesTop edge as a fraction of image height.
rightnumberyesRight edge as a fraction of image width.
bottomnumberyesBottom edge as a fraction of image height.
confidencenumber | nullnoOptional provider confidence.

DecisionBoxQuestion

Locate an object in an image. Use instructions to describe the object.

No fields.

DecisionChoiceAnswer

Selected option and probability distribution.

FieldTypeRequiredDescription
choicestringyesSelected option identifier.
probabilitiesRecord&lt;string, number&gt;yesProbability for every option.
confidencenumber | nullnoConfidence reported by the provider. This is not a calibrated probability that the answer is correct.
confidenceMeaning"ADJUSTED_TOP_PROBABILITY" | "NORMALIZED_ENTROPY_COMPLEMENT" | "TOP_PROBABILITY" | "ORDERED_MEAN_ABSOLUTE_DEVIATION" | "PROVIDER_DEFINED" | "NOT_REPORTED"yesInterpretation of confidence.

DecisionChoiceQuestion

Choice options.

FieldTypeRequiredDescription
optionsRecord&lt;string, DecisionContent&gt;yesOption identifiers and descriptions.

DecisionContent

Set exactly one of text, jsonValue, objectValue, arrayValue, or media. Use text for ordinary text. Use jsonValue to preserve a complete JSON value, including the exact precision of its numbers.

FieldTypeRequiredDescription
jsonValuestring | nullnoA complete JSON value encoded as a string. For example, {"jsonValue":"null"} represents JSON null. For ordinary text, use the text field.
textstring | nullnoOrdinary text without JSON quoting.
objectValueDecisionObject | nullnoObject whose fields can contain nested media.
arrayValueDecisionArray | nullnoOrdered array whose elements can contain nested media.
mediaDecisionMedia | nullnoMedia file included in the request. GoodMem does not download media from URLs.

DecisionLimit

A known numeric limit.

FieldTypeRequiredDescription
type"MAX_QUESTIONS" | "MIN_CHOICES" | "MAX_CHOICES" | "MIN_SCORE_LEVELS" | "MAX_SCORE_LEVELS" | "MAX_TOTAL_OPTIONS" | "MAX_STATE_CHARACTERS" | "MAX_BODY_BYTES" | "MAX_CONTENT_DEPTH" | "MAX_INPUT_TOKENS" | "MAX_QUESTION_ID_CHARACTERS" | "MAX_AUDIO_VIDEO_BYTES"yesLimit identifier.
valuenumberyesKnown limit value.

DecisionMedia

Media file included in the request. The provider and model determine which formats and sizes are supported.

FieldTypeRequiredDescription
kind"IMAGE" | "AUDIO" | "VIDEO"yesMedia category.
mimeTypestringyesDeclared MIME type.
datastringyesBase64-encoded file bytes.

DecisionMediaLimit

A known media limit.

FieldTypeRequiredDescription
type"MAX_ITEMS" | "MAX_ITEM_BYTES" | "MAX_TOTAL_BYTES" | "MAX_PIXELS" | "MIN_WIDTH" | "MAX_WIDTH" | "MIN_HEIGHT" | "MAX_HEIGHT" | "MIN_PIXELS" | "MAX_DURATION_MILLIS"yesMedia limit identifier.
valuenumberyesKnown limit value.

DecisionMediaSupport

Media formats, placements and provider constraints.

FieldTypeRequiredDescription
kind"IMAGE" | "AUDIO" | "VIDEO"yesMedia category.
mimeTypesArray&lt;string&gt;yesAccepted MIME types.
placementsArray&lt;string&gt;yesAllowed content positions.
limitsArray&lt;DecisionMediaLimit&gt;yesKnown limits for media. The provider checks dimensions and duration.

DecisionModelCapabilities

Supported features and known limits for this provider and model. An omitted limit is unknown; it does not mean unlimited.

FieldTypeRequiredDescription
questionTypesArray&lt;string&gt;yesTypes of questions this model can answer.
mediaArray&lt;DecisionMediaSupport&gt;yesSupported media formats, placements and known limits.
limitsArray&lt;DecisionLimit&gt;yesKnown numeric limits.
contextBoundLimitsArray&lt;string&gt;yesLimits that depend on the provider context window instead of a fixed count.
semanticsArray&lt;DecisionQuestionSemantics&gt;yesMeaning of the answer and confidence value for each question type.
inputOverflow"REJECTS" | "TRUNCATES_STATE" | "TRUNCATES_STATE_AND_OPTIONS"yesWhat the provider does when the input exceeds its context window.

DecisionModelResponse

Connection settings and supported features of a registered decision model.

FieldTypeRequiredDescription
decisionModelIdstringyesUUID of the decision model.
displayNamestringyesName shown in the console and CLI.
descriptionstring | nullnoOptional description.
providerTypeDecisionModelProviderTypeyesProvider used by this model.
endpointUrlstringyesProvider base URL.
apiPathstringyesInference path appended to the base URL.
modelIdentifierstringyesConfigured model identifier.
credentialsEndpointAuthentication | nullnoStored credentials. Returned only by get when includeCredentials=true and you have READ_DECISION_MODEL_CREDENTIALS permission.
configurationRecord&lt;string, unknown&gt;yesSettings used when calling the provider. These do not change which features the model supports.
labelsRecord&lt;string, string&gt;yesLabels for filtering and organization.
versionstring | nullnoOptional version label.
monitoringEndpointstring | nullnoOptional HTTP(S) health or metrics URL.
ownerIdstringyesUUID of the principal that owns this model.
capabilitiesDecisionModelCapabilitiesyesSupported questions and media, known limits, and the meaning of each answer type.
createdAtnumberyesCreation time in milliseconds since epoch.
updatedAtnumberyesLast update time in milliseconds since epoch.
createdByIdstringyesUUID of the principal or API key that created this model.
updatedByIdstringyesUUID of the principal or API key that last updated this model.

DecisionNoulAnswer

Probability that the proposition is true.

FieldTypeRequiredDescription
probabilityTruenumberyesProbability that the statement is true. Your application decides what threshold to use.

DecisionNoulQuestion

Optional true and false descriptions.

FieldTypeRequiredDescription
trueCriterionDecisionContent | nullnoDescription of the true outcome.
falseCriterionDecisionContent | nullnoDescription of the false outcome.

DecisionObject

Named decision content fields.

FieldTypeRequiredDescription
fieldsRecord&lt;string, DecisionContent&gt;yesContent keyed by field name.

DecisionQuestion

Set exactly one of choice, score, noul, or box. Clef requires instructions for every question.

FieldTypeRequiredDescription
instructionsDecisionContent | nullnoInstructions for this question. Clef requires nonblank text, an object, or an array. Other providers allow omission; to supply JSON null, use {"jsonValue":"null"}.
choiceDecisionChoiceQuestion | nullnoChoose one labeled option.
scoreDecisionScoreQuestion | nullnoScore the content against a list of levels ordered from lowest to highest.
noulDecisionNoulQuestion | nullnoEstimate the probability that a statement is true.
boxDecisionBoxQuestion | nullnoLocate an object in an image. A returned box does not guarantee that the object is present.

DecisionQuestionSemantics

Meaning of the answer and confidence value for one question type.

FieldTypeRequiredDescription
questionType"CHOICE" | "SCORE" | "NOUL" | "BOX"yesQuestion type.
confidence"ADJUSTED_TOP_PROBABILITY" | "NORMALIZED_ENTROPY_COMPLEMENT" | "TOP_PROBABILITY" | "ORDERED_MEAN_ABSOLUTE_DEVIATION" | "PROVIDER_DEFINED" | "NOT_REPORTED"yesHow to interpret the confidence value reported by the provider.
output"CANDIDATE_IDENTIFIER" | "EXPECTED_ZERO_BASED_LEVEL" | "PROBABILITY_TRUE" | "NORMALIZED_EDGES_NO_ABSENCE_SENTINEL"yesMeaning of the primary answer value.

DecisionRequest

Sends named questions and content to a registered decision model. The provider may charge for this request.

FieldTypeRequiredDescription
stateDecisionContentyesContent evaluated by all questions.
attachmentsArray&lt;DecisionMedia&gt; | nullnoMedia files included with the request. Their order is preserved within each media type.
questionsRecord&lt;string, DecisionQuestion&gt;yesQuestions keyed by names that you choose. The model must support each question type and its media.

DecisionResponse

Structured provider answers with reported usage.

FieldTypeRequiredDescription
modelstringyesProvider-reported model identifier.
answersRecord&lt;string, DecisionAnswer&gt;yesAnswers keyed by the original question identifiers.
usageDecisionUsageyesToken counts reported by the provider. An omitted count is unknown; a count of 0 means the provider reported zero.

DecisionScoreAnswer

Expected zero-based rubric level; not a percentage.

FieldTypeRequiredDescription
scorenumberyesScore on the scale defined by levels. The first level has value 0, and fractional values fall between levels.
probabilitiesRecord&lt;string, number&gt;yesProbability assigned to each level, using its index starting at 0.
levelsArray&lt;DecisionContent&gt;yesOriginal caller rubric, including structured content and media.
confidencenumber | nullnoConfidence reported by the provider. This is not a calibrated probability that the answer is correct.
confidenceMeaning"ADJUSTED_TOP_PROBABILITY" | "NORMALIZED_ENTROPY_COMPLEMENT" | "TOP_PROBABILITY" | "ORDERED_MEAN_ABSOLUTE_DEVIATION" | "PROVIDER_DEFINED" | "NOT_REPORTED"yesInterpretation of confidence.

DecisionScoreQuestion

Ordered rubric levels.

FieldTypeRequiredDescription
levelsArray&lt;DecisionContent&gt;yesDescriptions of the score levels, ordered from lowest to highest. The first level has index 0.

DecisionUsage

Token usage reported by the provider. Counts are omitted when unknown.

FieldTypeRequiredDescription
inputTokensnumber | nullnoReported input tokens.
outputTokensnumber | nullnoReported output tokens.

ListDecisionModelsResponse

One page of decision models that you have permission to read.

FieldTypeRequiredDescription
decisionModelsArray&lt;DecisionModelResponse&gt;yesDecision models ordered by creation time, newest first, with UUID descending to break ties.
nextPageTokenstring | nullnoToken to pass as pageToken in the next request. Omitted when there are no more results.
totalCountnumberyesTotal number of models that match the filters and that you have permission to read, across all pages.

UpdateDecisionModelRequest

Changes only the supplied fields. Omitted fields keep their current values. A supplied configuration replaces all existing provider settings.

FieldTypeRequiredDescription
displayNamestring | nullnoName shown in the console and CLI.
descriptionstring | nullnoDescription of the model. Send an empty string to clear it, or omit it to keep the current value.
endpointUrlstring | nullnoBase URL of the provider, starting with http:// or https://. Do not include a query string, fragment, or username and password.
apiPathstring | nullnoPath appended to endpointUrl when sending a request. Omit it to keep the current path. An empty string resets Jev and Laya to /v1/systemone; Clef requires the path for your account and model.
modelIdentifierstring | nullnoModel identifier accepted by the provider.
credentialsEndpointAuthentication | nullnoReplacement API key for the provider, supplied in credentials.apiKey.inlineSecret with kind set to CREDENTIAL_KIND_API_KEY. Omit credentials to keep the current key.
configurationRecord&lt;string, unknown&gt; | nullnoReplacement provider settings. Supported keys are image_preview (Jev only), timeout_millis, and max_response_bytes. Send {} to reset all settings to defaults, or omit configuration to keep the current settings.
versionstring | nullnoVersion label. Send an empty string to clear it, or omit it to keep the current value.
monitoringEndpointstring | nullnoURL for the provider health or metrics endpoint. Must start with http:// or https://. Send an empty string to clear it, or omit it to keep the current value.
replaceLabelsRecord&lt;string, string&gt; | nullnoReplace all labels with this map. Send {} to remove all labels. Do not combine with mergeLabels.
mergeLabelsRecord&lt;string, string&gt; | nullnoAdd labels and replace the values of matching keys. Other labels are unchanged. Do not combine with replaceLabels.

Response Shapes

Response shape types model values returned by the SDK after forward-compatible unknown enum strings are coerced to null.

DecisionLimitResponseShape

FieldTypeRequiredDescription
type"MAX_QUESTIONS" | "MIN_CHOICES" | "MAX_CHOICES" | "MIN_SCORE_LEVELS" | "MAX_SCORE_LEVELS" | "MAX_TOTAL_OPTIONS" | "MAX_STATE_CHARACTERS" | "MAX_BODY_BYTES" | "MAX_CONTENT_DEPTH" | "MAX_INPUT_TOKENS" | "MAX_QUESTION_ID_CHARACTERS" | "MAX_AUDIO_VIDEO_BYTES" | nullyesLimit identifier.
valuenumberyesKnown limit value.

DecisionMediaLimitResponseShape

FieldTypeRequiredDescription
type"MAX_ITEMS" | "MAX_ITEM_BYTES" | "MAX_TOTAL_BYTES" | "MAX_PIXELS" | "MIN_WIDTH" | "MAX_WIDTH" | "MIN_HEIGHT" | "MAX_HEIGHT" | "MIN_PIXELS" | "MAX_DURATION_MILLIS" | nullyesMedia limit identifier.
valuenumberyesKnown limit value.

DecisionMediaSupportResponseShape

FieldTypeRequiredDescription
kind"IMAGE" | "AUDIO" | "VIDEO" | nullyesMedia category.
mimeTypesArray&lt;string&gt;yesAccepted MIME types.
placementsArray&lt;string&gt;yesAllowed content positions.
limitsArray&lt;DecisionMediaLimitResponseShape&gt;yesKnown limits for media. The provider checks dimensions and duration.

DecisionModelCapabilitiesResponseShape

FieldTypeRequiredDescription
questionTypesArray&lt;string&gt;yesTypes of questions this model can answer.
mediaArray&lt;DecisionMediaSupportResponseShape&gt;yesSupported media formats, placements and known limits.
limitsArray&lt;DecisionLimitResponseShape&gt;yesKnown numeric limits.
contextBoundLimitsArray&lt;string&gt;yesLimits that depend on the provider context window instead of a fixed count.
semanticsArray&lt;DecisionQuestionSemanticsResponseShape&gt;yesMeaning of the answer and confidence value for each question type.
inputOverflow"REJECTS" | "TRUNCATES_STATE" | "TRUNCATES_STATE_AND_OPTIONS" | nullyesWhat the provider does when the input exceeds its context window.

DecisionModelResponseShape

FieldTypeRequiredDescription
decisionModelIdstringyesUUID of the decision model.
displayNamestringyesName shown in the console and CLI.
descriptionstring | nullnoOptional description.
providerTypeDecisionModelProviderType | nullyesProvider used by this model.
endpointUrlstringyesProvider base URL.
apiPathstringyesInference path appended to the base URL.
modelIdentifierstringyesConfigured model identifier.
credentialsEndpointAuthenticationResponseShape | nullnoStored credentials. Returned only by get when includeCredentials=true and you have READ_DECISION_MODEL_CREDENTIALS permission.
configurationRecord&lt;string, unknown&gt;yesSettings used when calling the provider. These do not change which features the model supports.
labelsRecord&lt;string, string&gt;yesLabels for filtering and organization.
versionstring | nullnoOptional version label.
monitoringEndpointstring | nullnoOptional HTTP(S) health or metrics URL.
ownerIdstringyesUUID of the principal that owns this model.
capabilitiesDecisionModelCapabilitiesResponseShapeyesSupported questions and media, known limits, and the meaning of each answer type.
createdAtnumberyesCreation time in milliseconds since epoch.
updatedAtnumberyesLast update time in milliseconds since epoch.
createdByIdstringyesUUID of the principal or API key that created this model.
updatedByIdstringyesUUID of the principal or API key that last updated this model.

DecisionQuestionSemanticsResponseShape

FieldTypeRequiredDescription
questionType"CHOICE" | "SCORE" | "NOUL" | "BOX" | nullyesQuestion type.
confidence"ADJUSTED_TOP_PROBABILITY" | "NORMALIZED_ENTROPY_COMPLEMENT" | "TOP_PROBABILITY" | "ORDERED_MEAN_ABSOLUTE_DEVIATION" | "PROVIDER_DEFINED" | "NOT_REPORTED" | nullyesHow to interpret the confidence value reported by the provider.
output"CANDIDATE_IDENTIFIER" | "EXPECTED_ZERO_BASED_LEVEL" | "PROBABILITY_TRUE" | "NORMALIZED_EDGES_NO_ABSENCE_SENTINEL" | nullyesMeaning of the primary answer value.

DecisionResponseShape

FieldTypeRequiredDescription
modelstringyesProvider-reported model identifier.
answersRecord&lt;string, DecisionAnswer&gt;yesAnswers keyed by the original question identifiers.
usageDecisionUsageResponseShapeyesToken counts reported by the provider. An omitted count is unknown; a count of 0 means the provider reported zero.

DecisionUsageResponseShape

FieldTypeRequiredDescription
inputTokensnumber | nullnoReported input tokens.
outputTokensnumber | nullnoReported output tokens.

ListDecisionModelsResponseShape

FieldTypeRequiredDescription
decisionModelsArray&lt;DecisionModelResponseShape&gt;yesDecision models ordered by creation time, newest first, with UUID descending to break ties.
nextPageTokenstring | nullnoToken to pass as pageToken in the next request. Omitted when there are no more results.
totalCountnumberyesTotal number of models that match the filters and that you have permission to read, across all pages.