@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
@@ -34,520 +34,258 @@ import { z } from 'zod';
34
34
  * application. Recording which the customer chose is what makes a later
35
35
  * "why did this app use that key" answerable.
36
36
  */
37
- export declare const providerConnectionScopeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
37
+ export declare const providerConnectionScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
38
38
  kind: z.ZodLiteral<"account">;
39
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
40
- }, "strict", z.ZodTypeAny, {
41
- kind: "account";
42
- accountId: string & z.BRAND<"OxyAccountId">;
43
- }, {
44
- kind: "account";
45
- accountId: string;
46
- }>, z.ZodObject<{
39
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
40
+ }, z.core.$strict>, z.ZodObject<{
47
41
  kind: z.ZodLiteral<"project">;
48
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
49
- }, "strict", z.ZodTypeAny, {
50
- kind: "project";
51
- accountId: string & z.BRAND<"OxyAccountId">;
52
- }, {
53
- kind: "project";
54
- accountId: string;
55
- }>, z.ZodObject<{
42
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
43
+ }, z.core.$strict>, z.ZodObject<{
56
44
  kind: z.ZodLiteral<"application">;
57
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
45
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
58
46
  applicationId: z.ZodString;
59
- }, "strict", z.ZodTypeAny, {
60
- kind: "application";
61
- accountId: string & z.BRAND<"OxyAccountId">;
62
- applicationId: string;
63
- }, {
64
- kind: "application";
65
- accountId: string;
66
- applicationId: string;
67
- }>]>;
47
+ }, z.core.$strict>], "kind">;
68
48
  /** Opaque reference minted by Kaana. It is not a KMS/Vault/SSM locator. */
69
49
  export declare const kaanaCredentialHandleSchema: z.ZodString;
70
50
  /** Oxy-minted, case-sensitive replay identity for one exact Kaana mutation. */
71
51
  export declare const kaanaCredentialOperationIdSchema: z.ZodString;
72
- export declare const kaanaCredentialOperationActionSchema: z.ZodEnum<["create", "rotate", "revoke"]>;
52
+ export declare const kaanaCredentialOperationActionSchema: z.ZodEnum<{
53
+ create: "create";
54
+ revoke: "revoke";
55
+ rotate: "rotate";
56
+ }>;
73
57
  /** Exact immutable Oxy identity repeated by both mutation and reconciliation. */
74
58
  export declare const kaanaCredentialIdentitySchema: z.ZodObject<{
75
59
  provider: z.ZodString;
76
60
  ownerAccountId: z.ZodString;
77
61
  connectionId: z.ZodString;
78
- environment: z.ZodEnum<["development", "staging", "production"]>;
79
- }, "strict", z.ZodTypeAny, {
80
- environment: "development" | "staging" | "production";
81
- ownerAccountId: string;
82
- provider: string;
83
- connectionId: string;
84
- }, {
85
- environment: "development" | "staging" | "production";
86
- ownerAccountId: string;
87
- provider: string;
88
- connectionId: string;
89
- }>;
62
+ environment: z.ZodEnum<{
63
+ development: "development";
64
+ staging: "staging";
65
+ production: "production";
66
+ }>;
67
+ }, z.core.$strict>;
90
68
  export declare const kaanaCredentialCreateMutationSchema: z.ZodObject<{
91
69
  provider: z.ZodString;
92
70
  ownerAccountId: z.ZodString;
93
71
  connectionId: z.ZodString;
94
- environment: z.ZodEnum<["development", "staging", "production"]>;
95
- } & {
72
+ environment: z.ZodEnum<{
73
+ development: "development";
74
+ staging: "staging";
75
+ production: "production";
76
+ }>;
96
77
  schemaVersion: z.ZodLiteral<1>;
97
78
  action: z.ZodLiteral<"create">;
98
79
  operationId: z.ZodString;
99
- operationActor: z.ZodEffects<z.ZodString, string, string>;
100
- secretBase64: z.ZodEffects<z.ZodString, string, string>;
101
- }, "strict", z.ZodTypeAny, {
102
- environment: "development" | "staging" | "production";
103
- schemaVersion: 1;
104
- ownerAccountId: string;
105
- action: "create";
106
- provider: string;
107
- connectionId: string;
108
- operationId: string;
109
- operationActor: string;
110
- secretBase64: string;
111
- }, {
112
- environment: "development" | "staging" | "production";
113
- schemaVersion: 1;
114
- ownerAccountId: string;
115
- action: "create";
116
- provider: string;
117
- connectionId: string;
118
- operationId: string;
119
- operationActor: string;
120
- secretBase64: string;
121
- }>;
80
+ operationActor: z.ZodString;
81
+ secretBase64: z.ZodString;
82
+ }, z.core.$strict>;
122
83
  export declare const kaanaCredentialRotateMutationSchema: z.ZodObject<{
123
84
  provider: z.ZodString;
124
85
  ownerAccountId: z.ZodString;
125
86
  connectionId: z.ZodString;
126
- environment: z.ZodEnum<["development", "staging", "production"]>;
127
- } & {
87
+ environment: z.ZodEnum<{
88
+ development: "development";
89
+ staging: "staging";
90
+ production: "production";
91
+ }>;
128
92
  schemaVersion: z.ZodLiteral<1>;
129
93
  action: z.ZodLiteral<"rotate">;
130
94
  operationId: z.ZodString;
131
- operationActor: z.ZodEffects<z.ZodString, string, string>;
95
+ operationActor: z.ZodString;
132
96
  credentialHandle: z.ZodString;
133
97
  expectedRevision: z.ZodNumber;
134
- secretBase64: z.ZodEffects<z.ZodString, string, string>;
135
- }, "strict", z.ZodTypeAny, {
136
- environment: "development" | "staging" | "production";
137
- schemaVersion: 1;
138
- ownerAccountId: string;
139
- action: "rotate";
140
- provider: string;
141
- connectionId: string;
142
- operationId: string;
143
- operationActor: string;
144
- secretBase64: string;
145
- credentialHandle: string;
146
- expectedRevision: number;
147
- }, {
148
- environment: "development" | "staging" | "production";
149
- schemaVersion: 1;
150
- ownerAccountId: string;
151
- action: "rotate";
152
- provider: string;
153
- connectionId: string;
154
- operationId: string;
155
- operationActor: string;
156
- secretBase64: string;
157
- credentialHandle: string;
158
- expectedRevision: number;
159
- }>;
98
+ secretBase64: z.ZodString;
99
+ }, z.core.$strict>;
160
100
  export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
