@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
@@ -58,23 +58,7 @@ export declare const encryptedBackupEnvelopeSchema: z.ZodObject<{
58
58
  ciphertext: z.ZodString;
59
59
  publicKeyHint: z.ZodString;
60
60
  createdAt: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- createdAt: string;
63
- version: number;
64
- nonce: string;
65
- algorithm: "xchacha20poly1305";
66
- kdfInfo: string;
67
- ciphertext: string;
68
- publicKeyHint: string;
69
- }, {
70
- createdAt: string;
71
- version: number;
72
- nonce: string;
73
- algorithm: "xchacha20poly1305";
74
- kdfInfo: string;
75
- ciphertext: string;
76
- publicKeyHint: string;
77
- }>;
61
+ }, z.core.$strip>;
78
62
  export type EncryptedBackupEnvelope = z.infer<typeof encryptedBackupEnvelopeSchema>;
79
63
  /**
80
64
  * Request body of `POST /identity/backup` — the envelope PLUS the raw
@@ -90,32 +74,8 @@ export declare const backupUploadRequestSchema: z.ZodObject<{
90
74
  ciphertext: z.ZodString;
91
75
  publicKeyHint: z.ZodString;
92
76
  createdAt: z.ZodString;
93
- } & {
94
- /**
95
- * The raw 256-bit backup locator (hex), derived client-side from the seed
96
- * with a domain-separated HKDF `info`. The server stores ONLY its sha256; a
97
- * DB dump therefore cannot recompute a locator to enumerate backups.
98
- */
99
77
  lookupId: z.ZodString;
100
- }, "strip", z.ZodTypeAny, {
101
- createdAt: string;
102
- version: number;
103
- nonce: string;
104
- algorithm: "xchacha20poly1305";
105
- kdfInfo: string;
106
- ciphertext: string;
107
- publicKeyHint: string;
108
- lookupId: string;
109
- }, {
110
- createdAt: string;
111
- version: number;
112
- nonce: string;
113
- algorithm: "xchacha20poly1305";
114
- kdfInfo: string;
115
- ciphertext: string;
116
- publicKeyHint: string;
117
- lookupId: string;
118
- }>;
78
+ }, z.core.$strip>;
119
79
  export type BackupUploadRequest = z.infer<typeof backupUploadRequestSchema>;
120
80
  /**
121
81
  * Response of `GET /identity/backup/status` (and the write/delete acks): whether
@@ -126,13 +86,5 @@ export declare const backupStatusResponseSchema: z.ZodObject<{
126
86
  exists: z.ZodBoolean;
127
87
  publicKeyHint: z.ZodOptional<z.ZodString>;
128
88
  createdAt: z.ZodOptional<z.ZodString>;
129
- }, "strip", z.ZodTypeAny, {
130
- exists: boolean;
131
- createdAt?: string | undefined;
132
- publicKeyHint?: string | undefined;
133
- }, {
134
- exists: boolean;
135
- createdAt?: string | undefined;
136
- publicKeyHint?: string | undefined;
137
- }>;
89
+ }, z.core.$strip>;
138
90
  export type BackupStatusResponse = z.infer<typeof backupStatusResponseSchema>;
@@ -29,15 +29,8 @@ import { z } from 'zod';
29
29
  */
30
30
  export declare const rotateKeyChallengeResponseSchema: z.ZodObject<{
31
31
  challenge: z.ZodString;
32
- /** ISO-8601 expiry timestamp. */
33
32
  expiresAt: z.ZodString;
34
- }, "strip", z.ZodTypeAny, {
35
- expiresAt: string;
36
- challenge: string;
37
- }, {
38
- expiresAt: string;
39
- challenge: string;
40
- }>;
33
+ }, z.core.$strip>;
41
34
  export type RotateKeyChallengeResponse = z.infer<typeof rotateKeyChallengeResponseSchema>;
42
35
  /**
43
36
  * Request body of `POST /auth/rotate/complete`.
@@ -61,43 +54,15 @@ export declare const rotateKeyCompleteRequestSchema: z.ZodObject<{
61
54
  newPublicKey: z.ZodString;
62
55
  challenge: z.ZodString;
63
56
  signature: z.ZodString;
64
- /** Proof-of-possession: the NEW key signs the rotate_key_new payload. */
65
57
  newKeyProof: z.ZodString;
