@arke-institute/sdk 0.1.3 → 2.0.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.
Files changed (64) hide show
  1. package/README.md +126 -184
  2. package/dist/generated/index.cjs +19 -0
  3. package/dist/generated/index.cjs.map +1 -0
  4. package/dist/generated/index.d.cts +6192 -0
  5. package/dist/generated/index.d.ts +6192 -0
  6. package/dist/generated/index.js +1 -0
  7. package/dist/generated/index.js.map +1 -0
  8. package/dist/index-BrXke2kI.d.ts +302 -0
  9. package/dist/index-FHcLPBSV.d.cts +302 -0
  10. package/dist/index.cjs +188 -4254
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +62 -7
  13. package/dist/index.d.ts +62 -7
  14. package/dist/index.js +168 -4226
  15. package/dist/index.js.map +1 -1
  16. package/dist/operations/index.cjs +113 -0
  17. package/dist/operations/index.cjs.map +1 -0
  18. package/dist/operations/index.d.cts +3 -0
  19. package/dist/operations/index.d.ts +3 -0
  20. package/dist/operations/index.js +84 -0
  21. package/dist/operations/index.js.map +1 -0
  22. package/package.json +44 -53
  23. package/dist/client-dAk3E64p.d.cts +0 -183
  24. package/dist/client-dAk3E64p.d.ts +0 -183
  25. package/dist/collections/index.cjs +0 -233
  26. package/dist/collections/index.cjs.map +0 -1
  27. package/dist/collections/index.d.cts +0 -9
  28. package/dist/collections/index.d.ts +0 -9
  29. package/dist/collections/index.js +0 -205
  30. package/dist/collections/index.js.map +0 -1
  31. package/dist/content/index.cjs +0 -591
  32. package/dist/content/index.cjs.map +0 -1
  33. package/dist/content/index.d.cts +0 -516
  34. package/dist/content/index.d.ts +0 -516
  35. package/dist/content/index.js +0 -558
  36. package/dist/content/index.js.map +0 -1
  37. package/dist/edit/index.cjs +0 -1503
  38. package/dist/edit/index.cjs.map +0 -1
  39. package/dist/edit/index.d.cts +0 -78
  40. package/dist/edit/index.d.ts +0 -78
  41. package/dist/edit/index.js +0 -1447
  42. package/dist/edit/index.js.map +0 -1
  43. package/dist/errors-3L7IiHcr.d.cts +0 -480
  44. package/dist/errors-BTe8GKRQ.d.ts +0 -480
  45. package/dist/errors-CT7yzKkU.d.cts +0 -874
  46. package/dist/errors-CT7yzKkU.d.ts +0 -874
  47. package/dist/graph/index.cjs +0 -427
  48. package/dist/graph/index.cjs.map +0 -1
  49. package/dist/graph/index.d.cts +0 -485
  50. package/dist/graph/index.d.ts +0 -485
  51. package/dist/graph/index.js +0 -396
  52. package/dist/graph/index.js.map +0 -1
  53. package/dist/query/index.cjs +0 -356
  54. package/dist/query/index.cjs.map +0 -1
  55. package/dist/query/index.d.cts +0 -636
  56. package/dist/query/index.d.ts +0 -636
  57. package/dist/query/index.js +0 -328
  58. package/dist/query/index.js.map +0 -1
  59. package/dist/upload/index.cjs +0 -1634
  60. package/dist/upload/index.cjs.map +0 -1
  61. package/dist/upload/index.d.cts +0 -150
  62. package/dist/upload/index.d.ts +0 -150
  63. package/dist/upload/index.js +0 -1597
  64. package/dist/upload/index.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,62 @@
