@oxy.so/contracts 5.7.0 → 6.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 (227) 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/civic.js +10 -9
  10. package/dist/cjs/client/check.js +61 -53
  11. package/dist/cjs/client/consoleOnboarding.js +24 -0
  12. package/dist/cjs/client/index.js +7 -3
  13. package/dist/cjs/client/safety.js +9 -1
  14. package/dist/cjs/consoleOnboarding.js +56 -0
  15. package/dist/cjs/contentClaims.js +23 -14
  16. package/dist/cjs/deviceDirectory.js +11 -9
  17. package/dist/cjs/deviceSession.js +27 -25
  18. package/dist/cjs/email/messages.js +20 -18
  19. package/dist/cjs/emailAgentContext.js +11 -9
  20. package/dist/cjs/externalIdentity.js +15 -11
  21. package/dist/cjs/federationInstanceFetch.js +12 -7
  22. package/dist/cjs/identity.js +19 -17
  23. package/dist/cjs/identityLink.js +6 -4
  24. package/dist/cjs/identityProof.js +6 -4
  25. package/dist/cjs/inboxPush.js +5 -4
  26. package/dist/cjs/index.js +16 -6
  27. package/dist/cjs/inference/accountBilling.js +35 -33
  28. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  29. package/dist/cjs/inference/attribution.js +14 -12
  30. package/dist/cjs/inference/catalogue.js +35 -29
  31. package/dist/cjs/inference/economics.js +24 -19
  32. package/dist/cjs/inference/embeddings.js +9 -7
  33. package/dist/cjs/inference/entitlement.js +17 -15
  34. package/dist/cjs/inference/errors.js +15 -8
  35. package/dist/cjs/inference/identifiers.js +33 -21
  36. package/dist/cjs/inference/inbox.js +37 -35
  37. package/dist/cjs/inference/modelDocumentation.js +16 -14
  38. package/dist/cjs/inference/money.js +5 -4
  39. package/dist/cjs/inference/priceVersion.js +10 -5
  40. package/dist/cjs/inference/providerConnection.js +21 -14
  41. package/dist/cjs/inference/realtime.js +88 -47
  42. package/dist/cjs/inference/request.js +27 -25
  43. package/dist/cjs/inference/routingPolicy.js +12 -10
  44. package/dist/cjs/inference/streamEvents.js +22 -16
  45. package/dist/cjs/inference/usage.js +32 -15
  46. package/dist/cjs/keyRecovery.js +8 -6
  47. package/dist/cjs/keyRotation.js +5 -4
  48. package/dist/cjs/linkedAccounts.js +22 -18
  49. package/dist/cjs/moderationReputation.js +29 -27
  50. package/dist/cjs/notifications.js +25 -9
  51. package/dist/cjs/numberChecks.js +45 -0
  52. package/dist/cjs/oauth.js +14 -12
  53. package/dist/cjs/organizations.js +23 -21
  54. package/dist/cjs/products/access.js +10 -8
  55. package/dist/cjs/products/billing.js +10 -8
  56. package/dist/cjs/products/checkout.js +22 -10
  57. package/dist/cjs/products/plans.js +15 -10
  58. package/dist/cjs/protocol.js +6 -5
  59. package/dist/cjs/recommendations.js +27 -19
  60. package/dist/cjs/reputation.js +15 -13
  61. package/dist/cjs/safety.js +46 -29
  62. package/dist/cjs/serviceToken.js +81 -2
  63. package/dist/cjs/sessionRevocation.js +8 -6
  64. package/dist/cjs/signIn.js +42 -24
  65. package/dist/cjs/stickers.js +19 -15
  66. package/dist/cjs/stringChecks.js +70 -0
  67. package/dist/cjs/transparency.js +14 -12
  68. package/dist/cjs/updates.js +24 -22
  69. package/dist/cjs/userInvalidation.js +7 -5
  70. package/dist/cjs/userResponse.js +8 -7
  71. package/dist/cjs/username.js +7 -6
  72. package/dist/esm/accountAccess.js +4 -3
  73. package/dist/esm/accountEmail.js +13 -5
  74. package/dist/esm/accountGraph.js +8 -7
  75. package/dist/esm/accountName.js +3 -2
  76. package/dist/esm/agency.js +90 -33
  77. package/dist/esm/agentKeys.js +21 -17
  78. package/dist/esm/appAssertions.js +11 -10
  79. package/dist/esm/applicationRoles.js +16 -9
  80. package/dist/esm/civic.js +8 -7
  81. package/dist/esm/client/check.js +61 -53
  82. package/dist/esm/client/consoleOnboarding.js +21 -0
  83. package/dist/esm/client/index.js +2 -1
  84. package/dist/esm/client/safety.js +8 -0
  85. package/dist/esm/consoleOnboarding.js +51 -0
  86. package/dist/esm/contentClaims.js +23 -14
  87. package/dist/esm/deviceDirectory.js +11 -9
  88. package/dist/esm/deviceSession.js +27 -25
  89. package/dist/esm/email/messages.js +18 -16
  90. package/dist/esm/emailAgentContext.js +11 -9
  91. package/dist/esm/externalIdentity.js +15 -11
  92. package/dist/esm/federationInstanceFetch.js +10 -5
  93. package/dist/esm/identity.js +17 -15
  94. package/dist/esm/identityLink.js +6 -4
  95. package/dist/esm/identityProof.js +6 -4
  96. package/dist/esm/inboxPush.js +3 -2
  97. package/dist/esm/index.js +5 -2
  98. package/dist/esm/inference/accountBilling.js +33 -31
  99. package/dist/esm/inference/aliaModelRelease.js +7 -5
  100. package/dist/esm/inference/attribution.js +14 -12
  101. package/dist/esm/inference/catalogue.js +33 -27
  102. package/dist/esm/inference/economics.js +22 -17
  103. package/dist/esm/inference/embeddings.js +9 -7
  104. package/dist/esm/inference/entitlement.js +15 -13
  105. package/dist/esm/inference/errors.js +13 -6
  106. package/dist/esm/inference/identifiers.js +31 -19
  107. package/dist/esm/inference/inbox.js +37 -35
  108. package/dist/esm/inference/modelDocumentation.js +14 -12
  109. package/dist/esm/inference/money.js +3 -2
  110. package/dist/esm/inference/priceVersion.js +8 -3
  111. package/dist/esm/inference/providerConnection.js +19 -12
  112. package/dist/esm/inference/realtime.js +85 -44
  113. package/dist/esm/inference/request.js +25 -23
  114. package/dist/esm/inference/routingPolicy.js +9 -7
  115. package/dist/esm/inference/streamEvents.js +20 -14
  116. package/dist/esm/inference/usage.js +30 -13
  117. package/dist/esm/keyRecovery.js +8 -6
  118. package/dist/esm/keyRotation.js +5 -4
  119. package/dist/esm/linkedAccounts.js +20 -16
  120. package/dist/esm/moderationReputation.js +27 -25
  121. package/dist/esm/notifications.js +23 -7
  122. package/dist/esm/numberChecks.js +41 -0
  123. package/dist/esm/oauth.js +14 -12
  124. package/dist/esm/organizations.js +23 -21
  125. package/dist/esm/products/access.js +10 -8
  126. package/dist/esm/products/billing.js +10 -8
  127. package/dist/esm/products/checkout.js +22 -10
  128. package/dist/esm/products/plans.js +15 -10
  129. package/dist/esm/protocol.js +4 -3
  130. package/dist/esm/recommendations.js +25 -17
  131. package/dist/esm/reputation.js +13 -11
  132. package/dist/esm/safety.js +45 -29
  133. package/dist/esm/serviceToken.js +80 -1
  134. package/dist/esm/sessionRevocation.js +6 -4
  135. package/dist/esm/signIn.js +42 -24
  136. package/dist/esm/stickers.js +17 -13
  137. package/dist/esm/stringChecks.js +63 -0
  138. package/dist/esm/transparency.js +14 -12
  139. package/dist/esm/updates.js +22 -20
  140. package/dist/esm/userInvalidation.js +4 -2
  141. package/dist/esm/userResponse.js +4 -3
  142. package/dist/esm/username.js +3 -2
  143. package/dist/types/accountAccess.d.ts +29 -70
  144. package/dist/types/accountEmail.d.ts +2 -14
  145. package/dist/types/accountGraph.d.ts +179 -171
  146. package/dist/types/accountName.d.ts +1 -1
  147. package/dist/types/accountSubject.d.ts +20 -93
  148. package/dist/types/agency.d.ts +528 -2924
  149. package/dist/types/agentKeys.d.ts +48 -421
  150. package/dist/types/appAssertions.d.ts +56 -210
  151. package/dist/types/applicationRoles.d.ts +30 -276
  152. package/dist/types/avatarCharacter.d.ts +1 -1
  153. package/dist/types/civic.d.ts +1 -13
  154. package/dist/types/client/agentKeys.d.ts +18 -18
  155. package/dist/types/client/appAssertions.d.ts +3 -3
  156. package/dist/types/client/check.d.ts +13 -13
  157. package/dist/types/client/consoleOnboarding.d.ts +16 -0
  158. package/dist/types/client/deviceDirectory.d.ts +51 -51
  159. package/dist/types/client/deviceSession.d.ts +14 -14
  160. package/dist/types/client/index.d.ts +2 -1
  161. package/dist/types/client/organizations.d.ts +25 -25
  162. package/dist/types/client/products.d.ts +33 -33
  163. package/dist/types/client/recommendations.d.ts +2 -2
  164. package/dist/types/client/safety.d.ts +53 -45
  165. package/dist/types/client/sessionStatus.d.ts +4 -4
  166. package/dist/types/client/signIn.d.ts +1 -1
  167. package/dist/types/commonsSignIn.d.ts +4 -1
  168. package/dist/types/consoleOnboarding.d.ts +57 -0
  169. package/dist/types/contentClaims.d.ts +24 -180
  170. package/dist/types/deviceDirectory.d.ts +109 -1040
  171. package/dist/types/deviceSession.d.ts +36 -298
  172. package/dist/types/email/messages.d.ts +212 -1793
  173. package/dist/types/emailAgentContext.d.ts +10 -194
  174. package/dist/types/externalIdentity.d.ts +121 -615
  175. package/dist/types/federationInstanceFetch.d.ts +3 -32
  176. package/dist/types/identity.d.ts +15 -92
  177. package/dist/types/identityLink.d.ts +6 -84
  178. package/dist/types/identityProof.d.ts +5 -17
  179. package/dist/types/inboxPush.d.ts +1 -9
  180. package/dist/types/index.d.ts +6 -3
  181. package/dist/types/inference/accountBilling.d.ts +151 -488
  182. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  183. package/dist/types/inference/attribution.d.ts +75 -104
  184. package/dist/types/inference/catalogue.d.ts +417 -1599
  185. package/dist/types/inference/economics.d.ts +69 -276
  186. package/dist/types/inference/embeddings.d.ts +110 -406
  187. package/dist/types/inference/entitlement.d.ts +80 -335
  188. package/dist/types/inference/errors.d.ts +90 -102
  189. package/dist/types/inference/identifiers.d.ts +12 -4
  190. package/dist/types/inference/inbox.d.ts +105 -420
  191. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  192. package/dist/types/inference/money.d.ts +65 -32
  193. package/dist/types/inference/priceVersion.d.ts +53 -120
  194. package/dist/types/inference/providerConnection.d.ts +253 -710
  195. package/dist/types/inference/realtime.d.ts +954 -6825
  196. package/dist/types/inference/request.d.ts +300 -2572
  197. package/dist/types/inference/routingPolicy.d.ts +95 -503
  198. package/dist/types/inference/streamEvents.d.ts +253 -721
  199. package/dist/types/inference/usage.d.ts +317 -950
  200. package/dist/types/keyRecovery.d.ts +3 -51
  201. package/dist/types/keyRotation.d.ts +3 -38
  202. package/dist/types/linkedAccounts.d.ts +50 -236
  203. package/dist/types/moderationReputation.d.ts +81 -14
  204. package/dist/types/notifications.d.ts +19 -51
  205. package/dist/types/numberChecks.d.ts +9 -0
  206. package/dist/types/oauth.d.ts +101 -809
  207. package/dist/types/organizations.d.ts +268 -921
  208. package/dist/types/oxyRecordTypes.d.ts +11 -1
  209. package/dist/types/products/access.d.ts +125 -775
  210. package/dist/types/products/billing.d.ts +67 -503
  211. package/dist/types/products/checkout.d.ts +16 -69
  212. package/dist/types/products/plans.d.ts +33 -366
  213. package/dist/types/recommendations.d.ts +76 -389
  214. package/dist/types/reputation.d.ts +37 -5
  215. package/dist/types/safety.d.ts +410 -2050
  216. package/dist/types/serviceToken.d.ts +247 -7
  217. package/dist/types/sessionRevocation.d.ts +2 -17
  218. package/dist/types/sessionStatus.d.ts +27 -115
  219. package/dist/types/signIn.d.ts +53 -553
  220. package/dist/types/stickers.d.ts +67 -819
  221. package/dist/types/stringChecks.d.ts +16 -0
  222. package/dist/types/transparency.d.ts +14 -302
  223. package/dist/types/updates.d.ts +60 -316
  224. package/dist/types/userInvalidation.d.ts +4 -13
  225. package/dist/types/userResponse.d.ts +302 -2400
  226. package/dist/types/username.d.ts +3 -3
  227. package/package.json +3 -4