66
58
  timestamp: z.ZodNumber;
67
- /**
68
- * When true, all OTHER active sessions for the account are revoked after a
69
- * successful rotation (the rotating device stays signed in). Use it when the
70
- * old key is presumed compromised.
71
- */
72
59
  signOutEverywhere: z.ZodOptional<z.ZodBoolean>;
73
- }, "strip", z.ZodTypeAny, {
74
- signature: string;
75
- challenge: string;
76
- timestamp: number;
77
- newPublicKey: string;
78
- newKeyProof: string;
79
- signOutEverywhere?: boolean | undefined;
80
- }, {
81
- signature: string;
82
- challenge: string;
83
- timestamp: number;
84
- newPublicKey: string;
85
- newKeyProof: string;
86
- signOutEverywhere?: boolean | undefined;
87
- }>;
60
+ }, z.core.$strip>;
88
61
  export type RotateKeyCompleteRequest = z.infer<typeof rotateKeyCompleteRequestSchema>;
89
62
  /** Response of `POST /auth/rotate/complete`: the account's new (rotated) public key. */
90
63
  export declare const rotateKeyCompleteResponseSchema: z.ZodObject<{
91
64
  success: z.ZodBoolean;
92
65
  publicKey: z.ZodString;
93
66
  message: z.ZodString;
94
- }, "strip", z.ZodTypeAny, {
95
- message: string;
96
- publicKey: string;
97
- success: boolean;
98
- }, {
99
- message: string;
100
- publicKey: string;
101
- success: boolean;
102
- }>;
67
+ }, z.core.$strip>;
103
68
  export type RotateKeyCompleteResponse = z.infer<typeof rotateKeyCompleteResponseSchema>;
@@ -12,7 +12,10 @@
12
12
  import { z } from 'zod';
13
13
  export declare const LINKED_ACCOUNT_NETWORKS: readonly ["activitypub", "atproto"];
14
14
  export type LinkedAccountNetwork = (typeof LINKED_ACCOUNT_NETWORKS)[number];
15
- export declare const linkedAccountNetworkSchema: z.ZodEnum<["activitypub", "atproto"]>;
15
+ export declare const linkedAccountNetworkSchema: z.ZodEnum<{
16
+ activitypub: "activitypub";
17
+ atproto: "atproto";
18
+ }>;
16
19
  /**
17
20
  * `POST /linked-accounts/:network/start`.
18
21
  *
@@ -28,28 +31,12 @@ export declare const startLinkedAccountRequestSchema: z.ZodObject<{
28
31
  handle: z.ZodOptional<z.ZodString>;
29
32
  clientId: z.ZodString;
30
33
  returnTo: z.ZodString;
31
- }, "strict", z.ZodTypeAny, {
32
- clientId: string;
33
- returnTo: string;
34
- handle?: string | undefined;
35
- instance?: string | undefined;
36
- }, {
37
- clientId: string;
38
- returnTo: string;
39
- handle?: string | undefined;
40
- instance?: string | undefined;
41
- }>;
34
+ }, z.core.$strict>;
42
35
  export type StartLinkedAccountRequest = z.infer<typeof startLinkedAccountRequestSchema>;
43
36
  export declare const startLinkedAccountResponseSchema: z.ZodObject<{
44
37
  authorizeUrl: z.ZodString;
45
38
  expiresAt: z.ZodString;
46
- }, "strict", z.ZodTypeAny, {
47
- expiresAt: string;
48
- authorizeUrl: string;
49
- }, {
50
- expiresAt: string;
51
- authorizeUrl: string;
52
- }>;
39
+ }, z.core.$strict>;
53
40
  export type StartLinkedAccountResponse = z.infer<typeof startLinkedAccountResponseSchema>;
54
41
  /**
55
42
  * `POST /linked-accounts/complete`, with the session of the user who STARTED
@@ -59,166 +46,57 @@ export type StartLinkedAccountResponse = z.infer<typeof startLinkedAccountRespon
59
46
  */
