@epilot/sdk 2.19.10 → 2.19.11-alpha.0

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.
Files changed (123) hide show
  1. package/definitions/environments.json +7 -7
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/configuration-hub.cjs +6 -6
  23. package/dist/apis/configuration-hub.js +1 -1
  24. package/dist/apis/consent.cjs +6 -6
  25. package/dist/apis/consent.js +1 -1
  26. package/dist/apis/customer-portal.cjs +6 -6
  27. package/dist/apis/customer-portal.js +1 -1
  28. package/dist/apis/dashboard.cjs +6 -6
  29. package/dist/apis/dashboard.js +1 -1
  30. package/dist/apis/data-governance.cjs +6 -6
  31. package/dist/apis/data-governance.js +1 -1
  32. package/dist/apis/deduplication.cjs +6 -6
  33. package/dist/apis/deduplication.js +1 -1
  34. package/dist/apis/design.cjs +6 -6
  35. package/dist/apis/design.js +1 -1
  36. package/dist/apis/document.cjs +6 -6
  37. package/dist/apis/document.js +1 -1
  38. package/dist/apis/email-settings.cjs +6 -6
  39. package/dist/apis/email-settings.js +1 -1
  40. package/dist/apis/email-template.cjs +6 -6
  41. package/dist/apis/email-template.js +1 -1
  42. package/dist/apis/entity-mapping.cjs +6 -6
  43. package/dist/apis/entity-mapping.js +1 -1
  44. package/dist/apis/entity.cjs +6 -6
  45. package/dist/apis/entity.js +1 -1
  46. package/dist/apis/environments.cjs +6 -6
  47. package/dist/apis/environments.d.cts +2 -2
  48. package/dist/apis/environments.d.ts +2 -2
  49. package/dist/apis/environments.js +1 -1
  50. package/dist/apis/event-catalog.cjs +6 -6
  51. package/dist/apis/event-catalog.js +1 -1
  52. package/dist/apis/file.cjs +6 -6
  53. package/dist/apis/file.js +1 -1
  54. package/dist/apis/iban.cjs +6 -6
  55. package/dist/apis/iban.js +1 -1
  56. package/dist/apis/integration-toolkit.cjs +6 -6
  57. package/dist/apis/integration-toolkit.js +1 -1
  58. package/dist/apis/journey.cjs +6 -6
  59. package/dist/apis/journey.js +1 -1
  60. package/dist/apis/kanban.cjs +6 -6
  61. package/dist/apis/kanban.js +1 -1
  62. package/dist/apis/message.cjs +6 -6
  63. package/dist/apis/message.js +1 -1
  64. package/dist/apis/metering.cjs +6 -6
  65. package/dist/apis/metering.js +1 -1
  66. package/dist/apis/notes.cjs +6 -6
  67. package/dist/apis/notes.js +1 -1
  68. package/dist/apis/notification.cjs +6 -6
  69. package/dist/apis/notification.js +1 -1
  70. package/dist/apis/organization.cjs +6 -6
  71. package/dist/apis/organization.js +1 -1
  72. package/dist/apis/partner-directory.cjs +6 -6
  73. package/dist/apis/partner-directory.js +1 -1
  74. package/dist/apis/permissions.cjs +6 -6
  75. package/dist/apis/permissions.js +1 -1
  76. package/dist/apis/pricing-tier.cjs +6 -6
  77. package/dist/apis/pricing-tier.js +1 -1
  78. package/dist/apis/pricing.cjs +6 -6
  79. package/dist/apis/pricing.js +1 -1
  80. package/dist/apis/purpose.cjs +6 -6
  81. package/dist/apis/purpose.js +1 -1
  82. package/dist/apis/query.cjs +6 -6
  83. package/dist/apis/query.js +1 -1
  84. package/dist/apis/sandbox.cjs +6 -6
  85. package/dist/apis/sandbox.js +1 -1
  86. package/dist/apis/sharing.cjs +6 -6
  87. package/dist/apis/sharing.js +1 -1
  88. package/dist/apis/snapshot.cjs +6 -6
  89. package/dist/apis/snapshot.js +1 -1
  90. package/dist/apis/submission.cjs +6 -6
  91. package/dist/apis/submission.js +1 -1
  92. package/dist/apis/target.cjs +6 -6
  93. package/dist/apis/target.js +1 -1
  94. package/dist/apis/targeting.cjs +6 -6
  95. package/dist/apis/targeting.js +1 -1
  96. package/dist/apis/template-variables.cjs +6 -6
  97. package/dist/apis/template-variables.js +1 -1
  98. package/dist/apis/user.cjs +6 -6
  99. package/dist/apis/user.js +1 -1
  100. package/dist/apis/validation-rules.cjs +6 -6
  101. package/dist/apis/validation-rules.js +1 -1
  102. package/dist/apis/webhooks.cjs +6 -6
  103. package/dist/apis/webhooks.js +1 -1
  104. package/dist/apis/workflow-definition.cjs +6 -6
  105. package/dist/apis/workflow-definition.js +1 -1
  106. package/dist/apis/workflow.cjs +6 -6
  107. package/dist/apis/workflow.js +1 -1
  108. package/dist/bin/cli.js +1 -1
  109. package/dist/{chunk-VF5MGNDZ.cjs → chunk-3CVNMGIG.cjs} +1 -1
  110. package/dist/{chunk-ZLCANEOH.js → chunk-KSJGHUCG.js} +1 -1
  111. package/dist/environments-3VKW3GPN.cjs +7 -0
  112. package/dist/environments-SBUZ6QSC.js +7 -0
  113. package/dist/{environments.d-840_mC07.d.ts → environments.d-CP2gV7vw.d.cts} +28 -28
  114. package/dist/{environments.d-840_mC07.d.cts → environments.d-CP2gV7vw.d.ts} +28 -28
  115. package/dist/index.cjs +8 -8
  116. package/dist/index.d.cts +1 -1
  117. package/dist/index.d.ts +1 -1
  118. package/dist/index.js +1 -1
  119. package/dist/{js-yaml-DLCVPJ7G.js → js-yaml-UPZKYVRY.js} +15 -17
  120. package/docs/environments.md +14 -14
  121. package/package.json +12 -11
  122. package/dist/environments-JP2CPDH2.cjs +0 -7
  123. package/dist/environments-PGRMZY5G.js +0 -7
