@dinoxx/dinox-cli 2.0.0 → 2.1.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.
- package/dist/commands/notes/repo/read.d.ts +8 -0
- package/dist/commands/notes/repo/read.js +321 -0
- package/dist/commands/notes/repo/resolve.d.ts +8 -0
- package/dist/commands/notes/repo/resolve.js +187 -0
- package/dist/commands/notes/repo/search.d.ts +42 -0
- package/dist/commands/notes/repo/search.js +513 -0
- package/dist/commands/notes/repo/shared.d.ts +190 -0
- package/dist/commands/notes/repo/shared.js +102 -0
- package/dist/commands/notes/repo/write.d.ts +24 -0
- package/dist/commands/notes/repo/write.js +251 -0
- package/dist/commands/notes/repo.d.ts +7 -186
- package/dist/commands/notes/repo.js +7 -1360
- package/dist/commands/schema/commandMetadata.js +4 -4
- package/dist/commands/schema/index.d.ts +1 -0
- package/dist/commands/schema/index.js +23 -2
- package/dist/commands/schema/renderSkills.d.ts +4 -0
- package/dist/commands/schema/renderSkills.js +41 -2
- package/dist/commands/skills/index.d.ts +26 -0
- package/dist/commands/skills/index.js +115 -11
- package/dist/commands/storage/repo/configs.d.ts +30 -0
- package/dist/commands/storage/repo/configs.js +259 -0
- package/dist/commands/storage/repo/operations.d.ts +25 -0
- package/dist/commands/storage/repo/operations.js +337 -0
- package/dist/commands/storage/repo/remote.d.ts +32 -0
- package/dist/commands/storage/repo/remote.js +132 -0
- package/dist/commands/storage/repo/resources.d.ts +12 -0
- package/dist/commands/storage/repo/resources.js +134 -0
- package/dist/commands/storage/repo/shared.d.ts +181 -0
- package/dist/commands/storage/repo/shared.js +36 -0
- package/dist/commands/storage/repo/targets.d.ts +12 -0
- package/dist/commands/storage/repo/targets.js +178 -0
- package/dist/commands/storage/repo.d.ts +3 -166
- package/dist/commands/storage/repo.js +4 -1034
- package/dist/contract/snapshot.d.ts +30 -0
- package/dist/contract/snapshot.js +114 -0
- package/dist/daemon/client.js +2 -2
- package/dist/powersync/uploader.js +27 -2
- package/dist/skills/commandRefs.d.ts +21 -0
- package/dist/skills/commandRefs.js +132 -0
- package/dist/skills/generate.d.ts +13 -0
- package/dist/skills/generate.js +80 -0
- package/dist/skills/registry.d.ts +13 -0
- package/dist/skills/registry.js +58 -0
- package/dist/utils/errorCodes.d.ts +311 -0
- package/dist/utils/errorCodes.js +92 -0
- package/dist/utils/errors.d.ts +13 -2
- package/dist/utils/errors.js +11 -0
- package/package.json +11 -4
|
@@ -1,166 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type StorageUploadCategory = (typeof UPLOAD_CATEGORY_VALUES)[number];
|
|
5
|
-
export type StorageListItem = {
|
|
6
|
-
id: string;
|
|
7
|
-
aliasName: string;
|
|
8
|
-
provider: string;
|
|
9
|
-
endpoint: string;
|
|
10
|
-
bucket: string;
|
|
11
|
-
region: string;
|
|
12
|
-
forcePathStyle: boolean;
|
|
13
|
-
pathPrefix: string;
|
|
14
|
-
customDomain: string;
|
|
15
|
-
legacyDomains: string[];
|
|
16
|
-
isPrivate: boolean;
|
|
17
|
-
hasAccessKeyId: boolean;
|
|
18
|
-
hasSecretAccessKey: boolean;
|
|
19
|
-
isActive: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type StorageListResult = {
|
|
22
|
-
activeCustomStorageConfigId: string | null;
|
|
23
|
-
usesOfficialStorage: boolean;
|
|
24
|
-
items: StorageListItem[];
|
|
25
|
-
};
|
|
26
|
-
type StoredCustomStorageConfig = {
|
|
27
|
-
id: string;
|
|
28
|
-
aliasName: string;
|
|
29
|
-
provider: string;
|
|
30
|
-
endpoint: string;
|
|
31
|
-
bucket: string;
|
|
32
|
-
region: string;
|
|
33
|
-
accessKeyId: string;
|
|
34
|
-
secretAccessKey: string;
|
|
35
|
-
forcePathStyle: boolean;
|
|
36
|
-
pathPrefix: string;
|
|
37
|
-
customDomain: string;
|
|
38
|
-
legacyDomains: string[];
|
|
39
|
-
isPrivate: boolean;
|
|
40
|
-
};
|
|
41
|
-
export type StorageUploadPlan = {
|
|
42
|
-
storage: StorageListItem;
|
|
43
|
-
selectionSource: 'storage_id' | 'active' | 'single_available_config';
|
|
44
|
-
filePath: string;
|
|
45
|
-
fileName: string;
|
|
46
|
-
sizeBytes: number;
|
|
47
|
-
category: StorageUploadCategory;
|
|
48
|
-
contentType: string;
|
|
49
|
-
storageKey: string;
|
|
50
|
-
storageUrl: string;
|
|
51
|
-
domain: string;
|
|
52
|
-
};
|
|
53
|
-
export type StorageUploadResult = {
|
|
54
|
-
resourceId: string;
|
|
55
|
-
storageConfigId: string;
|
|
56
|
-
aliasName: string;
|
|
57
|
-
provider: string;
|
|
58
|
-
bucket: string;
|
|
59
|
-
endpoint: string;
|
|
60
|
-
domain: string;
|
|
61
|
-
storageKey: string;
|
|
62
|
-
storageUrl: string;
|
|
63
|
-
fileName: string;
|
|
64
|
-
sizeBytes: number;
|
|
65
|
-
contentType: string;
|
|
66
|
-
category: StorageUploadCategory;
|
|
67
|
-
etag: string | null;
|
|
68
|
-
thumbnailUrl: string | null;
|
|
69
|
-
isPrivate: boolean;
|
|
70
|
-
selectionSource: StorageUploadPlan['selectionSource'];
|
|
71
|
-
};
|
|
72
|
-
export type StorageTestPlan = {
|
|
73
|
-
storage: StorageListItem;
|
|
74
|
-
selectionSource: StorageUploadPlan['selectionSource'];
|
|
75
|
-
contentType: string;
|
|
76
|
-
sizeBytes: number;
|
|
77
|
-
storageKey: string;
|
|
78
|
-
storageUrl: string;
|
|
79
|
-
domain: string;
|
|
80
|
-
};
|
|
81
|
-
export type StorageTestResult = {
|
|
82
|
-
storageConfigId: string;
|
|
83
|
-
aliasName: string;
|
|
84
|
-
provider: string;
|
|
85
|
-
bucket: string;
|
|
86
|
-
endpoint: string;
|
|
87
|
-
domain: string;
|
|
88
|
-
storageKey: string;
|
|
89
|
-
storageUrl: string;
|
|
90
|
-
contentType: string;
|
|
91
|
-
sizeBytes: number;
|
|
92
|
-
selectionSource: StorageUploadPlan['selectionSource'];
|
|
93
|
-
isPrivate: boolean;
|
|
94
|
-
};
|
|
95
|
-
export type StorageStatsEntry = {
|
|
96
|
-
provider: string;
|
|
97
|
-
bucket: string;
|
|
98
|
-
label: string;
|
|
99
|
-
totalBytes: number;
|
|
100
|
-
fileCount: number;
|
|
101
|
-
storageConfigId: string | null;
|
|
102
|
-
aliasName: string | null;
|
|
103
|
-
isOfficial: boolean;
|
|
104
|
-
};
|
|
105
|
-
export type StorageStatsResult = {
|
|
106
|
-
totalBytes: number;
|
|
107
|
-
totalFiles: number;
|
|
108
|
-
entries: StorageStatsEntry[];
|
|
109
|
-
};
|
|
110
|
-
type UploadObjectInput = {
|
|
111
|
-
localPath: string;
|
|
112
|
-
bucket: string;
|
|
113
|
-
key: string;
|
|
114
|
-
contentType: string;
|
|
115
|
-
contentLength: number;
|
|
116
|
-
overwrite: boolean;
|
|
117
|
-
storage: StoredCustomStorageConfig;
|
|
118
|
-
};
|
|
119
|
-
type UploadObjectResult = {
|
|
120
|
-
etag: string | null;
|
|
121
|
-
};
|
|
122
|
-
type UploadDeps = {
|
|
123
|
-
statFile?: typeof fsp.stat;
|
|
124
|
-
uploadObject?: (input: UploadObjectInput) => Promise<UploadObjectResult>;
|
|
125
|
-
deleteObject?: (input: {
|
|
126
|
-
bucket: string;
|
|
127
|
-
key: string;
|
|
128
|
-
etag?: string | null;
|
|
129
|
-
storage: StoredCustomStorageConfig;
|
|
130
|
-
}) => Promise<void>;
|
|
131
|
-
uploadBytes?: (input: {
|
|
132
|
-
body: Buffer;
|
|
133
|
-
bucket: string;
|
|
134
|
-
key: string;
|
|
135
|
-
contentType: string;
|
|
136
|
-
overwrite?: boolean;
|
|
137
|
-
storage: StoredCustomStorageConfig;
|
|
138
|
-
}) => Promise<UploadObjectResult>;
|
|
139
|
-
};
|
|
140
|
-
export declare function parseStorageUploadCategory(value: unknown): StorageUploadCategory;
|
|
141
|
-
export declare function listStorageConfigs(db: AbstractPowerSyncDatabase, userId: string): Promise<StorageListResult>;
|
|
142
|
-
export declare function getStorageStats(db: AbstractPowerSyncDatabase, userId: string): Promise<StorageStatsResult>;
|
|
143
|
-
export declare function inspectStorageUpload(db: AbstractPowerSyncDatabase, input: {
|
|
144
|
-
userId: string;
|
|
145
|
-
filePath: string;
|
|
146
|
-
category: StorageUploadCategory;
|
|
147
|
-
storageId?: string;
|
|
148
|
-
key?: string;
|
|
149
|
-
}, deps?: Pick<UploadDeps, 'statFile'>): Promise<StorageUploadPlan>;
|
|
150
|
-
export declare function inspectStorageTest(db: AbstractPowerSyncDatabase, input: {
|
|
151
|
-
userId: string;
|
|
152
|
-
storageId?: string;
|
|
153
|
-
}): Promise<StorageTestPlan>;
|
|
154
|
-
export declare function testStorageUpload(db: AbstractPowerSyncDatabase, input: {
|
|
155
|
-
userId: string;
|
|
156
|
-
storageId?: string;
|
|
157
|
-
}, deps?: Pick<UploadDeps, 'deleteObject' | 'uploadBytes'>): Promise<StorageTestResult>;
|
|
158
|
-
export declare function uploadFileToStorage(db: AbstractPowerSyncDatabase, input: {
|
|
159
|
-
userId: string;
|
|
160
|
-
filePath: string;
|
|
161
|
-
category: StorageUploadCategory;
|
|
162
|
-
storageId?: string;
|
|
163
|
-
key?: string;
|
|
164
|
-
overwrite?: boolean;
|
|
165
|
-
}, deps?: UploadDeps): Promise<StorageUploadResult>;
|
|
166
|
-
export {};
|
|
1
|
+
export type { StorageListItem, StorageListResult, StorageStatsEntry, StorageStatsResult, StorageTestPlan, StorageTestResult, StorageUploadCategory, StorageUploadPlan, StorageUploadResult, } from './repo/shared.js';
|
|
2
|
+
export { getStorageStats, listStorageConfigs, parseStorageUploadCategory, } from './repo/configs.js';
|
|
3
|
+
export { inspectStorageTest, inspectStorageUpload, testStorageUpload, uploadFileToStorage, } from './repo/operations.js';
|