@@ -2,107 +2,74 @@ import { z } from 'zod';
2
2
  export { ORGANIZATION_TYPES, ORGANIZATION_STATUSES, ORGANIZATION_CLAIM_STATUSES, ORGANIZATION_ALIAS_KINDS, ORGANIZATION_CLAIM_DECISIONS, ORGANIZATION_NAME_MAX_LENGTH, ORGANIZATION_ERROR_CODES, } from './client/organizations';
3
3
  export declare const organizationAliasSchema: z.ZodObject<{
4
4
  alias: z.ZodString;
5
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
5
+ kind: z.ZodEnum<{
6
+ name_variant: "name_variant";
7
+ former_name: "former_name";
8
+ localized_name: "localized_name";
9
+ marketing_name: "marketing_name";
10
+ misspelling: "misspelling";
11
+ }>;
6
12
  language: z.ZodOptional<z.ZodString>;
7
- }, "strict", z.ZodTypeAny, {
8
- alias: string;
9
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
10
- language?: string | undefined;
11
- }, {
12
- alias: string;
13
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
14
- language?: string | undefined;
15
- }>;
13
+ }, z.core.$strict>;
16
14
  /** An organization is named by the title policy every non-personal account uses. */
17
- export declare const organizationNameSchema: z.ZodEffects<z.ZodString, string, string>;
15
+ export declare const organizationNameSchema: z.ZodString;
18
16
  export declare const createOrganizationSchema: z.ZodObject<{
19
- name: z.ZodEffects<z.ZodString, string, string>;
20
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
17
+ name: z.ZodString;
18
+ organizationType: z.ZodEnum<{
19
+ community: "community";
20
+ business: "business";
21
+ nonprofit: "nonprofit";
22
+ other: "other";
23
+ public_body: "public_body";
24
+ }>;
21
25
  legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
26
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
27
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
28
  aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
29
  alias: z.ZodString;
26
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
30
+ kind: z.ZodEnum<{
31
+ name_variant: "name_variant";
32
+ former_name: "former_name";
33
+ localized_name: "localized_name";
34
+ marketing_name: "marketing_name";
35
+ misspelling: "misspelling";
36
+ }>;
27
37
  language: z.ZodOptional<z.ZodString>;
28
- }, "strict", z.ZodTypeAny, {
29
- alias: string;
30
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
31
- language?: string | undefined;
32
- }, {
33
- alias: string;
34
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
35
- language?: string | undefined;
36
- }>, "many">>;
37
- }, "strict", z.ZodTypeAny, {
38
- name: string;
39
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
40
- legalName?: string | null | undefined;
41
- websiteUrl?: string | null | undefined;
42
- countryCode?: string | null | undefined;
43
- aliases?: {
44
- alias: string;
45
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
46
- language?: string | undefined;
47
- }[] | undefined;
48
- }, {
49
- name: string;
50
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
51
- legalName?: string | null | undefined;
52
- websiteUrl?: string | null | undefined;
53
- countryCode?: string | null | undefined;
54
- aliases?: {
55
- alias: string;
56
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
57
- language?: string | undefined;
58
- }[] | undefined;
59
- }>;
38
+ }, z.core.$strict>>>;
39
+ }, z.core.$strict>;
60
40
  export declare const updateOrganizationSchema: z.ZodObject<{
61
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
62
- organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ organizationType: z.ZodOptional<z.ZodEnum<{
43
+ community: "community";
44
+ business: "business";
45
+ nonprofit: "nonprofit";
46
+ other: "other";
47
+ public_body: "public_body";
48
+ }>>;
63
49
  legalName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
64
- websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
50
+ websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
65
51
  countryCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
66
52
  aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
67
53
  alias: z.ZodString;
68
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
54
+ kind: z.ZodEnum<{
55
+ name_variant: "name_variant";
56
+ former_name: "former_name";
57
+ localized_name: "localized_name";
58
+ marketing_name: "marketing_name";
59
+ misspelling: "misspelling";
60
+ }>;
69
61
  language: z.ZodOptional<z.ZodString>;
70
- }, "strict", z.ZodTypeAny, {
71
- alias: string;
72
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
73
- language?: string | undefined;
74
- }, {
75
- alias: string;
76
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
77
- language?: string | undefined;
78
- }>, "many">>>;
79
- }, "strict", z.ZodTypeAny, {
80
- name?: string | undefined;
81
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
82
- legalName?: string | null | undefined;
83
- websiteUrl?: string | null | undefined;
84
- countryCode?: string | null | undefined;
85
- aliases?: {
86
- alias: string;
87
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
88
- language?: string | undefined;
89
- }[] | undefined;
90
- }, {
91
- name?: string | undefined;
92
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
93
- legalName?: string | null | undefined;
94
- websiteUrl?: string | null | undefined;
95
- countryCode?: string | null | undefined;
96
- aliases?: {
97
- alias: string;
98
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
99
- language?: string | undefined;
100
- }[] | undefined;
101
- }>;
62
+ }, z.core.$strict>>>>;
63
+ }, z.core.$strict>;
102
64
  export declare const organizationSchema: z.ZodObject<{
103
- name: z.ZodEffects<z.ZodString, string, string>;
104
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
105
- } & {
65
+ name: z.ZodString;
66
+ organizationType: z.ZodEnum<{
67
+ community: "community";
68
+ business: "business";
69
+ nonprofit: "nonprofit";
70
+ other: "other";
71
+ public_body: "public_body";
72
+ }>;
106
73
  accountId: z.ZodString;
107
74
  username: z.ZodNullable<z.ZodString>;
108
75
  avatar: z.ZodNullable<z.ZodString>;
@@ -111,85 +78,52 @@ export declare const organizationSchema: z.ZodObject<{
111
78
  countryCode: z.ZodNullable<z.ZodString>;
112
79
  aliases: z.ZodArray<z.ZodObject<{
113
80
  alias: z.ZodString;
114
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
81
+ kind: z.ZodEnum<{
82
+ name_variant: "name_variant";
83
+ former_name: "former_name";
84
+ localized_name: "localized_name";
85
+ marketing_name: "marketing_name";
86
+ misspelling: "misspelling";
87
+ }>;
115
88
  language: z.ZodOptional<z.ZodString>;
116
- }, "strict", z.ZodTypeAny, {
117
- alias: string;
118
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
119
- language?: string | undefined;
120
- }, {
121
- alias: string;
122
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
123
- language?: string | undefined;
124
- }>, "many">;
125
- verifiedDomains: z.ZodArray<z.ZodString, "many">;
126
- claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
127
- status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
89
+ }, z.core.$strict>>;
90
+ verifiedDomains: z.ZodArray<z.ZodString>;
91
+ claimStatus: z.ZodEnum<{
92
+ unclaimed: "unclaimed";
93
+ claimed: "claimed";
94
+ }>;
95
+ status: z.ZodEnum<{
96
+ active: "active";
97
+ inactive: "inactive";
98
+ merged: "merged";
99
+ suppressed: "suppressed";
100
+ }>;
128
101
  mergedIntoAccountId: z.ZodNullable<z.ZodString>;
129
102
  createdAt: z.ZodString;
130
103
  updatedAt: z.ZodString;
131
- }, "strict", z.ZodTypeAny, {
132
- status: "active" | "inactive" | "merged" | "suppressed";
133
- name: string;
134
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
135
- legalName: string | null;
136
- websiteUrl: string | null;
137
- countryCode: string | null;
138
- aliases: {
139
- alias: string;
140
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
141
- language?: string | undefined;
142
- }[];
143
- accountId: string;
144
- username: string | null;
145
- avatar: string | null;
146
- verifiedDomains: string[];
147
- claimStatus: "unclaimed" | "claimed";
148
- mergedIntoAccountId: string | null;
149
- createdAt: string;
150
- updatedAt: string;
151
- }, {
152
- status: "active" | "inactive" | "merged" | "suppressed";
153
- name: string;
154
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
155
- legalName: string | null;
156
- websiteUrl: string | null;
157
- countryCode: string | null;
158
- aliases: {
159
- alias: string;
160
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
161
- language?: string | undefined;
162
- }[];
163
- accountId: string;
164
- username: string | null;
165
- avatar: string | null;
166
- verifiedDomains: string[];
167
- claimStatus: "unclaimed" | "claimed";
168
- mergedIntoAccountId: string | null;
169
- createdAt: string;
170
- updatedAt: string;
171
- }>;
104
+ }, z.core.$strict>;
172
105
  export declare const organizationSearchSchema: z.ZodObject<{
173
106
  query: z.ZodDefault<z.ZodString>;
174
- organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
175
- limit: z.ZodDefault<z.ZodNumber>;
107
+ organizationType: z.ZodOptional<z.ZodEnum<{
108
+ community: "community";
109
+ business: "business";
110
+ nonprofit: "nonprofit";
111
+ other: "other";
112
+ public_body: "public_body";
113
+ }>>;
114
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
176
115
  cursor: z.ZodOptional<z.ZodString>;
177
- }, "strict", z.ZodTypeAny, {
178
- query: string;
179
- limit: number;
180
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
181
- cursor?: string | undefined;
182
- }, {
183
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
184
- query?: string | undefined;
185
- limit?: number | undefined;
186
- cursor?: string | undefined;
187
- }>;
116
+ }, z.core.$strict>;
188
117
  export declare const organizationListSchema: z.ZodObject<{
189
118
  items: z.ZodArray<z.ZodObject<{
190
- name: z.ZodEffects<z.ZodString, string, string>;
191
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
192
- } & {
119
+ name: z.ZodString;
120
+ organizationType: z.ZodEnum<{
121
+ community: "community";
122
+ business: "business";
123
+ nonprofit: "nonprofit";
124
+ other: "other";
125
+ public_body: "public_body";
126
+ }>;
193
127
  accountId: z.ZodString;
194
128
  username: z.ZodNullable<z.ZodString>;
195
129
  avatar: z.ZodNullable<z.ZodString>;
@@ -198,126 +132,47 @@ export declare const organizationListSchema: z.ZodObject<{
198
132
  countryCode: z.ZodNullable<z.ZodString>;
199
133
  aliases: z.ZodArray<z.ZodObject<{
200
134
  alias: z.ZodString;
201
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
135
+ kind: z.ZodEnum<{
136
+ name_variant: "name_variant";
137
+ former_name: "former_name";
138
+ localized_name: "localized_name";
139
+ marketing_name: "marketing_name";
140
+ misspelling: "misspelling";
141
+ }>;
202
142
  language: z.ZodOptional<z.ZodString>;
203
- }, "strict", z.ZodTypeAny, {
204
- alias: string;
205
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
206
- language?: string | undefined;
207
- }, {
208
- alias: string;
209
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
210
- language?: string | undefined;
211
- }>, "many">;
212
- verifiedDomains: z.ZodArray<z.ZodString, "many">;
213
- claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
214
- status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
143
+ }, z.core.$strict>>;
144
+ verifiedDomains: z.ZodArray<z.ZodString>;
145
+ claimStatus: z.ZodEnum<{
146
+ unclaimed: "unclaimed";
147
+ claimed: "claimed";
148
+ }>;
149
+ status: z.ZodEnum<{
150
+ active: "active";
151
+ inactive: "inactive";
152
+ merged: "merged";
153
+ suppressed: "suppressed";
154
+ }>;
215
155
  mergedIntoAccountId: z.ZodNullable<z.ZodString>;
216
156
  createdAt: z.ZodString;
217
157
  updatedAt: z.ZodString;
218
- }, "strict", z.ZodTypeAny, {
219
- status: "active" | "inactive" | "merged" | "suppressed";
220
- name: string;
221
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
222
- legalName: string | null;
223
- websiteUrl: string | null;
224
- countryCode: string | null;
225
- aliases: {
226
- alias: string;
227
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
228
- language?: string | undefined;
229
- }[];
230
- accountId: string;
231
- username: string | null;
232
- avatar: string | null;
233
- verifiedDomains: string[];
234
- claimStatus: "unclaimed" | "claimed";
235
- mergedIntoAccountId: string | null;
236
- createdAt: string;
237
- updatedAt: string;
238
- }, {
239
- status: "active" | "inactive" | "merged" | "suppressed";
240
- name: string;
241
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
242
- legalName: string | null;
243
- websiteUrl: string | null;
244
- countryCode: string | null;
245
- aliases: {
246
- alias: string;
247
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
248
- language?: string | undefined;
249
- }[];
250
- accountId: string;
251
- username: string | null;
252
- avatar: string | null;
253
- verifiedDomains: string[];
254
- claimStatus: "unclaimed" | "claimed";
255
- mergedIntoAccountId: string | null;
256
- createdAt: string;
257
- updatedAt: string;
258
- }>, "many">;
158
+ }, z.core.$strict>>;
259
159
  nextCursor: z.ZodNullable<z.ZodString>;
