@vorionsys/shared-constants 1.0.1 → 1.0.2

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.
@@ -1,253 +0,0 @@
1
- import {
2
- TrustTier
3
- } from "./chunk-PHL3CB53.js";
4
-
5
- // src/rate-limits.ts
6
- var RATE_LIMITS = {
7
- [0 /* T0_SANDBOX */]: {
8
- requestsPerSecond: 1,
9
- requestsPerMinute: 10,
10
- requestsPerHour: 100,
11
- requestsPerDay: 500,
12
- burstLimit: 2,
13
- maxPayloadBytes: 1024 * 10,
14
- // 10 KB
15
- maxResponseBytes: 1024 * 100,
16
- // 100 KB
17
- connectionTimeoutMs: 5e3,
18
- requestTimeoutMs: 1e4
19
- },
20
- [1 /* T1_OBSERVED */]: {
21
- requestsPerSecond: 2,
22
- requestsPerMinute: 30,
23
- requestsPerHour: 500,
24
- requestsPerDay: 2e3,
25
- burstLimit: 5,
26
- maxPayloadBytes: 1024 * 50,
27
- // 50 KB
28
- maxResponseBytes: 1024 * 500,
29
- // 500 KB
30
- connectionTimeoutMs: 5e3,
31
- requestTimeoutMs: 15e3
32
- },
33
- [2 /* T2_PROVISIONAL */]: {
34
- requestsPerSecond: 5,
35
- requestsPerMinute: 100,
36
- requestsPerHour: 2e3,
37
- requestsPerDay: 1e4,
38
- burstLimit: 10,
39
- maxPayloadBytes: 1024 * 100,
40
- // 100 KB
41
- maxResponseBytes: 1024 * 1024,
42
- // 1 MB
43
- connectionTimeoutMs: 1e4,
44
- requestTimeoutMs: 3e4
45
- },
46
- [3 /* T3_MONITORED */]: {
47
- requestsPerSecond: 10,
48
- requestsPerMinute: 300,
49
- requestsPerHour: 5e3,
50
- requestsPerDay: 5e4,
51
- burstLimit: 20,
52
- maxPayloadBytes: 1024 * 500,
53
- // 500 KB
54
- maxResponseBytes: 1024 * 1024 * 5,
55
- // 5 MB
56
- connectionTimeoutMs: 1e4,
57
- requestTimeoutMs: 6e4
58
- },
59
- [4 /* T4_STANDARD */]: {
60
- requestsPerSecond: 20,
61
- requestsPerMinute: 600,
62
- requestsPerHour: 1e4,
63
- requestsPerDay: 1e5,
64
- burstLimit: 50,
65
- maxPayloadBytes: 1024 * 1024,
66
- // 1 MB
67
- maxResponseBytes: 1024 * 1024 * 10,
68
- // 10 MB
69
- connectionTimeoutMs: 15e3,
70
- requestTimeoutMs: 12e4
71
- },
72
- [5 /* T5_TRUSTED */]: {
73
- requestsPerSecond: 50,
74
- requestsPerMinute: 1500,
75
- requestsPerHour: 3e4,
76
- requestsPerDay: 3e5,
77
- burstLimit: 100,
78
- maxPayloadBytes: 1024 * 1024 * 5,
79
- // 5 MB
80
- maxResponseBytes: 1024 * 1024 * 50,
81
- // 50 MB
82
- connectionTimeoutMs: 3e4,
83
- requestTimeoutMs: 3e5
84
- },
85
- [6 /* T6_CERTIFIED */]: {
86
- requestsPerSecond: 100,
87
- requestsPerMinute: 3e3,
88
- requestsPerHour: 1e5,
89
- requestsPerDay: 1e6,
90
- burstLimit: 200,
91
- maxPayloadBytes: 1024 * 1024 * 10,
92
- // 10 MB
93
- maxResponseBytes: 1024 * 1024 * 100,
94
- // 100 MB
95
- connectionTimeoutMs: 6e4,
96
- requestTimeoutMs: 6e5
97
- },
98
- [7 /* T7_AUTONOMOUS */]: {
99
- requestsPerSecond: 500,
100
- requestsPerMinute: 1e4,
101
- requestsPerHour: 5e5,
102
- requestsPerDay: 5e6,
103
- burstLimit: 500,
104
- maxPayloadBytes: 1024 * 1024 * 50,
105
- // 50 MB
106
- maxResponseBytes: 1024 * 1024 * 500,
107
- // 500 MB
108
- connectionTimeoutMs: 12e4,
109
- requestTimeoutMs: 12e5
110
- }
111
- };
112
- function getRateLimits(tier) {
113
- return RATE_LIMITS[tier];
114
- }
115
- function getMinTierForLimits(config) {
116
- const tiers = Object.values(TrustTier).filter((t) => typeof t === "number");
117
- for (const tier of tiers) {
118
- const limits = RATE_LIMITS[tier];
119
- if ((config.requestsPerSecond === void 0 || limits.requestsPerSecond >= config.requestsPerSecond) && (config.requestsPerMinute === void 0 || limits.requestsPerMinute >= config.requestsPerMinute) && (config.requestsPerHour === void 0 || limits.requestsPerHour >= config.requestsPerHour) && (config.requestsPerDay === void 0 || limits.requestsPerDay >= config.requestsPerDay)) {
120
- return tier;
121
- }
122
- }
123
- return 7 /* T7_AUTONOMOUS */;
124
- }
125
- function wouldExceedLimit(tier, window, currentCount) {
126
- const limits = RATE_LIMITS[tier];
127
- switch (window) {
128
- case "second":
129
- return currentCount >= limits.requestsPerSecond;
130
- case "minute":
131
- return currentCount >= limits.requestsPerMinute;
132
- case "hour":
133
- return currentCount >= limits.requestsPerHour;
134
- case "day":
135
- return currentCount >= limits.requestsPerDay;
136
- }
137
- }
138
- function formatRateLimit(tier) {
139
- const limits = RATE_LIMITS[tier];
140
- return `${limits.requestsPerSecond}/s, ${limits.requestsPerMinute}/min, ${limits.requestsPerHour}/hr`;
141
- }
142
- var TIER_QUOTAS = {
143
- [0 /* T0_SANDBOX */]: {
144
- monthlyApiCalls: 1e3,
145
- monthlyComputeUnits: 100,
146
- monthlyStorageBytes: 1024 * 1024 * 10,
147
- // 10 MB
148
- monthlyBandwidthBytes: 1024 * 1024 * 100,
149
- // 100 MB
150
- maxAgents: 1,
151
- maxWebhooks: 1,
152
- maxTeamMembers: 1
153
- },
154
- [1 /* T1_OBSERVED */]: {
155
- monthlyApiCalls: 1e4,
156
- monthlyComputeUnits: 1e3,
157
- monthlyStorageBytes: 1024 * 1024 * 100,
158
- // 100 MB
159
- monthlyBandwidthBytes: 1024 * 1024 * 1024,
160
- // 1 GB
161
- maxAgents: 5,
162
- maxWebhooks: 5,
163
- maxTeamMembers: 3
164
- },
165
- [2 /* T2_PROVISIONAL */]: {
166
- monthlyApiCalls: 5e4,
167
- monthlyComputeUnits: 5e3,
168
- monthlyStorageBytes: 1024 * 1024 * 500,
169
- // 500 MB
170
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 5,
171
- // 5 GB
172
- maxAgents: 10,
173
- maxWebhooks: 10,
174
- maxTeamMembers: 5
175
- },
176
- [3 /* T3_MONITORED */]: {
177
- monthlyApiCalls: 25e4,
178
- monthlyComputeUnits: 25e3,
179
- monthlyStorageBytes: 1024 * 1024 * 1024 * 2,
180
- // 2 GB
181
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 25,
182
- // 25 GB
183
- maxAgents: 50,
184
- maxWebhooks: 25,
185
- maxTeamMembers: 10
186
- },
187
- [4 /* T4_STANDARD */]: {
188
- monthlyApiCalls: 1e6,
189
- monthlyComputeUnits: 1e5,
190
- monthlyStorageBytes: 1024 * 1024 * 1024 * 10,
191
- // 10 GB
192
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 100,
193
- // 100 GB
194
- maxAgents: 200,
195
- maxWebhooks: 50,
196
- maxTeamMembers: 25
197
- },
198
- [5 /* T5_TRUSTED */]: {
199
- monthlyApiCalls: 5e6,
200
- monthlyComputeUnits: 5e5,
201
- monthlyStorageBytes: 1024 * 1024 * 1024 * 50,
202
- // 50 GB
203
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 500,
204
- // 500 GB
205
- maxAgents: 1e3,
206
- maxWebhooks: 100,
207
- maxTeamMembers: 50
208
- },
209
- [6 /* T6_CERTIFIED */]: {
210
- monthlyApiCalls: 25e6,
211
- monthlyComputeUnits: 25e5,
212
- monthlyStorageBytes: 1024 * 1024 * 1024 * 250,
213
- // 250 GB
214
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 2500,
215
- // 2.5 TB
216
- maxAgents: 5e3,
217
- maxWebhooks: 250,
218
- maxTeamMembers: 100
219
- },
220
- [7 /* T7_AUTONOMOUS */]: {
221
- monthlyApiCalls: -1,
222
- // Unlimited
223
- monthlyComputeUnits: -1,
224
- // Unlimited
225
- monthlyStorageBytes: 1024 * 1024 * 1024 * 1024,
226
- // 1 TB
227
- monthlyBandwidthBytes: 1024 * 1024 * 1024 * 1e4,
228
- // 10 TB
229
- maxAgents: -1,
230
- // Unlimited
231
- maxWebhooks: -1,
232
- // Unlimited
233
- maxTeamMembers: -1
234
- // Unlimited
235
- }
236
- };
237
- function getQuota(tier) {
238
- return TIER_QUOTAS[tier];
239
- }
240
- function isUnlimited(value) {
241
- return value === -1;
242
- }
243
-
244
- export {
245
- RATE_LIMITS,
246
- getRateLimits,
247
- getMinTierForLimits,
248
- wouldExceedLimit,
249
- formatRateLimit,
250
- TIER_QUOTAS,
251
- getQuota,
252
- isUnlimited
253
- };
@@ -1,159 +0,0 @@
1
- // src/tiers.ts
2
- var TrustTier = /* @__PURE__ */ ((TrustTier2) => {
3
- TrustTier2[TrustTier2["T0_SANDBOX"] = 0] = "T0_SANDBOX";
4
- TrustTier2[TrustTier2["T1_OBSERVED"] = 1] = "T1_OBSERVED";
5
- TrustTier2[TrustTier2["T2_PROVISIONAL"] = 2] = "T2_PROVISIONAL";
6
- TrustTier2[TrustTier2["T3_MONITORED"] = 3] = "T3_MONITORED";
7
- TrustTier2[TrustTier2["T4_STANDARD"] = 4] = "T4_STANDARD";
8
- TrustTier2[TrustTier2["T5_TRUSTED"] = 5] = "T5_TRUSTED";
9
- TrustTier2[TrustTier2["T6_CERTIFIED"] = 6] = "T6_CERTIFIED";
10
- TrustTier2[TrustTier2["T7_AUTONOMOUS"] = 7] = "T7_AUTONOMOUS";
11
- return TrustTier2;
12
- })(TrustTier || {});
13
- var TIER_THRESHOLDS = {
14
- [0 /* T0_SANDBOX */]: {
15
- min: 0,
16
- max: 199,
17
- name: "Sandbox",
18
- description: "Isolated, no external access, observation only",
19
- color: "#78716c",
20
- textColor: "#ffffff"
21
- },
22
- [1 /* T1_OBSERVED */]: {
23
- min: 200,
24
- max: 349,
25
- name: "Observed",
26
- description: "Read-only, sandboxed execution, monitored",
27
- color: "#ef4444",
28
- textColor: "#ffffff"
29
- },
30
- [2 /* T2_PROVISIONAL */]: {
31
- min: 350,
32
- max: 500,
33
- name: "Provisional",
34
- description: "Basic operations, heavy supervision",
35
- color: "#f97316",
36
- textColor: "#ffffff"
37
- },
38
- [3 /* T3_MONITORED */]: {
39
- min: 501,
40
- max: 649,
41
- name: "Monitored",
42
- description: "Standard operations with continuous monitoring",
43
- color: "#eab308",
44
- textColor: "#000000"
45
- },
46
- [4 /* T4_STANDARD */]: {
47
- min: 650,
48
- max: 799,
49
- name: "Standard",
50
- description: "External API access, policy-governed",
51
- color: "#22c55e",
52
- textColor: "#ffffff"
53
- },
54
- [5 /* T5_TRUSTED */]: {
55
- min: 800,
56
- max: 875,
57
- name: "Trusted",
58
- description: "Cross-agent communication, delegated tasks",
59
- color: "#3b82f6",
60
- textColor: "#ffffff"
61
- },
62
- [6 /* T6_CERTIFIED */]: {
63
- min: 876,
64
- max: 950,
65
- name: "Certified",
66
- description: "Admin tasks, agent spawning, minimal oversight",
67
- color: "#8b5cf6",
68
- textColor: "#ffffff"
69
- },
70
- [7 /* T7_AUTONOMOUS */]: {
71
- min: 951,
72
- max: 1e3,
73
- name: "Autonomous",
74
- description: "Full autonomy, self-governance, strategic only",
75
- color: "#06b6d4",
76
- textColor: "#ffffff"
77
- }
78
- };
79
- function scoreToTier(score) {
80
- if (score < 0 || score > 1e3) {
81
- throw new Error(`Trust score must be between 0 and 1000, got ${score}`);
82
- }
83
- if (score >= 951) return 7 /* T7_AUTONOMOUS */;
84
- if (score >= 876) return 6 /* T6_CERTIFIED */;
85
- if (score >= 800) return 5 /* T5_TRUSTED */;
86
- if (score >= 650) return 4 /* T4_STANDARD */;
87
- if (score >= 501) return 3 /* T3_MONITORED */;
88
- if (score >= 350) return 2 /* T2_PROVISIONAL */;
89
- if (score >= 200) return 1 /* T1_OBSERVED */;
90
- return 0 /* T0_SANDBOX */;
91
- }
92
- function getTierThreshold(tier) {
93
- return TIER_THRESHOLDS[tier];
94
- }
95
- function getTierName(tier) {
96
- return TIER_THRESHOLDS[tier].name;
97
- }
98
- function getTierColor(tier) {
99
- return TIER_THRESHOLDS[tier].color;
100
- }
101
- function getTierMinScore(tier) {
102
- return TIER_THRESHOLDS[tier].min;
103
- }
104
- function getTierMaxScore(tier) {
105
- return TIER_THRESHOLDS[tier].max;
106
- }
107
- function meetsTierRequirement(score, minTier) {
108
- const actualTier = scoreToTier(score);
109
- return actualTier >= minTier;
110
- }
111
- function getTierCode(tier) {
112
- return `T${tier}`;
113
- }
114
- function parseTier(input) {
115
- const normalized = input.toUpperCase().trim();
116
- const tMatch = normalized.match(/^T?(\d)$/);
117
- if (tMatch) {
118
- const num = parseInt(tMatch[1], 10);
119
- if (num >= 0 && num <= 7) {
120
- return num;
121
- }
122
- }
123
- const nameMap = {
124
- SANDBOX: 0 /* T0_SANDBOX */,
125
- OBSERVED: 1 /* T1_OBSERVED */,
126
- PROVISIONAL: 2 /* T2_PROVISIONAL */,
127
- MONITORED: 3 /* T3_MONITORED */,
128
- STANDARD: 4 /* T4_STANDARD */,
129
- TRUSTED: 5 /* T5_TRUSTED */,
130
- CERTIFIED: 6 /* T6_CERTIFIED */,
131
- AUTONOMOUS: 7 /* T7_AUTONOMOUS */
132
- };
133
- return nameMap[normalized] ?? null;
134
- }
135
- var ALL_TIERS = [
136
- 0 /* T0_SANDBOX */,
137
- 1 /* T1_OBSERVED */,
138
- 2 /* T2_PROVISIONAL */,
139
- 3 /* T3_MONITORED */,
140
- 4 /* T4_STANDARD */,
141
- 5 /* T5_TRUSTED */,
142
- 6 /* T6_CERTIFIED */,
143
- 7 /* T7_AUTONOMOUS */
144
- ];
145
-
146
- export {
147
- TrustTier,
148
- TIER_THRESHOLDS,
149
- scoreToTier,
150
- getTierThreshold,
151
- getTierName,
152
- getTierColor,
153
- getTierMinScore,
154
- getTierMaxScore,
155
- meetsTierRequirement,
156
- getTierCode,
157
- parseTier,
158
- ALL_TIERS
159
- };
@@ -1,250 +0,0 @@
1
- /**
2
- * @vorionsys/shared-constants - API Versions
3
- *
4
- * Centralized API version management across all services
5
- * Ensures consistent versioning strategy
6
- *
7
- * @see https://cognigate.dev/docs/versioning
8
- */
9
-
10
- // =============================================================================
11
- // VERSION STATUS
12
- // =============================================================================
13
-
14
- export enum VersionStatus {
15
- /** Currently in development, not available */
16
- DEVELOPMENT = 'development',
17
-
18
- /** Available as preview/beta */
19
- PREVIEW = 'preview',
20
-
21
- /** Stable and recommended */
22
- STABLE = 'stable',
23
-
24
- /** Still supported but deprecated */
25
- DEPRECATED = 'deprecated',
26
-
27
- /** No longer supported */
28
- RETIRED = 'retired',
29
- }
30
-
31
- // =============================================================================
32
- // API VERSION DEFINITIONS
33
- // =============================================================================
34
-
35
- export interface ApiVersionDefinition {
36
- /** Version identifier (e.g., "v1") */
37
- version: string;
38
-
39
- /** Full version number (e.g., "1.0.0") */
40
- fullVersion: string;
41
-
42
- /** Release date */
43
- releaseDate: string;
44
-
45
- /** End of support date (if deprecated/retired) */
46
- endOfLife?: string;
47
-
48
- /** Current status */
49
- status: VersionStatus;
50
-
51
- /** Changelog URL */
52
- changelogUrl?: string;
53
-
54
- /** Migration guide URL (if deprecated) */
55
- migrationUrl?: string;
56
- }
57
-
58
- // =============================================================================
59
- // COGNIGATE API VERSIONS
60
- // =============================================================================
61
-
62
- export const COGNIGATE_VERSIONS: Record<string, ApiVersionDefinition> = {
63
- v1: {
64
- version: 'v1',
65
- fullVersion: '1.0.0',
66
- releaseDate: '2026-02-01',
67
- status: VersionStatus.STABLE,
68
- changelogUrl: 'https://cognigate.dev/changelog/v1',
69
- },
70
- } as const;
71
-
72
- export const COGNIGATE_CURRENT_VERSION = 'v1';
73
- export const COGNIGATE_DEFAULT_VERSION = 'v1';
74
-
75
- // =============================================================================
76
- // AGENT ANCHOR TRUST API VERSIONS
77
- // =============================================================================
78
-
79
- export const TRUST_API_VERSIONS: Record<string, ApiVersionDefinition> = {
80
- v1: {
81
- version: 'v1',
82
- fullVersion: '1.0.0',
83
- releaseDate: '2026-02-01',
84
- status: VersionStatus.STABLE,
85
- changelogUrl: 'https://trust.agentanchorai.com/changelog/v1',
86
- },
87
- } as const;
88
-
89
- export const TRUST_CURRENT_VERSION = 'v1';
90
-
91
- // =============================================================================
92
- // AGENT ANCHOR LOGIC API VERSIONS
93
- // =============================================================================
94
-
95
- export const LOGIC_API_VERSIONS: Record<string, ApiVersionDefinition> = {
96
- v1: {
97
- version: 'v1',
98
- fullVersion: '1.0.0',
99
- releaseDate: '2026-02-01',
100
- status: VersionStatus.PREVIEW,
101
- changelogUrl: 'https://logic.agentanchorai.com/changelog/v1',
102
- },
103
- } as const;
104
-
105
- export const LOGIC_CURRENT_VERSION = 'v1';
106
-
107
- // =============================================================================
108
- // BASIS SPEC VERSIONS
109
- // =============================================================================
110
-
111
- export const BASIS_VERSIONS: Record<string, ApiVersionDefinition> = {
112
- v1: {
113
- version: 'v1',
114
- fullVersion: '1.0.0',
115
- releaseDate: '2026-02-01',
116
- status: VersionStatus.STABLE,
117
- changelogUrl: 'https://basis.vorion.org/changelog',
118
- },
119
- } as const;
120
-
121
- export const BASIS_CURRENT_VERSION = 'v1';
122
- export const BASIS_SPEC_VERSION = '1.0.0';
123
-
124
- // =============================================================================
125
- // CAR SPEC VERSIONS
126
- // =============================================================================
127
-
128
- export const CAR_SPEC_VERSIONS: Record<string, ApiVersionDefinition> = {
129
- v1: {
130
- version: 'v1',
131
- fullVersion: '1.0.0',
132
- releaseDate: '2026-02-01',
133
- status: VersionStatus.STABLE,
134
- changelogUrl: 'https://carid.vorion.org/changelog',
135
- },
136
- } as const;
137
-
138
- export const CAR_SPEC_CURRENT_VERSION = 'v1';
139
-
140
- // =============================================================================
141
- // ALL API VERSIONS
142
- // =============================================================================
143
-
144
- export const API_VERSIONS = {
145
- cognigate: COGNIGATE_VERSIONS,
146
- trust: TRUST_API_VERSIONS,
147
- logic: LOGIC_API_VERSIONS,
148
- basis: BASIS_VERSIONS,
149
- carSpec: CAR_SPEC_VERSIONS,
150
- } as const;
151
-
152
- // =============================================================================
153
- // HELPER FUNCTIONS
154
- // =============================================================================
155
-
156
- /**
157
- * Get the current stable version for a service
158
- */
159
- export function getCurrentVersion(
160
- service: 'cognigate' | 'trust' | 'logic' | 'basis' | 'carSpec',
161
- ): string {
162
- switch (service) {
163
- case 'cognigate':
164
- return COGNIGATE_CURRENT_VERSION;
165
- case 'trust':
166
- return TRUST_CURRENT_VERSION;
167
- case 'logic':
168
- return LOGIC_CURRENT_VERSION;
169
- case 'basis':
170
- return BASIS_CURRENT_VERSION;
171
- case 'carSpec':
172
- return CAR_SPEC_CURRENT_VERSION;
173
- }
174
- }
175
-
176
- /**
177
- * Get version definition
178
- */
179
- export function getVersionDefinition(
180
- service: 'cognigate' | 'trust' | 'logic' | 'basis' | 'carSpec',
181
- version: string,
182
- ): ApiVersionDefinition | undefined {
183
- return API_VERSIONS[service][version];
184
- }
185
-
186
- /**
187
- * Check if a version is still supported
188
- */
189
- export function isVersionSupported(
190
- service: 'cognigate' | 'trust' | 'logic' | 'basis' | 'carSpec',
191
- version: string,
192
- ): boolean {
193
- const def = getVersionDefinition(service, version);
194
- if (!def) return false;
195
- return def.status !== VersionStatus.RETIRED;
196
- }
197
-
198
- /**
199
- * Check if a version is deprecated
200
- */
201
- export function isVersionDeprecated(
202
- service: 'cognigate' | 'trust' | 'logic' | 'basis' | 'carSpec',
203
- version: string,
204
- ): boolean {
205
- const def = getVersionDefinition(service, version);
206
- if (!def) return false;
207
- return def.status === VersionStatus.DEPRECATED;
208
- }
209
-
210
- /**
211
- * Get all stable versions for a service
212
- */
213
- export function getStableVersions(
214
- service: 'cognigate' | 'trust' | 'logic' | 'basis' | 'carSpec',
215
- ): ApiVersionDefinition[] {
216
- return Object.values(API_VERSIONS[service]).filter(
217
- v => v.status === VersionStatus.STABLE,
218
- );
219
- }
220
-
221
- /**
222
- * Build versioned API URL
223
- */
224
- export function buildApiUrl(
225
- baseUrl: string,
226
- version: string,
227
- path: string,
228
- ): string {
229
- const cleanBase = baseUrl.replace(/\/$/, '');
230
- const cleanPath = path.replace(/^\//, '');
231
- return `${cleanBase}/${version}/${cleanPath}`;
232
- }
233
-
234
- // =============================================================================
235
- // HTTP HEADERS
236
- // =============================================================================
237
-
238
- export const VERSION_HEADERS = {
239
- /** Header to request specific API version */
240
- REQUEST_VERSION: 'X-API-Version',
241
-
242
- /** Header indicating actual API version used */
243
- RESPONSE_VERSION: 'X-API-Version',
244
-
245
- /** Header warning about deprecation */
246
- DEPRECATION_WARNING: 'X-Deprecation-Warning',
247
-
248
- /** Header with sunset date */
249
- SUNSET: 'Sunset',
250
- } as const;