60
47
  export declare const completeLinkedAccountRequestSchema: z.ZodObject<{
61
48
  code: z.ZodString;
62
- }, "strict", z.ZodTypeAny, {
63
- code: string;
64
- }, {
65
- code: string;
66
- }>;
49
+ }, z.core.$strict>;
67
50
  export type CompleteLinkedAccountRequest = z.infer<typeof completeLinkedAccountRequestSchema>;
68
51
  /** One live linked account, as its owner sees it. */
69
52
  export declare const linkedAccountSchema: z.ZodObject<{
70
53
  id: z.ZodString;
71
- network: z.ZodEnum<["activitypub", "atproto"]>;
72
- /** `username@domain` for ActivityPub; the DID for atproto. */
54
+ network: z.ZodEnum<{
55
+ activitypub: "activitypub";
56
+ atproto: "atproto";
57
+ }>;
73
58
  accountKey: z.ZodString;
74
- /** ActivityPub actor id, or the DID for atproto. */
75
59
  actorUri: z.ZodString;
76
60
  handle: z.ZodString;
77
61
  host: z.ZodString;
78
62
  proofMethod: z.ZodLiteral<"oauth">;
79
63
  verifiedAt: z.ZodString;
80
64
  createdAt: z.ZodString;
81
- }, "strict", z.ZodTypeAny, {
82
- createdAt: string;
83
- id: string;
84
- verifiedAt: string;
85
- network: "activitypub" | "atproto";
86
- actorUri: string;
87
- handle: string;
88
- accountKey: string;
89
- host: string;
90
- proofMethod: "oauth";
91
- }, {
92
- createdAt: string;
93
- id: string;
94
- verifiedAt: string;
95
- network: "activitypub" | "atproto";
96
- actorUri: string;
97
- handle: string;
98
- accountKey: string;
99
- host: string;
100
- proofMethod: "oauth";
101
- }>;
65
+ }, z.core.$strict>;
102
66
  export type LinkedAccount = z.infer<typeof linkedAccountSchema>;
103
67
  export declare const completeLinkedAccountResponseSchema: z.ZodObject<{
104
68
  linkedAccount: z.ZodObject<{
105
69
  id: z.ZodString;
106
- network: z.ZodEnum<["activitypub", "atproto"]>;
107
- /** `username@domain` for ActivityPub; the DID for atproto. */
70
+ network: z.ZodEnum<{
71
+ activitypub: "activitypub";
72
+ atproto: "atproto";
73
+ }>;
108
74
  accountKey: z.ZodString;
109
- /** ActivityPub actor id, or the DID for atproto. */
110
75
  actorUri: z.ZodString;
111
76
  handle: z.ZodString;
112
77
  host: z.ZodString;
113
78
  proofMethod: z.ZodLiteral<"oauth">;
114
79
  verifiedAt: z.ZodString;
115
80
  createdAt: z.ZodString;
116
- }, "strict", z.ZodTypeAny, {
117
- createdAt: string;
118
- id: string;
119
- verifiedAt: string;
120
- network: "activitypub" | "atproto";
121
- actorUri: string;
122
- handle: string;
123
- accountKey: string;
124
- host: string;
125
- proofMethod: "oauth";
126
- }, {
127
- createdAt: string;
128
- id: string;
129
- verifiedAt: string;
130
- network: "activitypub" | "atproto";
131
- actorUri: string;
132
- handle: string;
133
- accountKey: string;
134
- host: string;
135
- proofMethod: "oauth";
136
- }>;
137
- }, "strict", z.ZodTypeAny, {
138
- linkedAccount: {
139
- createdAt: string;
140
- id: string;
141
- verifiedAt: string;
142
- network: "activitypub" | "atproto";
143
- actorUri: string;
144
- handle: string;
145
- accountKey: string;
146
- host: string;
147
- proofMethod: "oauth";
148
- };
149
- }, {
150
- linkedAccount: {
151
- createdAt: string;
152
- id: string;
153
- verifiedAt: string;
154
- network: "activitypub" | "atproto";
155
- actorUri: string;
156
- handle: string;
157
- accountKey: string;
158
- host: string;
159
- proofMethod: "oauth";
160
- };
161
- }>;
81
+ }, z.core.$strict>;
82
+ }, z.core.$strict>;
162
83
  export type CompleteLinkedAccountResponse = z.infer<typeof completeLinkedAccountResponseSchema>;