260
- }, "strict", z.ZodTypeAny, {
261
- items: {
262
- status: "active" | "inactive" | "merged" | "suppressed";
263
- name: string;
264
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
265
- legalName: string | null;
266
- websiteUrl: string | null;
267
- countryCode: string | null;
268
- aliases: {
269
- alias: string;
270
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
271
- language?: string | undefined;
272
- }[];
273
- accountId: string;
274
- username: string | null;
275
- avatar: string | null;
276
- verifiedDomains: string[];
277
- claimStatus: "unclaimed" | "claimed";
278
- mergedIntoAccountId: string | null;
279
- createdAt: string;
280
- updatedAt: string;
281
- }[];
282
- nextCursor: string | null;
283
- }, {
284
- items: {
285
- status: "active" | "inactive" | "merged" | "suppressed";
286
- name: string;
287
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
288
- legalName: string | null;
289
- websiteUrl: string | null;
290
- countryCode: string | null;
291
- aliases: {
292
- alias: string;
293
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
294
- language?: string | undefined;
295
- }[];
296
- accountId: string;
297
- username: string | null;
298
- avatar: string | null;
299
- verifiedDomains: string[];
300
- claimStatus: "unclaimed" | "claimed";
301
- mergedIntoAccountId: string | null;
302
- createdAt: string;
303
- updatedAt: string;
304
- }[];
305
- nextCursor: string | null;
306
- }>;
160
+ }, z.core.$strict>;
307
161
  export declare const organizationBatchInputSchema: z.ZodObject<{
308
- ids: z.ZodArray<z.ZodString, "many">;
309
- }, "strict", z.ZodTypeAny, {
310
- ids: string[];
311
- }, {
312
- ids: string[];
313
- }>;
162
+ ids: z.ZodArray<z.ZodString>;
163
+ }, z.core.$strict>;
314
164
  export declare const organizationBatchSchema: z.ZodObject<{
315
165
  items: z.ZodArray<z.ZodObject<{
316
166
  requestedAccountId: z.ZodString;
317
167
  organization: z.ZodObject<{
318
- name: z.ZodEffects<z.ZodString, string, string>;
319
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
320
- } & {
168
+ name: z.ZodString;
169
+ organizationType: z.ZodEnum<{
170
+ community: "community";
171
+ business: "business";
172
+ nonprofit: "nonprofit";
173
+ other: "other";
174
+ public_body: "public_body";
175
+ }>;
321
176
  accountId: z.ZodString;
322
177
  username: z.ZodNullable<z.ZodString>;
323
178
  avatar: z.ZodNullable<z.ZodString>;
@@ -326,627 +181,195 @@ export declare const organizationBatchSchema: z.ZodObject<{
326
181
  countryCode: z.ZodNullable<z.ZodString>;
327
182
  aliases: z.ZodArray<z.ZodObject<{
328
183
  alias: z.ZodString;
329
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
184
+ kind: z.ZodEnum<{
185
+ name_variant: "name_variant";
186
+ former_name: "former_name";
187
+ localized_name: "localized_name";
188
+ marketing_name: "marketing_name";
189
+ misspelling: "misspelling";
190
+ }>;
330
191
  language: z.ZodOptional<z.ZodString>;
331
- }, "strict", z.ZodTypeAny, {
332
- alias: string;
333
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
334
- language?: string | undefined;
335
- }, {
336
- alias: string;
337
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
338
- language?: string | undefined;
339
- }>, "many">;
340
- verifiedDomains: z.ZodArray<z.ZodString, "many">;
341
- claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
342
- status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
192
+ }, z.core.$strict>>;
193
+ verifiedDomains: z.ZodArray<z.ZodString>;
194
+ claimStatus: z.ZodEnum<{
195
+ unclaimed: "unclaimed";
196
+ claimed: "claimed";
197
+ }>;
198
+ status: z.ZodEnum<{
199
+ active: "active";
200
+ inactive: "inactive";
201
+ merged: "merged";
202
+ suppressed: "suppressed";
203
+ }>;
343
204
  mergedIntoAccountId: z.ZodNullable<z.ZodString>;
344
205
  createdAt: z.ZodString;
345
206
  updatedAt: z.ZodString;
346
- }, "strict", z.ZodTypeAny, {
347
- status: "active" | "inactive" | "merged" | "suppressed";
348
- name: string;
349
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
350
- legalName: string | null;
351
- websiteUrl: string | null;
352
- countryCode: string | null;
353
- aliases: {
354
- alias: string;
355
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
356
- language?: string | undefined;
357
- }[];
358
- accountId: string;
359
- username: string | null;
360
- avatar: string | null;
361
- verifiedDomains: string[];
362
- claimStatus: "unclaimed" | "claimed";
363
- mergedIntoAccountId: string | null;
364
- createdAt: string;
365
- updatedAt: string;
366
- }, {
367
- status: "active" | "inactive" | "merged" | "suppressed";
368
- name: string;
369
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
370
- legalName: string | null;
371
- websiteUrl: string | null;
372
- countryCode: string | null;
373
- aliases: {
374
- alias: string;
375
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
376
- language?: string | undefined;
377
- }[];
378
- accountId: string;
379
- username: string | null;
380
- avatar: string | null;
381
- verifiedDomains: string[];
382
- claimStatus: "unclaimed" | "claimed";
383
- mergedIntoAccountId: string | null;
384
- createdAt: string;
385
- updatedAt: string;
386
- }>;
387
- }, "strict", z.ZodTypeAny, {
388
- organization: {
389
- status: "active" | "inactive" | "merged" | "suppressed";
390
- name: string;
391
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
392
- legalName: string | null;
393
- websiteUrl: string | null;
394
- countryCode: string | null;
395
- aliases: {
396
- alias: string;
397
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
398
- language?: string | undefined;
399
- }[];
400
- accountId: string;
401
- username: string | null;
402
- avatar: string | null;
403
- verifiedDomains: string[];
404
- claimStatus: "unclaimed" | "claimed";
405
- mergedIntoAccountId: string | null;
406
- createdAt: string;
407
- updatedAt: string;
408
- };
409
- requestedAccountId: string;
410
- }, {
411
- organization: {
412
- status: "active" | "inactive" | "merged" | "suppressed";
413
- name: string;
414
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
415
- legalName: string | null;
416
- websiteUrl: string | null;
417
- countryCode: string | null;
418
- aliases: {
419
- alias: string;
420
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
421
- language?: string | undefined;
422
- }[];
423
- accountId: string;
424
- username: string | null;
425
- avatar: string | null;
426
- verifiedDomains: string[];
427
- claimStatus: "unclaimed" | "claimed";
428
- mergedIntoAccountId: string | null;
429
- createdAt: string;
430
- updatedAt: string;
431
- };
432
- requestedAccountId: string;
433
- }>, "many">;
434
- missingIds: z.ZodArray<z.ZodString, "many">;
435
- }, "strict", z.ZodTypeAny, {
436
- items: {
437
- organization: {
438
- status: "active" | "inactive" | "merged" | "suppressed";
439
- name: string;
440
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
441
- legalName: string | null;
442
- websiteUrl: string | null;
443
- countryCode: string | null;
444
- aliases: {
445
- alias: string;
446
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
447
- language?: string | undefined;
448
- }[];
449
- accountId: string;
450
- username: string | null;
451
- avatar: string | null;
452
- verifiedDomains: string[];
453
- claimStatus: "unclaimed" | "claimed";
454
- mergedIntoAccountId: string | null;
455
- createdAt: string;
456
- updatedAt: string;
457
- };
458
- requestedAccountId: string;
459
- }[];
460
- missingIds: string[];
461
- }, {
462
- items: {
463
- organization: {
464
- status: "active" | "inactive" | "merged" | "suppressed";
465
- name: string;
466
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
467
- legalName: string | null;
468
- websiteUrl: string | null;
469
- countryCode: string | null;
470
- aliases: {
471
- alias: string;
472
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
473
- language?: string | undefined;
474
- }[];
475
- accountId: string;
476
- username: string | null;
477
- avatar: string | null;
478
- verifiedDomains: string[];
479
- claimStatus: "unclaimed" | "claimed";
480
- mergedIntoAccountId: string | null;
481
- createdAt: string;
482
- updatedAt: string;
483
- };
484
- requestedAccountId: string;
485
- }[];
486
- missingIds: string[];
487
- }>;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strict>>;
209
+ missingIds: z.ZodArray<z.ZodString>;
210
+ }, z.core.$strict>;
488
211
  export declare const organizationClaimInputSchema: z.ZodObject<{
489
212
  evidenceReference: z.ZodString;
490
- }, "strict", z.ZodTypeAny, {
491
- evidenceReference: string;
492
- }, {
493
- evidenceReference: string;
494
- }>;
213
+ }, z.core.$strict>;
495
214
  export declare const organizationClaimSchema: z.ZodObject<{
496
215
  id: z.ZodString;
497
216
  accountId: z.ZodString;
498
217
  claimantUserId: z.ZodString;
499
- status: z.ZodEnum<["pending", "approved", "rejected"]>;
218
+ status: z.ZodEnum<{
219
+ pending: "pending";
220
+ approved: "approved";
221
+ rejected: "rejected";
222
+ }>;
500
223
  createdAt: z.ZodString;
501
- }, "strict", z.ZodTypeAny, {
502
- status: "pending" | "approved" | "rejected";
503
- accountId: string;
504
- createdAt: string;
505
- id: string;
506
- claimantUserId: string;
507
- }, {
508
- status: "pending" | "approved" | "rejected";
509
- accountId: string;
510
- createdAt: string;
511
- id: string;
512
- claimantUserId: string;
513
- }>;
224
+ }, z.core.$strict>;
514
225
  export declare const organizationClaimDetailSchema: z.ZodObject<{
515
226
  id: z.ZodString;
516
227
  accountId: z.ZodString;
517
228
  claimantUserId: z.ZodString;
518
- status: z.ZodEnum<["pending", "approved", "rejected"]>;
229
+ status: z.ZodEnum<{
230
+ pending: "pending";
231
+ approved: "approved";
232
+ rejected: "rejected";
233
+ }>;
519
234
  createdAt: z.ZodString;
520
- } & {
521
235
  evidenceReference: z.ZodString;
522
236
  reviewEvidenceReference: z.ZodNullable<z.ZodString>;
523
237
  reviewedAt: z.ZodNullable<z.ZodString>;
524
- }, "strict", z.ZodTypeAny, {
525
- status: "pending" | "approved" | "rejected";
526
- accountId: string;
527
- createdAt: string;
528
- evidenceReference: string;
529
- id: string;
530
- claimantUserId: string;
531
- reviewEvidenceReference: string | null;
532
- reviewedAt: string | null;
533
- }, {
534
- status: "pending" | "approved" | "rejected";
535
- accountId: string;
536
- createdAt: string;
537
- evidenceReference: string;
538
- id: string;
539
- claimantUserId: string;
540
- reviewEvidenceReference: string | null;
541
- reviewedAt: string | null;
542
- }>;
238
+ }, z.core.$strict>;
543
239
  export declare const organizationClaimListQuerySchema: z.ZodObject<{
544
- status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected"]>>;
545
- limit: z.ZodDefault<z.ZodNumber>;
240
+ status: z.ZodOptional<z.ZodEnum<{
241
+ pending: "pending";
242
+ approved: "approved";
243
+ rejected: "rejected";
244
+ }>>;
245
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
546
246
  cursor: z.ZodOptional<z.ZodString>;
547
- }, "strict", z.ZodTypeAny, {
548
- limit: number;
549
- status?: "pending" | "approved" | "rejected" | undefined;
550
- cursor?: string | undefined;
551
- }, {
552
- status?: "pending" | "approved" | "rejected" | undefined;
553
- limit?: number | undefined;
554
- cursor?: string | undefined;
555
- }>;
247
+ }, z.core.$strict>;
556
248
  export declare const organizationClaimListSchema: z.ZodObject<{
557
249
  items: z.ZodArray<z.ZodObject<{
558
250
  id: z.ZodString;
559
251
  accountId: z.ZodString;
560
252
  claimantUserId: z.ZodString;
561
- status: z.ZodEnum<["pending", "approved", "rejected"]>;
253
+ status: z.ZodEnum<{
254
+ pending: "pending";
255
+ approved: "approved";
256
+ rejected: "rejected";
257
+ }>;
562
258
  createdAt: z.ZodString;
563
- } & {
564
259
  evidenceReference: z.ZodString;
565
260
  reviewEvidenceReference: z.ZodNullable<z.ZodString>;
566
261
  reviewedAt: z.ZodNullable<z.ZodString>;
567
- }, "strict", z.ZodTypeAny, {
568
- status: "pending" | "approved" | "rejected";
569
- accountId: string;
570
- createdAt: string;
571
- evidenceReference: string;
572
- id: string;
573
- claimantUserId: string;
574
- reviewEvidenceReference: string | null;
575
- reviewedAt: string | null;
576
- }, {
577
- status: "pending" | "approved" | "rejected";
578
- accountId: string;
579
- createdAt: string;
580
- evidenceReference: string;
581
- id: string;
582
- claimantUserId: string;
583
- reviewEvidenceReference: string | null;
584
- reviewedAt: string | null;
585
- }>, "many">;
262
+ }, z.core.$strict>>;
586
263
  nextCursor: z.ZodNullable<z.ZodString>;