161
101
  provider: z.ZodString;
162
102
  ownerAccountId: z.ZodString;
163
103
  connectionId: z.ZodString;
164
- environment: z.ZodEnum<["development", "staging", "production"]>;
165
- } & {
104
+ environment: z.ZodEnum<{
105
+ development: "development";
106
+ staging: "staging";
107
+ production: "production";
108
+ }>;
166
109
  schemaVersion: z.ZodLiteral<1>;
167
110
  action: z.ZodLiteral<"revoke">;
168
111
  operationId: z.ZodString;
169
- operationActor: z.ZodEffects<z.ZodString, string, string>;
112
+ operationActor: z.ZodString;
170
113
  credentialHandle: z.ZodString;
171
114
  expectedRevision: z.ZodNumber;
172
- }, "strict", z.ZodTypeAny, {
173
- environment: "development" | "staging" | "production";
174
- schemaVersion: 1;
175
- ownerAccountId: string;
176
- action: "revoke";
177
- provider: string;
178
- connectionId: string;
179
- operationId: string;
180
- operationActor: string;
181
- credentialHandle: string;
182
- expectedRevision: number;
183
- }, {
184
- environment: "development" | "staging" | "production";
185
- schemaVersion: 1;
186
- ownerAccountId: string;
187
- action: "revoke";
188
- provider: string;
189
- connectionId: string;
190
- operationId: string;
191
- operationActor: string;
192
- credentialHandle: string;
193
- expectedRevision: number;
194
- }>;
195
- export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
115
+ }, z.core.$strict>;
116
+ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
196
117
  provider: z.ZodString;
197
118
  ownerAccountId: z.ZodString;
198
119
  connectionId: z.ZodString;
199
- environment: z.ZodEnum<["development", "staging", "production"]>;
200
- } & {
120
+ environment: z.ZodEnum<{
121
+ development: "development";
122
+ staging: "staging";
123
+ production: "production";
124
+ }>;
201
125
  schemaVersion: z.ZodLiteral<1>;
202
126
  action: z.ZodLiteral<"create">;
203
127
  operationId: z.ZodString;
204
- operationActor: z.ZodEffects<z.ZodString, string, string>;
205
- secretBase64: z.ZodEffects<z.ZodString, string, string>;
206
- }, "strict", z.ZodTypeAny, {
207
- environment: "development" | "staging" | "production";
208
- schemaVersion: 1;
209
- ownerAccountId: string;
210
- action: "create";
211
- provider: string;
212
- connectionId: string;
213
- operationId: string;
214
- operationActor: string;
215
- secretBase64: string;
216
- }, {
217
- environment: "development" | "staging" | "production";
218
- schemaVersion: 1;
219
- ownerAccountId: string;
220
- action: "create";
221
- provider: string;
222
- connectionId: string;
223
- operationId: string;
224
- operationActor: string;
225
- secretBase64: string;
226
- }>, z.ZodObject<{
128
+ operationActor: z.ZodString;
129
+ secretBase64: z.ZodString;
130
+ }, z.core.$strict>, z.ZodObject<{
227
131
  provider: z.ZodString;
228
132
  ownerAccountId: z.ZodString;
229
133
  connectionId: z.ZodString;
230
- environment: z.ZodEnum<["development", "staging", "production"]>;
231
- } & {
134
+ environment: z.ZodEnum<{
135
+ development: "development";
136
+ staging: "staging";
137
+ production: "production";
138
+ }>;
232
139
  schemaVersion: z.ZodLiteral<1>;
233
140
  action: z.ZodLiteral<"rotate">;
234
141
  operationId: z.ZodString;
235
- operationActor: z.ZodEffects<z.ZodString, string, string>;
142
+ operationActor: z.ZodString;
236
143
  credentialHandle: z.ZodString;
237
144
  expectedRevision: z.ZodNumber;
238
- secretBase64: z.ZodEffects<z.ZodString, string, string>;
239
- }, "strict", z.ZodTypeAny, {
240
- environment: "development" | "staging" | "production";
241
- schemaVersion: 1;
242
- ownerAccountId: string;
243
- action: "rotate";
244
- provider: string;
245
- connectionId: string;
246
- operationId: string;
247
- operationActor: string;
248
- secretBase64: string;
249
- credentialHandle: string;
250
- expectedRevision: number;
251
- }, {
252
- environment: "development" | "staging" | "production";
253
- schemaVersion: 1;
254
- ownerAccountId: string;
255
- action: "rotate";
256
- provider: string;
257
- connectionId: string;
258
- operationId: string;
259
- operationActor: string;
260
- secretBase64: string;
261
- credentialHandle: string;
262
- expectedRevision: number;
263
- }>, z.ZodObject<{
145
+ secretBase64: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
264
147
  provider: z.ZodString;
265
148
  ownerAccountId: z.ZodString;
266
149
  connectionId: z.ZodString;
267
- environment: z.ZodEnum<["development", "staging", "production"]>;
268
- } & {
150
+ environment: z.ZodEnum<{
151
+ development: "development";
152
+ staging: "staging";
153
+ production: "production";
154
+ }>;
269
155
  schemaVersion: z.ZodLiteral<1>;
270
156
  action: z.ZodLiteral<"revoke">;
271
157
  operationId: z.ZodString;
272
- operationActor: z.ZodEffects<z.ZodString, string, string>;
158
+ operationActor: z.ZodString;
273
159
  credentialHandle: z.ZodString;
274
160
  expectedRevision: z.ZodNumber;
275
- }, "strict", z.ZodTypeAny, {
276
- environment: "development" | "staging" | "production";
277
- schemaVersion: 1;
278
- ownerAccountId: string;
279
- action: "revoke";
280
- provider: string;
281
- connectionId: string;
282
- operationId: string;
283
- operationActor: string;
284
- credentialHandle: string;
285
- expectedRevision: number;
286
- }, {
287
- environment: "development" | "staging" | "production";
288
- schemaVersion: 1;
289
- ownerAccountId: string;
290
- action: "revoke";
291
- provider: string;
292
- connectionId: string;
293
- operationId: string;
294
- operationActor: string;
295
- credentialHandle: string;
296
- expectedRevision: number;
297
- }>]>;
161
+ }, z.core.$strict>], "action">;
298
162
  export declare const kaanaCredentialCreateOutcomeRequestSchema: z.ZodObject<{
299
163
  provider: z.ZodString;
300
164
  ownerAccountId: z.ZodString;
301
165
  connectionId: z.ZodString;
302
- environment: z.ZodEnum<["development", "staging", "production"]>;
303
- } & {
166
+ environment: z.ZodEnum<{
167
+ development: "development";
168
+ staging: "staging";
169
+ production: "production";
170
+ }>;
304
171
  schemaVersion: z.ZodLiteral<1>;
305
172
  action: z.ZodLiteral<"create">;
306
173
  operationId: z.ZodString;
307
- }, "strict", z.ZodTypeAny, {
308
- environment: "development" | "staging" | "production";
309
- schemaVersion: 1;
310
- ownerAccountId: string;
311
- action: "create";
312
- provider: string;
313
- connectionId: string;
314
- operationId: string;
315
- }, {
316
- environment: "development" | "staging" | "production";
317
- schemaVersion: 1;
318
- ownerAccountId: string;
319
- action: "create";
320
- provider: string;
321
- connectionId: string;
322
- operationId: string;
323
- }>;
174
+ }, z.core.$strict>;
324
175
  export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
