@epilot/sdk 2.20.11 → 2.20.13-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 (240) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +835 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +2863 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +5994 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +5889 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +2394 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +7817 -0
  19. package/definitions/calendar-runtime.json +1 -0
  20. package/definitions/calendar.json +2904 -0
  21. package/definitions/configuration-hub-runtime.json +1 -0
  22. package/definitions/configuration-hub.json +2250 -0
  23. package/definitions/consent-runtime.json +1 -0
  24. package/definitions/consent.json +344 -0
  25. package/definitions/customer-portal-runtime.json +1 -0
  26. package/definitions/customer-portal.json +20185 -0
  27. package/definitions/dashboard-runtime.json +1 -0
  28. package/definitions/dashboard.json +1355 -0
  29. package/definitions/data-governance-runtime.json +1 -0
  30. package/definitions/data-governance.json +1126 -0
  31. package/definitions/deduplication-runtime.json +1 -0
  32. package/definitions/deduplication.json +782 -0
  33. package/definitions/design-runtime.json +1 -0
  34. package/definitions/design.json +1827 -0
  35. package/definitions/document-runtime.json +1 -0
  36. package/definitions/document.json +758 -0
  37. package/definitions/email-settings-runtime.json +1 -0
  38. package/definitions/email-settings.json +3736 -0
  39. package/definitions/email-template-runtime.json +1 -0
  40. package/definitions/email-template.json +1441 -0
  41. package/definitions/entity-mapping-runtime.json +1 -0
  42. package/definitions/entity-mapping.json +1829 -0
  43. package/definitions/entity-runtime.json +1 -0
  44. package/definitions/entity.json +11546 -0
  45. package/definitions/environments-runtime.json +1 -0
  46. package/definitions/environments.json +985 -0
  47. package/definitions/event-catalog-runtime.json +1 -0
  48. package/definitions/event-catalog.json +2014 -0
  49. package/definitions/file-runtime.json +1 -0
  50. package/definitions/file.json +4297 -0
  51. package/definitions/iban-runtime.json +1 -0
  52. package/definitions/iban.json +132 -0
  53. package/definitions/integration-toolkit-runtime.json +1 -0
  54. package/definitions/integration-toolkit.json +12966 -0
  55. package/definitions/journey-runtime.json +1 -0
  56. package/definitions/journey.json +3561 -0
  57. package/definitions/kanban-runtime.json +1 -0
  58. package/definitions/kanban.json +1506 -0
  59. package/definitions/message-runtime.json +1 -0
  60. package/definitions/message.json +3667 -0
  61. package/definitions/metering-runtime.json +1 -0
  62. package/definitions/metering.json +3132 -0
  63. package/definitions/notes-runtime.json +1 -0
  64. package/definitions/notes.json +1698 -0
  65. package/definitions/notification-runtime.json +1 -0
  66. package/definitions/notification.json +1439 -0
  67. package/definitions/organization-runtime.json +1 -0
  68. package/definitions/organization.json +1192 -0
  69. package/definitions/partner-directory-runtime.json +1 -0
  70. package/definitions/partner-directory.json +2284 -0
  71. package/definitions/permissions-runtime.json +1 -0
  72. package/definitions/permissions.json +1598 -0
  73. package/definitions/pricing-runtime.json +1 -0
  74. package/definitions/pricing-tier-runtime.json +1 -0
  75. package/definitions/pricing-tier.json +105 -0
  76. package/definitions/pricing.json +14301 -0
  77. package/definitions/purpose-runtime.json +1 -0
  78. package/definitions/purpose.json +524 -0
  79. package/definitions/query-runtime.json +1 -0
  80. package/definitions/query.json +3178 -0
  81. package/definitions/sandbox-runtime.json +1 -0
  82. package/definitions/sandbox.json +453 -0
  83. package/definitions/sharing-runtime.json +1 -0
  84. package/definitions/sharing.json +956 -0
  85. package/definitions/snapshot-runtime.json +1 -0
  86. package/definitions/snapshot.json +1103 -0
  87. package/definitions/submission-runtime.json +1 -0
  88. package/definitions/submission.json +313 -0
  89. package/definitions/targeting-runtime.json +1 -0
  90. package/definitions/targeting.json +2285 -0
  91. package/definitions/template-variables-runtime.json +1 -0
  92. package/definitions/template-variables.json +1416 -0
  93. package/definitions/user-runtime.json +1 -0
  94. package/definitions/user.json +3051 -0
  95. package/definitions/validation-rules-runtime.json +1 -0
  96. package/definitions/validation-rules.json +2642 -0
  97. package/definitions/webhooks-runtime.json +1 -0
  98. package/definitions/webhooks.json +1875 -0
  99. package/definitions/workflow-definition-runtime.json +1 -0
  100. package/definitions/workflow-definition.json +3592 -0
  101. package/definitions/workflow-runtime.json +1 -0
  102. package/definitions/workflow.json +4669 -0
  103. package/dist/apis/access-token.cjs +6 -6
  104. package/dist/apis/access-token.js +1 -1
  105. package/dist/apis/address-suggestions.cjs +6 -6
  106. package/dist/apis/address-suggestions.js +1 -1
  107. package/dist/apis/address.cjs +6 -6
  108. package/dist/apis/address.js +1 -1
  109. package/dist/apis/ai-agents.cjs +6 -6
  110. package/dist/apis/ai-agents.js +1 -1
  111. package/dist/apis/app.cjs +6 -6
  112. package/dist/apis/app.d.cts +2 -2
  113. package/dist/apis/app.d.ts +2 -2
  114. package/dist/apis/app.js +1 -1
  115. package/dist/apis/audit-logs.cjs +6 -6
  116. package/dist/apis/audit-logs.js +1 -1
  117. package/dist/apis/automation.cjs +6 -6
  118. package/dist/apis/automation.js +1 -1
  119. package/dist/apis/billing.cjs +6 -6
  120. package/dist/apis/billing.js +1 -1
  121. package/dist/apis/blueprint-manifest.cjs +6 -6
  122. package/dist/apis/blueprint-manifest.js +1 -1
  123. package/dist/apis/calendar.cjs +6 -6
  124. package/dist/apis/calendar.js +1 -1
  125. package/dist/apis/configuration-hub.cjs +6 -6
  126. package/dist/apis/configuration-hub.js +1 -1
  127. package/dist/apis/consent.cjs +6 -6
  128. package/dist/apis/consent.js +1 -1
  129. package/dist/apis/customer-portal.cjs +6 -6
  130. package/dist/apis/customer-portal.d.cts +2 -2
  131. package/dist/apis/customer-portal.d.ts +2 -2
  132. package/dist/apis/customer-portal.js +1 -1
  133. package/dist/apis/dashboard.cjs +6 -6
  134. package/dist/apis/dashboard.js +1 -1
  135. package/dist/apis/data-governance.cjs +6 -6
  136. package/dist/apis/data-governance.js +1 -1
  137. package/dist/apis/deduplication.cjs +6 -6
  138. package/dist/apis/deduplication.js +1 -1
  139. package/dist/apis/design.cjs +6 -6
  140. package/dist/apis/design.js +1 -1
  141. package/dist/apis/document.cjs +6 -6
  142. package/dist/apis/document.js +1 -1
  143. package/dist/apis/email-settings.cjs +6 -6
  144. package/dist/apis/email-settings.js +1 -1
  145. package/dist/apis/email-template.cjs +6 -6
  146. package/dist/apis/email-template.js +1 -1
  147. package/dist/apis/entity-mapping.cjs +6 -6
  148. package/dist/apis/entity-mapping.js +1 -1
  149. package/dist/apis/entity.cjs +6 -6
  150. package/dist/apis/entity.js +1 -1
  151. package/dist/apis/environments.cjs +6 -6
  152. package/dist/apis/environments.d.cts +2 -2
  153. package/dist/apis/environments.d.ts +2 -2
  154. package/dist/apis/environments.js +1 -1
  155. package/dist/apis/event-catalog.cjs +6 -6
  156. package/dist/apis/event-catalog.js +1 -1
  157. package/dist/apis/file.cjs +6 -6
  158. package/dist/apis/file.js +1 -1
  159. package/dist/apis/iban.cjs +6 -6
  160. package/dist/apis/iban.js +1 -1
  161. package/dist/apis/integration-toolkit.cjs +6 -6
  162. package/dist/apis/integration-toolkit.js +1 -1
  163. package/dist/apis/journey.cjs +6 -6
  164. package/dist/apis/journey.js +1 -1
  165. package/dist/apis/kanban.cjs +6 -6
  166. package/dist/apis/kanban.js +1 -1
  167. package/dist/apis/message.cjs +6 -6
  168. package/dist/apis/message.js +1 -1
  169. package/dist/apis/metering.cjs +6 -6
  170. package/dist/apis/metering.js +1 -1
  171. package/dist/apis/notes.cjs +6 -6
  172. package/dist/apis/notes.js +1 -1
  173. package/dist/apis/notification.cjs +6 -6
  174. package/dist/apis/notification.js +1 -1
  175. package/dist/apis/organization.cjs +6 -6
  176. package/dist/apis/organization.js +1 -1
  177. package/dist/apis/partner-directory.cjs +6 -6
  178. package/dist/apis/partner-directory.js +1 -1
  179. package/dist/apis/permissions.cjs +6 -6
  180. package/dist/apis/permissions.js +1 -1
  181. package/dist/apis/pricing-tier.cjs +6 -6
  182. package/dist/apis/pricing-tier.js +1 -1
  183. package/dist/apis/pricing.cjs +6 -6
  184. package/dist/apis/pricing.js +1 -1
  185. package/dist/apis/purpose.cjs +6 -6
  186. package/dist/apis/purpose.js +1 -1
  187. package/dist/apis/query.cjs +6 -6
  188. package/dist/apis/query.js +1 -1
  189. package/dist/apis/sandbox.cjs +6 -6
  190. package/dist/apis/sandbox.js +1 -1
  191. package/dist/apis/sharing.cjs +6 -6
  192. package/dist/apis/sharing.js +1 -1
  193. package/dist/apis/snapshot.cjs +6 -6
  194. package/dist/apis/snapshot.js +1 -1
  195. package/dist/apis/submission.cjs +6 -6
  196. package/dist/apis/submission.js +1 -1
  197. package/dist/apis/target.cjs +6 -6
  198. package/dist/apis/target.js +1 -1
  199. package/dist/apis/targeting.cjs +6 -6
  200. package/dist/apis/targeting.js +1 -1
  201. package/dist/apis/template-variables.cjs +6 -6
  202. package/dist/apis/template-variables.js +1 -1
  203. package/dist/apis/user.cjs +6 -6
  204. package/dist/apis/user.js +1 -1
  205. package/dist/apis/validation-rules.cjs +6 -6
  206. package/dist/apis/validation-rules.js +1 -1
  207. package/dist/apis/webhooks.cjs +6 -6
  208. package/dist/apis/webhooks.js +1 -1
  209. package/dist/apis/workflow-definition.cjs +6 -6
  210. package/dist/apis/workflow-definition.js +1 -1
  211. package/dist/apis/workflow.cjs +6 -6
  212. package/dist/apis/workflow.js +1 -1
  213. package/dist/{app-E75NP2YE.js → app-B3TAEVS4.js} +1 -1
  214. package/dist/{app-EI2PFRBV.cjs → app-C5H6RLZ5.cjs} +1 -1
  215. package/dist/{app.d-BHpFAvPW.d.cts → app.d-CqXqNLxq.d.cts} +9 -10
  216. package/dist/{app.d-BHpFAvPW.d.ts → app.d-CqXqNLxq.d.ts} +9 -10
  217. package/dist/bin/cli.js +1 -1
  218. package/dist/{chunk-QZH7QNNP.cjs → chunk-3OIZHXWK.cjs} +3 -3
  219. package/dist/{chunk-SMERBU2T.js → chunk-ARX7EKG7.js} +3 -3
  220. package/dist/customer-portal-FDB3TGS7.cjs +7 -0
  221. package/dist/customer-portal-NELL7GRO.js +7 -0
  222. package/dist/{customer-portal.d-DJHJY-vb.d.cts → customer-portal.d-gb6dOHv3.d.cts} +218 -6
  223. package/dist/{customer-portal.d-DJHJY-vb.d.ts → customer-portal.d-gb6dOHv3.d.ts} +218 -6
  224. package/dist/environments-OYCH6VUD.js +7 -0
  225. package/dist/environments-S3O6ASTY.cjs +7 -0
  226. package/dist/{environments.d-C_BTxz4W.d.cts → environments.d-qL1urwAq.d.cts} +252 -22
  227. package/dist/{environments.d-C_BTxz4W.d.ts → environments.d-qL1urwAq.d.ts} +252 -22
  228. package/dist/index.cjs +8 -8
  229. package/dist/index.d.cts +3 -3
  230. package/dist/index.d.ts +3 -3
  231. package/dist/index.js +1 -1
  232. package/dist/{js-yaml-DLCVPJ7G.js → js-yaml-UPZKYVRY.js} +15 -17
  233. package/docs/app.md +4 -7
  234. package/docs/customer-portal.md +136 -21
  235. package/docs/environments.md +327 -11
  236. package/package.json +1 -1
  237. package/dist/customer-portal-CDFQM72A.js +0 -7
  238. package/dist/customer-portal-MS6WNXAO.cjs +0 -7
  239. package/dist/environments-EAVUY4FC.cjs +0 -7
  240. package/dist/environments-RNOROUFZ.js +0 -7
