@orchard9ai/world-api-sdk
Version:
TypeScript SDK for Companion World API - AI-powered social simulation platform
1,037 lines (996 loc) • 28.5 kB
JavaScript
;
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var index_exports = {};
__export(index_exports, {
AgeDistributionDistribution: () => AgeDistributionDistribution,
AgentMediaItemType: () => AgentMediaItemType,
AgentMediaReviewBodyAction: () => AgentMediaReviewBodyAction,
AgentReviewStatus: () => AgentReviewStatus,
AgentStatus: () => AgentStatus,
AgentStatusProperty: () => AgentStatusProperty,
CalendarEntryActivityType: () => CalendarEntryActivityType,
CalendarEntryRecurrencePattern: () => CalendarEntryRecurrencePattern,
CreateAgentMediaRequestAudienceRating: () => CreateAgentMediaRequestAudienceRating,
CreateAgentMediaRequestType: () => CreateAgentMediaRequestType,
CreateUploadUrlRequestAudienceRating: () => CreateUploadUrlRequestAudienceRating,
CreateUploadUrlRequestMediaType: () => CreateUploadUrlRequestMediaType,
DemographicsIncomeLevel: () => DemographicsIncomeLevel,
DemographicsRelationshipStatus: () => DemographicsRelationshipStatus,
DigitalPresenceSocialMediaActivity: () => DigitalPresenceSocialMediaActivity,
Era: () => Era,
Gender: () => Gender,
GetNextAgentForReviewAvatar: () => GetNextAgentForReviewAvatar,
GetNextAgentForReviewBanner: () => GetNextAgentForReviewBanner,
GetNextAgentForReviewFullBody: () => GetNextAgentForReviewFullBody,
GetNextAgentForReviewHeadshot: () => GetNextAgentForReviewHeadshot,
ListAllAgentsGenderItem: () => ListAllAgentsGenderItem,
ListAllAgentsStatusItem: () => ListAllAgentsStatusItem,
LocationType: () => LocationType,
MediaDetailsReviewState: () => MediaDetailsReviewState,
MediaDetailsType: () => MediaDetailsType,
NameFrequency: () => NameFrequency,
PopulationJobStatus: () => PopulationJobStatus,
SDK_VERSION: () => SDK_VERSION,
SwitchAgentPrimaryMedia200Type: () => SwitchAgentPrimaryMedia200Type,
SwitchAgentPrimaryMediaType: () => SwitchAgentPrimaryMediaType,
UnifiedAgentObjectGender: () => UnifiedAgentObjectGender,
UnifiedAgentObjectStatus: () => UnifiedAgentObjectStatus,
UnifiedMediaObjectType: () => UnifiedMediaObjectType,
UnifiedMediaObjectUsage: () => UnifiedMediaObjectUsage,
UpdateAgentMediaRequestAudienceRating: () => UpdateAgentMediaRequestAudienceRating,
UpdateAgentMediaRequestType: () => UpdateAgentMediaRequestType,
UpdateAgentMediaRequestUsage: () => UpdateAgentMediaRequestUsage,
addAgentTags: () => addAgentTags,
addName: () => addName,
agentMediaReview: () => agentMediaReview,
approveAgent: () => approveAgent,
approveMedia: () => approveMedia,
batchAddNames: () => batchAddNames,
batchCreateLocations: () => batchCreateLocations,
bulkRejectMedia: () => bulkRejectMedia,
createAgentMedia: () => createAgentMedia,
createAgentMediaUploadUrl: () => createAgentMediaUploadUrl,
createTag: () => createTag,
cropAgentMedia: () => cropAgentMedia,
deleteAgentMedia: () => deleteAgentMedia,
deleteNames: () => deleteNames,
deleteTag: () => deleteTag,
deleteWorld: () => deleteWorld,
extendAgentLock: () => extendAgentLock,
extendMediaReviewLock: () => extendMediaReviewLock,
generatePopulation: () => generatePopulation,
getAgent: () => getAgent,
getAgentApprovedMedia: () => getAgentApprovedMedia,
getAgentById: () => getAgentById,
getAgentCalendar: () => getAgentCalendar,
getAgentMedia: () => getAgentMedia,
getAgentPendingMedia: () => getAgentPendingMedia,
getAgentTags: () => getAgentTags,
getAgentsWithPendingMedia: () => getAgentsWithPendingMedia,
getConstants: () => getConstants,
getHealth: () => getHealth,
getLiveness: () => getLiveness,
getMediaReviewStats: () => getMediaReviewStats,
getNextAgentForMediaReview: () => getNextAgentForMediaReview,
getNextAgentForReview: () => getNextAgentForReview,
getNextMediaForReview: () => getNextMediaForReview,
getPopulationJob: () => getPopulationJob,
getPopulationStats: () => getPopulationStats,
getReviewStats: () => getReviewStats,
getStartup: () => getStartup,
getTag: () => getTag,
getWorldApiConfig: () => getWorldApiConfig,
initializeWorld: () => initializeWorld,
listAgents: () => listAgents,
listAllAgents: () => listAllAgents,
listTags: () => listTags,
listWorlds: () => listWorlds,
processAgentMediaVariants: () => processAgentMediaVariants,
rejectAgent: () => rejectAgent,
rejectMedia: () => rejectMedia,
releaseMediaReviewLock: () => releaseMediaReviewLock,
removeAgentTags: () => removeAgentTags,
resetAgentMediaCrop: () => resetAgentMediaCrop,
setAgentTags: () => setAgentTags,
setWorldApiConfig: () => setWorldApiConfig,
skipMediaReview: () => skipMediaReview,
switchAgentPrimaryMedia: () => switchAgentPrimaryMedia,
unlockAgent: () => unlockAgent,
updateAgent: () => updateAgent,
updateAgentMedia: () => updateAgentMedia,
updateDemographics: () => updateDemographics,
updateTag: () => updateTag,
updateWorld: () => updateWorld
});
module.exports = __toCommonJS(index_exports);
// src/axios-instance.ts
var import_axios = __toESM(require("axios"));
var config = {
baseURL: "http://localhost:8043"
};
var setWorldApiConfig = (newConfig) => {
config = { ...config, ...newConfig };
};
var getWorldApiConfig = () => config;
var customInstance = (config2, options) => {
const source = import_axios.default.CancelToken.source();
const instance = import_axios.default.create({
baseURL: getWorldApiConfig().baseURL,
headers: {
"Content-Type": "application/json"
}
});
instance.interceptors.request.use((config3) => {
const apiConfig = getWorldApiConfig();
if (apiConfig.accessToken) {
config3.headers.Authorization = `Bearer ${apiConfig.accessToken}`;
} else if (apiConfig.apiKey) {
config3.headers["X-API-Key"] = apiConfig.apiKey;
}
if (apiConfig.organizationId) {
config3.headers["X-Organization-Id"] = apiConfig.organizationId;
}
return config3;
});
instance.interceptors.response.use(
(response) => response,
(error) => {
if (error.response?.status === 401) {
console.error("Unauthorized: Token may be expired");
}
return Promise.reject(error);
}
);
const promise = instance({
...config2,
...options,
cancelToken: source.token
}).then(({ data }) => data);
promise.cancel = () => {
source.cancel("Query was cancelled");
};
return promise;
};
// src/generated/api.ts
var getHealth = (options) => {
return customInstance({ url: `/health`, method: "GET" }, options);
};
var getLiveness = (options) => {
return customInstance({ url: `/health/live`, method: "GET" }, options);
};
var getStartup = (options) => {
return customInstance({ url: `/health/startup`, method: "GET" }, options);
};
var getConstants = (options) => {
return customInstance({ url: `/constants`, method: "GET" }, options);
};
var listAllAgents = (params, options) => {
return customInstance({ url: `/api/agents`, method: "GET", params }, options);
};
var getAgentById = (agentId, options) => {
return customInstance(
{ url: `/api/agents/${agentId}/details`, method: "GET" },
options
);
};
var updateAgent = (agentId, updateAgentRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}`,
method: "PATCH",
headers: { "Content-Type": "application/json" },
data: updateAgentRequest
},
options
);
};
var getAgentMedia = (agentId, params, options) => {
return customInstance(
{ url: `/api/agents/${agentId}/media`, method: "GET", params },
options
);
};
var createAgentMedia = (agentId, createAgentMediaRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}/media`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: createAgentMediaRequest
},
options
);
};
var updateAgentMedia = (agentId, mediaId, updateAgentMediaRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}/media/${mediaId}`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: updateAgentMediaRequest
},
options
);
};
var deleteAgentMedia = (agentId, mediaId, options) => {
return customInstance(
{ url: `/api/agents/${agentId}/media/${mediaId}`, method: "DELETE" },
options
);
};
var switchAgentPrimaryMedia = (agentId, mediaId, params, options) => {
return customInstance(
{ url: `/api/agents/${agentId}/media/${mediaId}/set-primary`, method: "PUT", params },
options
);
};
var createAgentMediaUploadUrl = (agentId, createUploadUrlRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}/media/upload-url`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: createUploadUrlRequest
},
options
);
};
var cropAgentMedia = (agentId, mediaId, cropMediaRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}/media/${mediaId}/crop`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: cropMediaRequest
},
options
);
};
var resetAgentMediaCrop = (agentId, mediaId, options) => {
return customInstance(
{ url: `/api/agents/${agentId}/media/${mediaId}/crop`, method: "DELETE" },
options
);
};
var processAgentMediaVariants = (agentId, mediaId, processVariantsRequest, options) => {
return customInstance(
{
url: `/api/agents/${agentId}/media/${mediaId}/process-variants`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: processVariantsRequest
},
options
);
};
var getNextAgentForReview = (params, options) => {
return customInstance(
{ url: `/api/review/next`, method: "POST", params },
options
);
};
var approveAgent = (agentId, approveAgentRequest, options) => {
return customInstance(
{
url: `/api/review/${agentId}/approve`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: approveAgentRequest
},
options
);
};
var rejectAgent = (agentId, rejectAgentRequest, options) => {
return customInstance(
{
url: `/api/review/${agentId}/reject`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: rejectAgentRequest
},
options
);
};
var unlockAgent = (agentId, options) => {
return customInstance(
{ url: `/api/review/${agentId}/unlock`, method: "POST" },
options
);
};
var extendAgentLock = (agentId, extendAgentLockBody, options) => {
return customInstance(
{
url: `/api/review/${agentId}/extend-lock`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: extendAgentLockBody
},
options
);
};
var getReviewStats = (options) => {
return customInstance({ url: `/api/review/stats`, method: "GET" }, options);
};
var listWorlds = (options) => {
return customInstance({ url: `/worlds`, method: "GET" }, options);
};
var initializeWorld = (createWorldRequest, options) => {
return customInstance(
{
url: `/worlds/initialize`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: createWorldRequest
},
options
);
};
var updateWorld = (worldId, updateWorldBody, options) => {
return customInstance(
{
url: `/worlds/${worldId}`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: updateWorldBody
},
options
);
};
var deleteWorld = (worldId, options) => {
return customInstance({ url: `/worlds/${worldId}`, method: "DELETE" }, options);
};
var updateDemographics = (worldId, updateDemographicsBody, options) => {
return customInstance(
{
url: `/worlds/${worldId}/demographics`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: updateDemographicsBody
},
options
);
};
var listAgents = (worldId, params, options) => {
return customInstance(
{ url: `/worlds/${worldId}/agents`, method: "GET", params },
options
);
};
var getAgent = (worldId, agentId, options) => {
return customInstance(
{ url: `/worlds/${worldId}/agents/${agentId}`, method: "GET" },
options
);
};
var getAgentCalendar = (worldId, agentId, params, options) => {
return customInstance(
{ url: `/worlds/${worldId}/agents/${agentId}/calendar`, method: "GET", params },
options
);
};
var generatePopulation = (worldId, generatePopulationRequest, options) => {
return customInstance(
{
url: `/worlds/${worldId}/population/generate`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: generatePopulationRequest
},
options
);
};
var getPopulationJob = (worldId, jobId, options) => {
return customInstance(
{ url: `/worlds/${worldId}/population/jobs/${jobId}`, method: "GET" },
options
);
};
var getPopulationStats = (worldId, options) => {
return customInstance(
{ url: `/worlds/${worldId}/population/stats`, method: "GET" },
options
);
};
var batchCreateLocations = (worldId, batchCreateLocationsRequest, options) => {
return customInstance(
{
url: `/worlds/${worldId}/locations/batch`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: batchCreateLocationsRequest
},
options
);
};
var addName = (worldId, nameEntry, options) => {
return customInstance(
{
url: `/worlds/${worldId}/names`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: nameEntry
},
options
);
};
var deleteNames = (worldId, params, options) => {
return customInstance(
{ url: `/worlds/${worldId}/names`, method: "DELETE", params },
options
);
};
var batchAddNames = (worldId, batchAddNamesBody, options) => {
return customInstance(
{
url: `/worlds/${worldId}/names/batch`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: batchAddNamesBody
},
options
);
};
var listTags = (options) => {
return customInstance({ url: `/tags`, method: "GET" }, options);
};
var createTag = (createTagInput, options) => {
return customInstance(
{
url: `/tags`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: createTagInput
},
options
);
};
var getTag = (tagId, options) => {
return customInstance({ url: `/tags/${tagId}`, method: "GET" }, options);
};
var updateTag = (tagId, updateTagInput, options) => {
return customInstance(
{
url: `/tags/${tagId}`,
method: "PATCH",
headers: { "Content-Type": "application/json" },
data: updateTagInput
},
options
);
};
var deleteTag = (tagId, options) => {
return customInstance({ url: `/tags/${tagId}`, method: "DELETE" }, options);
};
var getAgentTags = (agentId, options) => {
return customInstance(
{ url: `/agents/${agentId}/tags`, method: "GET" },
options
);
};
var addAgentTags = (agentId, assignTagsInput, options) => {
return customInstance(
{
url: `/agents/${agentId}/tags`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: assignTagsInput
},
options
);
};
var setAgentTags = (agentId, assignTagsInput, options) => {
return customInstance(
{
url: `/agents/${agentId}/tags`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: assignTagsInput
},
options
);
};
var removeAgentTags = (agentId, assignTagsInput, options) => {
return customInstance(
{
url: `/agents/${agentId}/tags`,
method: "DELETE",
headers: { "Content-Type": "application/json" },
data: assignTagsInput
},
options
);
};
var getNextMediaForReview = (options) => {
return customInstance(
{ url: `/api/media-review/next`, method: "POST" },
options
);
};
var getNextAgentForMediaReview = (params, options) => {
return customInstance(
{ url: `/api/media-review/next-agent`, method: "POST", params },
options
);
};
var approveMedia = (id, approveMediaBody, options) => {
return customInstance(
{
url: `/api/media-review/${id}/approve`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: approveMediaBody
},
options
);
};
var rejectMedia = (id, rejectMediaBody, options) => {
return customInstance(
{
url: `/api/media-review/${id}/reject`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: rejectMediaBody
},
options
);
};
var skipMediaReview = (id, options) => {
return customInstance(
{ url: `/api/media-review/${id}/skip`, method: "POST" },
options
);
};
var getMediaReviewStats = (params, options) => {
return customInstance(
{ url: `/api/media-review/stats`, method: "GET", params },
options
);
};
var getAgentsWithPendingMedia = (params, options) => {
return customInstance(
{ url: `/api/media-review/agents-with-pending`, method: "GET", params },
options
);
};
var getAgentPendingMedia = (agentId, params, options) => {
return customInstance(
{ url: `/api/media-review/agents/${agentId}/pending`, method: "GET", params },
options
);
};
var getAgentApprovedMedia = (agentId, params, options) => {
return customInstance(
{ url: `/api/media-review/agents/${agentId}/approved`, method: "GET", params },
options
);
};
var agentMediaReview = (agentId, agentMediaReviewBody, options) => {
return customInstance(
{
url: `/api/media-review/agents/${agentId}/review`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: agentMediaReviewBody
},
options
);
};
var extendMediaReviewLock = (agentId, extendMediaReviewLockBody, options) => {
return customInstance(
{
url: `/api/media-review/agents/${agentId}/extend-lock`,
method: "PUT",
headers: { "Content-Type": "application/json" },
data: extendMediaReviewLockBody
},
options
);
};
var releaseMediaReviewLock = (agentId, options) => {
return customInstance(
{ url: `/api/media-review/agents/${agentId}/release-lock`, method: "PUT" },
options
);
};
var bulkRejectMedia = (bulkRejectMediaBody, options) => {
return customInstance(
{
url: `/api/media-review/bulk-reject`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: bulkRejectMediaBody
},
options
);
};
// src/generated/schemas/ageDistributionDistribution.ts
var AgeDistributionDistribution = {
normal: "normal",
uniform: "uniform"
};
// src/generated/schemas/agentMediaItemType.ts
var AgentMediaItemType = {
image: "image",
video: "video",
document: "document"
};
// src/generated/schemas/agentMediaReviewBodyAction.ts
var AgentMediaReviewBodyAction = {
approve: "approve",
reject: "reject",
skip: "skip"
};
// src/generated/schemas/agentReviewStatus.ts
var AgentReviewStatus = {
pending: "pending",
locked_for_review: "locked_for_review",
approved: "approved",
rejected: "rejected",
needs_changes: "needs_changes"
};
// src/generated/schemas/agentStatus.ts
var AgentStatus = {
active: "active",
inactive: "inactive",
archived: "archived",
pending: "pending",
approved: "approved",
rejected: "rejected"
};
// src/generated/schemas/agentStatusProperty.ts
var AgentStatusProperty = {
active: "active",
inactive: "inactive",
archived: "archived",
rejected: "rejected"
};
// src/generated/schemas/calendarEntryActivityType.ts
var CalendarEntryActivityType = {
work: "work",
meal: "meal",
social: "social",
exercise: "exercise",
shopping: "shopping",
entertainment: "entertainment",
personal: "personal",
commute: "commute",
sleep: "sleep",
other: "other"
};
// src/generated/schemas/calendarEntryRecurrencePattern.ts
var CalendarEntryRecurrencePattern = {
daily: "daily",
weekdays: "weekdays",
weekly: "weekly",
monthly: "monthly"
};
// src/generated/schemas/createAgentMediaRequestAudienceRating.ts
var CreateAgentMediaRequestAudienceRating = {
G: "G",
PG: "PG",
"PG-13": "PG-13",
R: "R",
"NC-17": "NC-17"
};
// src/generated/schemas/createAgentMediaRequestType.ts
var CreateAgentMediaRequestType = {
image: "image",
video: "video",
document: "document"
};
// src/generated/schemas/createUploadUrlRequestAudienceRating.ts
var CreateUploadUrlRequestAudienceRating = {
G: "G",
PG: "PG",
"PG-13": "PG-13",
R: "R",
"NC-17": "NC-17"
};
// src/generated/schemas/createUploadUrlRequestMediaType.ts
var CreateUploadUrlRequestMediaType = {
image: "image",
video: "video",
document: "document"
};
// src/generated/schemas/demographicsIncomeLevel.ts
var DemographicsIncomeLevel = {
low: "low",
middle: "middle",
high: "high"
};
// src/generated/schemas/demographicsRelationshipStatus.ts
var DemographicsRelationshipStatus = {
single: "single",
married: "married",
divorced: "divorced",
widowed: "widowed",
partnered: "partnered"
};
// src/generated/schemas/digitalPresenceSocialMediaActivity.ts
var DigitalPresenceSocialMediaActivity = {
none: "none",
low: "low",
moderate: "moderate",
high: "high"
};
// src/generated/schemas/era.ts
var Era = {
modern: "modern",
historical: "historical",
contemporary: "contemporary"
};
// src/generated/schemas/gender.ts
var Gender = {
F: "F",
M: "M",
NB: "NB",
U: "U"
};
// src/generated/schemas/getNextAgentForReviewAvatar.ts
var GetNextAgentForReviewAvatar = {
true: "true",
false: "false"
};
// src/generated/schemas/getNextAgentForReviewBanner.ts
var GetNextAgentForReviewBanner = {
true: "true",
false: "false"
};
// src/generated/schemas/getNextAgentForReviewFullBody.ts
var GetNextAgentForReviewFullBody = {
true: "true",
false: "false"
};
// src/generated/schemas/getNextAgentForReviewHeadshot.ts
var GetNextAgentForReviewHeadshot = {
true: "true",
false: "false"
};
// src/generated/schemas/listAllAgentsGenderItem.ts
var ListAllAgentsGenderItem = {
M: "M",
F: "F",
O: "O"
};
// src/generated/schemas/listAllAgentsStatusItem.ts
var ListAllAgentsStatusItem = {
active: "active",
inactive: "inactive",
archived: "archived"
};
// src/generated/schemas/locationType.ts
var LocationType = {
residence: "residence",
workplace: "workplace",
retail: "retail",
restaurant: "restaurant",
cafe: "cafe",
bar: "bar",
park: "park",
gym: "gym",
school: "school",
hospital: "hospital",
entertainment: "entertainment",
transport: "transport",
community: "community",
religious: "religious",
office: "office",
other: "other"
};
// src/generated/schemas/mediaDetailsReviewState.ts
var MediaDetailsReviewState = {
unreviewed: "unreviewed",
accepted: "accepted",
rejected: "rejected"
};
// src/generated/schemas/mediaDetailsType.ts
var MediaDetailsType = {
image: "image",
video: "video"
};
// src/generated/schemas/nameFrequency.ts
var NameFrequency = {
common: "common",
uncommon: "uncommon",
rare: "rare"
};
// src/generated/schemas/populationJobStatus.ts
var PopulationJobStatus = {
pending: "pending",
processing: "processing",
completed: "completed",
failed: "failed",
cancelled: "cancelled"
};
// src/generated/schemas/switchAgentPrimaryMedia200Type.ts
var SwitchAgentPrimaryMedia200Type = {
avatar: "avatar",
banner: "banner"
};
// src/generated/schemas/switchAgentPrimaryMediaType.ts
var SwitchAgentPrimaryMediaType = {
avatar: "avatar",
banner: "banner"
};
// src/generated/schemas/unifiedAgentObjectGender.ts
var UnifiedAgentObjectGender = {
M: "M",
F: "F",
O: "O"
};
// src/generated/schemas/unifiedAgentObjectStatus.ts
var UnifiedAgentObjectStatus = {
pending: "pending",
active: "active",
retired: "retired",
archived: "archived",
rejected: "rejected"
};
// src/generated/schemas/unifiedMediaObjectType.ts
var UnifiedMediaObjectType = {
image: "image",
video: "video",
document: "document"
};
// src/generated/schemas/unifiedMediaObjectUsage.ts
var UnifiedMediaObjectUsage = {
avatar: "avatar",
banner: "banner",
headshot: "headshot",
gallery: "gallery",
cover: "cover"
};
// src/generated/schemas/updateAgentMediaRequestAudienceRating.ts
var UpdateAgentMediaRequestAudienceRating = {
G: "G",
PG: "PG",
"PG-13": "PG-13",
R: "R",
"NC-17": "NC-17"
};
// src/generated/schemas/updateAgentMediaRequestType.ts
var UpdateAgentMediaRequestType = {
image: "image",
video: "video",
document: "document"
};
// src/generated/schemas/updateAgentMediaRequestUsage.ts
var UpdateAgentMediaRequestUsage = {
avatar: "avatar",
banner: "banner",
gallery: "gallery",
cover: "cover",
headshot: "headshot"
};
// src/index.ts
var SDK_VERSION = "0.1.0";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
AgeDistributionDistribution,
AgentMediaItemType,
AgentMediaReviewBodyAction,
AgentReviewStatus,
AgentStatus,
AgentStatusProperty,
CalendarEntryActivityType,
CalendarEntryRecurrencePattern,
CreateAgentMediaRequestAudienceRating,
CreateAgentMediaRequestType,
CreateUploadUrlRequestAudienceRating,
CreateUploadUrlRequestMediaType,
DemographicsIncomeLevel,
DemographicsRelationshipStatus,
DigitalPresenceSocialMediaActivity,
Era,
Gender,
GetNextAgentForReviewAvatar,
GetNextAgentForReviewBanner,
GetNextAgentForReviewFullBody,
GetNextAgentForReviewHeadshot,
ListAllAgentsGenderItem,
ListAllAgentsStatusItem,
LocationType,
MediaDetailsReviewState,
MediaDetailsType,
NameFrequency,
PopulationJobStatus,
SDK_VERSION,
SwitchAgentPrimaryMedia200Type,
SwitchAgentPrimaryMediaType,
UnifiedAgentObjectGender,
UnifiedAgentObjectStatus,
UnifiedMediaObjectType,
UnifiedMediaObjectUsage,
UpdateAgentMediaRequestAudienceRating,
UpdateAgentMediaRequestType,
UpdateAgentMediaRequestUsage,
addAgentTags,
addName,
agentMediaReview,
approveAgent,
approveMedia,
batchAddNames,
batchCreateLocations,
bulkRejectMedia,
createAgentMedia,
createAgentMediaUploadUrl,
createTag,
cropAgentMedia,
deleteAgentMedia,
deleteNames,
deleteTag,
deleteWorld,
extendAgentLock,
extendMediaReviewLock,
generatePopulation,
getAgent,
getAgentApprovedMedia,
getAgentById,
getAgentCalendar,
getAgentMedia,
getAgentPendingMedia,
getAgentTags,
getAgentsWithPendingMedia,
getConstants,
getHealth,
getLiveness,
getMediaReviewStats,
getNextAgentForMediaReview,
getNextAgentForReview,
getNextMediaForReview,
getPopulationJob,
getPopulationStats,
getReviewStats,
getStartup,
getTag,
getWorldApiConfig,
initializeWorld,
listAgents,
listAllAgents,
listTags,
listWorlds,
processAgentMediaVariants,
rejectAgent,
rejectMedia,
releaseMediaReviewLock,
removeAgentTags,
resetAgentMediaCrop,
setAgentTags,
setWorldApiConfig,
skipMediaReview,
switchAgentPrimaryMedia,
unlockAgent,
updateAgent,
updateAgentMedia,
updateDemographics,
updateTag,
updateWorld
});
//# sourceMappingURL=index.js.map