163
84
  export declare const linkedAccountListResponseSchema: z.ZodObject<{
164
85
  linkedAccounts: z.ZodArray<z.ZodObject<{
165
86
  id: z.ZodString;
166
- network: z.ZodEnum<["activitypub", "atproto"]>;
167
- /** `username@domain` for ActivityPub; the DID for atproto. */
87
+ network: z.ZodEnum<{
88
+ activitypub: "activitypub";
89
+ atproto: "atproto";
90
+ }>;
168
91
  accountKey: z.ZodString;
169
- /** ActivityPub actor id, or the DID for atproto. */
170
92
  actorUri: z.ZodString;
171
93
  handle: z.ZodString;
172
94
  host: z.ZodString;
173
95
  proofMethod: z.ZodLiteral<"oauth">;
174
96
  verifiedAt: z.ZodString;
175
97
  createdAt: z.ZodString;
176
- }, "strict", z.ZodTypeAny, {
177
- createdAt: string;
178
- id: string;
179
- verifiedAt: string;
180
- network: "activitypub" | "atproto";
181
- actorUri: string;
182
- handle: string;
183
- accountKey: string;
184
- host: string;
185
- proofMethod: "oauth";
186
- }, {
187
- createdAt: string;
188
- id: string;
189
- verifiedAt: string;
190
- network: "activitypub" | "atproto";
191
- actorUri: string;
192
- handle: string;
193
- accountKey: string;
194
- host: string;
195
- proofMethod: "oauth";
196
- }>, "many">;
197
- }, "strict", z.ZodTypeAny, {
198
- linkedAccounts: {
199
- createdAt: string;
200
- id: string;
201
- verifiedAt: string;
202
- network: "activitypub" | "atproto";
203
- actorUri: string;
204
- handle: string;
205
- accountKey: string;
206
- host: string;
207
- proofMethod: "oauth";
208
- }[];
209
- }, {
210
- linkedAccounts: {
211
- createdAt: string;
212
- id: string;
213
- verifiedAt: string;
214
- network: "activitypub" | "atproto";
215
- actorUri: string;
216
- handle: string;
217
- accountKey: string;
218
- host: string;
219
- proofMethod: "oauth";
220
- }[];
221
- }>;
98
+ }, z.core.$strict>>;
99
+ }, z.core.$strict>;
222
100
  export type LinkedAccountListResponse = z.infer<typeof linkedAccountListResponseSchema>;
223
101
  /**
224
102
  * `GET /linked-accounts/by-user/:userId` (service token with the privileged
@@ -228,110 +106,38 @@ export type LinkedAccountListResponse = z.infer<typeof linkedAccountListResponse
228
106
  */
229
107
  export declare const serviceLinkedAccountSchema: z.ZodObject<{
230
108
  id: z.ZodString;
231
- network: z.ZodEnum<["activitypub", "atproto"]>;
232
- /** `username@domain` for ActivityPub; the DID for atproto. */
109
+ network: z.ZodEnum<{
110
+ activitypub: "activitypub";
111
+ atproto: "atproto";
112
+ }>;
233
113
  accountKey: z.ZodString;
234
- /** ActivityPub actor id, or the DID for atproto. */
235
114
  actorUri: z.ZodString;
236
115
  handle: z.ZodString;
237
116
  host: z.ZodString;
238
117
  proofMethod: z.ZodLiteral<"oauth">;
239
118
  verifiedAt: z.ZodString;
240
119
  createdAt: z.ZodString;
241
- } & {
242
120
  federatedUserId: z.ZodNullable<z.ZodString>;
243
- }, "strict", z.ZodTypeAny, {
244
- createdAt: string;
245
- id: string;
246
- verifiedAt: string;
247
- network: "activitypub" | "atproto";
248
- actorUri: string;
249
- handle: string;
250
- accountKey: string;
251
- host: string;
252
- proofMethod: "oauth";
253
- federatedUserId: string | null;
254
- }, {
255
- createdAt: string;
256
- id: string;
257
- verifiedAt: string;
258
- network: "activitypub" | "atproto";
259
- actorUri: string;
260
- handle: string;
261
- accountKey: string;
262
- host: string;
263
- proofMethod: "oauth";
264
- federatedUserId: string | null;
265
- }>;
121
+ }, z.core.$strict>;
266
122
  export type ServiceLinkedAccount = z.infer<typeof serviceLinkedAccountSchema>;