587
- }, "strict", z.ZodTypeAny, {
588
- items: {
589
- status: "pending" | "approved" | "rejected";
590
- accountId: string;
591
- createdAt: string;
592
- evidenceReference: string;
593
- id: string;
594
- claimantUserId: string;
595
- reviewEvidenceReference: string | null;
596
- reviewedAt: string | null;
597
- }[];
598
- nextCursor: string | null;
599
- }, {
600
- items: {
601
- status: "pending" | "approved" | "rejected";
602
- accountId: string;
603
- createdAt: string;
604
- evidenceReference: string;
605
- id: string;
606
- claimantUserId: string;
607
- reviewEvidenceReference: string | null;
608
- reviewedAt: string | null;
609
- }[];
610
- nextCursor: string | null;
611
- }>;
264
+ }, z.core.$strict>;
612
265
  export declare const organizationClaimReviewSchema: z.ZodObject<{
613
- decision: z.ZodEnum<["approved", "rejected"]>;
266
+ decision: z.ZodEnum<{
267
+ approved: "approved";
268
+ rejected: "rejected";
269
+ }>;
614
270
  evidenceReference: z.ZodString;
615
- }, "strict", z.ZodTypeAny, {
616
- evidenceReference: string;
617
- decision: "approved" | "rejected";
618
- }, {
619
- evidenceReference: string;
620
- decision: "approved" | "rejected";
621
- }>;
271
+ }, z.core.$strict>;
622
272
  export declare const organizationExternalInputSchema: z.ZodObject<{
623
273
  namespace: z.ZodString;
624
274
  externalId: z.ZodString;
625
275
  accountId: z.ZodOptional<z.ZodString>;
626
276
  organization: z.ZodObject<{
627
- name: z.ZodEffects<z.ZodString, string, string>;
628
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
277
+ name: z.ZodString;
278
+ organizationType: z.ZodEnum<{
279
+ community: "community";
280
+ business: "business";
281
+ nonprofit: "nonprofit";
282
+ other: "other";
283
+ public_body: "public_body";
284
+ }>;
629
285
  legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
- websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
286
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
287
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
288
  aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
633
289
  alias: z.ZodString;
634
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
290
+ kind: z.ZodEnum<{
291
+ name_variant: "name_variant";
292
+ former_name: "former_name";
293
+ localized_name: "localized_name";
294
+ marketing_name: "marketing_name";
295
+ misspelling: "misspelling";
296
+ }>;
635
297
  language: z.ZodOptional<z.ZodString>;
636
- }, "strict", z.ZodTypeAny, {
637
- alias: string;
638
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
639
- language?: string | undefined;
640
- }, {
641
- alias: string;
642
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
643
- language?: string | undefined;
644
- }>, "many">>;
645
- }, "strict", z.ZodTypeAny, {
646
- name: string;
647
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
648
- legalName?: string | null | undefined;
649
- websiteUrl?: string | null | undefined;
650
- countryCode?: string | null | undefined;
651
- aliases?: {
652
- alias: string;
653
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
654
- language?: string | undefined;
655
- }[] | undefined;
656
- }, {
657
- name: string;
658
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
659
- legalName?: string | null | undefined;
660
- websiteUrl?: string | null | undefined;
661
- countryCode?: string | null | undefined;
662
- aliases?: {
663
- alias: string;
664
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
665
- language?: string | undefined;
666
- }[] | undefined;
667
- }>;
298
+ }, z.core.$strict>>>;
299
+ }, z.core.$strict>;
668
300
  evidenceReference: z.ZodString;
