@synopackageland/sdk 0.50.1 → 0.50.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.
@@ -41,3 +41,4 @@ export { createEntryCheck, type EntryCheck, type EntryFailure, type EntryMode }
41
41
  export { createClient, type Batch, type BatchCall, type BatchResult, type ClientOptions, type SessionRetryOptions, type SessionRetryOperation } from './client';
42
42
  export { readDsmPorts, type DsmPort, type DsmPortRange } from './dsm/service-ports';
43
43
  export { readDsmHttpsURL } from './dsm/https';
44
+ export { requestSecret, RequestSecret, redactSecrets } from './secret';
@@ -0,0 +1,12 @@
1
+ /** One request's external-service credential. Ordinary JSON and logs redact it. */
2
+ export declare class RequestSecret {
3
+ constructor(value: string);
4
+ toString(): string;
5
+ toJSON(): string;
6
+ [Symbol.toPrimitive](): string;
7
+ clear(): void;
8
+ }
9
+ export declare const requestSecret: (value: string) => RequestSecret;
10
+ export declare function encodeSecretRequest(value: unknown, credentials?: string[]): string;
11
+ /** Detached diagnostic copy; never log raw bodies or fall back to the input. */
12
+ export declare function redactSecrets(value: unknown, credentials?: readonly string[]): unknown;
package/dist/vue.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { D as dt, i as Ba } from "./context-DWEbBTIr.js";
2
2
  import { c as So } from "./context-DWEbBTIr.js";
3
3
  import { appRefusal as va, appDenial as He, delegateCopy as Ue, createDsmFileStation as ct, appLifecycle as Pe, lifecycleRetryDelay as Ca, joinSentences as Oa, lifecycleCopy as Fe, shellCopy as oa, uiLocale as Fa, format as Ge, nasCopy as Ve, nasErrorCopy as qa, saveCopy as $a, saveError as ia, createNasProvider as Ma, labelSeparator as Sa, identityCopy as Ka, backgroundCopy as vt, createBackgroundPickerProvider as ft, backgroundErrorCopy as pt, requestKey as _a, lifecycleRefusal as mt, errorCopy as yt, scopedPicker as bt, authorizationCopy as Ha, createEntryCheck as gt } from "./index.js";
4
- import { FILE_STATION_APP as Po, LIFECYCLE_RETRY_MAX_MS as To, LIFECYCLE_STARTING_RETRY_MAX_MS as Ao, MAX_LAUNCH_ROUTE as zo, activePage as Ro, authorizationCatalogs as Io, backgroundCatalogs as Uo, bridgeCatalogs as Do, bridgeErrorCopy as Lo, catalogs as No, createBackgroundSaveFacade as Vo, createClient as Bo, createDsmSession as Oo, createFileTransfers as Fo, createPortalAccess as qo, createSharedFolderAccess as Mo, createSharedFolderPermission as Ko, createStandaloneContext as Ho, createStandaloneHost as Xo, decodeResponse as Go, delegateCatalogs as Wo, dsmLaunchURL as Jo, encodeRequest as Yo, fileStationPath as Qo, followLaunchRoute as Zo, identityCatalogs as jo, launchRoute as ei, mergeCatalogs as ai, nasCatalogs as ti, openFileInFileStation as li, openFolderInFileStation as ni, portalCatalogs as si, portalMessages as oi, protocolCodes as ii, protocolOps as ui, protocolSchemas as ri, readDsmHttpsURL as di, readDsmPorts as ci, saveCatalogs as vi, sharedFolderAccessFor as fi, sharedFolderCatalogs as pi, sharedFolderMessages as mi, sharedFolderPermissionMessage as yi, shellCatalogs as bi, shellPages as gi, uiLocales as hi } from "./index.js";
4
+ import { FILE_STATION_APP as Po, LIFECYCLE_RETRY_MAX_MS as To, LIFECYCLE_STARTING_RETRY_MAX_MS as Ao, MAX_LAUNCH_ROUTE as zo, RequestSecret as Ro, activePage as Io, authorizationCatalogs as Uo, backgroundCatalogs as Do, bridgeCatalogs as Lo, bridgeErrorCopy as No, catalogs as Vo, createBackgroundSaveFacade as Bo, createClient as Oo, createDsmSession as Fo, createFileTransfers as qo, createPortalAccess as Mo, createSharedFolderAccess as Ko, createSharedFolderPermission as Ho, createStandaloneContext as Xo, createStandaloneHost as Go, decodeResponse as Wo, delegateCatalogs as Jo, dsmLaunchURL as Yo, encodeRequest as Qo, fileStationPath as Zo, followLaunchRoute as jo, identityCatalogs as ei, launchRoute as ai, mergeCatalogs as ti, nasCatalogs as li, openFileInFileStation as ni, openFolderInFileStation as si, portalCatalogs as oi, portalMessages as ii, protocolCodes as ui, protocolOps as ri, protocolSchemas as di, readDsmHttpsURL as ci, readDsmPorts as vi, redactSecrets as fi, requestSecret as pi, saveCatalogs as mi, sharedFolderAccessFor as yi, sharedFolderCatalogs as bi, sharedFolderMessages as gi, sharedFolderPermissionMessage as hi, shellCatalogs as ki, shellPages as _i, uiLocales as wi } from "./index.js";
5
5
  import { inject as ze, ref as y, computed as x, onBeforeUnmount as ke, Comment as ht, Text as kt, Fragment as ee, watch as We, onMounted as xe, defineComponent as ve, openBlock as n, createElementBlock as w, createElementVNode as $, toDisplayString as o, createCommentVNode as b, renderList as me, normalizeClass as Re, createVNode as p, unref as e, createTextVNode as h, createBlock as g, renderSlot as ge, withCtx as s, resolveDynamicComponent as je, normalizeProps as ua, mergeProps as Ea, withModifiers as Je, isRef as ra, provide as Xe, useTemplateRef as Ne, watchEffect as la, useSlots as Xa, guardReactiveProps as za, createSlots as fa, Teleport as Ga, markRaw as _t, h as wt, useId as xt, shallowRef as Ct, onUnmounted as Wa, nextTick as $t } from "vue";
