@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.
Files changed (66) hide show
  1. package/README.md +222 -176
  2. package/dist/crypto-CQnwqWQn.d.ts +459 -0
  3. package/dist/crypto-iYgzUi77.d.cts +459 -0
  4. package/dist/generated/index.cjs +19 -0
  5. package/dist/generated/index.cjs.map +1 -0
  6. package/dist/generated/index.d.cts +6545 -0
  7. package/dist/generated/index.d.ts +6545 -0
  8. package/dist/generated/index.js +1 -0
  9. package/dist/generated/index.js.map +1 -0
  10. package/dist/index.cjs +725 -4248
  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 +706 -4221
  15. package/dist/index.js.map +1 -1
  16. package/dist/operations/index.cjs +806 -0
  17. package/dist/operations/index.cjs.map +1 -0
  18. package/dist/operations/index.d.cts +157 -0
  19. package/dist/operations/index.d.ts +157 -0
  20. package/dist/operations/index.js +759 -0
  21. package/dist/operations/index.js.map +1 -0
  22. package/openapi/spec.json +8648 -0
  23. package/openapi/version.json +7 -0
  24. package/package.json +51 -52
  25. package/dist/client-dAk3E64p.d.cts +0 -183
  26. package/dist/client-dAk3E64p.d.ts +0 -183
  27. package/dist/collections/index.cjs +0 -233
  28. package/dist/collections/index.cjs.map +0 -1
  29. package/dist/collections/index.d.cts +0 -9
  30. package/dist/collections/index.d.ts +0 -9
  31. package/dist/collections/index.js +0 -205
  32. package/dist/collections/index.js.map +0 -1
  33. package/dist/content/index.cjs +0 -591
  34. package/dist/content/index.cjs.map +0 -1
  35. package/dist/content/index.d.cts +0 -516
  36. package/dist/content/index.d.ts +0 -516
  37. package/dist/content/index.js +0 -558
  38. package/dist/content/index.js.map +0 -1
  39. package/dist/edit/index.cjs +0 -1503
  40. package/dist/edit/index.cjs.map +0 -1
  41. package/dist/edit/index.d.cts +0 -78
  42. package/dist/edit/index.d.ts +0 -78
  43. package/dist/edit/index.js +0 -1447
  44. package/dist/edit/index.js.map +0 -1
  45. package/dist/errors-3L7IiHcr.d.cts +0 -480
  46. package/dist/errors-BTe8GKRQ.d.ts +0 -480
  47. package/dist/errors-CT7yzKkU.d.cts +0 -874
  48. package/dist/errors-CT7yzKkU.d.ts +0 -874
  49. package/dist/graph/index.cjs +0 -427
  50. package/dist/graph/index.cjs.map +0 -1
  51. package/dist/graph/index.d.cts +0 -485
  52. package/dist/graph/index.d.ts +0 -485
  53. package/dist/graph/index.js +0 -396
  54. package/dist/graph/index.js.map +0 -1
  55. package/dist/query/index.cjs +0 -356
  56. package/dist/query/index.cjs.map +0 -1
  57. package/dist/query/index.d.cts +0 -636
  58. package/dist/query/index.d.ts +0 -636
  59. package/dist/query/index.js +0 -328
  60. package/dist/query/index.js.map +0 -1
  61. package/dist/upload/index.cjs +0 -1634
  62. package/dist/upload/index.cjs.map +0 -1
  63. package/dist/upload/index.d.cts +0 -150
  64. package/dist/upload/index.d.ts +0 -150
  65. package/dist/upload/index.js +0 -1597
  66. 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 './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 { 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 './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 };