@oxy.so/contracts 5.8.0 → 6.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 (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare function utf16MinLength(minimum: number, message?: string | {
3
+ message?: string;
4
+ }): z.core.$ZodCheckMinLength<z.core.util.HasLength> | z.core.$ZodCheckMaxLength<z.core.util.HasLength> | z.core.$ZodCheckLengthEquals<z.core.util.HasLength>;
5
+ export declare function utf16MaxLength(maximum: number, message?: string | {
6
+ message?: string;
7
+ }): z.core.$ZodCheckMinLength<z.core.util.HasLength> | z.core.$ZodCheckMaxLength<z.core.util.HasLength> | z.core.$ZodCheckLengthEquals<z.core.util.HasLength>;
8
+ export declare function utf16Length(length: number, message?: string | {
9
+ message?: string;
10
+ }): z.core.$ZodCheckMinLength<z.core.util.HasLength> | z.core.$ZodCheckMaxLength<z.core.util.HasLength> | z.core.$ZodCheckLengthEquals<z.core.util.HasLength>;
11
+ /** Oxy timestamps retain optional seconds, fractional precision and existing offset syntax. */
12
+ export declare function isoDateTime(options?: string | z.core.$ZodISODateTimeParams): z.ZodCustomStringFormat<"datetime">;
13
+ /** Validate a URL without normalizing the value returned by the API contract. */
14
+ export declare function urlCheck(message?: string | {
15
+ message?: string;
16
+ }): z.ZodCustomStringFormat<"url">;
@@ -6,39 +6,17 @@ import { z } from 'zod';
6
6
  * SAME bytes, so the array on a checkpoint can grow without coordination.
7
7
  */
8
8
  export declare const transparencyCheckpointSignatureSchema: z.ZodObject<{
9
- /** Uncompressed hex public key of the signer. */
10
9
  publicKey: z.ZodString;
11
10
  alg: z.ZodLiteral<"ES256K-DER-SHA256">;
12
- /** DER-encoded hex secp256k1 signature over the checkpoint signing input. */
13
11
  signature: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- signature: string;
16
- publicKey: string;
17
- alg: "ES256K-DER-SHA256";
18
- }, {
19
- signature: string;
20
- publicKey: string;
21
- alg: "ES256K-DER-SHA256";
22
- }>;
12
+ }, z.core.$strip>;
23
13
  /** Where a checkpoint root was published on a public chain. */
24
14
  export declare const transparencyAnchorSchema: z.ZodObject<{
25
- /** Chain/network identifier, e.g. `faircoin-main`. */
26
15
  network: z.ZodString;
27
16
  txid: z.ZodString;
28
17
  confirmations: z.ZodNumber;
29
- /** When the anchoring transaction was broadcast (ms epoch). */
30
18
  anchoredAt: z.ZodNumber;
31
- }, "strip", z.ZodTypeAny, {
32
- network: string;
33
- txid: string;
34
- confirmations: number;
35
- anchoredAt: number;
36
- }, {
37
- network: string;
38
- txid: string;
39
- confirmations: number;
40
- anchoredAt: number;
41
- }>;
19
+ }, z.core.$strip>;
42
20
  /**
43
21
  * A published checkpoint.
44
22
  *
@@ -49,81 +27,22 @@ export declare const transparencyAnchorSchema: z.ZodObject<{
49
27
  */