669
301
  avatarFileId: z.ZodOptional<z.ZodString>;
670
- }, "strict", z.ZodTypeAny, {
671
- organization: {
672
- name: string;
673
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
674
- legalName?: string | null | undefined;
675
- websiteUrl?: string | null | undefined;
676
- countryCode?: string | null | undefined;
677
- aliases?: {
678
- alias: string;
679
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
680
- language?: string | undefined;
681
- }[] | undefined;
682
- };
683
- evidenceReference: string;
684
- externalId: string;
685
- namespace: string;
686
- accountId?: string | undefined;
687
- avatarFileId?: string | undefined;
688
- }, {
689
- organization: {
690
- name: string;
691
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
692
- legalName?: string | null | undefined;
693
- websiteUrl?: string | null | undefined;
694
- countryCode?: string | null | undefined;
695
- aliases?: {
696
- alias: string;
697
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
698
- language?: string | undefined;
699
- }[] | undefined;
700
- };
701
- evidenceReference: string;
702
- externalId: string;
703
- namespace: string;
704
- accountId?: string | undefined;
705
- avatarFileId?: string | undefined;
706
- }>;
302
+ }, z.core.$strict>;
707
303
  /** Automated ingestion can create neutral identities in its granted namespace only. */
708
- export declare const organizationImportBatchSchema: z.ZodEffects<z.ZodObject<{
304
+ export declare const organizationImportBatchSchema: z.ZodObject<{
709
305
  namespace: z.ZodString;
710
- items: z.ZodArray<z.ZodObject<Pick<{
711
- namespace: z.ZodString;
712
- externalId: z.ZodString;
713
- accountId: z.ZodOptional<z.ZodString>;
306
+ items: z.ZodArray<z.ZodObject<{
714
307
  organization: z.ZodObject<{
715
- name: z.ZodEffects<z.ZodString, string, string>;
716
- organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
308
+ name: z.ZodString;
309
+ organizationType: z.ZodEnum<{
310
+ community: "community";
311
+ business: "business";
312
+ nonprofit: "nonprofit";
313
+ other: "other";
314
+ public_body: "public_body";
315
+ }>;
717
316
  legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
718
- websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
317
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
719
318
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
720
319
  aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
320
  alias: z.ZodString;
722
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
321
+ kind: z.ZodEnum<{
322
+ name_variant: "name_variant";
323
+ former_name: "former_name";
324
+ localized_name: "localized_name";
325
+ marketing_name: "marketing_name";
326
+ misspelling: "misspelling";
327
+ }>;
723
328
  language: z.ZodOptional<z.ZodString>;
724
- }, "strict", z.ZodTypeAny, {
725
- alias: string;
726
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
727
- language?: string | undefined;
728
- }, {
729
- alias: string;
730
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
731
- language?: string | undefined;
732
- }>, "many">>;
733
- }, "strict", z.ZodTypeAny, {
734
- name: string;
735
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
736
- legalName?: string | null | undefined;
737
- websiteUrl?: string | null | undefined;
738
- countryCode?: string | null | undefined;
739
- aliases?: {
740
- alias: string;
741
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
742
- language?: string | undefined;
743
- }[] | undefined;
744
- }, {
745
- name: string;
746
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
747
- legalName?: string | null | undefined;
748
- websiteUrl?: string | null | undefined;
749
- countryCode?: string | null | undefined;
750
- aliases?: {
751
- alias: string;
752
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
753
- language?: string | undefined;
754
- }[] | undefined;
755
- }>;
329
+ }, z.core.$strict>>>;
330
+ }, z.core.$strict>;
756
331
  evidenceReference: z.ZodString;
332
+ externalId: z.ZodString;
757
333
  avatarFileId: z.ZodOptional<z.ZodString>;
758
- }, "organization" | "evidenceReference" | "externalId" | "avatarFileId">, "strict", z.ZodTypeAny, {
759
- organization: {
760
- name: string;
761
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
762
- legalName?: string | null | undefined;
763
- websiteUrl?: string | null | undefined;
764
- countryCode?: string | null | undefined;
765
- aliases?: {
766
- alias: string;
767
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
768
- language?: string | undefined;
769
- }[] | undefined;
770
- };
771
- evidenceReference: string;
772
- externalId: string;
773
- avatarFileId?: string | undefined;
774
- }, {
775
- organization: {
776
- name: string;
777
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
778
- legalName?: string | null | undefined;
779
- websiteUrl?: string | null | undefined;
780
- countryCode?: string | null | undefined;
781
- aliases?: {
782
- alias: string;
783
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
784
- language?: string | undefined;
785
- }[] | undefined;
786
- };
787
- evidenceReference: string;
788
- externalId: string;
789
- avatarFileId?: string | undefined;
790
- }>, "many">;
791
- }, "strict", z.ZodTypeAny, {
792
- items: {
793
- organization: {
794
- name: string;
795
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
796
- legalName?: string | null | undefined;
797
- websiteUrl?: string | null | undefined;
798
- countryCode?: string | null | undefined;
799
- aliases?: {
800
- alias: string;
801
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
802
- language?: string | undefined;
803
- }[] | undefined;
804
- };
805
- evidenceReference: string;
806
- externalId: string;
807
- avatarFileId?: string | undefined;
808
- }[];
809
- namespace: string;
810
- }, {
811
- items: {
812
- organization: {
813
- name: string;
814
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
815
- legalName?: string | null | undefined;
816
- websiteUrl?: string | null | undefined;
817
- countryCode?: string | null | undefined;
818
- aliases?: {
819
- alias: string;
820
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
821
- language?: string | undefined;
822
- }[] | undefined;
823
- };
824
- evidenceReference: string;
825
- externalId: string;
826
- avatarFileId?: string | undefined;
827
- }[];
828
- namespace: string;
829
- }>, {
830
- items: {
831
- organization: {
832
- name: string;
833
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
834
- legalName?: string | null | undefined;
835
- websiteUrl?: string | null | undefined;
836
- countryCode?: string | null | undefined;
837
- aliases?: {
838
- alias: string;
839
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
840
- language?: string | undefined;
841
- }[] | undefined;
842
- };
843
- evidenceReference: string;
844
- externalId: string;
845
- avatarFileId?: string | undefined;
846
- }[];
847
- namespace: string;
848
- }, {
849
- items: {
850
- organization: {
851
- name: string;
852
- organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
853
- legalName?: string | null | undefined;
854
- websiteUrl?: string | null | undefined;
855
- countryCode?: string | null | undefined;
856
- aliases?: {
857
- alias: string;
858
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
859
- language?: string | undefined;
860
- }[] | undefined;
861
- };
862
- evidenceReference: string;
863
- externalId: string;
864
- avatarFileId?: string | undefined;
865
- }[];
866
- namespace: string;
867
- }>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>;
868
336
  export declare const organizationImportBatchResultSchema: z.ZodObject<{
869
337
  items: z.ZodArray<z.ZodObject<{
870
338
  externalId: z.ZodString;
871
339
  accountId: z.ZodString;
872
340
  created: z.ZodBoolean;
873
- }, "strict", z.ZodTypeAny, {
874
- accountId: string;
875
- externalId: string;
876
- created: boolean;
877
- }, {
878
- accountId: string;
879
- externalId: string;
880
- created: boolean;
881
- }>, "many">;
882
- }, "strict", z.ZodTypeAny, {
883
- items: {
884
- accountId: string;
885
- externalId: string;
886
- created: boolean;
887
- }[];
888
- }, {
889
- items: {
890
- accountId: string;
891
- externalId: string;
892
- created: boolean;
893
- }[];
894
- }>;
341
+ }, z.core.$strict>>;
342
+ }, z.core.$strict>;
895
343
  export type OrganizationImportBatch = z.infer<typeof organizationImportBatchSchema>;