325
176
  provider: z.ZodString;
326
177
  ownerAccountId: z.ZodString;
327
178
  connectionId: z.ZodString;
328
- environment: z.ZodEnum<["development", "staging", "production"]>;
329
- } & {
179
+ environment: z.ZodEnum<{
180
+ development: "development";
181
+ staging: "staging";
182
+ production: "production";
183
+ }>;
330
184
  schemaVersion: z.ZodLiteral<1>;
331
185
  action: z.ZodLiteral<"rotate">;
332
186
  operationId: z.ZodString;
333
187
  credentialHandle: z.ZodString;
334
188
  expectedRevision: z.ZodNumber;
335
- }, "strict", z.ZodTypeAny, {
336
- environment: "development" | "staging" | "production";
337
- schemaVersion: 1;
338
- ownerAccountId: string;
339
- action: "rotate";
340
- provider: string;
341
- connectionId: string;
342
- operationId: string;
343
- credentialHandle: string;
344
- expectedRevision: number;
345
- }, {
346
- environment: "development" | "staging" | "production";
347
- schemaVersion: 1;
348
- ownerAccountId: string;
349
- action: "rotate";
350
- provider: string;
351
- connectionId: string;
352
- operationId: string;
353
- credentialHandle: string;
354
- expectedRevision: number;
355
- }>;
189
+ }, z.core.$strict>;
356
190
  export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
357
191
  provider: z.ZodString;
358
192
  ownerAccountId: z.ZodString;
359
193
  connectionId: z.ZodString;
360
- environment: z.ZodEnum<["development", "staging", "production"]>;
361
- } & {
194
+ environment: z.ZodEnum<{
195
+ development: "development";
196
+ staging: "staging";
197
+ production: "production";
198
+ }>;
362
199
  schemaVersion: z.ZodLiteral<1>;
363
200
  action: z.ZodLiteral<"revoke">;
364
201
  operationId: z.ZodString;
365
202
  credentialHandle: z.ZodString;
366
203
  expectedRevision: z.ZodNumber;
367
- }, "strict", z.ZodTypeAny, {
368
- environment: "development" | "staging" | "production";
369
- schemaVersion: 1;
370
- ownerAccountId: string;
371
- action: "revoke";
372
- provider: string;
373
- connectionId: string;
374
- operationId: string;
375
- credentialHandle: string;
376
- expectedRevision: number;
377
- }, {
378
- environment: "development" | "staging" | "production";
379
- schemaVersion: 1;
380
- ownerAccountId: string;
381
- action: "revoke";
382
- provider: string;
383
- connectionId: string;
384
- operationId: string;
385
- credentialHandle: string;
386
- expectedRevision: number;
387
- }>;
388
- export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
204
+ }, z.core.$strict>;
205
+ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
389
206
  provider: z.ZodString;
390
207
  ownerAccountId: z.ZodString;
391
208
  connectionId: z.ZodString;