267
123
  export declare const serviceLinkedAccountListResponseSchema: z.ZodObject<{
268
124
  userId: z.ZodString;
269
125
  linkedAccounts: z.ZodArray<z.ZodObject<{
270
126
  id: z.ZodString;
271
- network: z.ZodEnum<["activitypub", "atproto"]>;
272
- /** `username@domain` for ActivityPub; the DID for atproto. */
127
+ network: z.ZodEnum<{
128
+ activitypub: "activitypub";
129
+ atproto: "atproto";
130
+ }>;
273
131
  accountKey: z.ZodString;
274
- /** ActivityPub actor id, or the DID for atproto. */
275
132
  actorUri: z.ZodString;
276
133
  handle: z.ZodString;
277
134
  host: z.ZodString;
278
135
  proofMethod: z.ZodLiteral<"oauth">;
279
136
  verifiedAt: z.ZodString;
280
137
  createdAt: z.ZodString;
281
- } & {
282
138
  federatedUserId: z.ZodNullable<z.ZodString>;
283
- }, "strict", z.ZodTypeAny, {
284
- createdAt: string;
285
- id: string;
286
- verifiedAt: string;
287
- network: "activitypub" | "atproto";
288
- actorUri: string;
289
- handle: string;
290
- accountKey: string;
291
- host: string;
292
- proofMethod: "oauth";
293
- federatedUserId: string | null;
294
- }, {
295
- createdAt: string;
296
- id: string;
297
- verifiedAt: string;
298
- network: "activitypub" | "atproto";
299
- actorUri: string;
300
- handle: string;
301
- accountKey: string;
302
- host: string;
303
- proofMethod: "oauth";
304
- federatedUserId: string | null;
305
- }>, "many">;
306
- }, "strict", z.ZodTypeAny, {
307
- userId: string;
308
- linkedAccounts: {
309
- createdAt: string;
310
- id: string;
311
- verifiedAt: string;
312
- network: "activitypub" | "atproto";
313
- actorUri: string;
314
- handle: string;
315
- accountKey: string;
316
- host: string;
317
- proofMethod: "oauth";
318
- federatedUserId: string | null;
319
- }[];
320
- }, {
321
- userId: string;
322
- linkedAccounts: {
323
- createdAt: string;
324
- id: string;
325
- verifiedAt: string;
326
- network: "activitypub" | "atproto";
327
- actorUri: string;
328
- handle: string;
329
- accountKey: string;
330
- host: string;
331
- proofMethod: "oauth";
332
- federatedUserId: string | null;
333
- }[];
334
- }>;
139
+ }, z.core.$strict>>;
140
+ }, z.core.$strict>;
335
141
  export type ServiceLinkedAccountListResponse = z.infer<typeof serviceLinkedAccountListResponseSchema>;
336
142
  /**
337
143
  * Error codes the callback appends as `?link_error=<code>` to `returnTo`. An
@@ -362,13 +168,21 @@ export type LinkedAccountCallbackError = (typeof LINKED_ACCOUNT_CALLBACK_ERRORS)
362
168
  */
363
169
  export declare const LINKED_ACCOUNT_START_ERROR_REASONS: readonly ["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"];
364
170
  export type LinkedAccountStartErrorReason = (typeof LINKED_ACCOUNT_START_ERROR_REASONS)[number];
365
- export declare const linkedAccountStartErrorReasonSchema: z.ZodEnum<["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"]>;
171
+ export declare const linkedAccountStartErrorReasonSchema: z.ZodEnum<{
172
+ provider_unavailable: "provider_unavailable";
173
+ instance_invalid: "instance_invalid";
174
+ instance_unreachable: "instance_unreachable";
175
+ handle_unresolvable: "handle_unresolvable";
176
+ provider_rejected: "provider_rejected";
177
+ }>;
366
178
  /** The `details` of a start refusal. */