@@ -5,6 +5,7 @@ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, Unkno
5
5
 
6
6
  declare namespace Components {
7
7
  namespace Responses {
8
+ export type BadGateway = Schemas.ErrorResp;
8
9
  export interface ConfirmUserInvalidRequest {
9
10
  /**
10
11
  * Error message
@@ -28,6 +29,7 @@ declare namespace Components {
28
29
  }
29
30
  export type Forbidden = Schemas.ErrorResp;
30
31
  export type ForbiddenByRule = Schemas.ErrorResp | Schemas.FailedRuleErrorResp;
32
+ export type GatewayTimeout = Schemas.ErrorResp;
31
33
  export type InternalServerError = Schemas.ErrorResp;
32
34
  export type InvalidRequest = Schemas.ErrorResp;
33
35
  export type InvalidRequestCreateMeterReading = {
@@ -43,6 +45,8 @@ declare namespace Components {
43
45
  message?: string;
44
46
  } | void;
45
47
  export type NotFound = Schemas.ErrorResp;
48
+ export type ServiceUnavailable = Schemas.ErrorResp;
49
+ export type TooManyRequests = Schemas.ErrorResp;
46
50
  export type Unauthorized = Schemas.ErrorResp;
47
51
  }
48
52
  namespace Schemas {
@@ -930,6 +934,59 @@ declare namespace Components {
930
934
  */
931
935
  campaign_id?: string;
932
936
  }
937
+ export interface CleverPvContext {
938
+ /**
939
+ * Current Clever PV screen identifier
940
+ */
941
+ screen?: string;
942
+ /**
943
+ * Clever PV application version
944
+ */
945
+ version?: string;
946
+ /**
947
+ * Device connectivity at the time of the report
948
+ */
949
+ connection_state?: string;
950
+ /**
951
+ * App locale at the time of the report
952
+ */
953
+ locale?: string;
954
+ /**
955
+ * App timezone at the time of the report
956
+ */
957
+ timezone?: string;
958
+ /**
959
+ * Device firmware version when known
960
+ */
961
+ firmware_version?: string;
962
+ /**
963
+ * App build identifier when known
964
+ */
965
+ build?: string;
966
+ /**
967
+ * Client-generated correlation id for the report
968
+ */
969
+ trace_id?: string;
970
+ /**
971
+ * Optional device snapshot from the portal. Attached as a JSON file on
972
+ * the original Zendesk comment. Must include id when present. Serialized
973
+ * JSON is limited to 256 KiB.
974
+ *
975
+ */
976
+ device?: {
977
+ [name: string]: any;
978
+ };
979
+ /**
980
+ * Optional onboarding vendor id and name. Included in the Zendesk
981
+ * comment. Not a portal entity.
982
+ *
983
+ */
984
+ vendor?: {
985
+ [name: string]: any;
986
+ id?: string;
987
+ name?: string;
988
+ };
989
+ }
933
990
  export interface CommonConfigAttributes {
934
991
  /**
935
992
  * Mobile app configuration (top-level; moved out of the config blob).
@@ -1027,6 +1084,14 @@ declare namespace Components {
1027
1084
  * Enable or disable the new design for the portal
1028
1085
  */
1029
1086
  new_design?: boolean;
1087
+ /**
1088
+ * Enable the MCP (AI agent) connector channel for this portal
1089
+ */
1090
+ mcp_enabled?: boolean;
1091
+ /**
1092
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
1093
+ */
1094
+ mcp_grant_version?: number;
1030
1095
  };
1031
1096
  /**
1032
1097
  * Access token for the portal
@@ -1562,6 +1627,14 @@ declare namespace Components {
1562
1627
  * Enable or disable the new design for the portal
1563
1628
  */
1564
1629
  new_design?: boolean;
1630
+ /**
1631
+ * Enable the MCP (AI agent) connector channel for this portal
1632
+ */
1633
+ mcp_enabled?: boolean;
1634
+ /**
1635
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
1636
+ */
1637
+ mcp_grant_version?: number;
1565
1638
  };
1566
1639
  /**
1567
1640
  * Access token for the portal
@@ -2359,6 +2432,34 @@ declare namespace Components {
2359
2432
  */
2360
2433
  EntitySlug;
2361
2434
  }