392
- environment: z.ZodEnum<["development", "staging", "production"]>;
393
- } & {
209
+ environment: z.ZodEnum<{
210
+ development: "development";
211
+ staging: "staging";
212
+ production: "production";
213
+ }>;
394
214
  schemaVersion: z.ZodLiteral<1>;
395
215
  action: z.ZodLiteral<"create">;
396
216
  operationId: z.ZodString;
397
- }, "strict", z.ZodTypeAny, {
398
- environment: "development" | "staging" | "production";
399
- schemaVersion: 1;
400
- ownerAccountId: string;
401
- action: "create";
402
- provider: string;
403
- connectionId: string;
404
- operationId: string;
405
- }, {
406
- environment: "development" | "staging" | "production";
407
- schemaVersion: 1;
408
- ownerAccountId: string;
409
- action: "create";
410
- provider: string;
411
- connectionId: string;
412
- operationId: string;
413
- }>, z.ZodObject<{
217
+ }, z.core.$strict>, z.ZodObject<{
414
218
  provider: z.ZodString;
415
219
  ownerAccountId: z.ZodString;
416
220
  connectionId: z.ZodString;
417
- environment: z.ZodEnum<["development", "staging", "production"]>;
418
- } & {
221
+ environment: z.ZodEnum<{
222
+ development: "development";
223
+ staging: "staging";
224
+ production: "production";
225
+ }>;
419
226
  schemaVersion: z.ZodLiteral<1>;
420
227
  action: z.ZodLiteral<"rotate">;
421
228
  operationId: z.ZodString;
422
229
  credentialHandle: z.ZodString;
423
230
  expectedRevision: z.ZodNumber;
424
- }, "strict", z.ZodTypeAny, {
425
- environment: "development" | "staging" | "production";
426
- schemaVersion: 1;
427
- ownerAccountId: string;
428
- action: "rotate";
429
- provider: string;
430
- connectionId: string;
431
- operationId: string;
432
- credentialHandle: string;
433
- expectedRevision: number;
434
- }, {
435
- environment: "development" | "staging" | "production";
436
- schemaVersion: 1;
437
- ownerAccountId: string;
438
- action: "rotate";
439
- provider: string;
440
- connectionId: string;
441
- operationId: string;
442
- credentialHandle: string;
443
- expectedRevision: number;
444
- }>, z.ZodObject<{
231
+ }, z.core.$strict>, z.ZodObject<{
445
232
  provider: z.ZodString;
446
233
  ownerAccountId: z.ZodString;
447
234
  connectionId: z.ZodString;
448
- environment: z.ZodEnum<["development", "staging", "production"]>;
449
- } & {
235
+ environment: z.ZodEnum<{
236
+ development: "development";
237
+ staging: "staging";
238
+ production: "production";
239
+ }>;
450
240
  schemaVersion: z.ZodLiteral<1>;
451
241
  action: z.ZodLiteral<"revoke">;
452
242
  operationId: z.ZodString;
453
243
  credentialHandle: z.ZodString;
454
244
  expectedRevision: z.ZodNumber;
455
- }, "strict", z.ZodTypeAny, {
456
- environment: "development" | "staging" | "production";
457
- schemaVersion: 1;
458
- ownerAccountId: string;
459
- action: "revoke";
460
- provider: string;
461
- connectionId: string;
462
- operationId: string;
463
- credentialHandle: string;
464
- expectedRevision: number;
465
- }, {
466
- environment: "development" | "staging" | "production";
467
- schemaVersion: 1;
468
- ownerAccountId: string;
469
- action: "revoke";
470
- provider: string;
471
- connectionId: string;
472
- operationId: string;
473
- credentialHandle: string;
474
- expectedRevision: number;
475
- }>]>;
245
+ }, z.core.$strict>], "action">;
476
246
  export declare const kaanaCredentialAppliedOutcomeSchema: z.ZodObject<{
477
247
  schemaVersion: z.ZodLiteral<1>;
478
248
  operationId: z.ZodString;
479
- action: z.ZodEnum<["create", "rotate", "revoke"]>;
249
+ action: z.ZodEnum<{
250
+ create: "create";
251
+ revoke: "revoke";
252
+ rotate: "rotate";
253
+ }>;
480
254
  status: z.ZodLiteral<"applied">;
481
255
  credentialHandle: z.ZodString;
482
256
  revision: z.ZodNumber;
483
- }, "strict", z.ZodTypeAny, {
484
- status: "applied";
485
- schemaVersion: 1;
486
- revision: number;
487
- action: "create" | "revoke" | "rotate";
488
- operationId: string;
489
- credentialHandle: string;
490
- }, {
491
- status: "applied";
492
- schemaVersion: 1;
493
- revision: number;
494
- action: "create" | "revoke" | "rotate";
495
- operationId: string;
496
- credentialHandle: string;
497
- }>;
257
+ }, z.core.$strict>;
498
258
  export declare const kaanaCredentialConflictOutcomeSchema: z.ZodObject<{
499
259
  schemaVersion: z.ZodLiteral<1>;
500
260
  operationId: z.ZodString;
501
- action: z.ZodEnum<["create", "rotate", "revoke"]>;
261
+ action: z.ZodEnum<{
262
+ create: "create";
263
+ revoke: "revoke";
264
+ rotate: "rotate";
265
+ }>;
502
266
  status: z.ZodLiteral<"conflict">;
503
- }, "strict", z.ZodTypeAny, {
504
- status: "conflict";
505
- schemaVersion: 1;
506
- action: "create" | "revoke" | "rotate";
507
- operationId: string;
508
- }, {
509
- status: "conflict";
510
- schemaVersion: 1;
511
- action: "create" | "revoke" | "rotate";
512
- operationId: string;
513
- }>;
514
- export declare const kaanaCredentialOutcomeSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
267
+ }, z.core.$strict>;
268
+ export declare const kaanaCredentialOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
269
  schemaVersion: z.ZodLiteral<1>;
516
270
  operationId: z.ZodString;