367
179
  export declare const linkedAccountStartErrorDetailsSchema: z.ZodObject<{
368
- reason: z.ZodEnum<["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"]>;
369
- }, "strict", z.ZodTypeAny, {
370
- reason: "provider_unavailable" | "instance_invalid" | "instance_unreachable" | "handle_unresolvable" | "provider_rejected";
371
- }, {
372
- reason: "provider_unavailable" | "instance_invalid" | "instance_unreachable" | "handle_unresolvable" | "provider_rejected";
373
- }>;
180
+ reason: z.ZodEnum<{
181
+ provider_unavailable: "provider_unavailable";
182
+ instance_invalid: "instance_invalid";
183
+ instance_unreachable: "instance_unreachable";
184
+ handle_unresolvable: "handle_unresolvable";
185
+ provider_rejected: "provider_rejected";
186
+ }>;
187
+ }, z.core.$strict>;
374
188
  export type LinkedAccountStartErrorDetails = z.infer<typeof linkedAccountStartErrorDetailsSchema>;
@@ -45,7 +45,12 @@ import { z } from 'zod';
45
45
  */
46
46
  export declare const MODERATION_SEVERITIES: readonly ["low", "medium", "high", "critical"];
47
47
  export type ModerationSeverity = (typeof MODERATION_SEVERITIES)[number];
48
- export declare const moderationSeveritySchema: z.ZodEnum<["low", "medium", "high", "critical"]>;
48
+ export declare const moderationSeveritySchema: z.ZodEnum<{
49
+ low: "low";
50
+ medium: "medium";
51
+ high: "high";
52
+ critical: "critical";
53
+ }>;
49
54
  /**
50
55
  * How far a finding reaches.
51
56
  *
@@ -58,11 +63,20 @@ export declare const moderationSeveritySchema: z.ZodEnum<["low", "medium", "high
58
63
  */
59
64
  export declare const MODERATION_FINDING_SCOPES: readonly ["application_local", "oxy_network", "identity_integrity"];
60
65
  export type ModerationFindingScope = (typeof MODERATION_FINDING_SCOPES)[number];
61
- export declare const moderationFindingScopeSchema: z.ZodEnum<["application_local", "oxy_network", "identity_integrity"]>;
66
+ export declare const moderationFindingScopeSchema: z.ZodEnum<{
67
+ application_local: "application_local";
68
+ oxy_network: "oxy_network";
69
+ identity_integrity: "identity_integrity";
70
+ }>;
62
71
  /** Which participant in the reported material the finding attributes to. */
63
72
  export declare const MODERATION_ATTRIBUTIONS: readonly ["author", "sharer", "reporter", "reviewer"];
64
73
  export type ModerationAttribution = (typeof MODERATION_ATTRIBUTIONS)[number];
65
- export declare const moderationAttributionSchema: z.ZodEnum<["author", "sharer", "reporter", "reviewer"]>;
74
+ export declare const moderationAttributionSchema: z.ZodEnum<{
75
+ author: "author";
76
+ sharer: "sharer";
77
+ reporter: "reporter";
78
+ reviewer: "reviewer";
79
+ }>;
66
80
  /**
67
81
  * Lifecycle of the decision the event describes.
68
82
  *
@@ -73,7 +87,13 @@ export declare const moderationAttributionSchema: z.ZodEnum<["author", "sharer",
73
87
  */
74
88
  export declare const MODERATION_DECISION_STATUSES: readonly ["provisional", "final", "inconclusive", "superseded", "corrected"];
75
89
  export type ModerationDecisionStatus = (typeof MODERATION_DECISION_STATUSES)[number];
76
- export declare const moderationDecisionStatusSchema: z.ZodEnum<["provisional", "final", "inconclusive", "superseded", "corrected"]>;
90
+ export declare const moderationDecisionStatusSchema: z.ZodEnum<{
91
+ provisional: "provisional";
92
+ final: "final";
93
+ inconclusive: "inconclusive";
94
+ superseded: "superseded";
95
+ corrected: "corrected";
96
+ }>;
77
97
  /**
78
98
  * The kind of consequence an effect carries. Each is its own axis, and the
79
99
  * idempotency key includes it — one incident may legitimately produce a conduct
@@ -81,15 +101,26 @@ export declare const moderationDecisionStatusSchema: z.ZodEnum<["provisional", "
81
101
  */
