@uniformdev/mesh-sdk 20.77.2-alpha.3.sha-e9420d8e77 → 20.79.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.
package/dist/index.d.mts CHANGED
@@ -1898,14 +1898,10 @@ declare const CSRF_HEADER_VALUE = "1";
1898
1898
  * BFF 401 body `code` when the delegation session is missing or the access token
1899
1899
  * is expired. Clients re-exchange the Mesh session token and retry once.
1900
1900
  * Do not use for other 401s.
1901
- *
1902
- * @deprecated This beta identity delegation API may change with breaking changes.
1903
1901
  */
1904
1902
  declare const DELEGATION_EXPIRED_CODE: "delegation_expired";
1905
1903
  /**
1906
1904
  * Human-readable message to pair with {@link DELEGATION_EXPIRED_CODE}.
1907
- *
1908
- * @deprecated This beta identity delegation API may change with breaking changes.
1909
1905
  */
1910
1906
  declare const DELEGATION_SESSION_EXPIRED_MESSAGE: "Delegation session expired.";
1911
1907
 
@@ -2013,7 +2009,6 @@ type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResource
2013
2009
  * Metadata for the dataResourceSelector location.
2014
2010
  * This location type allows custom UI for selecting JSON pointers within a data resource,
2015
2011
  * replacing the default JSON tree viewer in the dynamic token picker.
2016
- * @deprecated This is experimental functionality and is subject to change without notice.
2017
2012
  */
2018
2013
  type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
2019
2014
  /** The resolved data for the currently selected data resource */
@@ -2035,7 +2030,6 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
2035
2030
  * setValue: Call with a valid JSON pointer to select that path
2036
2031
  * getDataResource: Fetch data from the data connector using the current data source
2037
2032
  * editorState: Imperative API for inspecting/mutating the underlying composition / entry tree
2038
- * @deprecated This is experimental functionality and is subject to change without notice.
2039
2033
  */
2040
2034
  type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
2041
2035
 
@@ -2050,7 +2044,7 @@ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMet
2050
2044
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
2051
2045
 
2052
2046
  type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
2053
- /** editorState is an experimental replacement for rootNode. This may become deprecated in the future. */
2047
+ /** editorState is a replacement for rootNode. rootNode may become deprecated in the future. */
2054
2048
  rootNode: Omit<RootComponentInstance, 'slots' | '_data'> & {
2055
2049
  _editionId?: string;
2056
2050
  };
@@ -2283,8 +2277,6 @@ interface MeshParentConnection {
2283
2277
  /**
2284
2278
  * Returns a short-lived session token for identity delegation, or `undefined` when delegation
2285
2279
  * is not enabled for this integration.
2286
- *
2287
- * @deprecated This beta identity delegation API may change with breaking changes.
2288
2280
  */
2289
2281
  getSessionToken: () => Promise<string | undefined>;
2290
2282
  /**
@@ -2517,7 +2509,6 @@ type GetEditorStateLocation = {
2517
2509
  /**
2518
2510
  * Imperative API for interacting with the composition/entry editor state.
2519
2511
  * Provides non-reactive access to read and modify the editor state.
2520
- * @deprecated This is experimental functionality and is subject to change without notice.
2521
2512
  */
2522
2513
  editorState: EditorStateApi;
2523
2514
  };
@@ -2527,8 +2518,6 @@ type GetEditorStateLocationMaybe = {
2527
2518
  * Provides non-reactive access to read and modify the editor state.
2528
2519
  *
2529
2520
  * "undefined" means that the location is rendered outside of Canvas Editor context, e.g. Data Type testing.
2530
- *
2531
- * @deprecated This is experimental functionality and is subject to change without notice.
2532
2521
  */
2533
2522
  editorState: EditorStateApi | undefined;
2534
2523
  };
@@ -2655,8 +2644,8 @@ interface SetPropertyLocalizabilityCommonParams {
2655
2644
  * whose definition disallows it) and to resolve the parameter type for value fan-out.
2656
2645
  *
2657
2646
  * Mesh integrations must resolve this from the Uniform public API (using a service
2658
- * account API key today, or identity delegation in the future) — the editor frame does
2659
- * not expose component definitions to mesh apps.
2647
+ * account API key or identity delegation) — the editor frame does not expose component
2648
+ * definitions to mesh apps.
2660
2649
  */