517
- action: z.ZodEnum<["create", "rotate", "revoke"]>;
271
+ action: z.ZodEnum<{
272
+ create: "create";
273
+ revoke: "revoke";
274
+ rotate: "rotate";
275
+ }>;
518
276
  status: z.ZodLiteral<"applied">;
519
277
  credentialHandle: z.ZodString;
520
278
  revision: z.ZodNumber;
521
- }, "strict", z.ZodTypeAny, {
522
- status: "applied";
523
- schemaVersion: 1;
524
- revision: number;
525
- action: "create" | "revoke" | "rotate";
526
- operationId: string;
527
- credentialHandle: string;
528
- }, {
529
- status: "applied";
530
- schemaVersion: 1;
531
- revision: number;
532
- action: "create" | "revoke" | "rotate";
533
- operationId: string;
534
- credentialHandle: string;
535
- }>, z.ZodObject<{
279
+ }, z.core.$strict>, z.ZodObject<{
536
280
  schemaVersion: z.ZodLiteral<1>;
537
281
  operationId: z.ZodString;
538
- action: z.ZodEnum<["create", "rotate", "revoke"]>;
282
+ action: z.ZodEnum<{
283
+ create: "create";
284
+ revoke: "revoke";
285
+ rotate: "rotate";
286
+ }>;
539
287
  status: z.ZodLiteral<"conflict">;
540
- }, "strict", z.ZodTypeAny, {
541
- status: "conflict";
542
- schemaVersion: 1;
543
- action: "create" | "revoke" | "rotate";
544
- operationId: string;
545
- }, {
546
- status: "conflict";
547
- schemaVersion: 1;
548
- action: "create" | "revoke" | "rotate";
549
- operationId: string;
550
- }>]>;
288
+ }, z.core.$strict>], "status">;
551
289
  /**
552
290
  * One separately authenticated check of a quarantined BYOK generation.
553
291
  *
@@ -559,113 +297,68 @@ export declare const kaanaCredentialValidationTaskSchema: z.ZodObject<{
559
297
  provider: z.ZodString;
560
298
  ownerAccountId: z.ZodString;
561
299
  connectionId: z.ZodString;
562
- environment: z.ZodEnum<["development", "staging", "production"]>;
563
- } & {
300
+ environment: z.ZodEnum<{
301
+ development: "development";
302
+ staging: "staging";
303
+ production: "production";
304
+ }>;
564
305
  schemaVersion: z.ZodLiteral<1>;
565
306
  operationId: z.ZodString;
566
307
  applicationId: z.ZodString;
567
308
  credentialHandle: z.ZodString;
568
309
  credentialRevision: z.ZodNumber;
569
310
  deploymentId: z.ZodString;
570
- }, "strict", z.ZodTypeAny, {
571
- environment: "development" | "staging" | "production";
572
- schemaVersion: 1;
573
- ownerAccountId: string;
574
- applicationId: string;
575
- provider: string;
576
- deploymentId: string;
577
- connectionId: string;
578
- operationId: string;
579
- credentialHandle: string;
580
- credentialRevision: number;
581
- }, {
582
- environment: "development" | "staging" | "production";
583
- schemaVersion: 1;
584
- ownerAccountId: string;
585
- applicationId: string;
586
- provider: string;
587
- deploymentId: string;
588
- connectionId: string;
589
- operationId: string;
590
- credentialHandle: string;
591
- credentialRevision: number;
311
+ }, z.core.$strict>;
312
+ export declare const kaanaCredentialValidationOutcomeStateSchema: z.ZodEnum<{
313
+ pending: "pending";
314
+ valid: "valid";
315
+ invalid: "invalid";
316
+ inconclusive: "inconclusive";
317
+ }>;
318
+ export declare const kaanaCredentialValidationFailureCodeSchema: z.ZodEnum<{
319
+ unknown: "unknown";
320
+ unauthorized: "unauthorized";
321
+ forbidden: "forbidden";
322
+ not_found: "not_found";
323
+ rate_limited: "rate_limited";
324
+ network: "network";
592
325
  }>;
593
- export declare const kaanaCredentialValidationOutcomeStateSchema: z.ZodEnum<["pending", "valid", "invalid", "inconclusive"]>;
594
- export declare const kaanaCredentialValidationFailureCodeSchema: z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>;
595
326
  /**
596
327
  * Durable result for one exact validation operation. `inconclusive` is a
597
328
  * terminal answer about the attempt, never evidence that the credential is
598
329
  * invalid; Oxy leaves the generation quarantined and may start a new exact
599
330
  * operation. Kaana reports terminal outcomes through its service principal.
600
331
  */