50
28
  export declare const transparencyCheckpointSchema: z.ZodObject<{
51
29
  index: z.ZodNumber;
52
- /** End of the committed period (ms epoch). */
53
30
  periodEnd: z.ZodNumber;
54
- /** Number of subjects (leaves) committed. */
55
31
  treeSize: z.ZodNumber;
56
32
  root: z.ZodString;
57
- /** Hash of the previous checkpoint; `null` only at genesis. */
58
33
  prevCheckpointHash: z.ZodNullable<z.ZodString>;
59
34
  signatures: z.ZodArray<z.ZodObject<{
60
- /** Uncompressed hex public key of the signer. */
61
35
  publicKey: z.ZodString;
62
36
  alg: z.ZodLiteral<"ES256K-DER-SHA256">;
63
- /** DER-encoded hex secp256k1 signature over the checkpoint signing input. */
64
37
  signature: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- signature: string;
67
- publicKey: string;
68
- alg: "ES256K-DER-SHA256";
69
- }, {
70
- signature: string;
71
- publicKey: string;
72
- alg: "ES256K-DER-SHA256";
73
- }>, "many">;
38
+ }, z.core.$strip>>;
74
39
  anchors: z.ZodArray<z.ZodObject<{
75
- /** Chain/network identifier, e.g. `faircoin-main`. */
76
40
  network: z.ZodString;
77
41
  txid: z.ZodString;
78
42
  confirmations: z.ZodNumber;
79
- /** When the anchoring transaction was broadcast (ms epoch). */
80
43
  anchoredAt: z.ZodNumber;
81
- }, "strip", z.ZodTypeAny, {
82
- network: string;
83
- txid: string;
84
- confirmations: number;
85
- anchoredAt: number;
86
- }, {
87
- network: string;
88
- txid: string;
89
- confirmations: number;
90
- anchoredAt: number;
91
- }>, "many">;
92
- }, "strip", z.ZodTypeAny, {
93
- root: string;
94
- index: number;
95
- periodEnd: number;
96
- treeSize: number;
97
- prevCheckpointHash: string | null;
98
- signatures: {
99
- signature: string;
100
- publicKey: string;
101
- alg: "ES256K-DER-SHA256";
102
- }[];
103
- anchors: {
104
- network: string;
105
- txid: string;
106
- confirmations: number;
107
- anchoredAt: number;
108
- }[];
109
- }, {
110
- root: string;
111
- index: number;
112
- periodEnd: number;
113
- treeSize: number;
114
- prevCheckpointHash: string | null;
115
- signatures: {
116
- signature: string;
117
- publicKey: string;
118
- alg: "ES256K-DER-SHA256";
119
- }[];
120
- anchors: {
121
- network: string;
122
- txid: string;
123
- confirmations: number;
124
- anchoredAt: number;
125
- }[];
126
- }>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
127
46
  /**
128
47
  * An inclusion proof for one subject against one checkpoint.
129
48
  *
@@ -134,257 +53,50 @@ export declare const transparencyCheckpointSchema: z.ZodObject<{
134
53
  export declare const transparencyInclusionProofSchema: z.ZodObject<{
135
54
  checkpoint: z.ZodObject<{
136
55
  index: z.ZodNumber;
137
- /** End of the committed period (ms epoch). */
138
56
  periodEnd: z.ZodNumber;
139
- /** Number of subjects (leaves) committed. */
140
57
  treeSize: z.ZodNumber;
141
58
  root: z.ZodString;
142
- /** Hash of the previous checkpoint; `null` only at genesis. */
143
59
  prevCheckpointHash: z.ZodNullable<z.ZodString>;
