@synopackageland/sdk 0.50.2 → 0.50.4

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.
@@ -16,10 +16,10 @@ export type BatchResult<T = unknown> = {
16
16
  };
17
17
  export type Batch = <T = unknown>(calls: readonly BatchCall[], options?: CallOptions) => Promise<BatchResult<T>[]>;
18
18
  /** Trusted App metadata, never inferred from method names or request params.
19
- * Copy effect from the operation registry; classify AI and streaming explicitly. */
19
+ * Use the CLI-generated sessionRetryOperations; unknown kinds never retry. */
20
20
  export interface SessionRetryOperation {
21
21
  effect: 'read' | 'write' | 'destructive';
22
- kind: 'rpc' | 'ai' | 'stream';
22
+ kind: 'rpc' | 'ai' | 'stream' | 'unknown';
23
23
  }
24
24
  export interface SessionRetryOptions {
25
25
  session: ReturnType<typeof createDsmSession>;
@@ -1,6 +1,11 @@
1
1
  import type { Context } from '../context';
2
+ export interface DsmHttpsURLOptions {
3
+ signal?: AbortSignal;
4
+ /** Carry launchApp and its launchParam to the HTTPS DSM desktop. */
5
+ keepLaunchApp?: boolean;
6
+ }
2
7
  /** Optional link for an App's https_required page. PortInfo is administrator
3
- * only: unknown and ordinary subjects never start discovery. The result opens
4
- * DSM, not an App route; no query, fragment or credentials are carried across.
8
+ * only: unknown and ordinary subjects never start discovery. By default the
9
+ * result opens DSM without a route; launch parameters can be kept explicitly.
5
10
  * No result means show instructions, never guess a configured port. */
6
- export declare function readDsmHttpsURL(ctx: Pick<Context, 'user' | 'files' | 'webApi' | 'requestTimeout'>, pageURL: string, signal?: AbortSignal): Promise<string | undefined>;
11
+ export declare function readDsmHttpsURL(ctx: Pick<Context, 'user' | 'files' | 'webApi' | 'requestTimeout'>, pageURL: string, signalOrOptions?: AbortSignal | DsmHttpsURLOptions): Promise<string | undefined>;
@@ -40,5 +40,5 @@ export { appDenial, appRefusal, type AppDenial } from './authorization/refusal';
40
40
  export { createEntryCheck, type EntryCheck, type EntryFailure, type EntryMode } from './entry/check';
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
- export { readDsmHttpsURL } from './dsm/https';
43
+ export { readDsmHttpsURL, type DsmHttpsURLOptions } from './dsm/https';
44
44
  export { requestSecret, RequestSecret, redactSecrets } from './secret';
@@ -9,4 +9,4 @@ export declare class RequestSecret {
9
9
  export declare const requestSecret: (value: string) => RequestSecret;
10
10
  export declare function encodeSecretRequest(value: unknown, credentials?: string[]): string;
11
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;
12
+ export declare function redactSecrets(value: unknown, credentials?: readonly string[], fields?: readonly string[]): unknown;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "sdkVersion": "0.50.2",
3
+ "sdkVersion": "0.50.4",
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.2",
3
+ "version": "0.50.4",
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",