601
- export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodObject<{
332
+ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodObject<{
602
333
  provider: z.ZodString;
603
334
  ownerAccountId: z.ZodString;
604
335
  connectionId: z.ZodString;
605
- environment: z.ZodEnum<["development", "staging", "production"]>;
606
- } & {
336
+ environment: z.ZodEnum<{
337
+ development: "development";
338
+ staging: "staging";
339
+ production: "production";
340
+ }>;
607
341
  schemaVersion: z.ZodLiteral<1>;
608
342
  operationId: z.ZodString;
609
343
  applicationId: z.ZodString;
610
344
  credentialHandle: z.ZodString;
611
345
  credentialRevision: z.ZodNumber;
612
346
  deploymentId: z.ZodString;
613
- } & {
614
- state: z.ZodEnum<["pending", "valid", "invalid", "inconclusive"]>;
615
- failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
616
- }, "strict", z.ZodTypeAny, {
617
- environment: "development" | "staging" | "production";
618
- schemaVersion: 1;
619
- ownerAccountId: string;
620
- applicationId: string;
621
- state: "valid" | "pending" | "invalid" | "inconclusive";
622
- provider: string;
623
- deploymentId: string;
624
- connectionId: string;
625
- operationId: string;
626
- credentialHandle: string;
627
- credentialRevision: number;
628
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
629
- }, {
630
- environment: "development" | "staging" | "production";
631
- schemaVersion: 1;
632
- ownerAccountId: string;
633
- applicationId: string;
634
- state: "valid" | "pending" | "invalid" | "inconclusive";
635
- provider: string;
636
- deploymentId: string;
637
- connectionId: string;
638
- operationId: string;
639
- credentialHandle: string;
640
- credentialRevision: number;
641
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
642
- }>, {
643
- environment: "development" | "staging" | "production";
644
- schemaVersion: 1;
645
- ownerAccountId: string;
646
- applicationId: string;
647
- state: "valid" | "pending" | "invalid" | "inconclusive";
648
- provider: string;
649
- deploymentId: string;
650
- connectionId: string;
651
- operationId: string;
652
- credentialHandle: string;
653
- credentialRevision: number;
654
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
655
- }, {
656
- environment: "development" | "staging" | "production";
657
- schemaVersion: 1;
658
- ownerAccountId: string;
659
- applicationId: string;
660
- state: "valid" | "pending" | "invalid" | "inconclusive";
661
- provider: string;
662
- deploymentId: string;
663
- connectionId: string;
664
- operationId: string;
665
- credentialHandle: string;
666
- credentialRevision: number;
667
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
668
- }>;
347
+ state: z.ZodEnum<{
348
+ pending: "pending";
349
+ valid: "valid";
350
+ invalid: "invalid";
351
+ inconclusive: "inconclusive";
352
+ }>;
353
+ failureCode: z.ZodOptional<z.ZodEnum<{
354
+ unknown: "unknown";
355
+ unauthorized: "unauthorized";
356
+ forbidden: "forbidden";
357
+ not_found: "not_found";
358
+ rate_limited: "rate_limited";
359
+ network: "network";
360
+ }>>;
361
+ }, z.core.$strict>;
669
362
  /**
670
363
  * Customer-safe view of one explicit bootstrap attempt.
671
364
  *
@@ -673,90 +366,71 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
673
366
  * internal Kaana route id remains protected; Oxy binds the two in its durable
674
367
  * ledger and signs the latter to Kaana.
675
368
  */
676
- export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z.ZodObject<{
369
+ export declare const providerCredentialValidationOperationSchema: z.ZodObject<{
677
370
  schemaVersion: z.ZodLiteral<1>;
678
371
  operationId: z.ZodString;
679
372
  connectionId: z.ZodString;
680
373
  applicationId: z.ZodString;
681
374
  deploymentId: z.ZodString;
682
- state: z.ZodEnum<["pending", "valid", "invalid", "inconclusive"]>;
683
- failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
375
+ state: z.ZodEnum<{
376
+ pending: "pending";
377
+ valid: "valid";
378
+ invalid: "invalid";
379
+ inconclusive: "inconclusive";
380
+ }>;
381
+ failureCode: z.ZodOptional<z.ZodEnum<{
382
+ unknown: "unknown";
383
+ unauthorized: "unauthorized";
384
+ forbidden: "forbidden";
385
+ not_found: "not_found";
386
+ rate_limited: "rate_limited";
387
+ network: "network";
388
+ }>>;
684
389
  createdAt: z.ZodString;
685
390
  completedAt: z.ZodOptional<z.ZodString>;
686
- }, "strict", z.ZodTypeAny, {
687
- createdAt: string;
688
- schemaVersion: 1;
689
- applicationId: string;
690
- state: "valid" | "pending" | "invalid" | "inconclusive";
691
- deploymentId: string;
692
- connectionId: string;
693
- operationId: string;
694
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
695
- completedAt?: string | undefined;
696
- }, {
697
- createdAt: string;
698
- schemaVersion: 1;
699
- applicationId: string;
700
- state: "valid" | "pending" | "invalid" | "inconclusive";
701
- deploymentId: string;
702
- connectionId: string;
703
- operationId: string;
704
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
705
- completedAt?: string | undefined;
706
- }>, {
707
- createdAt: string;
708
- schemaVersion: 1;
709
- applicationId: string;
710
- state: "valid" | "pending" | "invalid" | "inconclusive";
711
- deploymentId: string;
712
- connectionId: string;
713
- operationId: string;
714
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
715
- completedAt?: string | undefined;
716
- }, {
717
- createdAt: string;
718
- schemaVersion: 1;
719
- applicationId: string;
720
- state: "valid" | "pending" | "invalid" | "inconclusive";
721
- deploymentId: string;
722
- connectionId: string;
723
- operationId: string;
724
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
725
- completedAt?: string | undefined;
726
- }>;
391
+ }, z.core.$strict>;
727
392
  /** Exact customer-selectable catalogue ids; no internal Kaana route is exposed. */
728
393
  export declare const providerCredentialValidationDeploymentSchema: z.ZodObject<{
729
394
  deploymentId: z.ZodString;
730
- }, "strict", z.ZodTypeAny, {
731
- deploymentId: string;
732
- }, {
733
- deploymentId: string;
734
- }>;
395
+ }, z.core.$strict>;
735
396
  /**
736
397
  * Oxy's view of the cross-service mutation. Only `ready` may be routed.
737
398
  * `reconcile` is the fail-closed state after an outcome could not be proven.
738
399
  */
739
- export declare const providerCredentialCustodyStateSchema: z.ZodEnum<["pending", "ready", "reconcile", "revoked"]>;
400
+ export declare const providerCredentialCustodyStateSchema: z.ZodEnum<{
401
+ pending: "pending";
402
+ revoked: "revoked";
403
+ ready: "ready";
404
+ reconcile: "reconcile";
405
+ }>;
740
406
  /** Why a credential check failed, as a closed set the Console can render. */
