@kindgi/types 0.0.0-bootstrap.0 → 0.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 (48) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -2
  3. package/SPEC.md +162 -0
  4. package/dist/filter.d.ts +61 -0
  5. package/dist/filter.d.ts.map +1 -0
  6. package/dist/filter.js +4 -0
  7. package/dist/filter.js.map +1 -0
  8. package/dist/hash.d.ts +32 -0
  9. package/dist/hash.d.ts.map +1 -0
  10. package/dist/hash.js +4 -0
  11. package/dist/hash.js.map +1 -0
  12. package/dist/ids.d.ts +171 -0
  13. package/dist/ids.d.ts.map +1 -0
  14. package/dist/ids.js +15 -0
  15. package/dist/ids.js.map +1 -0
  16. package/dist/index.d.ts +9 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +7 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/refs.d.ts +58 -0
  21. package/dist/refs.d.ts.map +1 -0
  22. package/dist/refs.js +4 -0
  23. package/dist/refs.js.map +1 -0
  24. package/dist/result.d.ts +48 -0
  25. package/dist/result.d.ts.map +1 -0
  26. package/dist/result.js +4 -0
  27. package/dist/result.js.map +1 -0
  28. package/dist/temporal.d.ts +30 -0
  29. package/dist/temporal.d.ts.map +1 -0
  30. package/dist/temporal.js +4 -0
  31. package/dist/temporal.js.map +1 -0
  32. package/dist/version.d.ts +36 -0
  33. package/dist/version.d.ts.map +1 -0
  34. package/dist/version.js +4 -0
  35. package/dist/version.js.map +1 -0
  36. package/package.json +46 -4
  37. package/src/filter.ts +66 -0
  38. package/src/hash.ts +37 -0
  39. package/src/ids.test-d.ts +54 -0
  40. package/src/ids.ts +225 -0
  41. package/src/index.ts +15 -0
  42. package/src/refs.test-d.ts +93 -0
  43. package/src/refs.ts +62 -0
  44. package/src/result.test-d.ts +59 -0
  45. package/src/result.ts +42 -0
  46. package/src/temporal.ts +35 -0
  47. package/src/version.ts +41 -0
  48. package/type-manifest.json +99 -0