@@ -6,25 +6,25 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkVF5MGNDZcjs = require('../chunk-VF5MGNDZ.cjs');
9
+ var _chunk3CVNMGIGcjs = require('../chunk-3CVNMGIG.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
15
- return _chunkVF5MGNDZcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunk3CVNMGIGcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkVF5MGNDZcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
21
+ _instance = _chunk3CVNMGIGcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkVF5MGNDZcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunk3CVNMGIGcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkVF5MGNDZcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
27
+ createClient: () => _chunk3CVNMGIGcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
28
28
  apiName: "workflow"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var workflow = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunkVF5MGNDZcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
38
+ exports.authorize = _chunk3CVNMGIGcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-ZLCANEOH.js";
9
+ } from "../chunk-KSJGHUCG.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow.ts
package/dist/bin/cli.js CHANGED
@@ -22,7 +22,7 @@ Examples:
22
22
  };
23
23
  var isYamlFile = (filePath) => filePath.endsWith(".yaml") || filePath.endsWith(".yml");
24
24
  var parseYaml = async (content) => {
25
- const { load } = await import("../js-yaml-DLCVPJ7G.js");
25
+ const { load } = await import("../js-yaml-UPZKYVRY.js");
26
26
  return load(content);
27
27
  };
28
28
  var readOverrides = () => {
@@ -51,7 +51,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
51
51
  "./docs/email-template.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-template-M2VVL4TI.cjs"))),
52
52
  "./docs/entity-mapping.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-mapping-ZNMFCUKK.cjs"))),
53
53
  "./docs/entity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-TK7CBS4W.cjs"))),
54
- "./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-JP2CPDH2.cjs"))),
54
+ "./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-3VKW3GPN.cjs"))),
55
55
  "./docs/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-PAVHSUDM.cjs"))),
56
56
  "./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-6ZSSF5JU.cjs"))),
57
57
  "./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-M5HNKOPG.cjs"))),