82
102
  export declare const MODERATION_EFFECT_TYPES: readonly ["conduct_penalty", "report_abuse_penalty", "review_abuse_penalty"];
83
103
  export type ModerationEffectType = (typeof MODERATION_EFFECT_TYPES)[number];
84
- export declare const moderationEffectTypeSchema: z.ZodEnum<["conduct_penalty", "report_abuse_penalty", "review_abuse_penalty"]>;
104
+ export declare const moderationEffectTypeSchema: z.ZodEnum<{
105
+ conduct_penalty: "conduct_penalty";
106
+ report_abuse_penalty: "report_abuse_penalty";
107
+ review_abuse_penalty: "review_abuse_penalty";
108
+ }>;
85
109
  /** Lifecycle of a stored effect. */
86
110
  export declare const MODERATION_EFFECT_STATUSES: readonly ["applied", "reversed"];
87
111
  export type ModerationEffectStatus = (typeof MODERATION_EFFECT_STATUSES)[number];
88
- export declare const moderationEffectStatusSchema: z.ZodEnum<["applied", "reversed"]>;
112
+ export declare const moderationEffectStatusSchema: z.ZodEnum<{
113
+ applied: "applied";
114
+ reversed: "reversed";
115
+ }>;
89
116
  /** Lifecycle of a conduct strike. Only `active` strikes carry active risk. */
90
117
  export declare const CONDUCT_STRIKE_STATUSES: readonly ["active", "expired", "reversed"];
91
118
  export type ConductStrikeStatus = (typeof CONDUCT_STRIKE_STATUSES)[number];
92
- export declare const conductStrikeStatusSchema: z.ZodEnum<["active", "expired", "reversed"]>;
119
+ export declare const conductStrikeStatusSchema: z.ZodEnum<{
120
+ active: "active";
121
+ expired: "expired";
122
+ reversed: "reversed";
123
+ }>;
93
124
  /**
94
125
  * Conduct standing, derived from ACTIVE RISK and nothing else.
95
126
  *
@@ -99,15 +130,28 @@ export declare const conductStrikeStatusSchema: z.ZodEnum<["active", "expired",
99
130
  */
100
131
  export declare const CONDUCT_STANDINGS: readonly ["good", "watch", "limited", "restricted"];
101
132
  export type ConductStanding = (typeof CONDUCT_STANDINGS)[number];
102
- export declare const conductStandingSchema: z.ZodEnum<["good", "watch", "limited", "restricted"]>;
133
+ export declare const conductStandingSchema: z.ZodEnum<{
134
+ restricted: "restricted";
135
+ good: "good";
136
+ watch: "watch";
137
+ limited: "limited";
138
+ }>;
103
139
  /** Contribution tier, derived from contribution points only. */
104
140
  export declare const CONTRIBUTION_TIERS: readonly ["new", "trusted", "high_trust"];
105
141
  export type ContributionTier = (typeof CONTRIBUTION_TIERS)[number];
106
- export declare const contributionTierSchema: z.ZodEnum<["new", "trusted", "high_trust"]>;
142
+ export declare const contributionTierSchema: z.ZodEnum<{
143
+ new: "new";
144
+ trusted: "trusted";
145
+ high_trust: "high_trust";
146
+ }>;
107
147
  /** Personhood status. Being a real person proves neither conduct nor competence. */
108
148
  export declare const PERSONHOOD_STATUSES: readonly ["unknown", "probable", "verified"];
109
149
  export type PersonhoodStatusValue = (typeof PERSONHOOD_STATUSES)[number];
110
- export declare const personhoodStatusSchema: z.ZodEnum<["unknown", "probable", "verified"]>;
150
+ export declare const personhoodStatusSchema: z.ZodEnum<{
151
+ unknown: "unknown";
152
+ verified: "verified";
153
+ probable: "probable";
154
+ }>;
111
155
  /**
112
156
  * How an Oxy identity was bound to the actor an application reported.
113
157
  *
@@ -121,11 +165,19 @@ export declare const personhoodStatusSchema: z.ZodEnum<["unknown", "probable", "
121
165
  */