2661
2650
  propertyDefinition: ComponentDefinitionParameter;
2662
2651
  }
@@ -2770,18 +2759,12 @@ interface EditorStateApi {
2770
2759
  * `(nodeId, property)`. This is required so the bridge can enforce localizability
2771
2760
  * business rules (e.g. refusing to localize a parameter whose definition forbids it)
2772
2761
  * and resolve the parameter type for value fan-out. Resolve it from the Uniform public
2773
- * API using your service account API key (or, in the future, identity delegation) and
2774
- * cache it client-side as needed.
2762
+ * API using your service account API key or identity delegation, and cache it
2763
+ * client-side as needed.
2775
2764
  *
2776
2765
  * No-ops if the parameter is already in the requested state; if the parameter does not
2777
2766
  * exist on the node; if (when localizing) no locales are enabled; or if (when
2778
2767
  * localizing) the supplied `propertyDefinition.localizable` is `false`.
2779
- *
2780
- * @beta This is beta functionality. It is intentionally exposed as `@deprecated` so
2781
- * consumers do not depend on it from production integrations — the signature and
2782
- * behaviour may change without notice.
2783
- * @deprecated Beta. Subject to change without notice; do not rely on this API in
2784
- * production integrations.
2785
2768
  */
2786
2769
  setPropertyLocalizability(params: SetPropertyLocalizabilityParams): Promise<void>;
2787
2770
  enableLocale(params: {
@@ -2828,11 +2811,11 @@ type CanvasEditorToolsData = {
2828
2811
  entryNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
2829
2812
  entityType: CanvasEditorEntityType;
2830
2813
  } & ({
2831
- /** editorState is an experimental replacement for rootEntity. This may become deprecated in the future. */
2814
+ /** editorState is a replacement for rootEntity. rootEntity may become deprecated in the future. */
2832
2815
  rootEntity: RootComponentInstance;
2833
2816
  entityType: 'composition' | 'componentPattern' | 'compositionDefaults';
2834
2817
  } | {
2835
- /** editorState is an experimental replacement for rootEntity. This may become deprecated in the future. */
2818
+ /** editorState is a replacement for rootEntity. rootEntity may become deprecated in the future. */
2836
2819
  rootEntity: EntryData;
2837
2820
  entityType: 'entry' | 'entryPattern';
2838
2821
  });
@@ -2990,8 +2973,6 @@ interface UniformMeshSDK {
2990
2973
  * Call this on demand — the token has a very short TTL (~10 s) and should be
2991
2974
  * consumed immediately by your backend to exchange for a delegation token
2992
2975
  * via `POST /api/v1/token` with `grantType=delegation_token` or DelegationTokenClient.
2993
- *
2994
- * @deprecated This beta identity delegation API may change with breaking changes.
2995
2976
  */
2996
2977
  getSessionToken(): Promise<string | undefined>;
2997
2978
  }
package/dist/index.d.ts CHANGED
@@ -1898,14 +1898,10 @@ declare const CSRF_HEADER_VALUE = "1";
1898
1898
  * BFF 401 body `code` when the delegation session is missing or the access token
1899
1899
  * is expired. Clients re-exchange the Mesh session token and retry once.
1900
1900
  * Do not use for other 401s.
1901
- *
1902
- * @deprecated This beta identity delegation API may change with breaking changes.
1903
1901
  */
1904
1902
  declare const DELEGATION_EXPIRED_CODE: "delegation_expired";
1905
1903
  /**
1906
1904
  * Human-readable message to pair with {@link DELEGATION_EXPIRED_CODE}.
1907
- *
1908
- * @deprecated This beta identity delegation API may change with breaking changes.
1909
1905
  */
1910
1906
  declare const DELEGATION_SESSION_EXPIRED_MESSAGE: "Delegation session expired.";
1911
1907
 
@@ -2013,7 +2009,6 @@ type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResource
2013
2009
  * Metadata for the dataResourceSelector location.
2014
2010
  * This location type allows custom UI for selecting JSON pointers within a data resource,
2015
2011
  * replacing the default JSON tree viewer in the dynamic token picker.
2016
- * @deprecated This is experimental functionality and is subject to change without notice.
2017
2012
  */
2018
2013
  type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
2019
2014
  /** The resolved data for the currently selected data resource */
@@ -2035,7 +2030,6 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
2035
2030
  * setValue: Call with a valid JSON pointer to select that path
2036
2031
  * getDataResource: Fetch data from the data connector using the current data source
2037
2032
  * editorState: Imperative API for inspecting/mutating the underlying composition / entry tree
2038
- * @deprecated This is experimental functionality and is subject to change without notice.
2039
2033
  */
2040
2034
  type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
2041
2035
 
@@ -2050,7 +2044,7 @@ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMet
2050
2044
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
2051
2045
 
2052
2046
  type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
2053
- /** editorState is an experimental replacement for rootNode. This may become deprecated in the future. */
2047
+ /** editorState is a replacement for rootNode. rootNode may become deprecated in the future. */
2054
2048
  rootNode: Omit<RootComponentInstance, 'slots' | '_data'> & {
2055
2049
  _editionId?: string;
2056
2050
  };
@@ -2283,8 +2277,6 @@ interface MeshParentConnection {
2283
2277
  /**
2284
2278
  * Returns a short-lived session token for identity delegation, or `undefined` when delegation
2285
2279
  * is not enabled for this integration.
2286
- *
2287
- * @deprecated This beta identity delegation API may change with breaking changes.
2288
2280
  */
2289
2281
  getSessionToken: () => Promise<string | undefined>;
2290
2282
  /**
@@ -2517,7 +2509,6 @@ type GetEditorStateLocation = {
2517
2509
  /**
2518
2510
  * Imperative API for interacting with the composition/entry editor state.
2519
2511
  * Provides non-reactive access to read and modify the editor state.
2520
- * @deprecated This is experimental functionality and is subject to change without notice.
2521
2512
  */
2522
2513
  editorState: EditorStateApi;
2523
2514
  };
@@ -2527,8 +2518,6 @@ type GetEditorStateLocationMaybe = {
2527
2518
  * Provides non-reactive access to read and modify the editor state.
2528
2519
  *
2529
2520
  * "undefined" means that the location is rendered outside of Canvas Editor context, e.g. Data Type testing.
2530
- *
2531
- * @deprecated This is experimental functionality and is subject to change without notice.
2532
2521
  */
2533
2522
  editorState: EditorStateApi | undefined;
2534
2523
  };
@@ -2655,8 +2644,8 @@ interface SetPropertyLocalizabilityCommonParams {
2655
2644
  * whose definition disallows it) and to resolve the parameter type for value fan-out.
2656
2645
  *
2657
2646
  * Mesh integrations must resolve this from the Uniform public API (using a service
2658
- * account API key today, or identity delegation in the future) — the editor frame does
2659
- * not expose component definitions to mesh apps.
2647
+ * account API key or identity delegation) — the editor frame does not expose component
2648
+ * definitions to mesh apps.
2660
2649
  */
2661
2650
  propertyDefinition: ComponentDefinitionParameter;
2662
2651
  }
@@ -2770,18 +2759,12 @@ interface EditorStateApi {
2770
2759
  * `(nodeId, property)`. This is required so the bridge can enforce localizability
2771
2760
  * business rules (e.g. refusing to localize a parameter whose definition forbids it)
2772
2761
  * and resolve the parameter type for value fan-out. Resolve it from the Uniform public
2773
- * API using your service account API key (or, in the future, identity delegation) and
2774
- * cache it client-side as needed.
2762
+ * API using your service account API key or identity delegation, and cache it
2763
+ * client-side as needed.
2775
2764
  *
2776
2765
  * No-ops if the parameter is already in the requested state; if the parameter does not
2777
2766
  * exist on the node; if (when localizing) no locales are enabled; or if (when
2778
2767
  * localizing) the supplied `propertyDefinition.localizable` is `false`.
2779
- *
2780
- * @beta This is beta functionality. It is intentionally exposed as `@deprecated` so
2781
- * consumers do not depend on it from production integrations — the signature and
2782
- * behaviour may change without notice.
2783
- * @deprecated Beta. Subject to change without notice; do not rely on this API in
2784
- * production integrations.
2785
2768
  */
2786
2769
  setPropertyLocalizability(params: SetPropertyLocalizabilityParams): Promise<void>;
2787
2770
  enableLocale(params: {
@@ -2828,11 +2811,11 @@ type CanvasEditorToolsData = {
2828
2811
  entryNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
2829
2812
  entityType: CanvasEditorEntityType;
2830
2813
  } & ({
2831
- /** editorState is an experimental replacement for rootEntity. This may become deprecated in the future. */
2814
+ /** editorState is a replacement for rootEntity. rootEntity may become deprecated in the future. */
2832
2815
  rootEntity: RootComponentInstance;
2833
2816
  entityType: 'composition' | 'componentPattern' | 'compositionDefaults';
2834
2817
  } | {
2835
- /** editorState is an experimental replacement for rootEntity. This may become deprecated in the future. */
2818
+ /** editorState is a replacement for rootEntity. rootEntity may become deprecated in the future. */
2836
2819
  rootEntity: EntryData;
2837
2820
  entityType: 'entry' | 'entryPattern';
2838
2821
  });
@@ -2990,8 +2973,6 @@ interface UniformMeshSDK {
2990
2973
  * Call this on demand — the token has a very short TTL (~10 s) and should be
2991
2974
  * consumed immediately by your backend to exchange for a delegation token
2992
2975
  * via `POST /api/v1/token` with `grantType=delegation_token` or DelegationTokenClient.
2993
- *
2994
- * @deprecated This beta identity delegation API may change with breaking changes.
2995
2976
  */
2996
2977
  getSessionToken(): Promise<string | undefined>;
2997
2978
  }
package/dist/index.esm.js CHANGED
@@ -167,7 +167,7 @@ var getLogger = (prefix, debug) => {
167
167
  };
168
168
 
169
169
  // src/temp/version.ts
170
- var UNIFORM_MESH_SDK_VERSION = "20.77.1";
170
+ var UNIFORM_MESH_SDK_VERSION = "20.79.0";
171
171
 
172
172
  // src/framepost/constants.ts
173
173
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
package/dist/index.js CHANGED
@@ -213,7 +213,7 @@ var getLogger = (prefix, debug) => {
213
213
  };
214
214
 
215
215
  // src/temp/version.ts
216
- var UNIFORM_MESH_SDK_VERSION = "20.77.1";
216
+ var UNIFORM_MESH_SDK_VERSION = "20.79.0";
217
217
 
218
218
  // src/framepost/constants.ts
219
219
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
package/dist/index.mjs CHANGED
@@ -167,7 +167,7 @@ var getLogger = (prefix, debug) => {
167
167
  };
168
168
 
169
169
  // src/temp/version.ts
170
- var UNIFORM_MESH_SDK_VERSION = "20.77.1";
170
+ var UNIFORM_MESH_SDK_VERSION = "20.79.0";
171
171
 
172
172
  // src/framepost/constants.ts
173
173
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -1,6 +1,5 @@
1
1
  import { ApiClient } from '@uniformdev/context/api';
2
2
 
3
- /** @deprecated This beta identity delegation API may change with breaking changes. */
4
3
  interface DelegationTokenClientOptions {
5
4
  /** Uniform API host (e.g. 'https://uniform.app'). */
6
5
  apiHost: string;
@@ -11,7 +10,6 @@ interface DelegationTokenClientOptions {
11
10
  /** Optional fetch implementation. Defaults to global fetch. */
12
11
  fetch?: typeof fetch;
13
12
  }
14
- /** @deprecated This beta identity delegation API may change with breaking changes. */
15
13
  interface DelegationTokenResponse {
16
14
  /** Bearer access token that can be used to call Uniform APIs on behalf of the user. */
17
15
  accessToken: string;
@@ -28,7 +26,6 @@ interface DelegationTokenResponse {
28
26
  * sanitised public message rather than whatever the server happened to return.
29
27
  */
30
28
  type DelegationTokenErrorKind = 'bad_request' | 'unauthenticated' | 'forbidden' | 'not_found' | 'rate_limited' | 'server_error' | 'unknown';
31
- /** @deprecated This beta identity delegation API may change with breaking changes. */
32
29
  declare class DelegationTokenError extends Error {
33
30
  readonly status: number;
34
31
  readonly kind: DelegationTokenErrorKind;
@@ -55,8 +52,6 @@ declare function buildDelegationTokenError(status: number): DelegationTokenError
55
52
  * Extends {@link ApiClient} to inherit concurrency limiting (limitPolicy) and 429 retry
56
53
  * with exponential backoff (handleRateLimits). Auth credentials go in the POST body —
57
54
  * the inherited header-based auth is intentionally unused.
58
- *
59
- * @deprecated This beta identity delegation API may change with breaking changes.
60
55
  */
61
56
  declare class DelegationTokenClient extends ApiClient {
62
57
  #private;
@@ -64,8 +59,6 @@ declare class DelegationTokenClient extends ApiClient {
64
59
  /**
65
60
  * Exchanges a short-lived session token for a delegation token and refresh token.
66
61
  * The session token is obtained by the integration's frontend via `sdk.getSessionToken()`.
67
- *
68
- * @deprecated This beta identity delegation API may change with breaking changes.
69
62
  */
70
63
  exchangeSessionToken(sessionToken: string): Promise<DelegationTokenResponse>;
71
64
  /**
@@ -76,8 +69,6 @@ declare class DelegationTokenClient extends ApiClient {
76
69
  * replayed by an attacker that also has the integration secret until it expires.
77
70
  * Single-use enforcement (refresh-token storage, family/jti tracking, replay revocation)
78
71
  * is tracked in `UNI-9279`.
79
- *
80
- * @deprecated This beta identity delegation API may change with breaking changes.
81
72
  */
82
73
  refreshDelegationToken(refreshToken: string): Promise<DelegationTokenResponse>;
83
74
  }
@@ -69,8 +69,6 @@ var DelegationTokenClient = class extends ApiClient {
69
69
  /**
70
70
  * Exchanges a short-lived session token for a delegation token and refresh token.
71
71
  * The session token is obtained by the integration's frontend via `sdk.getSessionToken()`.
72
- *
73
- * @deprecated This beta identity delegation API may change with breaking changes.
74
72
  */
75
73
  async exchangeSessionToken(sessionToken) {
76
74
  return __privateMethod(this, _DelegationTokenClient_instances, post_fn).call(this, {
@@ -88,8 +86,6 @@ var DelegationTokenClient = class extends ApiClient {
88
86
  * replayed by an attacker that also has the integration secret until it expires.
89
87
  * Single-use enforcement (refresh-token storage, family/jti tracking, replay revocation)
90
88
  * is tracked in `UNI-9279`.
91
- *
92
- * @deprecated This beta identity delegation API may change with breaking changes.
93
89
  */
94
90
  async refreshDelegationToken(refreshToken) {
95
91
  return __privateMethod(this, _DelegationTokenClient_instances, post_fn).call(this, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "20.77.2-alpha.3.sha-e9420d8e77",
3
+ "version": "20.79.0",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -51,10 +51,10 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@uniformdev/assets": "20.77.2-alpha.3.sha-e9420d8e77",
55
- "@uniformdev/canvas": "20.77.2-alpha.3.sha-e9420d8e77",
56
- "@uniformdev/context": "20.77.2-alpha.3.sha-e9420d8e77",
57
- "@uniformdev/project-map": "20.77.2-alpha.3.sha-e9420d8e77",
54
+ "@uniformdev/assets": "20.79.0",
55
+ "@uniformdev/canvas": "20.79.0",
56
+ "@uniformdev/context": "20.79.0",
57
+ "@uniformdev/project-map": "20.79.0",
58
58
  "cookie": "^1.1.1",
59
59
  "imagesloaded": "^5.0.0",
60
60
  "jose": "^6.2.2",
@@ -64,5 +64,5 @@
64
64
  "@types/imagesloaded": "^4.1.2",
65
65
  "openai": "6.44.0"
66
66
  },
67
- "gitHead": "e9420d8e77e7b9b0c5ea14bfe38f1f16a9a236ee"
67
+ "gitHead": "f419f94df6de01601261042943593cabfd739357"
68
68
  }