1
- export { g as ChangeRootPayload, h as ChangeRootResponse, b as Collection, c as CollectionDetails, d as CollectionRole, e as CollectionVisibility, C as CollectionsClient, a as CollectionsClientConfig, f as CreateCollectionPayload, I as Invitation, k as InvitationUser, l as InvitationsResponse, M as Member, i as MemberUser, j as MembersResponse, m as MyAccessResponse, n as MyCollectionsResponse, P as PaginatedCollections, o as PiPermissions, R as RegisterRootPayload, p as RootResponse, S as SuccessResponse, U as UpdateCollectionPayload } from './client-dAk3E64p.cjs';
2
- export { CollectionsError } from './collections/index.cjs';
3
- export { A as AddToCollectionOptions, c as ArkeUploader, B as BatchResult, C as CreateCollectionUploadOptions, b as CreateCollectionUploadResult, g as CustomPrompts, F as FileInfo, N as NetworkError, P as ProcessingConfig, S as ScanError, U as UploadClient, a as UploadClientConfig, h as UploadError, e as UploadOptions, f as UploadProgress, d as UploaderConfig, V as ValidationError, W as WorkerAPIError } from './errors-3L7IiHcr.cjs';
4
- export { ASTNodeType, EdgeTypeDoc, EnrichedContent, Entity, EntryAST, EntryPointDoc, ExampleDoc, FilterAST, FilterTypeDoc, HopAST, LineageFilter, LineageMetadata, NaturalQueryOptions, NaturalQueryResult, ParameterDoc, ParseError, ParseResult, PathAST, PathQueryOptions, PathStep, QueryClient, QueryClientConfig, QueryError, QueryMetadata, QueryResult, QueryResultItem, SyntaxDocumentation, TranslateResult, TranslationInfo, VariableDepthDoc } from './query/index.cjs';
5
- export { E as EditClient, a as EditClientConfig, c as EditError, d as EditMode, i as EditPhase, g as EditResult, f as EditScope, b as EditSession, e as EditSessionConfig, h as EditStatus, P as PermissionError, R as RegeneratableComponent, j as ReprocessResult, k as ReprocessStatus } from './errors-CT7yzKkU.cjs';
6
- export { ComponentNotFoundError, ContentClient, ContentClientConfig, Entity as ContentEntity, ContentError, NetworkError as ContentNetworkError, ContentNotFoundError, EntityNotFoundError, EntitySummary, EntityVersion, ListOptions, ListResponse, ResolveResponse, VersionNotFoundError, VersionsOptions, VersionsResponse } from './content/index.cjs';
7
- export { EntitiesWithRelationshipsResponse, EntityQueryResponse, EntityWithRelationships, GraphClient, GraphClientConfig, GraphEntity, GraphEntityNotFoundError, GraphError, NetworkError as GraphNetworkError, LineagePiEntry, LineageResponse, LineageResultSet, ListFromPiOptions, NoPathFoundError, Path, PathEdge, PathOptions, PathsResponse, ReachableOptions, Relationship } from './graph/index.cjs';
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 './index-FHcLPBSV.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 { g as ChangeRootPayload, h as ChangeRootResponse, b as Collection, c as CollectionDetails, d as CollectionRole, e as CollectionVisibility, C as CollectionsClient, a as CollectionsClientConfig, f as CreateCollectionPayload, I as Invitation, k as InvitationUser, l as InvitationsResponse, M as Member, i as MemberUser, j as MembersResponse, m as MyAccessResponse, n as MyCollectionsResponse, P as PaginatedCollections, o as PiPermissions, R as RegisterRootPayload, p as RootResponse, S as SuccessResponse, U as UpdateCollectionPayload } from './client-dAk3E64p.js';
2
- export { CollectionsError } from './collections/index.js';
3
- export { A as AddToCollectionOptions, c as ArkeUploader, B as BatchResult, C as CreateCollectionUploadOptions, b as CreateCollectionUploadResult, g as CustomPrompts, F as FileInfo, N as NetworkError, P as ProcessingConfig, S as ScanError, U as UploadClient, a as UploadClientConfig, h as UploadError, e as UploadOptions, f as UploadProgress, d as UploaderConfig, V as ValidationError, W as WorkerAPIError } from './errors-BTe8GKRQ.js';
4
- export { ASTNodeType, EdgeTypeDoc, EnrichedContent, Entity, EntryAST, EntryPointDoc, ExampleDoc, FilterAST, FilterTypeDoc, HopAST, LineageFilter, LineageMetadata, NaturalQueryOptions, NaturalQueryResult, ParameterDoc, ParseError, ParseResult, PathAST, PathQueryOptions, PathStep, QueryClient, QueryClientConfig, QueryError, QueryMetadata, QueryResult, QueryResultItem, SyntaxDocumentation, TranslateResult, TranslationInfo, VariableDepthDoc } from './query/index.js';
5
- export { E as EditClient, a as EditClientConfig, c as EditError, d as EditMode, i as EditPhase, g as EditResult, f as EditScope, b as EditSession, e as EditSessionConfig, h as EditStatus, P as PermissionError, R as RegeneratableComponent, j as ReprocessResult, k as ReprocessStatus } from './errors-CT7yzKkU.js';
6
- export { ComponentNotFoundError, ContentClient, ContentClientConfig, Entity as ContentEntity, ContentError, NetworkError as ContentNetworkError, ContentNotFoundError, EntityNotFoundError, EntitySummary, EntityVersion, ListOptions, ListResponse, ResolveResponse, VersionNotFoundError, VersionsOptions, VersionsResponse } from './content/index.js';
7
- export { EntitiesWithRelationshipsResponse, EntityQueryResponse, EntityWithRelationships, GraphClient, GraphClientConfig, GraphEntity, GraphEntityNotFoundError, GraphError, NetworkError as GraphNetworkError, LineagePiEntry, LineageResponse, LineageResultSet, ListFromPiOptions, NoPathFoundError, Path, PathEdge, PathOptions, PathsResponse, ReachableOptions, Relationship } from './graph/index.js';
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 './index-BrXke2kI.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 };