@@ -0,0 +1,99 @@
1
+ {
2
+ "$schema": "https://kindgi.com/schemas/v1/type-manifest.schema.json",
3
+ "package": "@kindgi/types",
4
+ "version": "0.0.0",
5
+ "description": "Foundational TypeScript types. Type-only exports; zero runtime code.",
6
+ "exports": {
7
+ "brand": {
8
+ "kind": "type",
9
+ "generic": ["T", "B extends string"],
10
+ "description": "Nominal-type utility for branded types."
11
+ },
12
+ "TenantId": { "kind": "type", "form": "Brand<string, 'TenantId'>" },
13
+ "UserId": { "kind": "type", "form": "Brand<string, 'UserId'>" },
14
+ "OrgId": { "kind": "type", "form": "Brand<string, 'OrgId'>" },
15
+ "TeamId": { "kind": "type", "form": "Brand<string, 'TeamId'>" },
16
+ "ProjectId": { "kind": "type", "form": "Brand<string, 'ProjectId'>" },
17
+ "ThreadId": { "kind": "type", "form": "Brand<string, 'ThreadId'>" },
18
+ "SessionId": { "kind": "type", "form": "Brand<string, 'SessionId'>" },
19
+ "RunId": { "kind": "type", "form": "Brand<string, 'RunId'>" },
20
+ "FlowId": { "kind": "type", "form": "Brand<string, 'FlowId'>" },
21
+ "NodeId": { "kind": "type", "form": "Brand<string, 'NodeId'>" },
22
+ "EdgeId": { "kind": "type", "form": "Brand<string, 'EdgeId'>" },
23
+ "AgentId": { "kind": "type", "form": "Brand<string, 'AgentId'>" },
24
+ "ToolId": { "kind": "type", "form": "Brand<string, 'ToolId'>" },
25
+ "GuardrailId": { "kind": "type", "form": "Brand<string, 'GuardrailId'>" },
26
+ "PolicyId": { "kind": "type", "form": "Brand<string, 'PolicyId'>" },
27
+ "PackId": { "kind": "type", "form": "Brand<string, 'PackId'>" },
28
+ "EventId": { "kind": "type", "form": "Brand<string, 'EventId'>" },
29
+ "FactId": { "kind": "type", "form": "Brand<string, 'FactId'>" },
30
+ "LogEntryId": { "kind": "type", "form": "Brand<string, 'LogEntryId'>" },
31
+ "ArtifactId": { "kind": "type", "form": "Brand<string, 'ArtifactId'>" },
32
+ "ProvenanceId": { "kind": "type", "form": "Brand<string, 'ProvenanceId'>" },
33
+ "SubscriptionId": { "kind": "type", "form": "Brand<string, 'SubscriptionId'>" },
34
+ "ApprovalId": { "kind": "type", "form": "Brand<string, 'ApprovalId'>" },
35
+ "ComplianceEvidenceId": { "kind": "type", "form": "Brand<string, 'ComplianceEvidenceId'>" },
36
+ "WaitTokenId": { "kind": "type", "form": "Brand<string, 'WaitTokenId'>" },
37
+ "DatasetId": { "kind": "type", "form": "Brand<string, 'DatasetId'>" },
38
+ "Timestamp": { "kind": "type", "form": "Brand<string, 'Timestamp'>" },
39
+ "DurationMs": { "kind": "type", "form": "Brand<number, 'DurationMs'>" },
40
+ "IsoDuration": { "kind": "type", "form": "Brand<string, 'IsoDuration'>" },
41
+ "ContentHash": { "kind": "type", "form": "Brand<string, 'ContentHash'>" },
42
+ "SignatureValue": { "kind": "type", "form": "Brand<string, 'SignatureValue'>" },
43
+ "KeyId": { "kind": "type", "form": "Brand<string, 'KeyId'>" },
44
+ "BlobRef": {
45
+ "kind": "type",
46
+ "form": "interface",
47
+ "fields": {
48
+ "provider": "string",
49
+ "bucket": "string",
50
+ "key": "string",
51
+ "size": "number",
52
+ "sha256": "ContentHash",
53
+ "contentType": "string",
54
+ "tenantId": "TenantId",
55
+ "createdAt": "Timestamp",
56
+ "retentionUntil?": "Timestamp"
57
+ }
58
+ },
59
+ "DatasetRef": {
60
+ "kind": "type",
61
+ "form": "interface",
62
+ "fields": {
63
+ "datasetId": "string",
64
+ "tenantId": "TenantId",
65
+ "version": "string",
66
+ "factType": "string",
67
+ "count": "number",
68
+ "createdAt": "Timestamp"
69
+ }
70
+ },
71
+ "Result": {
72
+ "kind": "type",
73
+ "generic": ["T", "E"],
74
+ "form": "discriminated-union",
75
+ "members": [{ "kind": "ok", "value": "T" }, { "kind": "err", "error": "E" }]
76
+ },
77
+ "OkOf": {
78
+ "kind": "type",
79
+ "generic": ["R"],
80
+ "description": "Extract success type from Result."
81
+ },
82
+ "ErrOf": { "kind": "type", "generic": ["R"], "description": "Extract error type from Result." },
83
+ "Semver": { "kind": "type", "form": "Brand<string, 'Semver'>" },
84
+ "SchemaMajor": { "kind": "type", "form": "Brand<number, 'SchemaMajor'>" },
85
+ "VersionedRef": {
86
+ "kind": "type",
87
+ "generic": ["Id extends string"],
88
+ "form": "interface",
89
+ "fields": {
90
+ "id": "Id",
91
+ "version": "Semver"
92
+ }
93
+ }
94
+ },
95
+ "runtime": {
96
+ "hasCode": false,
97
+ "note": "Compiles to .d.ts declarations only. Package emits no JavaScript."
98
+ }
99
+ }