@epilot/sdk 2.19.12 → 2.19.13

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 (127) hide show
  1. package/definitions/environments.json +37 -46
  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 +15 -6
  45. package/dist/apis/entity.d.cts +9 -3
  46. package/dist/apis/entity.d.ts +9 -3
  47. package/dist/apis/entity.js +10 -1
  48. package/dist/apis/environments.cjs +6 -6
  49. package/dist/apis/environments.d.cts +2 -2
  50. package/dist/apis/environments.d.ts +2 -2
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +23 -6
  81. package/dist/apis/pricing.d.cts +9 -1
  82. package/dist/apis/pricing.d.ts +9 -1
  83. package/dist/apis/pricing.js +18 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/{chunk-X3SRAHIZ.js → chunk-HS4W3GY7.js} +1 -1
  113. package/dist/{chunk-2AZIGIR2.cjs → chunk-YZ2YWRG7.cjs} +1 -1
  114. package/dist/{entity.d-C3WddgVt.d.cts → entity.d-CkFElDWZ.d.cts} +1 -1
  115. package/dist/{entity.d-C3WddgVt.d.ts → entity.d-CkFElDWZ.d.ts} +1 -1
  116. package/dist/environments-4YS2MZ3G.js +7 -0
  117. package/dist/environments-EJSSTDDU.cjs +7 -0
  118. package/dist/{environments.d-840_mC07.d.cts → environments.d-DVgvq0wo.d.cts} +59 -28
  119. package/dist/{environments.d-840_mC07.d.ts → environments.d-DVgvq0wo.d.ts} +59 -28
  120. package/dist/index.cjs +8 -8
  121. package/dist/index.d.cts +2 -2
  122. package/dist/index.d.ts +2 -2
  123. package/dist/index.js +1 -1
  124. package/docs/environments.md +42 -45
  125. package/package.json +1 -1
  126. package/dist/environments-JP2CPDH2.cjs +0 -7
  127. package/dist/environments-PGRMZY5G.js +0 -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,13 +154,52 @@ declare namespace Components {
163
154
  */
164
155
  protected?: boolean;
165
156
  }
166
- export interface OptionsValue {
157
+ /**
158
+ * One entry of a Map. `key` is the token a journey submits; `value` is
159
+ * what the customer reads — either one string, or one string per
160
+ * language. Every entry of a Map must agree on which of the two it uses.
161
+ *
162
+ */
163
+ export interface MapEntry {
164
+ key: string;
165
+ value: string | /**
166
+ * A string translated per language. Keys are language codes (e.g. `de`,
167
+ * `en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses
168
+ * everywhere else. Must match LANGUAGE_KEY_PATTERN in
169
+ * src/core/value-types.ts — the two are not otherwise linked.
170
+ *
171
+ */
172
+ StringTranslations;
173
+ }
174
+ export interface MapValue {
167
175
  fallbackLanguage?: string;
168
176
  options: [
169
- EnvironmentOption,
170
- ...EnvironmentOption[]
177
+ /**
178
+ * One entry of a Map. `key` is the token a journey submits; `value` is
179
+ * what the customer reads — either one string, or one string per
180
+ * language. Every entry of a Map must agree on which of the two it uses.
181
+ *
182
+ */
183
+ MapEntry,
184
+ .../**
185
+ * One entry of a Map. `key` is the token a journey submits; `value` is
186
+ * what the customer reads — either one string, or one string per
187
+ * language. Every entry of a Map must agree on which of the two it uses.
188
+ *
189
+ */
190
+ MapEntry[]
171
191
  ];
172
192
  }
193
+ /**
194
+ * A string translated per language. Keys are language codes (e.g. `de`,
195
+ * `en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses
196
+ * everywhere else. Must match LANGUAGE_KEY_PATTERN in
197
+ * src/core/value-types.ts — the two are not otherwise linked.
198
+ *
199
+ */
200
+ export interface StringTranslations {
201
+ [name: string]: string;
202
+ }
173
203
  }
174
204
  }