2435
+ export interface CreateSupportRequest {
2436
+ report_type: SupportReportType;
2437
+ description: string;
2438
+ /**
2439
+ * Client-generated id for correlating the request
2440
+ */
2441
+ submission_id: string; // ^[A-Za-z0-9._-]+$
2442
+ site_id?: /**
2443
+ * Entity ID
2444
+ * example:
2445
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
2446
+ */
2447
+ EntityId /* uuid */;
2448
+ device_id?: /**
2449
+ * Entity ID
2450
+ * example:
2451
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
2452
+ */
2453
+ EntityId /* uuid */;
2454
+ clever_pv?: CleverPvContext;
2455
+ attachments?: [
2456
+ SupportRequestAttachment?,
2457
+ SupportRequestAttachment?,
2458
+ SupportRequestAttachment?,
2459
+ SupportRequestAttachment?,
2460
+ SupportRequestAttachment?
2461
+ ];
2462
+ }
2362
2463
  export interface CreateUserRequest {
2363
2464
  /**
2364
2465
  * User's email address
@@ -3126,7 +3227,7 @@ declare namespace Components {
3126
3227
  .../* Per-slug search configuration with scoped targets and templates */ EntitySlugConfig[]
3127
3228
  ];
3128
3229
  /**
3129
- * Keyword search query
3230
+ * Free-text keyword search. This is plain text, **not** a query language: punctuation separates words rather than carrying any special meaning, and every word has to match. Use `q_fields` to restrict which fields are searched, and `filters`/`targets` for structured filtering. Overly long input is trimmed, and input with no words in it is ignored — the remaining parameters still apply.
3130
3231
  * example:
3131
3232
  * contract
3132
3233
  */
@@ -4962,6 +5063,10 @@ declare namespace Components {
4962
5063
  * Whether the org is in canary mode
4963
5064
  */
4964
5065
  is_canary?: boolean;
5066
+ /**
5067
+ * Whether the portal still runs the old design (the `new_design` feature setting is off). Legacy portals are always served the frozen legacy bundle, even when the org is in canary.
5068
+ */
5069
+ is_legacy_design?: boolean;
4965
5070
  /**
4966
5071
  * The URL to redirect to
4967
5072
  * example:
@@ -6201,6 +6306,14 @@ declare namespace Components {
6201
6306
  * Enable or disable the new design for the portal
6202
6307
  */
6203
6308
  new_design?: boolean;
6309
+ /**
6310
+ * Enable the MCP (AI agent) connector channel for this portal
6311
+ */
6312
+ mcp_enabled?: boolean;
6313
+ /**
6314
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
6315
+ */
6316
+ mcp_grant_version?: number;
6204
6317
  };
6205
6318
  /**
6206
6319
  * Access token for the portal
@@ -6829,6 +6942,14 @@ declare namespace Components {
6829
6942
  * Enable or disable the new design for the portal
6830
6943
  */
6831
6944
  new_design?: boolean;
