@synopackageland/sdk 0.10.3 → 0.10.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.
- package/dist/i18n/background/zh-CN.json +1 -1
- package/dist/i18n/bridge/de.json +3 -1
- package/dist/i18n/bridge/en.json +3 -1
- package/dist/i18n/bridge/es.json +3 -1
- package/dist/i18n/bridge/fr.json +3 -1
- package/dist/i18n/bridge/it.json +3 -1
- package/dist/i18n/bridge/ja.json +3 -1
- package/dist/i18n/bridge/ko.json +3 -1
- package/dist/i18n/bridge/zh-CN.json +3 -1
- package/dist/i18n/bridge/zh-TW.json +3 -1
- package/dist/i18n/save/de.json +1 -0
- package/dist/i18n/save/en.json +1 -0
- package/dist/i18n/save/es.json +1 -0
- package/dist/i18n/save/fr.json +1 -0
- package/dist/i18n/save/it.json +1 -0
- package/dist/i18n/save/ja.json +1 -0
- package/dist/i18n/save/ko.json +1 -0
- package/dist/i18n/save/zh-CN.json +1 -0
- package/dist/i18n/save/zh-TW.json +1 -0
- package/dist/index.js +1733 -1702
- package/dist/src/delegate/BackgroundSaveSettings.vue.d.ts +14 -1
- package/dist/src/delegate/SaveOperations.vue.d.ts +23 -0
- package/dist/src/delegate/save-copy.d.ts +3 -0
- package/dist/src/protocol/v1.d.ts +13 -1
- package/dist/src/shell/AppShell.vue.d.ts +3 -0
- package/dist/src/vue.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +1653 -1597
- package/package.json +2 -2
- package/spec/protocol/v1/README.md +13 -0
- package/spec/protocol/v1/errors.json +16 -0
|
@@ -14,7 +14,14 @@ type __VLS_Props = {
|
|
|
14
14
|
title?: string;
|
|
15
15
|
pickerErrorText?: (error: unknown) => string | undefined;
|
|
16
16
|
};
|
|
17
|
-
declare
|
|
17
|
+
declare var __VLS_164: {
|
|
18
|
+
busy: boolean;
|
|
19
|
+
run: (work: () => Promise<unknown>) => Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
operations?: (props: typeof __VLS_164) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
18
25
|
refresh: () => Promise<void>;
|
|
19
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
27
|
confirmed: () => any;
|
|
@@ -25,5 +32,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
25
32
|
onAuthorized?: ((grant: DestinationGrant) => any) | undefined;
|
|
26
33
|
onDestinations?: ((states: DestinationState[]) => any) | undefined;
|
|
27
34
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
36
|
declare const _default: typeof __VLS_export;
|
|
29
37
|
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BackgroundSaveFacade } from './long-running';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sdk: BackgroundSaveFacade;
|
|
4
|
+
locale: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_22: {
|
|
7
|
+
busy: boolean;
|
|
8
|
+
run: (work: () => Promise<unknown>) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_22) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
refresh: () => Promise<void>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -11,6 +11,7 @@ export declare const saveCatalogs: Record<import("..").UiLocale, {
|
|
|
11
11
|
disable: string;
|
|
12
12
|
enable: string;
|
|
13
13
|
disableHelp: string;
|
|
14
|
+
disableConfirm: string;
|
|
14
15
|
disabled: string;
|
|
15
16
|
queued: string;
|
|
16
17
|
copying: string;
|
|
@@ -64,6 +65,7 @@ export declare function saveCopy(locale?: string): {
|
|
|
64
65
|
disable: string;
|
|
65
66
|
enable: string;
|
|
66
67
|
disableHelp: string;
|
|
68
|
+
disableConfirm: string;
|
|
67
69
|
disabled: string;
|
|
68
70
|
queued: string;
|
|
69
71
|
copying: string;
|
|
@@ -117,6 +119,7 @@ export declare function saveError(error: unknown, copy?: {
|
|
|
117
119
|
disable: string;
|
|
118
120
|
enable: string;
|
|
119
121
|
disableHelp: string;
|
|
122
|
+
disableConfirm: string;
|
|
120
123
|
disabled: string;
|
|
121
124
|
queued: string;
|
|
122
125
|
copying: string;
|
|
@@ -354,6 +354,18 @@ export declare const protocolCodes: {
|
|
|
354
354
|
readonly retryable: true;
|
|
355
355
|
readonly httpStatus: 503;
|
|
356
356
|
};
|
|
357
|
+
/** The package is stopped: its lifecycle mailbox asks the executor to stop. The client sent nothing. */
|
|
358
|
+
readonly APP_STOPPED: {
|
|
359
|
+
readonly kind: "client";
|
|
360
|
+
readonly retryable: true;
|
|
361
|
+
readonly httpStatus: 503;
|
|
362
|
+
};
|
|
363
|
+
/** The package was just started and its executor is not listening yet. The client sent nothing. */
|
|
364
|
+
readonly APP_STARTING: {
|
|
365
|
+
readonly kind: "client";
|
|
366
|
+
readonly retryable: true;
|
|
367
|
+
readonly httpStatus: 503;
|
|
368
|
+
};
|
|
357
369
|
/** The executor did not answer in time. */
|
|
358
370
|
readonly EXECUTOR_TIMEOUT: {
|
|
359
371
|
readonly kind: "client";
|
|
@@ -377,7 +389,7 @@ export type ProtocolCode = keyof typeof protocolCodes;
|
|
|
377
389
|
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" | "EXECUTOR_STARTING" | "STORAGE_ERROR" | "INTERNAL" | "WRITE_FAILED" | "READ_FAILED" | "DSM_FAILED" | "ROOT_FAILED" | "ROOT_TIMEOUT" | "ROOT_BUSY" | "ROOT_STAGING_FULL" | "ROOT_JOB_NOT_FOUND" | "PORTAL_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";
|
|
378
390
|
export type OutcomeCode = "OPERATION_CANCELED" | "CANCEL_REQUESTED" | "CLEANUP_PENDING";
|
|
379
391
|
export type ReasonCode = "grant-revoked" | "destination-replaced" | "integration-disabled" | "validation-denied" | "scope-changed" | "storage-error" | "operation-canceled-by-user" | "operation-deadline-exceeded";
|
|
380
|
-
export type ClientCode = "EXECUTOR_UNAVAILABLE" | "EXECUTOR_TIMEOUT" | "EXECUTOR_TOO_LARGE" | "EXECUTOR_PROTOCOL";
|
|
392
|
+
export type ClientCode = "EXECUTOR_UNAVAILABLE" | "APP_STOPPED" | "APP_STARTING" | "EXECUTOR_TIMEOUT" | "EXECUTOR_TOO_LARGE" | "EXECUTOR_PROTOCOL";
|
|
381
393
|
/** delegate.audit: Administrator: read the audit log. Since 0.9.0. */
|
|
382
394
|
export interface DelegateAuditParams {
|
|
383
395
|
}
|
package/dist/src/vue.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { createSession, type IdentitySession, type SessionSubject } from './iden
|
|
|
4
4
|
export { useNasRequest } from './nas/use-request';
|
|
5
5
|
export { default as AppShell } from './shell/AppShell.vue';
|
|
6
6
|
export { default as PageActions } from './shell/PageActions.vue';
|
|
7
|
+
export { PageActionsTarget } from './shell/page-actions';
|
|
7
8
|
export type { AppShellDenied, AppShellPage, AppShellPageEntry } from './shell/app-pages';
|
|
8
9
|
export { default as FilesPage } from './files/FilesPage.vue';
|
|
9
10
|
export { default as FileBrowser } from './files/FileBrowser.vue';
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.executor-help[data-v-
|
|
1
|
+
.executor-help[data-v-8e5504f7]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.executor-summary[data-v-8e5504f7]:not(:last-child){margin-bottom:var(--ui-space-3,12px)}.executor-form[data-v-8e5504f7]{margin-top:var(--ui-space-4,16px);max-width:28rem}.executor-hint[data-v-8e5504f7]{font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary)}.executor-reason[data-v-8e5504f7]{display:block;margin-top:var(--ui-space-1,4px);font-size:var(--ui-font-size-sm,12px)}.executor-alert[data-v-8e5504f7]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.executor-notice[data-v-8ec9f312]{margin-bottom:var(--ui-space-4, 16px)}.executor-notice-body[data-v-8ec9f312]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-2, 8px)}.app-shell[data-v-c9bc6bd5]{height:100%;min-width:0;grid-template-rows:minmax(0,1fr)}.app-shell[data-v-c9bc6bd5]>div{min-height:0}.app-shell[data-v-c9bc6bd5] main{display:flex;flex-direction:column;overflow:hidden}.app-page[data-v-c9bc6bd5]{flex:1 1 auto;min-height:0;overflow-y:auto}.app-denied[data-v-c9bc6bd5]{height:100%;overflow-y:auto}.app-page-actions[data-v-c9bc6bd5]{display:contents}.app-shell-fill[data-v-c9bc6bd5]{max-height:100dvh}.app-page-fill[data-v-c9bc6bd5]{display:flex;flex-direction:column;overflow:hidden}.app-page-fill[data-v-c9bc6bd5]>[data-page-content-body]{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-height:0}.app-page-fill .app-notices[data-v-c9bc6bd5]{flex:0 0 auto}.app-page-fill .app-page-content[data-v-c9bc6bd5]{display:grid;flex:1 1 auto;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0}.app-notices[data-v-c9bc6bd5]{display:flex;flex-direction:column;gap:var(--ui-space-2, 8px);margin-bottom:var(--ui-space-4, 16px)}.app-page-content[data-v-c9bc6bd5]{padding-bottom:var(--ui-space-6, 24px)}.file-browser[data-v-c689761c]{min-width:0;color:var(--ui-text)}.file-toolbar[data-v-c689761c]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2, 8px);margin-block:var(--ui-space-3, 12px)}.file-location[data-v-c689761c]{flex-wrap:nowrap;align-items:center;gap:var(--ui-space-1, 4px)}.file-path[data-v-c689761c]{flex:1;min-width:0;margin-inline-start:var(--ui-space-2, 8px)}.file-columns[data-v-c689761c]{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:var(--ui-space-3, 12px);height:clamp(240px,60vh,400px)}.file-tree[data-v-c689761c]{min-width:0;overflow:auto;border-inline-end:1px solid var(--ui-border)}.file-content[data-v-c689761c]{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto}.file-empty[data-v-c689761c]{display:flex;flex-direction:column;align-items:center;gap:var(--ui-space-2, 8px);padding-block:var(--ui-space-6, 24px);color:var(--ui-text-muted)}.file-name[data-v-c689761c]{display:inline-flex;align-items:center;gap:var(--ui-space-2, 8px);overflow-wrap:anywhere}.file-bytes[data-v-c689761c]{font-variant-numeric:tabular-nums}.file-selection[data-v-c689761c]{overflow-wrap:anywhere}@media(max-width:600px){.file-columns[data-v-c689761c]{grid-template-columns:minmax(0,1fr);height:auto}.file-content[data-v-c689761c] th:nth-child(2),.file-content[data-v-c689761c] td:nth-child(2),.file-content[data-v-c689761c] th:nth-child(3),.file-content[data-v-c689761c] td:nth-child(3){display:none}.file-tree[data-v-c689761c]{height:clamp(96px,25vh,180px);border-inline-end:0;border-bottom:1px solid var(--ui-border)}.file-content[data-v-c689761c]{height:clamp(200px,45vh,360px)}}.nas-picker-content[data-v-6ed8b8f6]{max-height:65vh;overflow:auto}.save-message[data-v-6ed8b8f6]{--ui-text-secondary:var(--ui-text)}.save-consent[data-v-6ed8b8f6]{color:var(--ui-text);margin-block:0 var(--ui-space-4,16px)}.files-actions[data-v-15f9eb8e]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2, 8px)}.files-path[data-v-15f9eb8e]{display:flex;min-width:0}.identity-login[data-v-1c0358cd]{max-width:36rem;margin-inline:auto;padding:var(--ui-space-4, 16px);overflow:auto;max-height:100%;color:var(--ui-text);font-family:var(--ui-font-sans);font-size:13px;line-height:1.5}.identity-login p[data-v-1c0358cd]{margin-block:var(--ui-space-4, 16px);overflow-wrap:anywhere}.bg-cards[data-v-3e23f18f]{display:grid;gap:var(--ui-space-3,12px);min-width:0;overflow-wrap:anywhere}.bg-card-body[data-v-3e23f18f]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ui-space-2,8px);min-width:0}.bg-card-body>span[data-v-3e23f18f]{min-width:0;max-width:100%}.integration-actions[data-v-3e23f18f]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.bg-schedules[data-v-3e23f18f]{margin-block-start:var(--ui-space-6,24px);min-width:0;overflow-wrap:anywhere}.bg-schedules p[data-v-3e23f18f]{min-width:0;max-width:100%}.bg-schedule-form[data-v-3e23f18f]{margin-block:var(--ui-space-4,16px)}.bg-path[data-v-3e23f18f]{display:flex;align-items:center;gap:var(--ui-space-2,8px);min-width:0;max-width:100%}.executor-approval[data-v-88a4ee77]{padding:var(--ui-space-6, 24px)}.executor-brand[data-v-88a4ee77]{display:flex;align-items:center;gap:var(--ui-space-2, 8px);margin-bottom:var(--ui-space-4, 16px);font-size:16px;font-weight:600;color:var(--ui-text-primary)}.executor-brand img[data-v-88a4ee77]{width:24px;height:24px}.delegate-panel[data-v-e6f168a0]{min-width:0;overflow-wrap:anywhere}.delegate-group[data-v-e6f168a0]{margin-top:var(--ui-space-6,24px)}.records[data-v-e6f168a0]{list-style:none;padding:0;margin:0}.records li[data-v-e6f168a0]{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-3,12px);padding-block:var(--ui-space-4,16px);border-bottom:1px solid var(--ui-border)}.records li>div[data-v-e6f168a0],.records li>span[data-v-e6f168a0],.destination[data-v-e6f168a0]{min-width:0;max-width:100%;overflow-wrap:anywhere}.records p[data-v-e6f168a0]{margin:var(--ui-space-2,8px) 0 0}.destination[data-v-e6f168a0]{display:flex;align-items:center;gap:var(--ui-space-2,8px)}.save-help[data-v-8c9a2ec0]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.save-alert[data-v-8c9a2ec0]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px);justify-content:space-between}.save-name[data-v-8c9a2ec0]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-note[data-v-8c9a2ec0]{margin:var(--ui-space-1,4px) 0 0;font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary);white-space:normal}.save-icon[data-v-8c9a2ec0]{width:16px;height:16px}[data-save-operations][data-v-8c9a2ec0] table{table-layout:fixed}[data-save-operations][data-v-8c9a2ec0] th,[data-save-operations][data-v-8c9a2ec0] td{overflow-wrap:normal;white-space:nowrap}[data-save-operations][data-v-8c9a2ec0] td{padding-block:var(--ui-space-2,8px)}.save-pages[data-v-8c9a2ec0]{margin-top:var(--ui-space-3,12px)}.background-save-settings[data-v-abaa1bee]{min-width:0;overflow-wrap:anywhere}.save-help[data-v-abaa1bee]{margin:0 0 var(--ui-space-2,8px);max-width:72ch;color:var(--ui-text-secondary)}.save-form[data-v-abaa1bee]{max-width:44rem}.save-actions[data-v-abaa1bee],.save-alert[data-v-abaa1bee],.save-danger[data-v-abaa1bee]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.save-alert[data-v-abaa1bee],.save-danger[data-v-abaa1bee]{justify-content:space-between}.save-none[data-v-abaa1bee]{color:var(--ui-text-secondary)}.save-reason[data-v-abaa1bee]{display:block;margin-top:var(--ui-space-1,4px);font-size:var(--ui-font-size-sm,12px)}.save-danger[data-v-abaa1bee]{flex:1;padding-top:var(--ui-space-3,12px);border-top:1px solid var(--ui-border)}.save-danger p[data-v-abaa1bee]{margin:0;flex:1 1 20rem;max-width:72ch;font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary)}.background-save-panel[data-v-55770b8c]{min-width:0;overflow-wrap:anywhere}.save-help[data-v-55770b8c]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.save-actions[data-v-55770b8c]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px);margin-bottom:var(--ui-space-3,12px)}.authorization-view[data-v-e16b5f7d]{display:flex;flex-direction:column;gap:12px}.authorization-body[data-v-e16b5f7d]{margin:0;font-size:13px;line-height:1.6;color:var(--ui-text);text-wrap:pretty}.authorization-status[data-v-e16b5f7d],.authorization-failed[data-v-e16b5f7d]{color:var(--ui-text)}.authorization-content[data-v-e16b5f7d]{display:flex;flex-direction:column;height:100%;min-height:0}.authorization-content[data-v-e16b5f7d] .app-shell{flex:1;min-height:0;height:auto}.authorization-setting[data-v-f031e7c7]{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.authorization-revoke-body[data-v-f031e7c7]{margin:0;font-size:13px;line-height:1.6;color:var(--ui-text)}.authorization-state[data-v-f031e7c7]{display:inline-flex;align-items:center;gap:6px;color:var(--ui-text)}
|