@frontstackdev/cli 0.0.0-canary-20250917104234 → 0.0.0-canary-20250924153914

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.
@@ -112,7 +112,7 @@ export interface FrontstackClient {
112
112
  context: {
113
113
  region: string
114
114
  locale: string
115
- },
115
+ },
116
116
  token: ContextToken
117
117
  ) => Promise<Context>;
118
118
  }
@@ -129,8 +129,8 @@ const invoke = async (path: string, method: Method, payload: any, headers: any)
129
129
  const _headers: any = {
130
130
  'Content-Type': 'application/json',
131
131
  'Accept': 'application/json',
132
- {{#if components.parameters.FsPreviewKey.required}}
133
- 'fs-preview-key': '{{components.parameters.FsPreviewKey.schema.enum.[0]}}',
132
+ {{#if components.parameters.FsVersionToken.required}}
133
+ 'fs-version': '{{components.parameters.FsVersionToken.schema.enum.[0]}}',
134
134
  {{/if}}
135
135
  {{#if components.parameters.FsSecret.required}}
136
136
  'fs-secret': '{{components.parameters.FsSecret.schema.enum.[0]}}',
@@ -181,7 +181,7 @@ const client: FrontstackClient = {
181
181
  headers['fs-request-url'] = config.requestUrl
182
182
  }
183
183
  if (config?.contextKey !== undefined) {
184
- headers["fs-token"] = config.contextKey;
184
+ headers["fs-context"] = config.contextKey;
185
185
  }
186
186
 
187
187
  return (await invoke(endpoint, 'POST', payload, headers))._data
@@ -206,7 +206,7 @@ const client: FrontstackClient = {
206
206
  headers['fs-request-url'] = config.requestUrl
207
207
  }
208
208
  if (config?.contextKey !== undefined) {
209
- headers["fs-token"] = config.contextKey;
209
+ headers["fs-context"] = config.contextKey;
210
210
  }
211
211
 
212
212
  return (await invoke(endpoint, 'POST', payload, headers))._data
@@ -224,7 +224,7 @@ const client: FrontstackClient = {
224
224
  headers['fs-request-url'] = config.requestUrl
225
225
  }
226
226
  if (config?.contextKey !== undefined) {
227
- headers["fs-token"] = config.contextKey;
227
+ headers["fs-context"] = config.contextKey;
228
228
  }
229
229
 
230
230
  return (await invoke(endpoint, 'GET', null, headers))._data
@@ -237,7 +237,7 @@ const client: FrontstackClient = {
237
237
  let endpoint: string = `${servers[0].url}/context/token`;
238
238
 
239
239
  let headers: Record<string, string> = {
240
- 'fs-token': token
240
+ 'fs-context': token
241
241
  }
242
242
 
243
243
  return (await invoke(endpoint, 'GET', null, headers))._data
@@ -252,7 +252,7 @@ const client: FrontstackClient = {
252
252
  const requestHeaders: Record<string, string> = {}
253
253
 
254
254
  if (token) {
255
- requestHeaders["fs-token"] = token;
255
+ requestHeaders["fs-context"] = token;
256
256
  }
257
257
 
258
258
  const {
@@ -260,7 +260,7 @@ const client: FrontstackClient = {
260
260
  headers: responseHeaders
261
261
  } = await invoke(endpoint, 'GET', null, requestHeaders)
262
262
 
263
- return [_data, responseHeaders.get('fs-token')!]
263
+ return [_data, responseHeaders.get('fs-context')!]
264
264
  },
265
265
 
266
266
  /**
@@ -270,7 +270,7 @@ const client: FrontstackClient = {
270
270
  let endpoint: string = `${servers[0].url}/context`;
271
271
 
272
272
  let headers: Record<string, string> = {
273
- 'fs-token': token
273
+ 'fs-context': token
274
274
  }
275
275
 
276
276
  return (await invoke(endpoint, 'PATCH', context, headers))._data
package/dist/version CHANGED
@@ -1 +1 @@
1
- 0.0.0-canary-20250917104234
1
+ 0.0.0-canary-20250924153914
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontstackdev/cli",
3
- "version": "0.0.0-canary-20250917104234",
3
+ "version": "0.0.0-canary-20250924153914",
4
4
  "description": "frontstack CLI for managing projects",
5
5
  "type": "module",
6
6
  "module": "dist/frontstack.mjs",