175
205
  declare namespace Paths {
@@ -481,7 +511,6 @@ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
481
511
  type EnvironmentGroup = Components.Schemas.EnvironmentGroup;
482
512
  type EnvironmentGroupList = Components.Schemas.EnvironmentGroupList;
483
513
  type EnvironmentGroupUpsertRequest = Components.Schemas.EnvironmentGroupUpsertRequest;
484
- type EnvironmentOption = Components.Schemas.EnvironmentOption;
485
514
  type EnvironmentValue = Components.Schemas.EnvironmentValue;
486
515
  type EnvironmentValueType = Components.Schemas.EnvironmentValueType;
487
516
  type EnvironmentVariable = Components.Schemas.EnvironmentVariable;
@@ -489,6 +518,8 @@ type EnvironmentVariableCreateRequest = Components.Schemas.EnvironmentVariableCr
489
518
  type EnvironmentVariableList = Components.Schemas.EnvironmentVariableList;
490
519
  type EnvironmentVariableListItem = Components.Schemas.EnvironmentVariableListItem;
491
520
  type EnvironmentVariableUpdateRequest = Components.Schemas.EnvironmentVariableUpdateRequest;
492
- type OptionsValue = Components.Schemas.OptionsValue;
521
+ type MapEntry = Components.Schemas.MapEntry;
522
+ type MapValue = Components.Schemas.MapValue;
523
+ type StringTranslations = Components.Schemas.StringTranslations;
493
524
 
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 };
525
+ export { type Client as C, type EnvironmentGroup as E, type MapEntry as M, type OperationMethods as O, Paths as P, type StringTranslations as S, 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,13 +154,52 @@ declare namespace Components {
163
154
  */
164
155
  protected?: boolean;
165
156
  }
166
- export interface OptionsValue {
157
+ /**
158
+ * One entry of a Map. `key` is the token a journey submits; `value` is
159
+ * what the customer reads — either one string, or one string per
160
+ * language. Every entry of a Map must agree on which of the two it uses.
161
+ *
162
+ */
163
+ export interface MapEntry {
164
+ key: string;
165
+ value: string | /**
166
+ * A string translated per language. Keys are language codes (e.g. `de`,
167
+ * `en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses
168
+ * everywhere else. Must match LANGUAGE_KEY_PATTERN in
169
+ * src/core/value-types.ts — the two are not otherwise linked.
170
+ *
171
+ */
172
+ StringTranslations;
173
+ }
174
+ export interface MapValue {
167
175
  fallbackLanguage?: string;
168
176
  options: [
169
- EnvironmentOption,
170
- ...EnvironmentOption[]
177
+ /**
178
+ * One entry of a Map. `key` is the token a journey submits; `value` is
179
+ * what the customer reads — either one string, or one string per
180
+ * language. Every entry of a Map must agree on which of the two it uses.
181
+ *
182
+ */
183
+ MapEntry,
184
+ .../**
185
+ * One entry of a Map. `key` is the token a journey submits; `value` is
186
+ * what the customer reads — either one string, or one string per
187
+ * language. Every entry of a Map must agree on which of the two it uses.
188
+ *
189
+ */
190
+ MapEntry[]
171
191
  ];
172
192
  }
193
+ /**
194
+ * A string translated per language. Keys are language codes (e.g. `de`,
195
+ * `en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses
196
+ * everywhere else. Must match LANGUAGE_KEY_PATTERN in
197
+ * src/core/value-types.ts — the two are not otherwise linked.
198
+ *
199
+ */
200
+ export interface StringTranslations {
201
+ [name: string]: string;
202
+ }
173
203
  }
174
204
  }
