@arke-institute/sdk 0.1.3 → 2.1.0
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/README.md +222 -176
- package/dist/crypto-CQnwqWQn.d.ts +459 -0
- package/dist/crypto-iYgzUi77.d.cts +459 -0
- package/dist/generated/index.cjs +19 -0
- package/dist/generated/index.cjs.map +1 -0
- package/dist/generated/index.d.cts +6545 -0
- package/dist/generated/index.d.ts +6545 -0
- package/dist/generated/index.js +1 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/index.cjs +725 -4248
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -7
- package/dist/index.d.ts +62 -7
- package/dist/index.js +706 -4221
- package/dist/index.js.map +1 -1
- package/dist/operations/index.cjs +806 -0
- package/dist/operations/index.cjs.map +1 -0
- package/dist/operations/index.d.cts +157 -0
- package/dist/operations/index.d.ts +157 -0
- package/dist/operations/index.js +759 -0
- package/dist/operations/index.js.map +1 -0
- package/openapi/spec.json +8648 -0
- package/openapi/version.json +7 -0
- package/package.json +51 -52
- package/dist/client-dAk3E64p.d.cts +0 -183
- package/dist/client-dAk3E64p.d.ts +0 -183
- package/dist/collections/index.cjs +0 -233
- package/dist/collections/index.cjs.map +0 -1
- package/dist/collections/index.d.cts +0 -9
- package/dist/collections/index.d.ts +0 -9
- package/dist/collections/index.js +0 -205
- package/dist/collections/index.js.map +0 -1
- package/dist/content/index.cjs +0 -591
- package/dist/content/index.cjs.map +0 -1
- package/dist/content/index.d.cts +0 -516
- package/dist/content/index.d.ts +0 -516
- package/dist/content/index.js +0 -558
- package/dist/content/index.js.map +0 -1
- package/dist/edit/index.cjs +0 -1503
- package/dist/edit/index.cjs.map +0 -1
- package/dist/edit/index.d.cts +0 -78
- package/dist/edit/index.d.ts +0 -78
- package/dist/edit/index.js +0 -1447
- package/dist/edit/index.js.map +0 -1
- package/dist/errors-3L7IiHcr.d.cts +0 -480
- package/dist/errors-BTe8GKRQ.d.ts +0 -480
- package/dist/errors-CT7yzKkU.d.cts +0 -874
- package/dist/errors-CT7yzKkU.d.ts +0 -874
- package/dist/graph/index.cjs +0 -427
- package/dist/graph/index.cjs.map +0 -1
- package/dist/graph/index.d.cts +0 -485
- package/dist/graph/index.d.ts +0 -485
- package/dist/graph/index.js +0 -396
- package/dist/graph/index.js.map +0 -1
- package/dist/query/index.cjs +0 -356
- package/dist/query/index.cjs.map +0 -1
- package/dist/query/index.d.cts +0 -636
- package/dist/query/index.d.ts +0 -636
- package/dist/query/index.js +0 -328
- package/dist/query/index.js.map +0 -1
- package/dist/upload/index.cjs +0 -1634
- package/dist/upload/index.cjs.map +0 -1
- package/dist/upload/index.d.cts +0 -150
- package/dist/upload/index.d.ts +0 -150
- package/dist/upload/index.js +0 -1597
- package/dist/upload/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,62 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export { a as ArkeApiClient, A as ArkeClient, b as ArkeClientConfig, f as BatchCreateOptions, B as BatchOperations, g as BatchResult, C as CryptoOperations, D as DEFAULT_CONFIG, F as FolderOperations, K as KeyPair, S as SignedPayload, d as UploadDirectoryOptions, e as UploadDirectoryResult, U as UploadProgress, c as createArkeClient } from './crypto-iYgzUi77.cjs';
|
|
2
|
+
export { components, operations, paths } from './generated/index.cjs';
|
|
3
|
+
import 'openapi-fetch';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SDK error classes
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Base error class for all Arke SDK errors
|
|
10
|
+
*/
|
|
11
|
+
declare class ArkeError extends Error {
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly status?: number | undefined;
|
|
14
|
+
readonly details?: unknown | undefined;
|
|
15
|
+
constructor(message: string, code: string, status?: number | undefined, details?: unknown | undefined);
|
|
16
|
+
toJSON(): {
|
|
17
|
+
name: string;
|
|
18
|
+
message: string;
|
|
19
|
+
code: string;
|
|
20
|
+
status: number | undefined;
|
|
21
|
+
details: unknown;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CAS (Compare-And-Swap) conflict - entity was modified by another request
|
|
26
|
+
*/
|
|
27
|
+
declare class CASConflictError extends ArkeError {
|
|
28
|
+
readonly expectedTip?: string | undefined;
|
|
29
|
+
readonly actualTip?: string | undefined;
|
|
30
|
+
constructor(expectedTip?: string | undefined, actualTip?: string | undefined);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Resource not found
|
|
34
|
+
*/
|
|
35
|
+
declare class NotFoundError extends ArkeError {
|
|
36
|
+
constructor(resourceType: string, id: string);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Validation error - invalid request data
|
|
40
|
+
*/
|
|
41
|
+
declare class ValidationError extends ArkeError {
|
|
42
|
+
readonly field?: string | undefined;
|
|
43
|
+
constructor(message: string, field?: string | undefined, details?: unknown);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Authentication required or invalid
|
|
47
|
+
*/
|
|
48
|
+
declare class AuthenticationError extends ArkeError {
|
|
49
|
+
constructor(message?: string);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Permission denied
|
|
53
|
+
*/
|
|
54
|
+
declare class ForbiddenError extends ArkeError {
|
|
55
|
+
constructor(action?: string, resource?: string);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Parse API error response into appropriate error class
|
|
59
|
+
*/
|
|
60
|
+
declare function parseApiError(status: number, body: unknown): ArkeError;
|
|
61
|
+
|
|
62
|
+
export { ArkeError, AuthenticationError, CASConflictError, ForbiddenError, NotFoundError, ValidationError, parseApiError };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,62 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export { a as ArkeApiClient, A as ArkeClient, b as ArkeClientConfig, f as BatchCreateOptions, B as BatchOperations, g as BatchResult, C as CryptoOperations, D as DEFAULT_CONFIG, F as FolderOperations, K as KeyPair, S as SignedPayload, d as UploadDirectoryOptions, e as UploadDirectoryResult, U as UploadProgress, c as createArkeClient } from './crypto-CQnwqWQn.js';
|
|
2
|
+
export { components, operations, paths } from './generated/index.js';
|
|
3
|
+
import 'openapi-fetch';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SDK error classes
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Base error class for all Arke SDK errors
|
|
10
|
+
*/
|
|
11
|
+
declare class ArkeError extends Error {
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly status?: number | undefined;
|
|
14
|
+
readonly details?: unknown | undefined;
|
|
15
|
+
constructor(message: string, code: string, status?: number | undefined, details?: unknown | undefined);
|
|
16
|
+
toJSON(): {
|
|
17
|
+
name: string;
|
|
18
|
+
message: string;
|
|
19
|
+
code: string;
|
|
20
|
+
status: number | undefined;
|
|
21
|
+
details: unknown;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CAS (Compare-And-Swap) conflict - entity was modified by another request
|
|
26
|
+
*/
|
|
27
|
+
declare class CASConflictError extends ArkeError {
|
|
28
|
+
readonly expectedTip?: string | undefined;
|
|
29
|
+
readonly actualTip?: string | undefined;
|
|
30
|
+
constructor(expectedTip?: string | undefined, actualTip?: string | undefined);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Resource not found
|
|
34
|
+
*/
|
|
35
|
+
declare class NotFoundError extends ArkeError {
|
|
36
|
+
constructor(resourceType: string, id: string);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Validation error - invalid request data
|
|
40
|
+
*/
|
|
41
|
+
declare class ValidationError extends ArkeError {
|
|
42
|
+
readonly field?: string | undefined;
|
|
43
|
+
constructor(message: string, field?: string | undefined, details?: unknown);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Authentication required or invalid
|
|
47
|
+
*/
|
|
48
|
+
declare class AuthenticationError extends ArkeError {
|
|
49
|
+
constructor(message?: string);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Permission denied
|
|
53
|
+
*/
|
|
54
|
+
declare class ForbiddenError extends ArkeError {
|
|
55
|
+
constructor(action?: string, resource?: string);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Parse API error response into appropriate error class
|
|
59
|
+
*/
|
|
60
|
+
declare function parseApiError(status: number, body: unknown): ArkeError;
|
|
61
|
+
|
|
62
|
+
export { ArkeError, AuthenticationError, CASConflictError, ForbiddenError, NotFoundError, ValidationError, parseApiError };
|