esim-cli 2026.1202.206 → 2026.1202.207
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/dist/esim.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/esim.js
CHANGED
|
@@ -14992,7 +14992,7 @@ var catalog = [
|
|
|
14992
14992
|
{ operationId: "ChangeCompany", name: "change-company", method: "POST", path: "/api/companies/{id}/changes", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session and company ownership required. Change factory production level, location, or industry.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["action"], properties: { action: { type: "string", enum: ["upgrade", "downgrade", "relocate", "convert", "donate", "acceptDonation", "cancelDonation"] }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
|
|
14993
14993
|
{ operationId: "FundCompanyWallet", name: "fund-company-wallet", method: "POST", path: "/api/companies/{id}/wallet/deposits", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session and company ownership required. Fund a stock-company factory in its region’s current currency or a currency from one of its offers. Personal factories return personal_factory_accounts.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["amount"], properties: { amount: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, asset: { allOf: [{ type: "string", pattern: "^cur:[0-9]+$" }, { description: "Defaults to the current controlling country’s currency when omitted." }] } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["asset", "balance", "balances"], properties: { asset: { type: "string", pattern: "^cur:[0-9]+$" }, balance: { type: "integer", format: "int64", minimum: 0 }, balances: { type: "object", description: "Absolute balances by currency code, including zero for any eligible currency with no funds.", additionalProperties: { type: "integer", format: "int64", minimum: 0 } } } } } }, responseFields: ["asset", "balance", "balances"] },
|
|
14994
14994
|
{ operationId: "ListCompanyHiringWorkers", name: "list-company-hiring-workers", method: "GET", path: "/api/companies/{id}/hiring-workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and current unit-factory hiring permission required. List active contracts in citizen ID order.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name"], properties: { nationId: { type: "integer", minimum: 0 }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14995
|
-
{ operationId: "ListCompanyWorkers", name: "list-company-workers", method: "GET", path: "/api/companies/{id}/workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and company management permission required. List current contracts, ordered by citizen ID.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name", "economySkill", "equipmentBonusHundredths", "wage", "currency"], properties: { nationId: { type: "integer", minimum: 0 }, npc: { type: "boolean" }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$" }, name: { type: "string" }, economySkill: { type: "integer", minimum: 1 }, equipmentBonusHundredths: { type: "integer" }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, currency: { type: "string", pattern: "^cur:[0-9]+$" } } } }, nextCursor: { type: "string" } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14995
|
+
{ operationId: "ListCompanyWorkers", name: "list-company-workers", method: "GET", path: "/api/companies/{id}/workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and company management permission required. List current contracts, ordered by citizen ID.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name", "economySkill", "equipmentBonusHundredths", "wage", "currency"], properties: { avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$", description: "Version of the worker's public custom avatar, when uploaded." }, nationId: { type: "integer", minimum: 0 }, npc: { type: "boolean" }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$" }, name: { type: "string" }, economySkill: { type: "integer", minimum: 1 }, equipmentBonusHundredths: { type: "integer" }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, currency: { type: "string", pattern: "^cur:[0-9]+$" } } } }, nextCursor: { type: "string" } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14996
14996
|
{ operationId: "ChangeCompanyWorkerWage", name: "change-company-worker-wage", method: "PATCH", path: "/api/companies/{id}/workers/{contractId}", spec: "business.yaml", write: true, retry: "natural", description: "Citizen session and company management permission required. Set the current contract wage in its original currency.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "contractId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["wage"], properties: { wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
|
|
14997
14997
|
{ operationId: "DismissCompanyWorker", name: "dismiss-company-worker", method: "DELETE", path: "/api/companies/{id}/workers/{contractId}", spec: "business.yaml", write: true, retry: "natural", description: "Citizen session and hiring permission required. The current leader acts for unit-owned companies. End the specified current contract.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "contractId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
|
|
14998
14998
|
{ operationId: "GetMyEmployment", name: "get-my-employment", method: "GET", path: "/api/employments/me", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the signed-in citizen's employer.", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["companyId"], properties: { companyId: { type: ["integer", "null"], format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000, description: "Contract wage in minor units, present when employed." }, currency: { type: "string", pattern: "^cur:[0-9]+$" }, offerWithdrawn: { type: "boolean", description: "Whether the employer withdrew the offer associated with the employment. Filling the last available position does not count as withdrawal." }, systemEmployer: { type: "boolean", description: "Whether the employer is a system citizen." } } } } }, responseFields: ["companyId", "wage", "currency", "offerWithdrawn", "systemEmployer"] },
|
|
@@ -38075,7 +38075,7 @@ function saveCredentials(store, credentials) {
|
|
|
38075
38075
|
}
|
|
38076
38076
|
|
|
38077
38077
|
// version.ts
|
|
38078
|
-
var version2 = "2026.1202.
|
|
38078
|
+
var version2 = "2026.1202.207";
|
|
38079
38079
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
38080
38080
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
38081
38081
|
var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
|
package/dist/index.js
CHANGED
|
@@ -14988,7 +14988,7 @@ var catalog = [
|
|
|
14988
14988
|
{ operationId: "ChangeCompany", name: "change-company", method: "POST", path: "/api/companies/{id}/changes", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session and company ownership required. Change factory production level, location, or industry.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["action"], properties: { action: { type: "string", enum: ["upgrade", "downgrade", "relocate", "convert", "donate", "acceptDonation", "cancelDonation"] }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
|
|
14989
14989
|
{ operationId: "FundCompanyWallet", name: "fund-company-wallet", method: "POST", path: "/api/companies/{id}/wallet/deposits", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session and company ownership required. Fund a stock-company factory in its region’s current currency or a currency from one of its offers. Personal factories return personal_factory_accounts.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["amount"], properties: { amount: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, asset: { allOf: [{ type: "string", pattern: "^cur:[0-9]+$" }, { description: "Defaults to the current controlling country’s currency when omitted." }] } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["asset", "balance", "balances"], properties: { asset: { type: "string", pattern: "^cur:[0-9]+$" }, balance: { type: "integer", format: "int64", minimum: 0 }, balances: { type: "object", description: "Absolute balances by currency code, including zero for any eligible currency with no funds.", additionalProperties: { type: "integer", format: "int64", minimum: 0 } } } } } }, responseFields: ["asset", "balance", "balances"] },
|
|
14990
14990
|
{ operationId: "ListCompanyHiringWorkers", name: "list-company-hiring-workers", method: "GET", path: "/api/companies/{id}/hiring-workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and current unit-factory hiring permission required. List active contracts in citizen ID order.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name"], properties: { nationId: { type: "integer", minimum: 0 }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14991
|
-
{ operationId: "ListCompanyWorkers", name: "list-company-workers", method: "GET", path: "/api/companies/{id}/workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and company management permission required. List current contracts, ordered by citizen ID.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name", "economySkill", "equipmentBonusHundredths", "wage", "currency"], properties: { nationId: { type: "integer", minimum: 0 }, npc: { type: "boolean" }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$" }, name: { type: "string" }, economySkill: { type: "integer", minimum: 1 }, equipmentBonusHundredths: { type: "integer" }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, currency: { type: "string", pattern: "^cur:[0-9]+$" } } } }, nextCursor: { type: "string" } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14991
|
+
{ operationId: "ListCompanyWorkers", name: "list-company-workers", method: "GET", path: "/api/companies/{id}/workers", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session and company management permission required. List current contracts, ordered by citizen ID.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["contractId", "citizenId", "name", "economySkill", "equipmentBonusHundredths", "wage", "currency"], properties: { avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$", description: "Version of the worker's public custom avatar, when uploaded." }, nationId: { type: "integer", minimum: 0 }, npc: { type: "boolean" }, contractId: { type: "integer", format: "int64", minimum: 1 }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$" }, name: { type: "string" }, economySkill: { type: "integer", minimum: 1 }, equipmentBonusHundredths: { type: "integer" }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 }, currency: { type: "string", pattern: "^cur:[0-9]+$" } } } }, nextCursor: { type: "string" } } } } }, responseFields: ["items", "nextCursor"] },
|
|
14992
14992
|
{ operationId: "ChangeCompanyWorkerWage", name: "change-company-worker-wage", method: "PATCH", path: "/api/companies/{id}/workers/{contractId}", spec: "business.yaml", write: true, retry: "natural", description: "Citizen session and company management permission required. Set the current contract wage in its original currency.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "contractId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["wage"], properties: { wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000 } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
|
|
14993
14993
|
{ operationId: "DismissCompanyWorker", name: "dismiss-company-worker", method: "DELETE", path: "/api/companies/{id}/workers/{contractId}", spec: "business.yaml", write: true, retry: "natural", description: "Citizen session and hiring permission required. The current leader acts for unit-owned companies. End the specified current contract.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "contractId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
|
|
14994
14994
|
{ operationId: "GetMyEmployment", name: "get-my-employment", method: "GET", path: "/api/employments/me", spec: "business.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the signed-in citizen's employer.", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["companyId"], properties: { companyId: { type: ["integer", "null"], format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1, maximum: 1000000000000, description: "Contract wage in minor units, present when employed." }, currency: { type: "string", pattern: "^cur:[0-9]+$" }, offerWithdrawn: { type: "boolean", description: "Whether the employer withdrew the offer associated with the employment. Filling the last available position does not count as withdrawal." }, systemEmployer: { type: "boolean", description: "Whether the employer is a system citizen." } } } } }, responseFields: ["companyId", "wage", "currency", "offerWithdrawn", "systemEmployer"] },
|
|
@@ -38081,7 +38081,7 @@ function saveCredentials(store, credentials) {
|
|
|
38081
38081
|
}
|
|
38082
38082
|
|
|
38083
38083
|
// version.ts
|
|
38084
|
-
var version2 = "2026.1202.
|
|
38084
|
+
var version2 = "2026.1202.207";
|
|
38085
38085
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
38086
38086
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
38087
38087
|
var releaseVersion = /^\d+\.\d+\.\d+$/;
|