175
205
  declare namespace Paths {
@@ -481,7 +511,6 @@ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
481
511
  type EnvironmentGroup = Components.Schemas.EnvironmentGroup;
482
512
  type EnvironmentGroupList = Components.Schemas.EnvironmentGroupList;
483
513
  type EnvironmentGroupUpsertRequest = Components.Schemas.EnvironmentGroupUpsertRequest;
484
- type EnvironmentOption = Components.Schemas.EnvironmentOption;
485
514
  type EnvironmentValue = Components.Schemas.EnvironmentValue;
486
515
  type EnvironmentValueType = Components.Schemas.EnvironmentValueType;
487
516
  type EnvironmentVariable = Components.Schemas.EnvironmentVariable;
@@ -489,6 +518,8 @@ type EnvironmentVariableCreateRequest = Components.Schemas.EnvironmentVariableCr
489
518
  type EnvironmentVariableList = Components.Schemas.EnvironmentVariableList;
490
519
  type EnvironmentVariableListItem = Components.Schemas.EnvironmentVariableListItem;
491
520
  type EnvironmentVariableUpdateRequest = Components.Schemas.EnvironmentVariableUpdateRequest;
492
- type OptionsValue = Components.Schemas.OptionsValue;
521
+ type MapEntry = Components.Schemas.MapEntry;
522
+ type MapValue = Components.Schemas.MapValue;
523
+ type StringTranslations = Components.Schemas.StringTranslations;
493
524
 
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 };
525
+ export { type Client as C, type EnvironmentGroup as E, type MapEntry as M, type OperationMethods as O, Paths as P, type StringTranslations as S, 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 _chunk2AZIGIR2cjs = require('./chunk-2AZIGIR2.cjs');
161
+ var _chunkYZ2YWRG7cjs = require('./chunk-YZ2YWRG7.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 = _chunk2AZIGIR2cjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkYZ2YWRG7cjs.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) => _chunk2AZIGIR2cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkYZ2YWRG7cjs.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 _chunk2AZIGIR2cjs.createApiHandle.call(void 0, {
604
+ return _chunkYZ2YWRG7cjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunk2AZIGIR2cjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkYZ2YWRG7cjs.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) => _chunk2AZIGIR2cjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkYZ2YWRG7cjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunk2AZIGIR2cjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkYZ2YWRG7cjs.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 = _chunk2AZIGIR2cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk2AZIGIR2cjs.help; exports.openapi = _chunk2AZIGIR2cjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkYZ2YWRG7cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkYZ2YWRG7cjs.help; exports.openapi = _chunkYZ2YWRG7cjs.openapi;
package/dist/index.d.cts CHANGED
@@ -23,9 +23,9 @@ import { C as Client$g } from './design.d-CYHbiaq_.cjs';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.cjs';
24
24
  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
- import { C as Client$k } from './entity.d-C3WddgVt.cjs';
26
+ import { C as Client$k } from './entity.d-CkFElDWZ.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.cjs';
28
- import { C as Client$m } from './environments.d-840_mC07.cjs';
28
+ import { C as Client$m } from './environments.d-DVgvq0wo.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
@@ -23,9 +23,9 @@ import { C as Client$g } from './design.d-CYHbiaq_.js';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.js';
24
24
  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
- import { C as Client$k } from './entity.d-C3WddgVt.js';
26
+ import { C as Client$k } from './entity.d-CkFElDWZ.js';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.js';
28
- import { C as Client$m } from './environments.d-840_mC07.js';
28
+ import { C as Client$m } from './environments.d-DVgvq0wo.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-X3SRAHIZ.js";
161
+ } from "./chunk-HS4W3GY7.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
@@ -36,8 +36,9 @@ const { data } = await environmentsClient.listEnvironmentVariables(...)
36
36
 
37
37
  **Schemas**