6
6
  import { Timer as St, Info as Et, ShieldCheck as Ja, ChevronRight as Ya, LogOut as Pt, ChevronLeft as Tt, RotateCw as At } from "@lucide/vue";
7
7
  import { SettingsSection as we, Callout as j, Button as N, SettingsRow as $e, Skeleton as Be, Badge as ea, PathDisplay as Oe, Form as Ye, FormItem as Te, Select as Pa, Input as Ie, Dialog as qe, ensureDeviceViewport as zt, AppRoot as Rt, ConfigProvider as It, PageContent as Ra, PageHeader as Ia, AppLayout as Ut, LoadingArea as Qa, AppSidebar as Dt, AppSidebarUser as Lt, IconButton as sa, AppToolbar as Nt, InfoTip as Za, FileTypeIcon as ha, Breadcrumb as Vt, FilePicker as Bt, TreeView as Ot, DataGrid as Ft, Link as wa, FormActions as pa, Card as Ua, Checkbox as qt, ListItem as Da } from "@synopackageland/ui";
@@ -4300,81 +4300,84 @@ export {
4300
4300
  co as PageInfo,
4301
4301
  ot as PageInfoTarget,
4302
4302
  fo as PortalSettings,
4303
+ Ro as RequestSecret,
4303
4304
  mo as SharedFolderPermissionDialog,
4304
4305
  po as SharedFolderSettings,
4305
4306
  Bl as UiUpdateNotice,
4306
- Ro as activePage,
4307
+ Io as activePage,
4307
4308
  He as appDenial,
4308
4309
  Pe as appLifecycle,
4309
4310
  va as appRefusal,
4310
- Io as authorizationCatalogs,
4311
+ Uo as authorizationCatalogs,
4311
4312
  Ha as authorizationCopy,
4312
- Uo as backgroundCatalogs,
4313
+ Do as backgroundCatalogs,
4313
4314
  vt as backgroundCopy,
4314
4315
  pt as backgroundErrorCopy,
4315
- Do as bridgeCatalogs,
4316
- Lo as bridgeErrorCopy,
4317
- No as catalogs,
4316
+ Lo as bridgeCatalogs,
4317
+ No as bridgeErrorCopy,
4318
+ Vo as catalogs,
4318
4319
  So as clientTimeout,
4319
4320
  ft as createBackgroundPickerProvider,
4320
- Vo as createBackgroundSaveFacade,
4321
- Bo as createClient,
4321
+ Bo as createBackgroundSaveFacade,
4322
+ Oo as createClient,
4322
4323
  ct as createDsmFileStation,
4323
- Oo as createDsmSession,
4324
+ Fo as createDsmSession,
4324
4325
  gt as createEntryCheck,
4325
- Fo as createFileTransfers,
4326
+ qo as createFileTransfers,
4326
4327
  Ma as createNasProvider,
4327
- qo as createPortalAccess,
4328
+ Mo as createPortalAccess,
4328
4329
  io as createSession,
4329
- Mo as createSharedFolderAccess,
4330
- Ko as createSharedFolderPermission,
4331
- Ho as createStandaloneContext,
4332
- Xo as createStandaloneHost,
4333
- Go as decodeResponse,
4334
- Wo as delegateCatalogs,
4330
+ Ko as createSharedFolderAccess,
4331
+ Ho as createSharedFolderPermission,
4332
+ Xo as createStandaloneContext,
4333
+ Go as createStandaloneHost,
4334
+ Wo as decodeResponse,
4335
+ Jo as delegateCatalogs,
4335
4336
  Ue as delegateCopy,
4336
- Jo as dsmLaunchURL,
4337
- Yo as encodeRequest,
4337
+ Yo as dsmLaunchURL,
4338
+ Qo as encodeRequest,
4338
4339
  yt as errorCopy,
4339
- Qo as fileStationPath,
4340
- Zo as followLaunchRoute,
4340
+ Zo as fileStationPath,
4341
+ jo as followLaunchRoute,
4341
4342
  Ge as format,
4342
- jo as identityCatalogs,
4343
+ ei as identityCatalogs,
4343
4344
  Ka as identityCopy,
4344
4345
  Ba as isFullPage,
4345
4346
  Oa as joinSentences,
4346
4347
  Sa as labelSeparator,
4347
- ei as launchRoute,
4348
+ ai as launchRoute,
4348
4349
  Fe as lifecycleCopy,
4349
4350
  mt as lifecycleRefusal,
4350
4351
  Ca as lifecycleRetryDelay,
4351
- ai as mergeCatalogs,
4352
- ti as nasCatalogs,
4352
+ ti as mergeCatalogs,
4353
+ li as nasCatalogs,
4353
4354
  Ve as nasCopy,
4354
4355
  qa as nasErrorCopy,
4355
- li as openFileInFileStation,
4356
- ni as openFolderInFileStation,
4357
- si as portalCatalogs,
4358
- oi as portalMessages,
4359
- ii as protocolCodes,
4360
- ui as protocolOps,
4361
- ri as protocolSchemas,
4362
- di as readDsmHttpsURL,
4363
- ci as readDsmPorts,
4356
+ ni as openFileInFileStation,
4357
+ si as openFolderInFileStation,
4358
+ oi as portalCatalogs,
4359
+ ii as portalMessages,
4360
+ ui as protocolCodes,
4361
+ ri as protocolOps,
4362
+ di as protocolSchemas,
4363
+ ci as readDsmHttpsURL,
4364
+ vi as readDsmPorts,
4365
+ fi as redactSecrets,
4364
4366
  _a as requestKey,
4365
- vi as saveCatalogs,
4367
+ pi as requestSecret,
4368
+ mi as saveCatalogs,
4366
4369
  $a as saveCopy,
4367
4370
  ia as saveError,
4368
4371
  bt as scopedPicker,
4369
- fi as sharedFolderAccessFor,
4370
- pi as sharedFolderCatalogs,
4371
- mi as sharedFolderMessages,
4372
- yi as sharedFolderPermissionMessage,
4373
- bi as shellCatalogs,
4372
+ yi as sharedFolderAccessFor,
4373
+ bi as sharedFolderCatalogs,
4374
+ gi as sharedFolderMessages,
4375
+ hi as sharedFolderPermissionMessage,
4376
+ ki as shellCatalogs,
4374
4377
  oa as shellCopy,
4375
- gi as shellPages,
4378
+ _i as shellPages,
4376
4379
  Fa as uiLocale,
4377
- hi as uiLocales,
4380
+ wi as uiLocales,
4378
4381
  Gs as useAuthorization,
4379
4382
  Mt as useExecutorPreload,
4380
4383
  et as useExecutorSetup,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "sdkVersion": "0.50.1",
3
+ "sdkVersion": "0.50.2",
4
4
  "executorVersion": "0.49.5",
5
5
  "executorDigests": {
6
6
  "x86_64": "1a2dbb1c93a5d7cf5c4d5cafd2526c152e1cc21611649875db8e1c23837c2874",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/sdk",
3
- "version": "0.50.1",
3
+ "version": "0.50.2",
4
4
  "description": "Frontend SDK for DSM packages built with synopkgland: headless client and Vue components",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/synopackageland/syno-pkg-land-sdk/tree/main/ts#readme",