@@ -51,7 +51,7 @@ var globImport_docs = __glob({
51
51
  "./docs/email-template.json": () => import("./email-template-WYROV3UG.js"),
52
52
  "./docs/entity-mapping.json": () => import("./entity-mapping-7J3IAGKQ.js"),
53
53
  "./docs/entity.json": () => import("./entity-MFDARYZT.js"),
54
- "./docs/environments.json": () => import("./environments-PGRMZY5G.js"),
54
+ "./docs/environments.json": () => import("./environments-SBUZ6QSC.js"),
55
55
  "./docs/erp-integration.json": () => import("./erp-integration-SBQJ6HEG.js"),
56
56
  "./docs/event-catalog.json": () => import("./event-catalog-RS4LJMY2.js"),
57
57
  "./docs/file.json": () => import("./file-ZUNCUDBY.js"),
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/environments.json
4
+ var environments_default = '# Environments API\n\n- **Base URL:** `https://environments.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/environments](https://docs.epilot.io/api/environments)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.environments.listEnvironmentVariables(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/environments\'\n\nconst environmentsClient = getClient()\nauthorize(environmentsClient, () => \'<token>\')\nconst { data } = await environmentsClient.listEnvironmentVariables(...)\n```\n\n## Operations\n\n**environments**\n- [`listEnvironmentVariables`](#listenvironmentvariables)\n- [`createEnvironmentVariable`](#createenvironmentvariable)\n- [`listEnvironmentGroups`](#listenvironmentgroups)\n- [`putEnvironmentGroup`](#putenvironmentgroup)\n- [`deleteEnvironmentGroup`](#deleteenvironmentgroup)\n- [`getEnvironmentVariable`](#getenvironmentvariable)\n- [`updateEnvironmentVariable`](#updateenvironmentvariable)\n- [`deleteEnvironmentVariable`](#deleteenvironmentvariable)\n\n**Schemas**\n- [`EnvironmentValueType`](#environmentvaluetype)\n- [`MapEntry`](#mapentry)\n- [`MapValue`](#mapvalue)\n- [`EnvironmentValue`](#environmentvalue)\n- [`EnvironmentVariable`](#environmentvariable)\n- [`EnvironmentVariableListItem`](#environmentvariablelistitem)\n- [`EnvironmentVariableList`](#environmentvariablelist)\n- [`EnvironmentVariableCreateRequest`](#environmentvariablecreaterequest)\n- [`EnvironmentVariableUpdateRequest`](#environmentvariableupdaterequest)\n- [`EnvironmentGroup`](#environmentgroup)\n- [`EnvironmentGroupList`](#environmentgrouplist)\n- [`EnvironmentGroupUpsertRequest`](#environmentgroupupsertrequest)\n\n### `listEnvironmentVariables`\n\nList all environment variables for the organization. Returns metadata only, no secret values.\n\n`GET /v1/environments`\n\n```ts\nconst { data } = await client.listEnvironmentVariables()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createEnvironmentVariable`\n\nCreate a new environment variable or secret for the organization. If `group` is provided and the group does not yet exist, it is created automatically.\n\n`POST /v1/environments`\n\n```ts\nconst { data } = await client.createEnvironmentVariable(\n null,\n {\n key: \'string\',\n type: \'String\',\n description: \'string\',\n group: \'string\',\n value: \'string\',\n protected: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listEnvironmentGroups`\n\nList all environment groups for the organization.\n\n`GET /v1/environments/groups`\n\n```ts\nconst { data } = await client.listEnvironmentGroups()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "name": "string",\n "description": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `putEnvironmentGroup`\n\nCreate or update an environment group by name. Acts as an upsert \u2014 creates the group if it does not exist.\n\n`PUT /v1/environments/groups/{name}`\n\n```ts\nconst { data } = await client.putEnvironmentGroup(\n {\n name: \'example\',\n },\n {\n description: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "name": "string",\n "description": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteEnvironmentGroup`\n\nDeletes a group. Variables assigned to this group become ungrouped.\n\n`DELETE /v1/environments/groups/{name}`\n\n```ts\nconst { data } = await client.deleteEnvironmentGroup({\n name: \'example\',\n})\n```\n\n---\n\n### `getEnvironmentVariable`\n\nGet an environment variable by key. Returns value for non-secret types, omitted for SecretString.\n\n`GET /v1/environments/{key}`\n\n```ts\nconst { data } = await client.getEnvironmentVariable({\n key: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateEnvironmentVariable`\n\nCreate or update an environment variable. Acts as an upsert \u2014 creates the variable if it does not exist. If `group` is provided and the group does not yet exist, it is created automatically.\n\n`PUT /v1/environments/{key}`\n\n```ts\nconst { data } = await client.updateEnvironmentVariable(\n {\n key: \'example\',\n },\n {\n type: \'String\',\n value: \'string\',\n description: \'string\',\n group: \'string\',\n protected: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteEnvironmentVariable`\n\nDelete an environment variable by key.\n\n`DELETE /v1/environments/{key}`\n\n```ts\nconst { data } = await client.deleteEnvironmentVariable({\n key: \'example\',\n})\n```\n\n---\n\n## Schemas\n\n### `EnvironmentValueType`\n\nThe structure a variable\'s value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean` and `Map` may be\nserved to browser-facing consumers; `String` and `SecretString` may not.\n\n\n```ts\ntype EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n```\n\n### `MapEntry`\n\n```ts\ntype MapEntry = {\n value: string\n label: string\n} | {\n value: string\n labels: Record<string, string>\n}\n```\n\n### `MapValue`\n\n```ts\ntype MapValue = {\n fallbackLanguage?: string\n options: Array<{\n value: string\n label: string\n } | {\n value: string\n labels: Record<string, string>\n }>\n}\n```\n\n### `EnvironmentValue`\n\nA variable\'s value. The JSON type corresponds to the variable\'s `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754\ndoubles; integers above 2^53 may lose precision on round-trip.\n\n\n```ts\ntype EnvironmentValue = string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: string\n label: string\n } | {\n value: string\n labels: Record<string, string>\n }>\n}\n```\n\n### `EnvironmentVariable`\n\n```ts\ntype EnvironmentVariable = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentVariableListItem`\n\n```ts\ntype EnvironmentVariableListItem = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentVariableList`\n\n```ts\ntype EnvironmentVariableList = {\n items: Array<{\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: { ... }\n options: { ... }\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n }>\n}\n```\n\n### `EnvironmentVariableCreateRequest`\n\n```ts\ntype EnvironmentVariableCreateRequest = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n}\n```\n\n### `EnvironmentVariableUpdateRequest`\n\n```ts\ntype EnvironmentVariableUpdateRequest = {\n type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n description?: string\n group?: string\n protected?: boolean\n}\n```\n\n### `EnvironmentGroup`\n\n```ts\ntype EnvironmentGroup = {\n name: string\n description?: string\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentGroupList`\n\n```ts\ntype EnvironmentGroupList = {\n items: Array<{\n name: string\n description?: string\n created_at: string // date-time\n updated_at: string // date-time\n }>\n}\n```\n\n### `EnvironmentGroupUpsertRequest`\n\n```ts\ntype EnvironmentGroupUpsertRequest = {\n description?: string\n}\n```\n';
5
+
6
+
7
+ exports.default = environments_default;
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/environments.json
4
+ var environments_default = '# Environments API\n\n- **Base URL:** `https://environments.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/environments](https://docs.epilot.io/api/environments)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.environments.listEnvironmentVariables(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/environments\'\n\nconst environmentsClient = getClient()\nauthorize(environmentsClient, () => \'<token>\')\nconst { data } = await environmentsClient.listEnvironmentVariables(...)\n```\n\n## Operations\n\n**environments**\n- [`listEnvironmentVariables`](#listenvironmentvariables)\n- [`createEnvironmentVariable`](#createenvironmentvariable)\n- [`listEnvironmentGroups`](#listenvironmentgroups)\n- [`putEnvironmentGroup`](#putenvironmentgroup)\n- [`deleteEnvironmentGroup`](#deleteenvironmentgroup)\n- [`getEnvironmentVariable`](#getenvironmentvariable)\n- [`updateEnvironmentVariable`](#updateenvironmentvariable)\n- [`deleteEnvironmentVariable`](#deleteenvironmentvariable)\n\n**Schemas**\n- [`EnvironmentValueType`](#environmentvaluetype)\n- [`MapEntry`](#mapentry)\n- [`MapValue`](#mapvalue)\n- [`EnvironmentValue`](#environmentvalue)\n- [`EnvironmentVariable`](#environmentvariable)\n- [`EnvironmentVariableListItem`](#environmentvariablelistitem)\n- [`EnvironmentVariableList`](#environmentvariablelist)\n- [`EnvironmentVariableCreateRequest`](#environmentvariablecreaterequest)\n- [`EnvironmentVariableUpdateRequest`](#environmentvariableupdaterequest)\n- [`EnvironmentGroup`](#environmentgroup)\n- [`EnvironmentGroupList`](#environmentgrouplist)\n- [`EnvironmentGroupUpsertRequest`](#environmentgroupupsertrequest)\n\n### `listEnvironmentVariables`\n\nList all environment variables for the organization. Returns metadata only, no secret values.\n\n`GET /v1/environments`\n\n```ts\nconst { data } = await client.listEnvironmentVariables()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createEnvironmentVariable`\n\nCreate a new environment variable or secret for the organization. If `group` is provided and the group does not yet exist, it is created automatically.\n\n`POST /v1/environments`\n\n```ts\nconst { data } = await client.createEnvironmentVariable(\n null,\n {\n key: \'string\',\n type: \'String\',\n description: \'string\',\n group: \'string\',\n value: \'string\',\n protected: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listEnvironmentGroups`\n\nList all environment groups for the organization.\n\n`GET /v1/environments/groups`\n\n```ts\nconst { data } = await client.listEnvironmentGroups()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "name": "string",\n "description": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `putEnvironmentGroup`\n\nCreate or update an environment group by name. Acts as an upsert \u2014 creates the group if it does not exist.\n\n`PUT /v1/environments/groups/{name}`\n\n```ts\nconst { data } = await client.putEnvironmentGroup(\n {\n name: \'example\',\n },\n {\n description: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "name": "string",\n "description": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteEnvironmentGroup`\n\nDeletes a group. Variables assigned to this group become ungrouped.\n\n`DELETE /v1/environments/groups/{name}`\n\n```ts\nconst { data } = await client.deleteEnvironmentGroup({\n name: \'example\',\n})\n```\n\n---\n\n### `getEnvironmentVariable`\n\nGet an environment variable by key. Returns value for non-secret types, omitted for SecretString.\n\n`GET /v1/environments/{key}`\n\n```ts\nconst { data } = await client.getEnvironmentVariable({\n key: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateEnvironmentVariable`\n\nCreate or update an environment variable. Acts as an upsert \u2014 creates the variable if it does not exist. If `group` is provided and the group does not yet exist, it is created automatically.\n\n`PUT /v1/environments/{key}`\n\n```ts\nconst { data } = await client.updateEnvironmentVariable(\n {\n key: \'example\',\n },\n {\n type: \'String\',\n value: \'string\',\n description: \'string\',\n group: \'string\',\n protected: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "key": "string",\n "type": "String",\n "description": "string",\n "group": "string",\n "value": "string",\n "protected": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteEnvironmentVariable`\n\nDelete an environment variable by key.\n\n`DELETE /v1/environments/{key}`\n\n```ts\nconst { data } = await client.deleteEnvironmentVariable({\n key: \'example\',\n})\n```\n\n---\n\n## Schemas\n\n### `EnvironmentValueType`\n\nThe structure a variable\'s value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean` and `Map` may be\nserved to browser-facing consumers; `String` and `SecretString` may not.\n\n\n```ts\ntype EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n```\n\n### `MapEntry`\n\n```ts\ntype MapEntry = {\n value: string\n label: string\n} | {\n value: string\n labels: Record<string, string>\n}\n```\n\n### `MapValue`\n\n```ts\ntype MapValue = {\n fallbackLanguage?: string\n options: Array<{\n value: string\n label: string\n } | {\n value: string\n labels: Record<string, string>\n }>\n}\n```\n\n### `EnvironmentValue`\n\nA variable\'s value. The JSON type corresponds to the variable\'s `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754\ndoubles; integers above 2^53 may lose precision on round-trip.\n\n\n```ts\ntype EnvironmentValue = string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: string\n label: string\n } | {\n value: string\n labels: Record<string, string>\n }>\n}\n```\n\n### `EnvironmentVariable`\n\n```ts\ntype EnvironmentVariable = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentVariableListItem`\n\n```ts\ntype EnvironmentVariableListItem = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentVariableList`\n\n```ts\ntype EnvironmentVariableList = {\n items: Array<{\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: { ... }\n options: { ... }\n }\n protected?: boolean\n created_at: string // date-time\n updated_at: string // date-time\n }>\n}\n```\n\n### `EnvironmentVariableCreateRequest`\n\n```ts\ntype EnvironmentVariableCreateRequest = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n protected?: boolean\n}\n```\n\n### `EnvironmentVariableUpdateRequest`\n\n```ts\ntype EnvironmentVariableUpdateRequest = {\n type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n value: { ... }\n label: { ... }\n } | {\n value: { ... }\n labels: { ... }\n }>\n }\n description?: string\n group?: string\n protected?: boolean\n}\n```\n\n### `EnvironmentGroup`\n\n```ts\ntype EnvironmentGroup = {\n name: string\n description?: string\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n\n### `EnvironmentGroupList`\n\n```ts\ntype EnvironmentGroupList = {\n items: Array<{\n name: string\n description?: string\n created_at: string // date-time\n updated_at: string // date-time\n }>\n}\n```\n\n### `EnvironmentGroupUpsertRequest`\n\n```ts\ntype EnvironmentGroupUpsertRequest = {\n description?: string\n}\n```\n';
5
+ export {
6
+ environments_default as default
7
+ };
@@ -17,42 +17,33 @@ declare namespace Components {
17
17
  export interface EnvironmentGroupUpsertRequest {
18
18
  description?: string;
19
19
  }
20
- export type EnvironmentOption = {
21
- value: string;
22
- label: string;
23
- } | {
24
- value: string;
25
- labels: {
26
- [name: string]: string;
27
- };
28
- };
29
20
  /**
30
21
  * A variable's value. The JSON type corresponds to the variable's `type`:
31
22
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
32
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
23
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
33
24
  * doubles; integers above 2^53 may lose precision on round-trip.
34
25
  *
35
26
  */
36
27
  export type EnvironmentValue = /**
37
28
  * A variable's value. The JSON type corresponds to the variable's `type`:
38
29
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
39
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
30
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
40
31
  * doubles; integers above 2^53 may lose precision on round-trip.
41
32
  *
42
33
  */
43
- string | number | boolean | OptionsValue;
34
+ string | number | boolean | MapValue;
44
35
  /**
45
36
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
46
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
37
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
47
38
  * served to browser-facing consumers; `String` and `SecretString` may not.
48
39
  *
49
40
  */
50
- export type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options";
41
+ export type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map";
51
42
  export interface EnvironmentVariable {
52
43
  key: string; // ^[a-z0-9][a-z0-9_.\-]{0,127}$
53
44
  type: /**
54
45
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
55
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
46
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
56
47
  * served to browser-facing consumers; `String` and `SecretString` may not.
57
48
  *
58
49
  */
@@ -74,7 +65,7 @@ declare namespace Components {
74
65
  * install, which syncs a variable's key and type but never its value.
75
66
  *
76
67
  */
77
- string | number | boolean | OptionsValue;
68
+ string | number | boolean | MapValue;
78
69
  /**
79
70
  * Whether the variable is protected from editing
80
71
  */
@@ -86,7 +77,7 @@ declare namespace Components {
86
77
  key: string; // ^[a-z0-9][a-z0-9_.\-]{0,127}$
87
78
  type: /**
88
79
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
89
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
80
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
90
81
  * served to browser-facing consumers; `String` and `SecretString` may not.
91
82
  *
92
83
  */
@@ -96,7 +87,7 @@ declare namespace Components {
96
87
  value?: /**
97
88
  * A variable's value. The JSON type corresponds to the variable's `type`:
98
89
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
99
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
90
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
100
91
  * doubles; integers above 2^53 may lose precision on round-trip.
101
92
  *
102
93
  */
@@ -113,7 +104,7 @@ declare namespace Components {
113
104
  key: string;
114
105
  type: /**
115
106
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
116
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
107
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
117
108
  * served to browser-facing consumers; `String` and `SecretString` may not.
118
109
  *
119
110
  */
@@ -135,7 +126,7 @@ declare namespace Components {
135
126
  * install, which syncs a variable's key and type but never its value.
136
127
  *
137
128
  */
138
- string | number | boolean | OptionsValue;
129
+ string | number | boolean | MapValue;
139
130
  /**
140
131
  * Whether the variable is protected from editing
141
132
  */
@@ -147,11 +138,11 @@ declare namespace Components {
147
138
  /**
148
139
  * Type of variable. Used when creating a new variable. Defaults to String.
149
140
  */
150
- type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options";
141
+ type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map";
151
142
  value?: /**
152
143
  * A variable's value. The JSON type corresponds to the variable's `type`:
153
144
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
154
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
145
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
155
146
  * doubles; integers above 2^53 may lose precision on round-trip.
156
147
  *
157
148
  */
@@ -163,11 +154,20 @@ declare namespace Components {
163
154
  */
164
155
  protected?: boolean;
165
156
  }
166
- export interface OptionsValue {
157
+ export type MapEntry = {
158
+ value: string;
159
+ label: string;
160
+ } | {
161
+ value: string;
162
+ labels: {
163
+ [name: string]: string;
164
+ };
165
+ };
166
+ export interface MapValue {
167
167
  fallbackLanguage?: string;
168
168
  options: [
169
- EnvironmentOption,
170
- ...EnvironmentOption[]
169
+ MapEntry,
170
+ ...MapEntry[]
171
171
  ];
172
172
  }
173
173
  }
@@ -481,7 +481,6 @@ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
481
481
  type EnvironmentGroup = Components.Schemas.EnvironmentGroup;
482
482
  type EnvironmentGroupList = Components.Schemas.EnvironmentGroupList;
483
483
  type EnvironmentGroupUpsertRequest = Components.Schemas.EnvironmentGroupUpsertRequest;
484
- type EnvironmentOption = Components.Schemas.EnvironmentOption;
485
484
  type EnvironmentValue = Components.Schemas.EnvironmentValue;
486
485
  type EnvironmentValueType = Components.Schemas.EnvironmentValueType;
487
486
  type EnvironmentVariable = Components.Schemas.EnvironmentVariable;
@@ -489,6 +488,7 @@ type EnvironmentVariableCreateRequest = Components.Schemas.EnvironmentVariableCr
489
488
  type EnvironmentVariableList = Components.Schemas.EnvironmentVariableList;
490
489
  type EnvironmentVariableListItem = Components.Schemas.EnvironmentVariableListItem;
491
490
  type EnvironmentVariableUpdateRequest = Components.Schemas.EnvironmentVariableUpdateRequest;
492
- type OptionsValue = Components.Schemas.OptionsValue;
491
+ type MapEntry = Components.Schemas.MapEntry;
492
+ type MapValue = Components.Schemas.MapValue;
493
493
 
494
- export { type Client as C, type EnvironmentGroup as E, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type EnvironmentGroupList as c, type EnvironmentGroupUpsertRequest as d, type EnvironmentOption as e, type EnvironmentValue as f, type EnvironmentValueType as g, type EnvironmentVariable as h, type EnvironmentVariableCreateRequest as i, type EnvironmentVariableList as j, type EnvironmentVariableListItem as k, type EnvironmentVariableUpdateRequest as l, type OptionsValue as m };
494
+ export { type Client as C, type EnvironmentGroup as E, type MapEntry as M, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type EnvironmentGroupList as c, type EnvironmentGroupUpsertRequest as d, type EnvironmentValue as e, type EnvironmentValueType as f, type EnvironmentVariable as g, type EnvironmentVariableCreateRequest as h, type EnvironmentVariableList as i, type EnvironmentVariableListItem as j, type EnvironmentVariableUpdateRequest as k, type MapValue as l };
@@ -17,42 +17,33 @@ declare namespace Components {
17
17
  export interface EnvironmentGroupUpsertRequest {
18
18
  description?: string;
19
19
  }
20
- export type EnvironmentOption = {
21
- value: string;
22
- label: string;
23
- } | {
24
- value: string;
25
- labels: {
26
- [name: string]: string;
27
- };
28
- };
29
20
  /**
30
21
  * A variable's value. The JSON type corresponds to the variable's `type`:
31
22
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
32
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
23
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
33
24
  * doubles; integers above 2^53 may lose precision on round-trip.
34
25
  *
35
26
  */
36
27
  export type EnvironmentValue = /**
37
28
  * A variable's value. The JSON type corresponds to the variable's `type`:
38
29
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
39
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
30
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
40
31
  * doubles; integers above 2^53 may lose precision on round-trip.
41
32
  *
42
33
  */
43
- string | number | boolean | OptionsValue;
34
+ string | number | boolean | MapValue;
44
35
  /**
45
36
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
46
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
37
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
47
38
  * served to browser-facing consumers; `String` and `SecretString` may not.
48
39
  *
49
40
  */
50
- export type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options";
41
+ export type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map";
51
42
  export interface EnvironmentVariable {
52
43
  key: string; // ^[a-z0-9][a-z0-9_.\-]{0,127}$
53
44
  type: /**
54
45
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
55
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
46
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
56
47
  * served to browser-facing consumers; `String` and `SecretString` may not.
57
48
  *
58
49
  */
@@ -74,7 +65,7 @@ declare namespace Components {
74
65
  * install, which syncs a variable's key and type but never its value.
75
66
  *
76
67
  */
77
- string | number | boolean | OptionsValue;
68
+ string | number | boolean | MapValue;
78
69
  /**
79
70
  * Whether the variable is protected from editing
80
71
  */
@@ -86,7 +77,7 @@ declare namespace Components {
86
77
  key: string; // ^[a-z0-9][a-z0-9_.\-]{0,127}$
87
78
  type: /**
88
79
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
89
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
80
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
90
81
  * served to browser-facing consumers; `String` and `SecretString` may not.
91
82
  *
92
83
  */
@@ -96,7 +87,7 @@ declare namespace Components {
96
87
  value?: /**
97
88
  * A variable's value. The JSON type corresponds to the variable's `type`:
98
89
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
99
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
90
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
100
91
  * doubles; integers above 2^53 may lose precision on round-trip.
101
92
  *
102
93
  */
@@ -113,7 +104,7 @@ declare namespace Components {
113
104
  key: string;
114
105
  type: /**
115
106
  * The structure a variable's value holds. `SecretString` is encrypted at rest and
116
- * its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
107
+ * its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
117
108
  * served to browser-facing consumers; `String` and `SecretString` may not.
118
109
  *
119
110
  */
@@ -135,7 +126,7 @@ declare namespace Components {
135
126
  * install, which syncs a variable's key and type but never its value.
136
127
  *
137
128
  */
138
- string | number | boolean | OptionsValue;
129
+ string | number | boolean | MapValue;
139
130
  /**
140
131
  * Whether the variable is protected from editing
141
132
  */
@@ -147,11 +138,11 @@ declare namespace Components {
147
138
  /**
148
139
  * Type of variable. Used when creating a new variable. Defaults to String.
149
140
  */
150
- type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options";
141
+ type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map";
151
142
  value?: /**
152
143
  * A variable's value. The JSON type corresponds to the variable's `type`:
153
144
  * `String`, `SecretString` and `Text` are strings, `Number` is a number,
154
- * `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
145
+ * `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
155
146
  * doubles; integers above 2^53 may lose precision on round-trip.
156
147
  *
157
148
  */
@@ -163,11 +154,20 @@ declare namespace Components {
163
154
  */
164
155
  protected?: boolean;
165
156
  }
166
- export interface OptionsValue {
157
+ export type MapEntry = {
158
+ value: string;
159
+ label: string;
160
+ } | {
161
+ value: string;
162
+ labels: {
163
+ [name: string]: string;
164
+ };
165
+ };
166
+ export interface MapValue {
167
167
  fallbackLanguage?: string;
168
168
  options: [
169
- EnvironmentOption,
170
- ...EnvironmentOption[]
169
+ MapEntry,
170
+ ...MapEntry[]
171
171
  ];
172
172
  }
173
173
  }
@@ -481,7 +481,6 @@ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
481
481
  type EnvironmentGroup = Components.Schemas.EnvironmentGroup;
482
482
  type EnvironmentGroupList = Components.Schemas.EnvironmentGroupList;
483
483
  type EnvironmentGroupUpsertRequest = Components.Schemas.EnvironmentGroupUpsertRequest;
484
- type EnvironmentOption = Components.Schemas.EnvironmentOption;
485
484
  type EnvironmentValue = Components.Schemas.EnvironmentValue;
486
485
  type EnvironmentValueType = Components.Schemas.EnvironmentValueType;
487
486
  type EnvironmentVariable = Components.Schemas.EnvironmentVariable;
@@ -489,6 +488,7 @@ type EnvironmentVariableCreateRequest = Components.Schemas.EnvironmentVariableCr
489
488
  type EnvironmentVariableList = Components.Schemas.EnvironmentVariableList;
490
489
  type EnvironmentVariableListItem = Components.Schemas.EnvironmentVariableListItem;
491
490
  type EnvironmentVariableUpdateRequest = Components.Schemas.EnvironmentVariableUpdateRequest;
492
- type OptionsValue = Components.Schemas.OptionsValue;
491
+ type MapEntry = Components.Schemas.MapEntry;
492
+ type MapValue = Components.Schemas.MapValue;
493
493
 
494
- export { type Client as C, type EnvironmentGroup as E, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type EnvironmentGroupList as c, type EnvironmentGroupUpsertRequest as d, type EnvironmentOption as e, type EnvironmentValue as f, type EnvironmentValueType as g, type EnvironmentVariable as h, type EnvironmentVariableCreateRequest as i, type EnvironmentVariableList as j, type EnvironmentVariableListItem as k, type EnvironmentVariableUpdateRequest as l, type OptionsValue as m };
494
+ export { type Client as C, type EnvironmentGroup as E, type MapEntry as M, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type EnvironmentGroupList as c, type EnvironmentGroupUpsertRequest as d, type EnvironmentValue as e, type EnvironmentValueType as f, type EnvironmentVariable as g, type EnvironmentVariableCreateRequest as h, type EnvironmentVariableList as i, type EnvironmentVariableListItem as j, type EnvironmentVariableUpdateRequest as k, type MapValue as l };
package/dist/index.cjs CHANGED
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkVF5MGNDZcjs = require('./chunk-VF5MGNDZ.cjs');
161
+ var _chunk3CVNMGIGcjs = require('./chunk-3CVNMGIG.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkVF5MGNDZcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunk3CVNMGIGcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkVF5MGNDZcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunk3CVNMGIGcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkVF5MGNDZcjs.createApiHandle.call(void 0, {
604
+ return _chunk3CVNMGIGcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkVF5MGNDZcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunk3CVNMGIGcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkVF5MGNDZcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunk3CVNMGIGcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkVF5MGNDZcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunk3CVNMGIGcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkVF5MGNDZcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkVF5MGNDZcjs.help; exports.openapi = _chunkVF5MGNDZcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk3CVNMGIGcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk3CVNMGIGcjs.help; exports.openapi = _chunk3CVNMGIGcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -25,7 +25,7 @@ import { C as Client$i } from './email-settings.d-DViLYaOl.cjs';
25
25
  import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
26
26
  import { C as Client$k } from './entity.d-C3WddgVt.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.cjs';
28
- import { C as Client$m } from './environments.d-840_mC07.cjs';
28
+ import { C as Client$m } from './environments.d-CP2gV7vw.cjs';
29
29
  import { C as Client$n } from './event-catalog.d-QIhhewVH.cjs';
30
30
  import { C as Client$o } from './file.d-CBsXF4W8.cjs';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ import { C as Client$i } from './email-settings.d-DViLYaOl.js';
25
25
  import { C as Client$j } from './email-template.d-gtQkdaXM.js';
26
26
  import { C as Client$k } from './entity.d-C3WddgVt.js';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js';
28
- import { C as Client$m } from './environments.d-840_mC07.js';
28
+ import { C as Client$m } from './environments.d-CP2gV7vw.js';
29
29
  import { C as Client$n } from './event-catalog.d-QIhhewVH.js';
30
30
  import { C as Client$o } from './file.d-CBsXF4W8.js';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.js';
package/dist/index.js CHANGED
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-ZLCANEOH.js";
161
+ } from "./chunk-KSJGHUCG.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
3
+ // ../../node_modules/js-yaml/dist/js-yaml.mjs
4
4
  function isNothing(subject) {
5
5
  return typeof subject === "undefined" || subject === null;
6
6
  }
@@ -864,18 +864,6 @@ function charFromCodepoint(c) {
864
864
  (c - 65536 & 1023) + 56320
865
865
  );
866
866
  }
867
- function setProperty(object, key, value) {
868
- if (key === "__proto__") {
869
- Object.defineProperty(object, key, {
870
- configurable: true,
871
- enumerable: true,
872
- writable: true,
873
- value
874
- });
875
- } else {
876
- object[key] = value;
877
- }
878
- }
879
867
  var simpleEscapeCheck = new Array(256);
880
868
  var simpleEscapeMap = new Array(256);
881
869
  for (i = 0; i < 256; i++) {
@@ -995,7 +983,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
995
983
  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
996
984
  key = sourceKeys[index];
997
985
  if (!_hasOwnProperty$1.call(destination, key)) {
998
- setProperty(destination, key, source[key]);
986
+ destination[key] = source[key];
999
987
  overridableKeys[key] = true;
1000
988
  }
1001
989
  }
@@ -1035,7 +1023,16 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
1035
1023
  state.position = startPos || state.position;
1036
1024
  throwError(state, "duplicated mapping key");
1037
1025
  }
1038
- setProperty(_result, keyNode, valueNode);
1026
+ if (keyNode === "__proto__") {
1027
+ Object.defineProperty(_result, keyNode, {
1028
+ configurable: true,
1029
+ enumerable: true,
1030
+ writable: true,
1031
+ value: valueNode
1032
+ });
1033
+ } else {
1034
+ _result[keyNode] = valueNode;
1035
+ }
1039
1036
  delete overridableKeys[keyNode];
1040
1037
  }
1041
1038
  return _result;
@@ -2623,6 +2620,7 @@ var jsYaml = {
2623
2620
  safeLoadAll,
2624
2621
  safeDump
2625
2622
  };
2623
+ var js_yaml_default = jsYaml;
2626
2624
  export {
2627
2625
  CORE_SCHEMA,
2628
2626
  DEFAULT_SCHEMA,
@@ -2631,7 +2629,7 @@ export {
2631
2629
  Schema,
2632
2630
  Type,
2633
2631
  YAMLException,
2634
- jsYaml as default,
2632
+ js_yaml_default as default,
2635
2633
  dump,
2636
2634
  load,
2637
2635
  loadAll,
@@ -2643,5 +2641,5 @@ export {
2643
2641
  /*! Bundled license information:
2644
2642
 
2645
2643
  js-yaml/dist/js-yaml.mjs:
2646
- (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
2644
+ (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
2647
2645
  */