122
166
  export declare const IDENTITY_BINDING_TYPES: readonly ["oauth_grant", "session_proof", "commons_signature", "federated_actor"];
123
167
  export type IdentityBindingType = (typeof IDENTITY_BINDING_TYPES)[number];
124
- export declare const identityBindingTypeSchema: z.ZodEnum<["oauth_grant", "session_proof", "commons_signature", "federated_actor"]>;
168
+ export declare const identityBindingTypeSchema: z.ZodEnum<{
169
+ oauth_grant: "oauth_grant";
170
+ session_proof: "session_proof";
171
+ commons_signature: "commons_signature";
172
+ federated_actor: "federated_actor";
173
+ }>;
125
174
  /** Binding lifecycle. A revoked binding proves nothing about a later action. */
126
175
  export declare const IDENTITY_BINDING_STATUSES: readonly ["active", "revoked"];
127
176
  export type IdentityBindingStatus = (typeof IDENTITY_BINDING_STATUSES)[number];
128
- export declare const identityBindingStatusSchema: z.ZodEnum<["active", "revoked"]>;
177
+ export declare const identityBindingStatusSchema: z.ZodEnum<{
178
+ active: "active";
179
+ revoked: "revoked";
180
+ }>;
129
181
  /**
130
182
  * An application's own moderation standing. An external application can abuse
131
183
  * the system too, so it carries standing exactly like a person does.
@@ -134,7 +186,11 @@ export declare const identityBindingStatusSchema: z.ZodEnum<["active", "revoked"
134
186
  */
135
187
  export declare const APPLICATION_MODERATION_STANDINGS: readonly ["sandbox", "trusted", "restricted"];
136
188
  export type ApplicationModerationStanding = (typeof APPLICATION_MODERATION_STANDINGS)[number];
137
- export declare const applicationModerationStandingSchema: z.ZodEnum<["sandbox", "trusted", "restricted"]>;
189
+ export declare const applicationModerationStandingSchema: z.ZodEnum<{
190
+ restricted: "restricted";
191
+ trusted: "trusted";
192
+ sandbox: "sandbox";
193
+ }>;
138
194
  /**
139
195
  * Why the engine declined to apply an effect.
140
196
  *
@@ -146,7 +202,18 @@ export declare const applicationModerationStandingSchema: z.ZodEnum<["sandbox",
146
202
  */
147
203
  export declare const MODERATION_EFFECT_SKIP_REASONS: readonly ["no_binding_proof", "binding_after_action", "binding_principal_mismatch", "binding_revoked", "decision_not_effective", "decision_superseded", "finding_scope_local", "finding_not_in_policy", "application_not_permitted", "no_effective_finding"];
148
204
  export type ModerationEffectSkipReason = (typeof MODERATION_EFFECT_SKIP_REASONS)[number];
149
- export declare const moderationEffectSkipReasonSchema: z.ZodEnum<["no_binding_proof", "binding_after_action", "binding_principal_mismatch", "binding_revoked", "decision_not_effective", "decision_superseded", "finding_scope_local", "finding_not_in_policy", "application_not_permitted", "no_effective_finding"]>;
205
+ export declare const moderationEffectSkipReasonSchema: z.ZodEnum<{
206
+ no_binding_proof: "no_binding_proof";
207
+ binding_after_action: "binding_after_action";
208
+ binding_principal_mismatch: "binding_principal_mismatch";
209
+ binding_revoked: "binding_revoked";
210
+ decision_not_effective: "decision_not_effective";
211
+ decision_superseded: "decision_superseded";
212
+ finding_scope_local: "finding_scope_local";
213
+ finding_not_in_policy: "finding_not_in_policy";
214
+ application_not_permitted: "application_not_permitted";
215
+ no_effective_finding: "no_effective_finding";
216
+ }>;
150
217
  /** One finding of a published decision. */
151
218
  export interface ModerationFinding {
152
219
  /** Taxonomy code, e.g. `harassment.targeted_abuse`. Never rendered publicly. */