896
344
  export declare const organizationExternalSchema: z.ZodObject<{
897
345
  accountId: z.ZodString;
898
346
  created: z.ZodBoolean;
899
- }, "strict", z.ZodTypeAny, {
900
- accountId: string;
901
- created: boolean;
902
- }, {
903
- accountId: string;
904
- created: boolean;
905
- }>;
347
+ }, z.core.$strict>;
906
348
  export declare const organizationExternalResolutionSchema: z.ZodObject<{
907
349
  accountId: z.ZodString;
908
- }, "strict", z.ZodTypeAny, {
909
- accountId: string;
910
- }, {
911
- accountId: string;
912
- }>;
350
+ }, z.core.$strict>;
913
351
  export declare const organizationMergeSchema: z.ZodObject<{
914
352
  targetAccountId: z.ZodString;
915
353
  evidenceReference: z.ZodString;
916
- }, "strict", z.ZodTypeAny, {
917
- evidenceReference: string;
918
- targetAccountId: string;
919
- }, {
920
- evidenceReference: string;
921
- targetAccountId: string;
922
- }>;
354
+ }, z.core.$strict>;
923
355
  export declare const organizationErrorSchema: z.ZodObject<{
924
356
  error: z.ZodObject<{
925
- code: z.ZodEnum<["bad_request", "unauthorized", "forbidden", "not_found", "unknown_route", "conflict", "validation_failed", "rate_limited", "internal_error", "service_unavailable"]>;
357
+ code: z.ZodEnum<{
358
+ bad_request: "bad_request";
359
+ unauthorized: "unauthorized";
360
+ forbidden: "forbidden";
361
+ not_found: "not_found";
362
+ unknown_route: "unknown_route";
363
+ conflict: "conflict";
364
+ validation_failed: "validation_failed";
365
+ rate_limited: "rate_limited";
366
+ internal_error: "internal_error";
367
+ service_unavailable: "service_unavailable";
368
+ }>;
926
369
  message: z.ZodString;
927
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
928
- }, "strict", z.ZodTypeAny, {
929
- code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
930
- message: string;
931
- details?: Record<string, string | number | boolean | null> | undefined;
932
- }, {
933
- code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
934
- message: string;
935
- details?: Record<string, string | number | boolean | null> | undefined;
936
- }>;
937
- }, "strict", z.ZodTypeAny, {
938
- error: {
939
- code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
940
- message: string;
941
- details?: Record<string, string | number | boolean | null> | undefined;
942
- };
943
- }, {
944
- error: {
945
- code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
946
- message: string;
947
- details?: Record<string, string | number | boolean | null> | undefined;
948
- };
949
- }>;
370
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
371
+ }, z.core.$strict>;
372
+ }, z.core.$strict>;
950
373
  export type Organization = z.infer<typeof organizationSchema>;
