@synopackageland/sdk 0.9.0 → 0.9.1

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.
@@ -12,6 +12,7 @@ export declare const delegateCatalogs: Record<import("..").UiLocale, {
12
12
  ready: string;
13
13
  needs: string;
14
14
  blocked: string;
15
+ loading: string;
15
16
  details: string;
16
17
  refresh: string;
17
18
  revoke: string;
@@ -60,6 +61,7 @@ export declare function delegateCopy(locale?: string): {
60
61
  ready: string;
61
62
  needs: string;
62
63
  blocked: string;
64
+ loading: string;
63
65
  details: string;
64
66
  refresh: string;
65
67
  revoke: string;
@@ -11,7 +11,7 @@ export interface DestinationState {
11
11
  key: string;
12
12
  selection: ScopeSelection | null;
13
13
  destination: DestinationGrant | null;
14
- status: 'active' | 'missing' | 'reselection-required' | 'needs-scope-confirmation' | 'disabled';
14
+ status: 'active' | 'missing' | 'revoked' | 'reselection-required' | 'needs-scope-confirmation' | 'disabled';
15
15
  }
16
16
  export interface DestinationGrant {
17
17
  id: string;
@@ -2,5 +2,6 @@ export type UiLocale = 'en' | 'zh-TW' | 'zh-CN' | 'ja' | 'ko' | 'de' | 'fr' | 'e
2
2
  export declare const uiLocales: readonly UiLocale[];
3
3
  /** The built-in UI locale (shared by these catalogs and the UI's own text) for a DSM or BCP-47 language tag. */
4
4
  export declare function uiLocale(locale: string): UiLocale;
5
- /** The catalogs of one capability by locale, typed by its en catalog. */
6
- export declare function catalogs<T>(capability: string, _en: T): Record<UiLocale, T>;
5
+ /** The catalogs of one capability by locale, typed by its en catalog. Each
6
+ * capability globs its own folder, so a bundle carries only what it imports. */
7
+ export declare function catalogs<T>(files: Record<string, unknown>, _en: T): Record<UiLocale, T>;
@@ -282,12 +282,6 @@ export declare const protocolCodes: {
282
282
  readonly retryable: false;
283
283
  readonly httpStatus: 409;
284
284
  };
285
- /** The grant is inactive. */
286
- readonly "grant-inactive": {
287
- readonly kind: "reason";
288
- readonly retryable: false;
289
- readonly httpStatus: 409;
290
- };
291
285
  /** The grant failed revalidation against DSM. */
292
286
  readonly "validation-denied": {
293
287
  readonly kind: "reason";
@@ -346,7 +340,7 @@ export declare const protocolCodes: {
346
340
  export type ProtocolCode = keyof typeof protocolCodes;
347
341
  export type RefusalCode = "AUTH_DENIED" | "INELIGIBLE" | "APP_DENIED" | "ADMIN_REQUIRED" | "DELEGATION_DENIED" | "SCOPE_DENIED" | "POLICY_DENIED" | "PEER_DENIED" | "PERMISSION_DENIED" | "UNKNOWN_OP" | "INVALID_REQUEST" | "REQUEST_TOO_LARGE" | "EXECUTOR_PAUSED" | "STORAGE_ERROR" | "INTERNAL" | "WRITE_FAILED" | "READ_FAILED" | "DSM_FAILED" | "ROOT_FAILED" | "NO_SPACE" | "SCOPE_APPROVAL_STALE" | "IDENTITY_CHANGED" | "needs-scope-confirmation" | "disabled" | "invalid-destination" | "invalid-size" | "operation-conflict" | "operation-not-found" | "destination-exists" | "invalid-path" | "path-too-deep" | "destination-not-directory" | "name-too-long" | "not-found" | "not-a-file" | "recursive-required" | "recycle-bin-disabled" | "task-not-found" | "too-many-tasks" | "queue-full" | "limit-exceeded";
348
342
  export type OutcomeCode = "OPERATION_CANCELED" | "CANCEL_REQUESTED" | "CLEANUP_PENDING";
349
- export type ReasonCode = "grant-revoked" | "destination-replaced" | "integration-disabled" | "grant-inactive" | "validation-denied" | "scope-changed" | "storage-error" | "operation-canceled-by-user" | "operation-deadline-exceeded";
343
+ export type ReasonCode = "grant-revoked" | "destination-replaced" | "integration-disabled" | "validation-denied" | "scope-changed" | "storage-error" | "operation-canceled-by-user" | "operation-deadline-exceeded";
350
344
  export type ClientCode = "EXECUTOR_UNAVAILABLE" | "EXECUTOR_TIMEOUT" | "EXECUTOR_TOO_LARGE" | "EXECUTOR_PROTOCOL";
351
345
  /** delegate.audit: Administrator: read the audit log. Since 0.9.0. */
352
346
  export interface DelegateAuditParams {