144
60
  signatures: z.ZodArray<z.ZodObject<{
145
- /** Uncompressed hex public key of the signer. */
146
61
  publicKey: z.ZodString;
147
62
  alg: z.ZodLiteral<"ES256K-DER-SHA256">;
148
- /** DER-encoded hex secp256k1 signature over the checkpoint signing input. */
149
63
  signature: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- signature: string;
152
- publicKey: string;
153
- alg: "ES256K-DER-SHA256";
154
- }, {
155
- signature: string;
156
- publicKey: string;
157
- alg: "ES256K-DER-SHA256";
158
- }>, "many">;
64
+ }, z.core.$strip>>;
159
65
  anchors: z.ZodArray<z.ZodObject<{
160
- /** Chain/network identifier, e.g. `faircoin-main`. */
161
66
  network: z.ZodString;
162
67
  txid: z.ZodString;
163
68
  confirmations: z.ZodNumber;
164
- /** When the anchoring transaction was broadcast (ms epoch). */
165
69
  anchoredAt: z.ZodNumber;
166
- }, "strip", z.ZodTypeAny, {
167
- network: string;
168
- txid: string;
169
- confirmations: number;
170
- anchoredAt: number;
171
- }, {
172
- network: string;
173
- txid: string;
174
- confirmations: number;
175
- anchoredAt: number;
176
- }>, "many">;
177
- }, "strip", z.ZodTypeAny, {
178
- root: string;
179
- index: number;
180
- periodEnd: number;
181
- treeSize: number;
182
- prevCheckpointHash: string | null;
183
- signatures: {
184
- signature: string;
185
- publicKey: string;
186
- alg: "ES256K-DER-SHA256";
187
- }[];
188
- anchors: {
189
- network: string;
190
- txid: string;
191
- confirmations: number;
192
- anchoredAt: number;
193
- }[];
194
- }, {
195
- root: string;
196
- index: number;
197
- periodEnd: number;
198
- treeSize: number;
199
- prevCheckpointHash: string | null;
200
- signatures: {
201
- signature: string;
202
- publicKey: string;
203
- alg: "ES256K-DER-SHA256";
204
- }[];
205
- anchors: {
206
- network: string;
207
- txid: string;
208
- confirmations: number;
209
- anchoredAt: number;
210
- }[];
211
- }>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>;
212
72
  subjectDid: z.ZodString;
213
73
  seq: z.ZodNumber;
214
74
  headRecordId: z.ZodString;
215
75
  leaf: z.ZodString;
216
76
  leafIndex: z.ZodNumber;
217
- /** Audit path, leaf-adjacent sibling first; empty for a single-leaf tree. */
218
- proof: z.ZodArray<z.ZodString, "many">;
219
- }, "strip", z.ZodTypeAny, {
220
- proof: string[];
221
- seq: number;
222
- headRecordId: string;
223
- checkpoint: {
224
- root: string;
225
- index: number;
226
- periodEnd: number;
227
- treeSize: number;
228
- prevCheckpointHash: string | null;
229
- signatures: {
230
- signature: string;
231
- publicKey: string;
232
- alg: "ES256K-DER-SHA256";
233
- }[];
234
- anchors: {
235
- network: string;
236
- txid: string;
237
- confirmations: number;
238
- anchoredAt: number;
239
- }[];
240
- };
241
- subjectDid: string;
242
- leaf: string;
243
- leafIndex: number;
244
- }, {
245
- proof: string[];
246
- seq: number;
247
- headRecordId: string;
248
- checkpoint: {
249
- root: string;
250
- index: number;
251
- periodEnd: number;
252
- treeSize: number;
253
- prevCheckpointHash: string | null;
254
- signatures: {
255
- signature: string;
256
- publicKey: string;
257
- alg: "ES256K-DER-SHA256";
258
- }[];
259
- anchors: {
260
- network: string;
261
- txid: string;
262
- confirmations: number;
263
- anchoredAt: number;
264
- }[];
265
- };
266
- subjectDid: string;
267
- leaf: string;
268
- leafIndex: number;
269
- }>;
77
+ proof: z.ZodArray<z.ZodString>;
78
+ }, z.core.$strip>;
270
79
  /** A page of the checkpoint chain, oldest first, for walking `prevCheckpointHash`. */