951
374
  export type OrganizationType = Organization['organizationType'];
952
375
  export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
@@ -963,122 +386,46 @@ export type OrganizationErrorCode = z.infer<typeof organizationErrorSchema>['err
963
386
  export type OrganizationClaimDetail = z.infer<typeof organizationClaimDetailSchema>;
964
387
  export type OrganizationClaimListQuery = z.input<typeof organizationClaimListQuerySchema>;
965
388
  /** Staff curation corrects neutral facts or moderates visibility without claiming ownership. */
966
- export declare const organizationCurationSchema: z.ZodEffects<z.ZodObject<{
389
+ export declare const organizationCurationSchema: z.ZodObject<{
967
390
  changes: z.ZodOptional<z.ZodObject<{
968
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
969
- organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
391
+ name: z.ZodOptional<z.ZodString>;
392
+ organizationType: z.ZodOptional<z.ZodEnum<{
393
+ community: "community";
394
+ business: "business";
395
+ nonprofit: "nonprofit";
396
+ other: "other";
397
+ public_body: "public_body";
398
+ }>>;
970
399
  legalName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
971
- websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
400
+ websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
972
401
  countryCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
973
402
  aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
974
403
  alias: z.ZodString;
975
- kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
404
+ kind: z.ZodEnum<{
405
+ name_variant: "name_variant";
406
+ former_name: "former_name";
407
+ localized_name: "localized_name";
408
+ marketing_name: "marketing_name";
409
+ misspelling: "misspelling";
410
+ }>;
976
411
  language: z.ZodOptional<z.ZodString>;
977
- }, "strict", z.ZodTypeAny, {
978
- alias: string;
979
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
980
- language?: string | undefined;
981
- }, {
982
- alias: string;
983
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
984
- language?: string | undefined;
985
- }>, "many">>>;
986
- }, "strict", z.ZodTypeAny, {
987
- name?: string | undefined;
988
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
989
- legalName?: string | null | undefined;
990
- websiteUrl?: string | null | undefined;
991
- countryCode?: string | null | undefined;
992
- aliases?: {
993
- alias: string;
994
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
995
- language?: string | undefined;
996
- }[] | undefined;
997
- }, {
998
- name?: string | undefined;
999
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
1000
- legalName?: string | null | undefined;
1001
- websiteUrl?: string | null | undefined;
1002
- countryCode?: string | null | undefined;
1003
- aliases?: {
1004
- alias: string;
1005
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1006
- language?: string | undefined;
1007
- }[] | undefined;
412
+ }, z.core.$strict>>>>;
413
+ }, z.core.$strict>>;
414
+ status: z.ZodOptional<z.ZodEnum<{
415
+ active: "active";
416
+ inactive: "inactive";
417
+ suppressed: "suppressed";
1008
418
  }>>;
1009
- status: z.ZodOptional<z.ZodEnum<["active", "inactive", "suppressed"]>>;
1010
419
  evidenceReference: z.ZodString;
1011
- }, "strict", z.ZodTypeAny, {
1012
- evidenceReference: string;
1013
- status?: "active" | "inactive" | "suppressed" | undefined;
1014
- changes?: {
1015
- name?: string | undefined;
1016
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
1017
- legalName?: string | null | undefined;
1018
- websiteUrl?: string | null | undefined;
1019
- countryCode?: string | null | undefined;
1020
- aliases?: {
1021
- alias: string;
1022
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1023
- language?: string | undefined;
1024
- }[] | undefined;
1025
- } | undefined;
1026
- }, {
1027
- evidenceReference: string;
1028
- status?: "active" | "inactive" | "suppressed" | undefined;
1029
- changes?: {
1030
- name?: string | undefined;
1031
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
1032
- legalName?: string | null | undefined;
1033
- websiteUrl?: string | null | undefined;
1034
- countryCode?: string | null | undefined;
1035
- aliases?: {
1036
- alias: string;
1037
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1038
- language?: string | undefined;
1039
- }[] | undefined;
1040
- } | undefined;
1041
- }>, {
1042
- evidenceReference: string;
1043
- status?: "active" | "inactive" | "suppressed" | undefined;
1044
- changes?: {
1045
- name?: string | undefined;
1046
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
1047
- legalName?: string | null | undefined;
1048
- websiteUrl?: string | null | undefined;
1049
- countryCode?: string | null | undefined;
1050
- aliases?: {
1051
- alias: string;
1052
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1053
- language?: string | undefined;
1054
- }[] | undefined;
1055
- } | undefined;
1056
- }, {
1057
- evidenceReference: string;
1058
- status?: "active" | "inactive" | "suppressed" | undefined;
1059
- changes?: {
1060
- name?: string | undefined;
1061
- organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
1062
- legalName?: string | null | undefined;
1063
- websiteUrl?: string | null | undefined;
1064
- countryCode?: string | null | undefined;
1065
- aliases?: {
1066
- alias: string;
1067
- kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1068
- language?: string | undefined;
1069
- }[] | undefined;
1070
- } | undefined;
1071
- }>;
420
+ }, z.core.$strict>;
1072
421
  export declare const organizationCurationResultSchema: z.ZodObject<{
1073
422
  accountId: z.ZodString;
1074
- status: z.ZodEnum<["active", "inactive", "suppressed"]>;
1075
- }, "strict", z.ZodTypeAny, {
1076
- status: "active" | "inactive" | "suppressed";
1077
- accountId: string;
1078
- }, {
1079
- status: "active" | "inactive" | "suppressed";
1080
- accountId: string;
1081
- }>;
423
+ status: z.ZodEnum<{
424
+ active: "active";
425
+ inactive: "inactive";
426
+ suppressed: "suppressed";
427
+ }>;
428
+ }, z.core.$strict>;
1082
429
  export type OrganizationCuration = z.infer<typeof organizationCurationSchema>;
1083
430
  export type OrganizationClaimList = z.infer<typeof organizationClaimListSchema>;
1084
431
  export type OrganizationImportBatchResult = z.infer<typeof organizationImportBatchResultSchema>;