@arke-institute/sdk 0.1.2 → 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 -3654
  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 -3626
  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 -506
  32. package/dist/content/index.cjs.map +0 -1
  33. package/dist/content/index.d.cts +0 -403
  34. package/dist/content/index.d.ts +0 -403
  35. package/dist/content/index.js +0 -473
  36. package/dist/content/index.js.map +0 -1
  37. package/dist/edit/index.cjs +0 -1029
  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 -983
  42. package/dist/edit/index.js.map +0 -1
  43. package/dist/errors-3L7IiHcr.d.cts +0 -480
  44. package/dist/errors-B82BMmRP.d.cts +0 -343
  45. package/dist/errors-B82BMmRP.d.ts +0 -343
  46. package/dist/errors-BTe8GKRQ.d.ts +0 -480
  47. package/dist/graph/index.cjs +0 -433
  48. package/dist/graph/index.cjs.map +0 -1
  49. package/dist/graph/index.d.cts +0 -456
  50. package/dist/graph/index.d.ts +0 -456
  51. package/dist/graph/index.js +0 -402
  52. package/dist/graph/index.js.map +0 -1
  53. package/dist/query/index.cjs +0 -289
  54. package/dist/query/index.cjs.map +0 -1
  55. package/dist/query/index.d.cts +0 -541
  56. package/dist/query/index.d.ts +0 -541
  57. package/dist/query/index.js +0 -261
  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-B82BMmRP.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-B82BMmRP.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 };