6945
+ /**
6946
+ * Enable the MCP (AI agent) connector channel for this portal
6947
+ */
6948
+ mcp_enabled?: boolean;
6949
+ /**
6950
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
6951
+ */
6952
+ mcp_grant_version?: number;
6832
6953
  };
6833
6954
  /**
6834
6955
  * Access token for the portal
@@ -8307,6 +8428,35 @@ declare namespace Components {
8307
8428
  use_case_slug: string;
8308
8429
  }
8309
8430
  export type Source = "ECP" | "ERP" | "360" | "journey-submission";
8431
+ export type SupportReportType = "bug" | "feedback";
8432
+ export interface SupportRequestAttachment {
8433
+ /**
8434
+ * example:
8435
+ * screenshot.png
8436
+ */
8437
+ filename: string;
8438
+ /**
8439
+ * example:
8440
+ * image/png
8441
+ */
8442
+ mime_type: string;
8443
+ /**
8444
+ * Base64-encoded file, optionally as a data URL
8445
+ */
8446
+ contents: string;
8447
+ }
8448
+ export interface SupportRequestResult {
8449
+ /**
8450
+ * example:
8451
+ * 12345
8452
+ */
8453
+ reference: string;
8454
+ /**
8455
+ * example:
8456
+ * new
8457
+ */
8458
+ status: string;
8459
+ }
8310
8460
  /**
8311
8461
  * Optional configuration item that a portal swap can additionally include. The swap always transfers the pages and the functional experience config that keep the portal working. These items are opt-in on top of that and are OFF by default. Domain and access/security settings (domain, cognito_details, auth_settings) can never be swapped and are therefore not part of this enum.
8312
8462
  */
@@ -8609,6 +8759,14 @@ declare namespace Components {
8609
8759
  * Enable or disable the new design for the portal
8610
8760
  */
8611
8761
  new_design?: boolean;
8762
+ /**
8763
+ * Enable the MCP (AI agent) connector channel for this portal
8764
+ */
8765
+ mcp_enabled?: boolean;
8766
+ /**
8767
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
8768
+ */
8769
+ mcp_grant_version?: number;
8612
8770
  };
8613
8771
  /**
8614
8772
  * Access token for the portal
@@ -9205,6 +9363,14 @@ declare namespace Components {
9205
9363
  * Enable or disable the new design for the portal
9206
9364
  */
9207
9365
  new_design?: boolean;
9366
+ /**
9367
+ * Enable the MCP (AI agent) connector channel for this portal
9368
+ */
9369
+ mcp_enabled?: boolean;
9370
+ /**
9371
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
9372
+ */
9373
+ mcp_grant_version?: number;
9208
9374
  };
9209
9375
  /**
9210
9376
  * Access token for the portal
@@ -9697,9 +9863,10 @@ declare namespace Components {
9697
9863
  */
9698
9864
  type_options?: VisualizationTypeOption[];
9699
9865
  /**
9700
- * Intervals supported for the current context. If omitted, all intervals are assumed supported.
9866
+ * Intervals supported for the current context. If omitted, all intervals are assumed supported. `custom` marks a period-based consumption source: the portal requests the whole `data_range` once with `interval=custom` and renders one bar per returned record (see `period` on the consumption data point) instead of offering interval / date navigation or period comparison. When `custom` is present it takes precedence over any fixed intervals also listed.
9867
+ *
9701
9868
  */
9702
- intervals?: ("PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y")[];
9869
+ intervals?: ("PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom")[];
9703
9870
  data_range?: /* Earliest / latest timestamps for which data is available in the current context. */ VisualizationDataRange;
9704
9871
  }