38
38
  - [`EnvironmentValueType`](#environmentvaluetype)
39
- - [`EnvironmentOption`](#environmentoption)
40
- - [`OptionsValue`](#optionsvalue)
39
+ - [`StringTranslations`](#stringtranslations)
40
+ - [`MapEntry`](#mapentry)
41
+ - [`MapValue`](#mapvalue)
41
42
  - [`EnvironmentValue`](#environmentvalue)
42
43
  - [`EnvironmentVariable`](#environmentvariable)
43
44
  - [`EnvironmentVariableListItem`](#environmentvariablelistitem)
@@ -291,37 +292,48 @@ const { data } = await client.deleteEnvironmentVariable({
291
292
  ### `EnvironmentValueType`
292
293
 
293
294
  The structure a variable's value holds. `SecretString` is encrypted at rest and
294
- its value is never returned. `Text`, `Number`, `Boolean` and `Options` may be
295
+ its value is never returned. `Text`, `Number`, `Boolean` and `Map` may be
295
296
  served to browser-facing consumers; `String` and `SecretString` may not.
296
297
 
297
298
 
298
299
  ```ts
299
- type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
300
+ type EnvironmentValueType = "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
300
301
  ```
301
302
 
302
- ### `EnvironmentOption`
303
+ ### `StringTranslations`
304
+
305
+ A string translated per language. Keys are language codes (e.g. `de`,
306
+ `en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses
307
+ everywhere else. Must match LANGUAGE_KEY_PATTERN in
308
+ src/core/value-types.ts — the two are not otherwise linked.
309
+
310
+
311
+ ```ts
312
+ type StringTranslations = Record<string, string>
313
+ ```
314
+
315
+ ### `MapEntry`
316
+
317
+ One entry of a Map. `key` is the token a journey submits; `value` is
318
+ what the customer reads — either one string, or one string per
319
+ language. Every entry of a Map must agree on which of the two it uses.
320
+
303
321
 
304
322
  ```ts
305
- type EnvironmentOption = {
306
- value: string
307
- label: string
308
- } | {
309
- value: string
310
- labels: Record<string, string>
323
+ type MapEntry = {
324
+ key: string
325
+ value: string | Record<string, string>
311
326
  }
312
327
  ```
313
328
 
314
- ### `OptionsValue`
329
+ ### `MapValue`
315
330
 
316
331
  ```ts
317
- type OptionsValue = {
332
+ type MapValue = {
318
333
  fallbackLanguage?: string
319
334
  options: Array<{
320
- value: string
321
- label: string
322
- } | {
323
- value: string
324
- labels: Record<string, string>
335
+ key: string
336
+ value: string | Record<string, string>
325
337
  }>
326
338
  }
327
339
  ```
@@ -330,7 +342,7 @@ type OptionsValue = {
330
342
 
331
343
  A variable's value. The JSON type corresponds to the variable's `type`:
332
344
  `String`, `SecretString` and `Text` are strings, `Number` is a number,
333
- `Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754
345
+ `Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754
334
346
  doubles; integers above 2^53 may lose precision on round-trip.
335
347
 
336
348
 
@@ -338,11 +350,8 @@ doubles; integers above 2^53 may lose precision on round-trip.
338
350
  type EnvironmentValue = string | number | boolean | {
339
351
  fallbackLanguage?: string
340
352
  options: Array<{
341
- value: string
342
- label: string
343
- } | {
344
- value: string
345
- labels: Record<string, string>
353
+ key: string
354
+ value: string | Record<string, string>
346
355
  }>
347
356
  }
348
357
  ```
@@ -352,17 +361,14 @@ type EnvironmentValue = string | number | boolean | {
352
361
  ```ts
353
362
  type EnvironmentVariable = {
354
363
  key: string
355
- type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
364
+ type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
356
365
  description?: string
357
366
  group?: string
358
367
  value?: string | number | boolean | {
359
368
  fallbackLanguage?: string
360
369
  options: Array<{
370
+ key: { ... }
361
371
  value: { ... }
362
- label: { ... }
363
- } | {
364
- value: { ... }
365
- labels: { ... }
366
372
  }>
367
373
  }
368
374
  protected?: boolean
@@ -376,17 +382,14 @@ type EnvironmentVariable = {
376
382
  ```ts
377
383
  type EnvironmentVariableListItem = {
378
384
  key: string
379
- type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
385
+ type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
380
386
  description?: string
381
387
  group?: string
382
388
  value?: string | number | boolean | {
383
389
  fallbackLanguage?: string
384
390
  options: Array<{
391
+ key: { ... }
385
392
  value: { ... }
386
- label: { ... }
387
- } | {
388
- value: { ... }
389
- labels: { ... }
390
393
  }>
391
394
  }
392
395
  protected?: boolean
@@ -401,7 +404,7 @@ type EnvironmentVariableListItem = {
401
404
  type EnvironmentVariableList = {
402
405
  items: Array<{
403
406
  key: string
404
- type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
407
+ type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
405
408
  description?: string
406
409
  group?: string
407
410
  value?: string | number | boolean | {
@@ -420,17 +423,14 @@ type EnvironmentVariableList = {
420
423
  ```ts
421
424
  type EnvironmentVariableCreateRequest = {
422
425
  key: string
423
- type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
426
+ type: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
424
427
  description?: string
425
428
  group?: string
426
429
  value?: string | number | boolean | {
427
430
  fallbackLanguage?: string
428
431
  options: Array<{
432
+ key: { ... }
429
433
  value: { ... }
430
- label: { ... }
431
- } | {
432
- value: { ... }
433
- labels: { ... }
434
434
  }>
435
435
  }
436
436
  protected?: boolean
@@ -441,15 +441,12 @@ type EnvironmentVariableCreateRequest = {
441
441
 
442
442
  ```ts
443
443
  type EnvironmentVariableUpdateRequest = {
444
- type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Options"
444
+ type?: "String" | "SecretString" | "Text" | "Number" | "Boolean" | "Map"
445
445
  value?: string | number | boolean | {
446
446
  fallbackLanguage?: string
447
447
  options: Array<{
448
+ key: { ... }
448
449
  value: { ... }
449
- label: { ... }
450
- } | {
451
- value: { ... }
452
- labels: { ... }
453
450
  }>
454
451
  }
455
452
  description?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.19.12",
3
+ "version": "2.19.13",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",