271
80
  export declare const transparencyCheckpointListSchema: z.ZodObject<{
272
81
  checkpoints: z.ZodArray<z.ZodObject<{
273
82
  index: z.ZodNumber;
274
- /** End of the committed period (ms epoch). */
275
83
  periodEnd: z.ZodNumber;
276
- /** Number of subjects (leaves) committed. */
277
84
  treeSize: z.ZodNumber;
278
85
  root: z.ZodString;
279
- /** Hash of the previous checkpoint; `null` only at genesis. */
280
86
  prevCheckpointHash: z.ZodNullable<z.ZodString>;
281
87
  signatures: z.ZodArray<z.ZodObject<{
282
- /** Uncompressed hex public key of the signer. */
283
88
  publicKey: z.ZodString;
284
89
  alg: z.ZodLiteral<"ES256K-DER-SHA256">;
285
- /** DER-encoded hex secp256k1 signature over the checkpoint signing input. */
286
90
  signature: z.ZodString;
287
- }, "strip", z.ZodTypeAny, {
288
- signature: string;
289
- publicKey: string;
290
- alg: "ES256K-DER-SHA256";
291
- }, {
292
- signature: string;
293
- publicKey: string;
294
- alg: "ES256K-DER-SHA256";
295
- }>, "many">;
91
+ }, z.core.$strip>>;
296
92
  anchors: z.ZodArray<z.ZodObject<{
297
- /** Chain/network identifier, e.g. `faircoin-main`. */
298
93
  network: z.ZodString;
299
94
  txid: z.ZodString;
300
95
  confirmations: z.ZodNumber;
301
- /** When the anchoring transaction was broadcast (ms epoch). */
302
96
  anchoredAt: z.ZodNumber;
303
- }, "strip", z.ZodTypeAny, {
304
- network: string;
305
- txid: string;
306
- confirmations: number;
307
- anchoredAt: number;
308
- }, {
309
- network: string;
310
- txid: string;
311
- confirmations: number;
312
- anchoredAt: number;
313
- }>, "many">;
314
- }, "strip", z.ZodTypeAny, {
315
- root: string;
316
- index: number;
317
- periodEnd: number;
318
- treeSize: number;
319
- prevCheckpointHash: string | null;
320
- signatures: {
321
- signature: string;
322
- publicKey: string;
323
- alg: "ES256K-DER-SHA256";
324
- }[];
325
- anchors: {
326
- network: string;
327
- txid: string;
328
- confirmations: number;
329
- anchoredAt: number;
330
- }[];
331
- }, {
332
- root: string;
333
- index: number;
334
- periodEnd: number;
335
- treeSize: number;
336
- prevCheckpointHash: string | null;
337
- signatures: {
338
- signature: string;
339
- publicKey: string;
340
- alg: "ES256K-DER-SHA256";
341
- }[];
342
- anchors: {
343
- network: string;
344
- txid: string;
345
- confirmations: number;
346
- anchoredAt: number;
347
- }[];
348
- }>, "many">;
349
- }, "strip", z.ZodTypeAny, {
350
- checkpoints: {
351
- root: string;
352
- index: number;
353
- periodEnd: number;
354
- treeSize: number;
355
- prevCheckpointHash: string | null;
356
- signatures: {
357
- signature: string;
358
- publicKey: string;
359
- alg: "ES256K-DER-SHA256";
360
- }[];
361
- anchors: {
362
- network: string;
363
- txid: string;
364
- confirmations: number;
365
- anchoredAt: number;
366
- }[];
367
- }[];
368
- }, {
369
- checkpoints: {
370
- root: string;
371
- index: number;
372
- periodEnd: number;
373
- treeSize: number;
374
- prevCheckpointHash: string | null;
375
- signatures: {
376
- signature: string;
377
- publicKey: string;
378
- alg: "ES256K-DER-SHA256";
379
- }[];
380
- anchors: {
381
- network: string;
382
- txid: string;
383
- confirmations: number;
384
- anchoredAt: number;
385
- }[];
386
- }[];
387
- }>;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>;
388
100
  export type TransparencyCheckpointSignature = z.infer<typeof transparencyCheckpointSignatureSchema>;
389
101
  export type TransparencyAnchor = z.infer<typeof transparencyAnchorSchema>;
390
102
  export type TransparencyCheckpoint = z.infer<typeof transparencyCheckpointSchema>;