741
407
  export declare const providerConnectionValidationSchema: z.ZodObject<{
742
- state: z.ZodEnum<["unvalidated", "valid", "invalid", "expired"]>;
408
+ state: z.ZodEnum<{
409
+ valid: "valid";
410
+ invalid: "invalid";
411
+ expired: "expired";
412
+ unvalidated: "unvalidated";
413
+ }>;
743
414
  lastValidatedAt: z.ZodOptional<z.ZodString>;
744
- /** Required when `invalid`: a failure nobody can act on is not a result. */
745
- failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
746
- }, "strict", z.ZodTypeAny, {
747
- state: "valid" | "invalid" | "expired" | "unvalidated";
748
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
749
- lastValidatedAt?: string | undefined;
750
- }, {
751
- state: "valid" | "invalid" | "expired" | "unvalidated";
752
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
753
- lastValidatedAt?: string | undefined;
754
- }>;
415
+ failureCode: z.ZodOptional<z.ZodEnum<{
416
+ unknown: "unknown";
417
+ unauthorized: "unauthorized";
418
+ forbidden: "forbidden";
419
+ not_found: "not_found";
420
+ rate_limited: "rate_limited";
421
+ network: "network";
422
+ }>>;
423
+ }, z.core.$strict>;
755
424
  /**
756
425
  * Lifecycle of a connection. `pending_validation` is quarantined from normal
757
426
  * serving, `revoked` is terminal, and `disabled` is reversible.
758
427
  */
759
- export declare const providerConnectionStatusSchema: z.ZodEnum<["pending_validation", "active", "disabled", "revoked"]>;
428
+ export declare const providerConnectionStatusSchema: z.ZodEnum<{
429
+ active: "active";
430
+ revoked: "revoked";
431
+ disabled: "disabled";
432
+ pending_validation: "pending_validation";
433
+ }>;
760
434
  /**
761
435
  * A customer's provider connection, without secrets.
762
436
  *
@@ -764,194 +438,63 @@ export declare const providerConnectionStatusSchema: z.ZodEnum<["pending_validat
764
438
  * is given.
765
439
  * Resolving the opaque handle to plaintext happens only inside Kaana inference.
766
440
  */
767
- export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
768
- /** See `version.ts`: exchanged with the data plane and rendered by Console. */
441
+ export declare const providerConnectionSchema: z.ZodObject<{
769
442
  schemaVersion: z.ZodLiteral<2>;
770
443
  connectionId: z.ZodString;
771
444
  provider: z.ZodString;
772
- /** The Oxy account that owns the connection and answers for its use. */
773
- ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
774
- scope: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
445
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
446
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
775
447
  kind: z.ZodLiteral<"account">;
776
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
777
- }, "strict", z.ZodTypeAny, {
778
- kind: "account";
779
- accountId: string & z.BRAND<"OxyAccountId">;
780
- }, {
781
- kind: "account";
782
- accountId: string;
783
- }>, z.ZodObject<{
448
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
449
+ }, z.core.$strict>, z.ZodObject<{
784
450
  kind: z.ZodLiteral<"project">;
785
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
786
- }, "strict", z.ZodTypeAny, {
787
- kind: "project";
788
- accountId: string & z.BRAND<"OxyAccountId">;
789
- }, {
790
- kind: "project";
791
- accountId: string;
792
- }>, z.ZodObject<{
451
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
452
+ }, z.core.$strict>, z.ZodObject<{
793
453
  kind: z.ZodLiteral<"application">;
794
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
454
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
795
455
  applicationId: z.ZodString;
796
- }, "strict", z.ZodTypeAny, {
797
- kind: "application";
798
- accountId: string & z.BRAND<"OxyAccountId">;
799
- applicationId: string;
800
- }, {
801
- kind: "application";
802
- accountId: string;
803
- applicationId: string;
804
- }>]>;
805
- environment: z.ZodEnum<["development", "staging", "production"]>;
806
- status: z.ZodEnum<["pending_validation", "active", "disabled", "revoked"]>;
807
- custodyState: z.ZodEnum<["pending", "ready", "reconcile", "revoked"]>;
456
+ }, z.core.$strict>], "kind">;
457
+ environment: z.ZodEnum<{
458
+ development: "development";
459
+ staging: "staging";
460
+ production: "production";
461
+ }>;
462
+ status: z.ZodEnum<{
463
+ active: "active";
464
+ revoked: "revoked";
465
+ disabled: "disabled";
466
+ pending_validation: "pending_validation";
467
+ }>;
468
+ custodyState: z.ZodEnum<{
469
+ pending: "pending";
470
+ revoked: "revoked";
471
+ ready: "ready";
472
+ reconcile: "reconcile";
473
+ }>;
808
474
  credentialHandle: z.ZodOptional<z.ZodString>;
809
475
  credentialRevision: z.ZodOptional<z.ZodNumber>;
810
476
  validation: z.ZodObject<{
811
- state: z.ZodEnum<["unvalidated", "valid", "invalid", "expired"]>;
477
+ state: z.ZodEnum<{
478
+ valid: "valid";
479
+ invalid: "invalid";
480
+ expired: "expired";
481
+ unvalidated: "unvalidated";
482
+ }>;
812
483
  lastValidatedAt: z.ZodOptional<z.ZodString>;
813
- /** Required when `invalid`: a failure nobody can act on is not a result. */
814
- failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
815
- }, "strict", z.ZodTypeAny, {
816
- state: "valid" | "invalid" | "expired" | "unvalidated";
817
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
818
- lastValidatedAt?: string | undefined;
819
- }, {
820
- state: "valid" | "invalid" | "expired" | "unvalidated";
821
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
822
- lastValidatedAt?: string | undefined;
823
- }>;
824
- /**
825
- * Always `true` for a BYOK connection: the provider bills the customer's own
826
- * upstream account, and Oxy charges only its platform fee. Stated as data so
827
- * a receipt against this route is readable without a second lookup.
828
- */
484
+ failureCode: z.ZodOptional<z.ZodEnum<{
485
+ unknown: "unknown";
486
+ unauthorized: "unauthorized";
487
+ forbidden: "forbidden";
488
+ not_found: "not_found";
489
+ rate_limited: "rate_limited";
490
+ network: "network";
491
+ }>>;
492
+ }, z.core.$strict>;
829
493
  upstreamBillsCustomerDirectly: z.ZodLiteral<true>;