9705
9872
  export interface VisualizationTypeOption {
@@ -10270,7 +10437,11 @@ declare namespace Paths {
10270
10437
  */
10271
10438
  columns: /* One column of the portal data export CSV. */ Components.Schemas.PortalDataExportColumn[];
10272
10439
  expand_over?: string;
10273
- language?: "de" | "en";
10440
+ /**
10441
+ * example:
10442
+ * de
10443
+ */
10444
+ language?: string;
10274
10445
  }
10275
10446
  namespace Responses {
10276
10447
  export interface $202 {
@@ -11390,7 +11561,7 @@ declare namespace Paths {
11390
11561
  export type ExtensionId = string;
11391
11562
  export type From = string; // date-time
11392
11563
  export type HookId = string;
11393
- export type Interval = "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y";
11564
+ export type Interval = "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom";
11394
11565
  export type MeterId = string;
11395
11566
  export type To = string; // date-time
11396
11567
  }
@@ -11439,6 +11610,26 @@ declare namespace Paths {
11439
11610
  label?: {
11440
11611
  [name: string]: string;
11441
11612
  };
11613
+ /**
11614
+ * The date range this value covers. Required for period-based sources (`interval=custom`), whose records don't sit on a fixed time grid: the portal renders one bar per record, orders them by `period.from`, and — unless `label` is set — labels each bar with the formatted `from` - `to` range. Ignored for interval-based retrieval.
11615
+ *
11616
+ * example:
11617
+ * {
11618
+ * "from": "2024-01-03T00:00:00.000Z",
11619
+ * "to": "2025-01-05T00:00:00.000Z"
11620
+ * }
11621
+ */
11622
+ period?: {
11623
+ /**
11624
+ * Start of the covered period.
11625
+ */
11626
+ from: string; // date-time
11627
+ /**
11628
+ * End of the covered period. Shown as given in the fallback label, so pass the date the period visibly ends on (consecutive periods may share this boundary).
11629
+ *
11630
+ */
11631
+ to: string; // date-time
11632
+ };
11442
11633
  }[];
11443
11634
  }
11444
11635
  export type $401 = Components.Responses.Unauthorized;
@@ -13160,6 +13351,14 @@ declare namespace Paths {
13160
13351
  * Enable or disable the new design for the portal
13161
13352
  */
13162
13353
  new_design?: boolean;
13354
+ /**
13355
+ * Enable the MCP (AI agent) connector channel for this portal
13356
+ */
13357
+ mcp_enabled?: boolean;
13358
+ /**
13359
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
13360
+ */
13361
+ mcp_grant_version?: number;
13163
13362
  };
13164
13363
  /**
13165
13364
  * Access token for the portal
@@ -13786,6 +13985,14 @@ declare namespace Paths {
13786
13985
  * Enable or disable the new design for the portal
13787
13986
  */
13788
13987
  new_design?: boolean;
13988
+ /**
13989
+ * Enable the MCP (AI agent) connector channel for this portal
13990
+ */
13991
+ mcp_enabled?: boolean;
13992
+ /**
13993
+ * Server-managed generation used to invalidate MCP grants after the connector is disabled or re-enabled
13994
+ */
13995
+ mcp_grant_version?: number;
13789
13996
  };
13790
13997
  /**
13791
13998
  * Access token for the portal
@@ -21189,6 +21396,7 @@ type BlockRequest = Components.Schemas.BlockRequest;
21189
21396
  type BlockType = Components.Schemas.BlockType;
21190
21397
  type BusinessPartnerItem = Components.Schemas.BusinessPartnerItem;
21191
21398
  type CampaignWidget = Components.Schemas.CampaignWidget;
21399
+ type CleverPvContext = Components.Schemas.CleverPvContext;
21192
21400
  type CommonConfigAttributes = Components.Schemas.CommonConfigAttributes;
21193
21401
  type CommonConfigAttributesV3 = Components.Schemas.CommonConfigAttributesV3;
21194
21402
  type Contact = Components.Schemas.Contact;
@@ -21199,6 +21407,7 @@ type ContextEntities = Components.Schemas.ContextEntities;
21199
21407
  type ContextEntity = Components.Schemas.ContextEntity;
21200
21408
  type Contract = Components.Schemas.Contract;
21201
21409
  type ContractIdentifier = Components.Schemas.ContractIdentifier;
21410
+ type CreateSupportRequest = Components.Schemas.CreateSupportRequest;
21202
21411
  type CreateUserRequest = Components.Schemas.CreateUserRequest;
21203
21412
  type Currency = Components.Schemas.Currency;
21204
21413
  type DataRetrievalItem = Components.Schemas.DataRetrievalItem;
@@ -21320,6 +21529,9 @@ type Schema = Components.Schemas.Schema;
21320
21529
  type SearchIncludes = Components.Schemas.SearchIncludes;
21321
21530
  type SecureProxyConfig = Components.Schemas.SecureProxyConfig;
21322
21531
  type Source = Components.Schemas.Source;
21532
+ type SupportReportType = Components.Schemas.SupportReportType;
21533
+ type SupportRequestAttachment = Components.Schemas.SupportRequestAttachment;
21534
+ type SupportRequestResult = Components.Schemas.SupportRequestResult;
21323
21535
  type SwappableConfig = Components.Schemas.SwappableConfig;
21324
21536
  type TariffType = Components.Schemas.TariffType;
21325
21537
  type TeaserWidget = Components.Schemas.TeaserWidget;
@@ -21339,4 +21551,4 @@ type WorfklowIdentifier = Components.Schemas.WorfklowIdentifier;
21339
21551
  type WorkflowExecution = Components.Schemas.WorkflowExecution;
21340
21552
  type WorkflowStep = Components.Schemas.WorkflowStep;
21341
21553
 
21342
- export { type EntityItem as $, type AcceptanceDecision as A, type Balance as B, type Client as C, type CommonConfigAttributesV3 as D, type Contact as E, type ContactCountRequest as F, type ContactExistsRequest as G, type ContentWidget as H, type ContextEntities as I, type ContextEntity as J, type Contract as K, type ContractIdentifier as L, type CreateUserRequest as M, type Currency as N, type OperationMethods as O, Paths as P, type DataRetrievalItem as Q, DeleteEntityFile as R, type Direction as S, type DocumentWidget as T, type DomainSettings as U, type EmailTemplates as V, type Entity as W, type EntityEditRule as X, type EntityFileCount as Y, type EntityGetParams as Z, type EntityId as _, Components as a, type PaymentWidget as a$, type EntityMatchingConfig as a0, type EntityPortalWorkflows as a1, type EntityResponse as a2, type EntityResponseGroupedWithHits as a3, type EntityResponseWithHits as a4, type EntitySearchParams as a5, type EntitySlug as a6, type EntitySlugConfig as a7, type EntityTemplates as a8, type EntityWidget as a9, type IdentifierAttribute as aA, type InstallmentEvent as aB, type JourneyActions as aC, type JuiceSettings as aD, type Meter as aE, type MeterChartWidget as aF, type MeterReading as aG, type MeterReadingPhoto as aH, type MeterReadingPhotoData as aI, type MeterReadingWidget as aJ, type MobileBranding as aK, type MobileBuildStatus as aL, type MobileConfig as aM, type MobileConfigUpdate as aN, type MobileOtaConfig as aO, type MoblieOIDCConfig as aP, type NotificationTriggerConfig as aQ, type OIDCProviderConfig as aR, type OIDCProviderMetadata as aS, type Opportunity as aT, type Order as aU, type OrganizationSettings as aV, type Origin as aW, type OtaPortal as aX, type OutstandingTask as aY, type Page as aZ, type PageRequest as a_, type ErrorResp as aa, type Exists as ab, type Extension as ac, type ExtensionAuthBlock as ad, type ExtensionConfig as ae, type ExtensionHook as af, type ExtensionHookChangeEmail as ag, type ExtensionHookChangePassword as ah, type ExtensionHookConsumptionDataRetrieval as ai, type ExtensionHookContractIdentification as aj, type ExtensionHookCostDataRetrieval as ak, type ExtensionHookDataExport as al, type ExtensionHookDeleteAccount as am, type ExtensionHookMeterReadingPlausibilityCheck as an, type ExtensionHookPriceDataRetrieval as ao, type ExtensionHookRegistrationIdentifiersCheck as ap, type ExtensionHookSelection as aq, type ExtensionHookVisualizationMetadata as ar, type ExtensionSeamlessLink as as, type ExternalLink as at, type ExtraSchemaAttributes as au, type FailedRuleErrorResp as av, type File as aw, type FileItem as ax, type FilePreviewResult as ay, type Grant as az, type PathsDictionary as b, type PortalConfig as b0, type PortalConfigV3 as b1, type PortalDataExportColumn as b2, type PortalId as b3, type PortalNotification as b4, type PortalTaskConfig as b5, type PortalUser as b6, type PortalUserRegistrationStatus as b7, type PortalWidget as b8, type PortalWorkflow as b9, type SSOLoginToken as bA, SaveEntityFile as bB, type SavePortalFile as bC, type Schema as bD, type SearchIncludes as bE, type SecureProxyConfig as bF, type Source as bG, type SwappableConfig as bH, type TariffType as bI, type TeaserWidget as bJ, type TemplatesRef as bK, type TriggerPortalFlow as bL, type UpdateOnlyPortalConfigAttributes as bM, type UpsertPortalConfig as bN, type UpsertPortalConfigV3 as bO, UpsertPortalWidget as bP, type UserRequest as bQ, type VisualizationDataRange as bR, type VisualizationMetadata as bS, type VisualizationTypeOption as bT, type WidgetAction as bU, type WidgetBase as bV, type WorfklowIdentifier as bW, type WorkflowExecution as bX, type WorkflowStep as bY, type PortalWorkflowTask as ba, type Product as bb, type ProductRecommendationsWidget as bc, type ProviderConfig as bd, type ProviderDisplayName as be, type ProviderPublicConfig as bf, type ProviderSlug as bg, type PublicAppDetails as bh, type PublicChangeEmailDetails as bi, type PublicChangePasswordDetails as bj, type PublicContractIdentificationDetails as bk, type PublicDataRetrievalHookDetails as bl, type PublicDeleteAccountDetails as bm, type PublicExtensionCapabilities as bn, type PublicExtensionDetails as bo, type PublicMeterReadingPlausibilityCheckDetails as bp, type PublicSelfManagementExplanation as bq, type ReadBy as br, type ReadingStatus as bs, type Reason as bt, type RegistrationIdentifier as bu, type ReimbursementEvent as bv, type Rule as bw, type SAMLProviderConfig as bx, type SSOCallbackRequest as by, type SSOCallbackResponse as bz, type AccountExistsRequest as c, type ActionLabel as d, type ActionWidget as e, type Activity as f, type ActivityCallerContext as g, type ActivityId as h, type ActivityItem as i, type AdditionalContactAttribute as j, type AdminUser as k, type AllowedFileExtensions as l, type AttributeMappingConfig as m, type AuthConfig as n, type BaseBillingEvent as o, type BaseEntity as p, type BillingAccount as q, type BillingEvent as r, type Block as s, type BlockId as t, type BlockProps as u, type BlockRequest as v, type BlockType as w, type BusinessPartnerItem as x, type CampaignWidget as y, type CommonConfigAttributes as z };
21554
+ export { type EntityGetParams as $, type AcceptanceDecision as A, type Balance as B, type Client as C, type CommonConfigAttributes as D, type CommonConfigAttributesV3 as E, type Contact as F, type ContactCountRequest as G, type ContactExistsRequest as H, type ContentWidget as I, type ContextEntities as J, type ContextEntity as K, type Contract as L, type ContractIdentifier as M, type CreateSupportRequest as N, type OperationMethods as O, Paths as P, type CreateUserRequest as Q, type Currency as R, type DataRetrievalItem as S, DeleteEntityFile as T, type Direction as U, type DocumentWidget as V, type DomainSettings as W, type EmailTemplates as X, type Entity as Y, type EntityEditRule as Z, type EntityFileCount as _, Components as a, type Page as a$, type EntityId as a0, type EntityItem as a1, type EntityMatchingConfig as a2, type EntityPortalWorkflows as a3, type EntityResponse as a4, type EntityResponseGroupedWithHits as a5, type EntityResponseWithHits as a6, type EntitySearchParams as a7, type EntitySlug as a8, type EntitySlugConfig as a9, type FilePreviewResult as aA, type Grant as aB, type IdentifierAttribute as aC, type InstallmentEvent as aD, type JourneyActions as aE, type JuiceSettings as aF, type Meter as aG, type MeterChartWidget as aH, type MeterReading as aI, type MeterReadingPhoto as aJ, type MeterReadingPhotoData as aK, type MeterReadingWidget as aL, type MobileBranding as aM, type MobileBuildStatus as aN, type MobileConfig as aO, type MobileConfigUpdate as aP, type MobileOtaConfig as aQ, type MoblieOIDCConfig as aR, type NotificationTriggerConfig as aS, type OIDCProviderConfig as aT, type OIDCProviderMetadata as aU, type Opportunity as aV, type Order as aW, type OrganizationSettings as aX, type Origin as aY, type OtaPortal as aZ, type OutstandingTask as a_, type EntityTemplates as aa, type EntityWidget as ab, type ErrorResp as ac, type Exists as ad, type Extension as ae, type ExtensionAuthBlock as af, type ExtensionConfig as ag, type ExtensionHook as ah, type ExtensionHookChangeEmail as ai, type ExtensionHookChangePassword as aj, type ExtensionHookConsumptionDataRetrieval as ak, type ExtensionHookContractIdentification as al, type ExtensionHookCostDataRetrieval as am, type ExtensionHookDataExport as an, type ExtensionHookDeleteAccount as ao, type ExtensionHookMeterReadingPlausibilityCheck as ap, type ExtensionHookPriceDataRetrieval as aq, type ExtensionHookRegistrationIdentifiersCheck as ar, type ExtensionHookSelection as as, type ExtensionHookVisualizationMetadata as at, type ExtensionSeamlessLink as au, type ExternalLink as av, type ExtraSchemaAttributes as aw, type FailedRuleErrorResp as ax, type File as ay, type FileItem as az, type PathsDictionary as b, type WorfklowIdentifier as b$, type PageRequest as b0, type PaymentWidget as b1, type PortalConfig as b2, type PortalConfigV3 as b3, type PortalDataExportColumn as b4, type PortalId as b5, type PortalNotification as b6, type PortalTaskConfig as b7, type PortalUser as b8, type PortalUserRegistrationStatus as b9, type SSOCallbackRequest as bA, type SSOCallbackResponse as bB, type SSOLoginToken as bC, SaveEntityFile as bD, type SavePortalFile as bE, type Schema as bF, type SearchIncludes as bG, type SecureProxyConfig as bH, type Source as bI, type SupportReportType as bJ, type SupportRequestAttachment as bK, type SupportRequestResult as bL, type SwappableConfig as bM, type TariffType as bN, type TeaserWidget as bO, type TemplatesRef as bP, type TriggerPortalFlow as bQ, type UpdateOnlyPortalConfigAttributes as bR, type UpsertPortalConfig as bS, type UpsertPortalConfigV3 as bT, UpsertPortalWidget as bU, type UserRequest as bV, type VisualizationDataRange as bW, type VisualizationMetadata as bX, type VisualizationTypeOption as bY, type WidgetAction as bZ, type WidgetBase as b_, type PortalWidget as ba, type PortalWorkflow as bb, type PortalWorkflowTask as bc, type Product as bd, type ProductRecommendationsWidget as be, type ProviderConfig as bf, type ProviderDisplayName as bg, type ProviderPublicConfig as bh, type ProviderSlug as bi, type PublicAppDetails as bj, type PublicChangeEmailDetails as bk, type PublicChangePasswordDetails as bl, type PublicContractIdentificationDetails as bm, type PublicDataRetrievalHookDetails as bn, type PublicDeleteAccountDetails as bo, type PublicExtensionCapabilities as bp, type PublicExtensionDetails as bq, type PublicMeterReadingPlausibilityCheckDetails as br, type PublicSelfManagementExplanation as bs, type ReadBy as bt, type ReadingStatus as bu, type Reason as bv, type RegistrationIdentifier as bw, type ReimbursementEvent as bx, type Rule as by, type SAMLProviderConfig as bz, type AccountExistsRequest as c, type WorkflowExecution as c0, type WorkflowStep as c1, type ActionLabel as d, type ActionWidget as e, type Activity as f, type ActivityCallerContext as g, type ActivityId as h, type ActivityItem as i, type AdditionalContactAttribute as j, type AdminUser as k, type AllowedFileExtensions as l, type AttributeMappingConfig as m, type AuthConfig as n, type BaseBillingEvent as o, type BaseEntity as p, type BillingAccount as q, type BillingEvent as r, type Block as s, type BlockId as t, type BlockProps as u, type BlockRequest as v, type BlockType as w, type BusinessPartnerItem as x, type CampaignWidget as y, type CleverPvContext as z };
@@ -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- [`StringTranslations`](#stringtranslations)\n- [`MapEntry`](#mapentry)\n- [`MapValue`](#mapvalue)\n- [`JsonValue`](#jsonvalue)\n- [`LinkValue`](#linkvalue)\n- [`LinkFields`](#linkfields)\n- [`ListItemType`](#listitemtype)\n- [`ListOfText`](#listoftext)\n- [`ListOfString`](#listofstring)\n- [`ListOfSecretString`](#listofsecretstring)\n- [`ListOfNumber`](#listofnumber)\n- [`ListOfBoolean`](#listofboolean)\n- [`ListOfJson`](#listofjson)\n- [`ListOfLink`](#listoflink)\n- [`ListValue`](#listvalue)\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 "item_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 "item_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 "item_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 "item_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`, `Map`, `JSON` and `Link`\nmay be served to browser-facing consumers; `String` and `SecretString` may not. A\n`List` inherits this from its element type: a `List` is\n\n```ts\ntype EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n```\n\n### `StringTranslations`\n\nA string translated per language. Keys are language codes (e.g. `de`,\n`en-US`), matching the hyphen-only BCP-47 form epilot\'s i18n stack uses\neverywhere else: `^[a-z]{2,3}(-[A-Za-z0-9]+)*$`. The server enforces\nthat with LANGUAGE_KEY_PATTERN in src/core/value-types.ts \u2014 the two are\nnot otherwise lin\n\n```ts\ntype StringTranslations = Record<string, string>\n```\n\n### `MapEntry`\n\nOne entry of a Map. `key` is the token a journey submits; `value` is\nwhat the customer reads \u2014 either one string, or one string per\nlanguage. Every entry of a Map must agree on which of the two it uses.\n\n\n```ts\ntype MapEntry = {\n key: string\n value: string | Record<string, string>\n}\n```\n\n### `MapValue`\n\n```ts\ntype MapValue = {\n fallbackLanguage?: string\n options: Array<{\n key: string\n value: string | Record<string, string>\n }>\n}\n```\n\n### `JsonValue`\n\nArbitrary JSON object, e.g. a flat key/value map used by integrations for\nenum translation: {"Mr.": 1, "Ms. / Mrs.": 2}. Max 32 KB serialised.\n\n\n```ts\ntype JsonValue = Record<string, unknown>\n```\n\n### `LinkValue`\n\nOne URL with a label and description a customer reads. `label` and\n`description` are each either a plain string or one string per language;\nthe two fields decide that independently \u2014 a plain string means "the\nsame in every language". A translated field must carry the fallback\nlanguage.\n\nThe URL must\n\n```ts\ntype LinkValue = {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n}\n```\n\n### `LinkFields`\n\nThe fields of a link, without a fallback language \u2014 the shape a `List`\nitem carries. Inside a list the fallback belongs to the wrapper, which\nowns the language tabs for every row.\n\nRestated rather than composed with `LinkValue`: `allOf` plus\n`additionalProperties: false` is rejected by most validato\n\n```ts\ntype LinkFields = {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n}\n```\n\n### `ListItemType`\n\nThe element type a `List` holds \u2014 every value type except the\ncontainers. `Map` is already a keyed collection and a list of lists has\nno consumer. A list is exactly as client-safe and exactly as secret as\nits element type: a list of `SecretString` is encrypted per item and its\nvalue is never returne\n\n```ts\ntype ListItemType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n```\n\n### `ListOfText`\n\n```ts\ntype ListOfText = {\n itemType: "Text"\n items: string[]\n}\n```\n\n### `ListOfString`\n\n```ts\ntype ListOfString = {\n itemType: "String"\n items: string[]\n}\n```\n\n### `ListOfSecretString`\n\nWrite-only in effect: the items are encrypted per item at rest and the\nwhole value is omitted from every read response, exactly as a\n`SecretString` variable\'s value is. Read `item_type` to learn what a\nlist holds when its value is withheld.\n\n\n```ts\ntype ListOfSecretString = {\n itemType: "SecretString"\n items: string[]\n}\n```\n\n### `ListOfNumber`\n\n```ts\ntype ListOfNumber = {\n itemType: "Number"\n items: number[]\n}\n```\n\n### `ListOfBoolean`\n\n```ts\ntype ListOfBoolean = {\n itemType: "Boolean"\n items: boolean[]\n}\n```\n\n### `ListOfJson`\n\n```ts\ntype ListOfJson = {\n itemType: "JSON"\n items: Record<string, unknown>[]\n}\n```\n\n### `ListOfLink`\n\nA list of links. `fallbackLanguage` applies to every item\'s translated\n`label` and `description`; items may mix plain and translated fields\nfreely, since a plain string is a complete answer for any language.\n\n\n```ts\ntype ListOfLink = {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n}\n```\n\n### `ListValue`\n\nAn ordered collection of one declared element type. Items round-trip in\nthe order written; nothing sorts them. Holds at most 100 items.\n\nThe whole value is limited to 32768 characters when serialised \u2014 the\nserver enforces this, and it is not expressible per-property here.\n\n\n```ts\ntype ListValue = {\n itemType: "Text"\n items: string[]\n} | {\n itemType: "Number"\n items: number[]\n} | {\n itemType: "Boolean"\n items: boolean[]\n} | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n} | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n} | {\n itemType: "String"\n items: string[]\n} | {\n itemType: "SecretString"\n items: string[]\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`, `JSON`, `Link` and `List` are objects.\nNumbers are IEEE 754 doubles; integers above 2^53 may lose precision on\nround-trip.\n\n```ts\ntype EnvironmentValue = string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: string\n value: string | Record<string, string>\n }>\n} | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n} | {\n itemType: "Text"\n items: string[]\n} | {\n itemType: "Number"\n items: number[]\n} | {\n itemType: "Boolean"\n items: boolean[]\n} | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n} | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n} | {\n itemType: "String"\n items: string[]\n} | {\n itemType: "SecretString"\n items: string[]\n}\n```\n\n### `EnvironmentVariable`\n\n```ts\ntype EnvironmentVariable = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: { ... }\n options: { ... }\n } | Record<string, unknown> | {\n url: { ... }\n label: { ... }\n description?: { ... }\n fallbackLanguage?: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n fallbackLanguage?: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\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" | "JSON" | "Link" | "List"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\n }\n protected?: boolean\n}\n```\n\n### `EnvironmentVariableUpdateRequest`\n\n```ts\ntype EnvironmentVariableUpdateRequest = {\n type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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
+ };
@@ -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- [`StringTranslations`](#stringtranslations)\n- [`MapEntry`](#mapentry)\n- [`MapValue`](#mapvalue)\n- [`JsonValue`](#jsonvalue)\n- [`LinkValue`](#linkvalue)\n- [`LinkFields`](#linkfields)\n- [`ListItemType`](#listitemtype)\n- [`ListOfText`](#listoftext)\n- [`ListOfString`](#listofstring)\n- [`ListOfSecretString`](#listofsecretstring)\n- [`ListOfNumber`](#listofnumber)\n- [`ListOfBoolean`](#listofboolean)\n- [`ListOfJson`](#listofjson)\n- [`ListOfLink`](#listoflink)\n- [`ListValue`](#listvalue)\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 "item_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 "item_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 "item_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 "item_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`, `Map`, `JSON` and `Link`\nmay be served to browser-facing consumers; `String` and `SecretString` may not. A\n`List` inherits this from its element type: a `List` is\n\n```ts\ntype EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n```\n\n### `StringTranslations`\n\nA string translated per language. Keys are language codes (e.g. `de`,\n`en-US`), matching the hyphen-only BCP-47 form epilot\'s i18n stack uses\neverywhere else: `^[a-z]{2,3}(-[A-Za-z0-9]+)*$`. The server enforces\nthat with LANGUAGE_KEY_PATTERN in src/core/value-types.ts \u2014 the two are\nnot otherwise lin\n\n```ts\ntype StringTranslations = Record<string, string>\n```\n\n### `MapEntry`\n\nOne entry of a Map. `key` is the token a journey submits; `value` is\nwhat the customer reads \u2014 either one string, or one string per\nlanguage. Every entry of a Map must agree on which of the two it uses.\n\n\n```ts\ntype MapEntry = {\n key: string\n value: string | Record<string, string>\n}\n```\n\n### `MapValue`\n\n```ts\ntype MapValue = {\n fallbackLanguage?: string\n options: Array<{\n key: string\n value: string | Record<string, string>\n }>\n}\n```\n\n### `JsonValue`\n\nArbitrary JSON object, e.g. a flat key/value map used by integrations for\nenum translation: {"Mr.": 1, "Ms. / Mrs.": 2}. Max 32 KB serialised.\n\n\n```ts\ntype JsonValue = Record<string, unknown>\n```\n\n### `LinkValue`\n\nOne URL with a label and description a customer reads. `label` and\n`description` are each either a plain string or one string per language;\nthe two fields decide that independently \u2014 a plain string means "the\nsame in every language". A translated field must carry the fallback\nlanguage.\n\nThe URL must\n\n```ts\ntype LinkValue = {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n}\n```\n\n### `LinkFields`\n\nThe fields of a link, without a fallback language \u2014 the shape a `List`\nitem carries. Inside a list the fallback belongs to the wrapper, which\nowns the language tabs for every row.\n\nRestated rather than composed with `LinkValue`: `allOf` plus\n`additionalProperties: false` is rejected by most validato\n\n```ts\ntype LinkFields = {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n}\n```\n\n### `ListItemType`\n\nThe element type a `List` holds \u2014 every value type except the\ncontainers. `Map` is already a keyed collection and a list of lists has\nno consumer. A list is exactly as client-safe and exactly as secret as\nits element type: a list of `SecretString` is encrypted per item and its\nvalue is never returne\n\n```ts\ntype ListItemType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n```\n\n### `ListOfText`\n\n```ts\ntype ListOfText = {\n itemType: "Text"\n items: string[]\n}\n```\n\n### `ListOfString`\n\n```ts\ntype ListOfString = {\n itemType: "String"\n items: string[]\n}\n```\n\n### `ListOfSecretString`\n\nWrite-only in effect: the items are encrypted per item at rest and the\nwhole value is omitted from every read response, exactly as a\n`SecretString` variable\'s value is. Read `item_type` to learn what a\nlist holds when its value is withheld.\n\n\n```ts\ntype ListOfSecretString = {\n itemType: "SecretString"\n items: string[]\n}\n```\n\n### `ListOfNumber`\n\n```ts\ntype ListOfNumber = {\n itemType: "Number"\n items: number[]\n}\n```\n\n### `ListOfBoolean`\n\n```ts\ntype ListOfBoolean = {\n itemType: "Boolean"\n items: boolean[]\n}\n```\n\n### `ListOfJson`\n\n```ts\ntype ListOfJson = {\n itemType: "JSON"\n items: Record<string, unknown>[]\n}\n```\n\n### `ListOfLink`\n\nA list of links. `fallbackLanguage` applies to every item\'s translated\n`label` and `description`; items may mix plain and translated fields\nfreely, since a plain string is a complete answer for any language.\n\n\n```ts\ntype ListOfLink = {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n}\n```\n\n### `ListValue`\n\nAn ordered collection of one declared element type. Items round-trip in\nthe order written; nothing sorts them. Holds at most 100 items.\n\nThe whole value is limited to 32768 characters when serialised \u2014 the\nserver enforces this, and it is not expressible per-property here.\n\n\n```ts\ntype ListValue = {\n itemType: "Text"\n items: string[]\n} | {\n itemType: "Number"\n items: number[]\n} | {\n itemType: "Boolean"\n items: boolean[]\n} | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n} | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n} | {\n itemType: "String"\n items: string[]\n} | {\n itemType: "SecretString"\n items: string[]\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`, `JSON`, `Link` and `List` are objects.\nNumbers are IEEE 754 doubles; integers above 2^53 may lose precision on\nround-trip.\n\n```ts\ntype EnvironmentValue = string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: string\n value: string | Record<string, string>\n }>\n} | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n} | {\n itemType: "Text"\n items: string[]\n} | {\n itemType: "Number"\n items: number[]\n} | {\n itemType: "Boolean"\n items: boolean[]\n} | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n} | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n }>\n} | {\n itemType: "String"\n items: string[]\n} | {\n itemType: "SecretString"\n items: string[]\n}\n```\n\n### `EnvironmentVariable`\n\n```ts\ntype EnvironmentVariable = {\n key: string\n type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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" | "JSON" | "Link" | "List"\n item_type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "JSON" | "Link"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: { ... }\n options: { ... }\n } | Record<string, unknown> | {\n url: { ... }\n label: { ... }\n description?: { ... }\n fallbackLanguage?: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n fallbackLanguage?: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\n } | {\n itemType: { ... }\n items: { ... }\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" | "JSON" | "Link" | "List"\n description?: string\n group?: string\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\n }\n protected?: boolean\n}\n```\n\n### `EnvironmentVariableUpdateRequest`\n\n```ts\ntype EnvironmentVariableUpdateRequest = {\n type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map" | "JSON" | "Link" | "List"\n value?: string | number | boolean | {\n fallbackLanguage?: string\n options: Array<{\n key: { ... }\n value: { ... }\n }>\n } | Record<string, unknown> | {\n url: string\n label: string | Record<string, string>\n description?: string | Record<string, string>\n fallbackLanguage?: string\n } | {\n itemType: "Text"\n items: string[]\n } | {\n itemType: "Number"\n items: number[]\n } | {\n itemType: "Boolean"\n items: boolean[]\n } | {\n itemType: "JSON"\n items: Record<string, unknown>[]\n } | {\n itemType: "Link"\n fallbackLanguage?: string\n items: Array<{\n url: { ... }\n label: { ... }\n description?: { ... }\n }>\n } | {\n itemType: "String"\n items: string[]\n } | {\n itemType: "SecretString"\n items: string[]\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;