830
- /** Set when the provider's terms require a per-customer acknowledgement. */
831
494
  termsAcknowledgedAt: z.ZodOptional<z.ZodString>;
832
495
  createdAt: z.ZodString;
833
496
  rotatedAt: z.ZodOptional<z.ZodString>;
834
- }, "strict", z.ZodTypeAny, {
835
- validation: {
836
- state: "valid" | "invalid" | "expired" | "unvalidated";
837
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
838
- lastValidatedAt?: string | undefined;
839
- };
840
- status: "active" | "revoked" | "disabled" | "pending_validation";
841
- environment: "development" | "staging" | "production";
842
- createdAt: string;
843
- schemaVersion: 2;
844
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
845
- scope: {
846
- kind: "account";
847
- accountId: string & z.BRAND<"OxyAccountId">;
848
- } | {
849
- kind: "project";
850
- accountId: string & z.BRAND<"OxyAccountId">;
851
- } | {
852
- kind: "application";
853
- accountId: string & z.BRAND<"OxyAccountId">;
854
- applicationId: string;
855
- };
856
- provider: string;
857
- connectionId: string;
858
- custodyState: "pending" | "revoked" | "ready" | "reconcile";
859
- upstreamBillsCustomerDirectly: true;
860
- credentialHandle?: string | undefined;
861
- credentialRevision?: number | undefined;
862
- termsAcknowledgedAt?: string | undefined;
863
- rotatedAt?: string | undefined;
864
- }, {
865
- validation: {
866
- state: "valid" | "invalid" | "expired" | "unvalidated";
867
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
868
- lastValidatedAt?: string | undefined;
869
- };
870
- status: "active" | "revoked" | "disabled" | "pending_validation";
871
- environment: "development" | "staging" | "production";
872
- createdAt: string;
873
- schemaVersion: 2;
874
- ownerAccountId: string;
875
- scope: {
876
- kind: "account";
877
- accountId: string;
878
- } | {
879
- kind: "project";
880
- accountId: string;
881
- } | {
882
- kind: "application";
883
- accountId: string;
884
- applicationId: string;
885
- };
886
- provider: string;
887
- connectionId: string;
888
- custodyState: "pending" | "revoked" | "ready" | "reconcile";
889
- upstreamBillsCustomerDirectly: true;
890
- credentialHandle?: string | undefined;
891
- credentialRevision?: number | undefined;
892
- termsAcknowledgedAt?: string | undefined;
893
- rotatedAt?: string | undefined;
894
- }>, {
895
- validation: {
896
- state: "valid" | "invalid" | "expired" | "unvalidated";
897
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
898
- lastValidatedAt?: string | undefined;
899
- };
900
- status: "active" | "revoked" | "disabled" | "pending_validation";
901
- environment: "development" | "staging" | "production";
902
- createdAt: string;
903
- schemaVersion: 2;
904
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
905
- scope: {
906
- kind: "account";
907
- accountId: string & z.BRAND<"OxyAccountId">;
908
- } | {
909
- kind: "project";
910
- accountId: string & z.BRAND<"OxyAccountId">;
911
- } | {
912
- kind: "application";
913
- accountId: string & z.BRAND<"OxyAccountId">;
914
- applicationId: string;
915
- };
916
- provider: string;
917
- connectionId: string;
918
- custodyState: "pending" | "revoked" | "ready" | "reconcile";
919
- upstreamBillsCustomerDirectly: true;
920
- credentialHandle?: string | undefined;
921
- credentialRevision?: number | undefined;
922
- termsAcknowledgedAt?: string | undefined;
923
- rotatedAt?: string | undefined;
924
- }, {
925
- validation: {
926
- state: "valid" | "invalid" | "expired" | "unvalidated";
927
- failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
928
- lastValidatedAt?: string | undefined;
929
- };
930
- status: "active" | "revoked" | "disabled" | "pending_validation";
931
- environment: "development" | "staging" | "production";
932
- createdAt: string;
933
- schemaVersion: 2;
934
- ownerAccountId: string;
935
- scope: {
936
- kind: "account";
937
- accountId: string;
938
- } | {
939
- kind: "project";
940
- accountId: string;
941
- } | {
942
- kind: "application";
943
- accountId: string;
944
- applicationId: string;
945
- };
946
- provider: string;
947
- connectionId: string;
948
- custodyState: "pending" | "revoked" | "ready" | "reconcile";
949
- upstreamBillsCustomerDirectly: true;
950
- credentialHandle?: string | undefined;
951
- credentialRevision?: number | undefined;
952
- termsAcknowledgedAt?: string | undefined;
953
- rotatedAt?: string | undefined;
954
- }>;
497
+ }, z.core.$strict>;
955
498
  export type ProviderConnectionScope = z.infer<typeof providerConnectionScopeSchema>;
956
499
  export type KaanaCredentialOperationAction = z.infer<typeof kaanaCredentialOperationActionSchema>;
957
500
  export type KaanaCredentialIdentity = z.infer<typeof kaanaCredentialIdentitySchema>;