@opengeni/contracts 1.0.1 → 2.3.0-canary.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 (112) hide show
  1. package/dist/agent-authored-durable-text.d.ts +64 -0
  2. package/dist/atlassian.d.ts +1 -0
  3. package/dist/atlassian.js +14 -13
  4. package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
  5. package/dist/chunk-3SIZGL3O.js.map +1 -0
  6. package/dist/{chunk-JBCIY7QD.js → chunk-7RMTKFJW.js} +45 -22
  7. package/dist/chunk-7RMTKFJW.js.map +1 -0
  8. package/dist/{chunk-5UDNP7AO.js → chunk-MRWYRAS5.js} +56 -8
  9. package/dist/chunk-MRWYRAS5.js.map +1 -0
  10. package/dist/{chunk-LW7OH6CS.js → chunk-N6GRVXAJ.js} +6 -5
  11. package/dist/chunk-N6GRVXAJ.js.map +1 -0
  12. package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
  13. package/dist/chunk-NVJMJWLL.js.map +1 -0
  14. package/dist/chunk-PX3VCKAU.js +29 -0
  15. package/dist/chunk-PX3VCKAU.js.map +1 -0
  16. package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
  17. package/dist/chunk-TXTQIYCV.js.map +1 -0
  18. package/dist/{chunk-NX5JNF4L.js → chunk-XW2RKNEU.js} +9410 -5799
  19. package/dist/chunk-XW2RKNEU.js.map +1 -0
  20. package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
  21. package/dist/chunk-YBW5JSA3.js +251 -0
  22. package/dist/chunk-YBW5JSA3.js.map +1 -0
  23. package/dist/company-brain-governed-writes.d.ts +475 -0
  24. package/dist/company-brain.d.ts +398 -0
  25. package/dist/company-profile.d.ts +268 -0
  26. package/dist/connection-authority.d.ts +501 -0
  27. package/dist/connection-authority.js +364 -0
  28. package/dist/connection-authority.js.map +1 -0
  29. package/dist/connector-attachments.d.ts +95 -0
  30. package/dist/connector-attachments.js +51 -0
  31. package/dist/connector-attachments.js.map +1 -0
  32. package/dist/editable-artifact-codec-registry.d.ts +16 -7
  33. package/dist/editable-artifact-codec-registry.js +18 -8
  34. package/dist/editable-artifact-committed-transaction.d.ts +2 -2
  35. package/dist/editable-artifact-committed-transaction.js +2 -2
  36. package/dist/editable-artifact-live.d.ts +11 -12
  37. package/dist/editable-artifact-live.js +111 -46
  38. package/dist/editable-artifact-live.js.map +1 -1
  39. package/dist/editable-artifact-serialized-commit.d.ts +2 -1
  40. package/dist/editable-artifact-serialized-commit.js +9 -8
  41. package/dist/editable-artifact-versions.d.ts +20 -5
  42. package/dist/editable-artifact-versions.js +23 -5
  43. package/dist/editable-artifacts.d.ts +2 -0
  44. package/dist/editable-artifacts.js +51 -39
  45. package/dist/google-drive.d.ts +1 -0
  46. package/dist/google-drive.js +14 -13
  47. package/dist/google-drive.js.map +1 -1
  48. package/dist/governed-learning-activation.d.ts +154 -0
  49. package/dist/governed-learning-evaluator.d.ts +152 -0
  50. package/dist/index.d.ts +12426 -1313
  51. package/dist/index.js +855 -115
  52. package/dist/interaction.d.ts +68 -0
  53. package/dist/knowledge.d.ts +119 -0
  54. package/dist/organization-membership-lifecycle.d.ts +516 -0
  55. package/dist/permissions.d.ts +52 -0
  56. package/dist/personal-github.d.ts +319 -0
  57. package/dist/personal-github.js +209 -0
  58. package/dist/personal-github.js.map +1 -0
  59. package/dist/preference-registry.d.ts +17 -0
  60. package/dist/remember.d.ts +331 -0
  61. package/dist/sandbox-file-artifacts.d.ts +56 -0
  62. package/dist/sandbox-snapshots.d.ts +21 -0
  63. package/dist/slack-bot-scopes.d.ts +34 -14
  64. package/dist/slack-bot-scopes.js +5 -1
  65. package/dist/spreadsheet-artifact-commands.d.ts +2 -3
  66. package/dist/spreadsheet-artifact-commands.js +4 -2
  67. package/dist/spreadsheet-artifact-query.js +3 -2
  68. package/dist/task-notes.d.ts +42 -1
  69. package/dist/tool-result-spill.d.ts +16 -0
  70. package/dist/workspace-instruction-policies.d.ts +81 -0
  71. package/dist/workspace-learning-administration.d.ts +289 -0
  72. package/package.json +13 -1
  73. package/src/agent-authored-durable-text.ts +105 -0
  74. package/src/company-brain-governed-writes.ts +356 -0
  75. package/src/company-brain.ts +201 -0
  76. package/src/company-profile.ts +122 -1
  77. package/src/connection-authority.ts +413 -0
  78. package/src/connector-attachments.ts +327 -0
  79. package/src/editable-artifact-codec-registry.ts +55 -17
  80. package/src/editable-artifact-committed-transaction.ts +44 -31
  81. package/src/editable-artifact-live.ts +123 -57
  82. package/src/editable-artifact-serialized-commit.ts +2 -1
  83. package/src/editable-artifact-versions.ts +26 -5
  84. package/src/editable-artifacts.ts +2 -0
  85. package/src/governed-learning-activation.ts +191 -0
  86. package/src/governed-learning-evaluator.ts +176 -0
  87. package/src/index.ts +3148 -369
  88. package/src/interaction.ts +55 -1
  89. package/src/knowledge.ts +118 -6
  90. package/src/organization-membership-lifecycle.ts +330 -0
  91. package/src/permissions.ts +55 -0
  92. package/src/personal-github.ts +267 -0
  93. package/src/preference-registry.ts +17 -0
  94. package/src/remember.ts +242 -0
  95. package/src/sandbox-file-artifacts.ts +65 -0
  96. package/src/sandbox-snapshots.ts +78 -0
  97. package/src/slack-bot-scopes.ts +81 -9
  98. package/src/spreadsheet-artifact-commands.ts +12 -13
  99. package/src/task-notes.ts +14 -1
  100. package/src/tool-result-spill.ts +35 -0
  101. package/src/workspace-instruction-policies.ts +30 -0
  102. package/src/workspace-learning-administration.ts +88 -0
  103. package/dist/chunk-5UDNP7AO.js.map +0 -1
  104. package/dist/chunk-BVGIYW7D.js +0 -11
  105. package/dist/chunk-BVGIYW7D.js.map +0 -1
  106. package/dist/chunk-JBCIY7QD.js.map +0 -1
  107. package/dist/chunk-LSB7GRLG.js.map +0 -1
  108. package/dist/chunk-LW7OH6CS.js.map +0 -1
  109. package/dist/chunk-NX5JNF4L.js.map +0 -1
  110. package/dist/chunk-TZ6YEYN4.js.map +0 -1
  111. package/dist/chunk-Y3MLSLB4.js.map +0 -1
  112. /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
@@ -0,0 +1,501 @@
1
+ import { z } from "zod";
2
+ /** The only generic grant action that authorizes use of a connection. */
3
+ export declare const ConnectionUseAction: z.ZodLiteral<"connection.use">;
4
+ export type ConnectionUseAction = z.infer<typeof ConnectionUseAction>;
5
+ /**
6
+ * Connection authority is either workspace-owned or user-owned. Omission is
7
+ * intentionally compatible with the historical workspace connection path.
8
+ */
9
+ export declare const ConnectionAuthorityEnvelope: z.ZodObject<{
10
+ scope: z.ZodDefault<z.ZodEnum<{
11
+ user: "user";
12
+ workspace: "workspace";
13
+ }>>;
14
+ userDelegation: z.ZodOptional<z.ZodObject<{
15
+ authorityId: z.ZodString;
16
+ grantId: z.ZodString;
17
+ organizationId: z.ZodString;
18
+ workspaceId: z.ZodString;
19
+ sessionId: z.ZodNullable<z.ZodString>;
20
+ action: z.ZodString;
21
+ mode: z.ZodEnum<{
22
+ always: "always";
23
+ once: "once";
24
+ session: "session";
25
+ }>;
26
+ context: z.ZodEnum<{
27
+ user_private: "user_private";
28
+ workspace_shared: "workspace_shared";
29
+ }>;
30
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
31
+ authorityGeneration: z.ZodNumber;
32
+ grantGeneration: z.ZodNumber;
33
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strict>;
36
+ export type ConnectionAuthorityEnvelope = z.infer<typeof ConnectionAuthorityEnvelope>;
37
+ export declare const ConnectionAuthorityGrant: z.ZodObject<{
38
+ grantId: z.ZodString;
39
+ targetWorkspaceId: z.ZodString;
40
+ targetSessionId: z.ZodNullable<z.ZodString>;
41
+ mode: z.ZodEnum<{
42
+ always: "always";
43
+ once: "once";
44
+ session: "session";
45
+ }>;
46
+ context: z.ZodEnum<{
47
+ user_private: "user_private";
48
+ workspace_shared: "workspace_shared";
49
+ }>;
50
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
51
+ generation: z.ZodNumber;
52
+ status: z.ZodEnum<{
53
+ active: "active";
54
+ consumed: "consumed";
55
+ expired: "expired";
56
+ revoked: "revoked";
57
+ }>;
58
+ expiresAt: z.ZodNullable<z.ZodString>;
59
+ delegation: z.ZodLazy<z.ZodObject<{
60
+ authorityId: z.ZodString;
61
+ grantId: z.ZodString;
62
+ organizationId: z.ZodString;
63
+ workspaceId: z.ZodString;
64
+ sessionId: z.ZodNullable<z.ZodString>;
65
+ action: z.ZodString;
66
+ mode: z.ZodEnum<{
67
+ always: "always";
68
+ once: "once";
69
+ session: "session";
70
+ }>;
71
+ context: z.ZodEnum<{
72
+ user_private: "user_private";
73
+ workspace_shared: "workspace_shared";
74
+ }>;
75
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
76
+ authorityGeneration: z.ZodNumber;
77
+ grantGeneration: z.ZodNumber;
78
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>>;
80
+ action: z.ZodLiteral<"connection.use">;
81
+ }, z.core.$strict>;
82
+ export type ConnectionAuthorityGrant = z.infer<typeof ConnectionAuthorityGrant>;
83
+ /** Owner-only opaque projection; connection identity and owner metadata stay server-side. */
84
+ export declare const ConnectionAuthoritySummary: z.ZodObject<{
85
+ authorityId: z.ZodString;
86
+ resourceId: z.ZodString;
87
+ originWorkspaceId: z.ZodNullable<z.ZodString>;
88
+ generation: z.ZodNumber;
89
+ status: z.ZodEnum<{
90
+ active: "active";
91
+ retained: "retained";
92
+ revoked: "revoked";
93
+ }>;
94
+ grants: z.ZodArray<z.ZodObject<{
95
+ grantId: z.ZodString;
96
+ targetWorkspaceId: z.ZodString;
97
+ targetSessionId: z.ZodNullable<z.ZodString>;
98
+ mode: z.ZodEnum<{
99
+ always: "always";
100
+ once: "once";
101
+ session: "session";
102
+ }>;
103
+ context: z.ZodEnum<{
104
+ user_private: "user_private";
105
+ workspace_shared: "workspace_shared";
106
+ }>;
107
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
108
+ generation: z.ZodNumber;
109
+ status: z.ZodEnum<{
110
+ active: "active";
111
+ consumed: "consumed";
112
+ expired: "expired";
113
+ revoked: "revoked";
114
+ }>;
115
+ expiresAt: z.ZodNullable<z.ZodString>;
116
+ delegation: z.ZodLazy<z.ZodObject<{
117
+ authorityId: z.ZodString;
118
+ grantId: z.ZodString;
119
+ organizationId: z.ZodString;
120
+ workspaceId: z.ZodString;
121
+ sessionId: z.ZodNullable<z.ZodString>;
122
+ action: z.ZodString;
123
+ mode: z.ZodEnum<{
124
+ always: "always";
125
+ once: "once";
126
+ session: "session";
127
+ }>;
128
+ context: z.ZodEnum<{
129
+ user_private: "user_private";
130
+ workspace_shared: "workspace_shared";
131
+ }>;
132
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
133
+ authorityGeneration: z.ZodNumber;
134
+ grantGeneration: z.ZodNumber;
135
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ }, z.core.$strip>>;
137
+ action: z.ZodLiteral<"connection.use">;
138
+ }, z.core.$strict>>;
139
+ }, z.core.$strict>;
140
+ export type ConnectionAuthoritySummary = z.infer<typeof ConnectionAuthoritySummary>;
141
+ export declare const ListConnectionAuthoritiesQuery: z.ZodObject<{
142
+ scope: z.ZodLiteral<"user">;
143
+ cursor: z.ZodOptional<z.ZodString>;
144
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
145
+ }, z.core.$strict>;
146
+ export declare const ListConnectionAuthoritiesResponse: z.ZodObject<{
147
+ scope: z.ZodLiteral<"user">;
148
+ authorities: z.ZodArray<z.ZodObject<{
149
+ authorityId: z.ZodString;
150
+ resourceId: z.ZodString;
151
+ originWorkspaceId: z.ZodNullable<z.ZodString>;
152
+ generation: z.ZodNumber;
153
+ status: z.ZodEnum<{
154
+ active: "active";
155
+ retained: "retained";
156
+ revoked: "revoked";
157
+ }>;
158
+ grants: z.ZodArray<z.ZodObject<{
159
+ grantId: z.ZodString;
160
+ targetWorkspaceId: z.ZodString;
161
+ targetSessionId: z.ZodNullable<z.ZodString>;
162
+ mode: z.ZodEnum<{
163
+ always: "always";
164
+ once: "once";
165
+ session: "session";
166
+ }>;
167
+ context: z.ZodEnum<{
168
+ user_private: "user_private";
169
+ workspace_shared: "workspace_shared";
170
+ }>;
171
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
172
+ generation: z.ZodNumber;
173
+ status: z.ZodEnum<{
174
+ active: "active";
175
+ consumed: "consumed";
176
+ expired: "expired";
177
+ revoked: "revoked";
178
+ }>;
179
+ expiresAt: z.ZodNullable<z.ZodString>;
180
+ delegation: z.ZodLazy<z.ZodObject<{
181
+ authorityId: z.ZodString;
182
+ grantId: z.ZodString;
183
+ organizationId: z.ZodString;
184
+ workspaceId: z.ZodString;
185
+ sessionId: z.ZodNullable<z.ZodString>;
186
+ action: z.ZodString;
187
+ mode: z.ZodEnum<{
188
+ always: "always";
189
+ once: "once";
190
+ session: "session";
191
+ }>;
192
+ context: z.ZodEnum<{
193
+ user_private: "user_private";
194
+ workspace_shared: "workspace_shared";
195
+ }>;
196
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
197
+ authorityGeneration: z.ZodNumber;
198
+ grantGeneration: z.ZodNumber;
199
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ }, z.core.$strip>>;
201
+ action: z.ZodLiteral<"connection.use">;
202
+ }, z.core.$strict>>;
203
+ }, z.core.$strict>>;
204
+ nextCursor: z.ZodNullable<z.ZodString>;
205
+ }, z.core.$strict>;
206
+ export declare const IssueConnectionUseGrantRequest: z.ZodObject<{
207
+ scope: z.ZodLiteral<"user">;
208
+ mode: z.ZodEnum<{
209
+ always: "always";
210
+ session: "session";
211
+ }>;
212
+ context: z.ZodEnum<{
213
+ user_private: "user_private";
214
+ workspace_shared: "workspace_shared";
215
+ }>;
216
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ expectedAuthorityEpoch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
218
+ workspaceSharedAcknowledged: z.ZodDefault<z.ZodBoolean>;
219
+ }, z.core.$strict>;
220
+ export type IssueConnectionUseGrantRequest = z.infer<typeof IssueConnectionUseGrantRequest>;
221
+ export declare const RevokeConnectionUseGrantQuery: z.ZodObject<{
222
+ scope: z.ZodLiteral<"user">;
223
+ }, z.core.$strict>;
224
+ export declare const ConnectionUseGrantMutationResponse: z.ZodObject<{
225
+ scope: z.ZodLiteral<"user">;
226
+ grant: z.ZodObject<{
227
+ grantId: z.ZodString;
228
+ targetWorkspaceId: z.ZodString;
229
+ targetSessionId: z.ZodNullable<z.ZodString>;
230
+ mode: z.ZodEnum<{
231
+ always: "always";
232
+ once: "once";
233
+ session: "session";
234
+ }>;
235
+ context: z.ZodEnum<{
236
+ user_private: "user_private";
237
+ workspace_shared: "workspace_shared";
238
+ }>;
239
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
240
+ generation: z.ZodNumber;
241
+ status: z.ZodEnum<{
242
+ active: "active";
243
+ consumed: "consumed";
244
+ expired: "expired";
245
+ revoked: "revoked";
246
+ }>;
247
+ expiresAt: z.ZodNullable<z.ZodString>;
248
+ delegation: z.ZodLazy<z.ZodObject<{
249
+ authorityId: z.ZodString;
250
+ grantId: z.ZodString;
251
+ organizationId: z.ZodString;
252
+ workspaceId: z.ZodString;
253
+ sessionId: z.ZodNullable<z.ZodString>;
254
+ action: z.ZodString;
255
+ mode: z.ZodEnum<{
256
+ always: "always";
257
+ once: "once";
258
+ session: "session";
259
+ }>;
260
+ context: z.ZodEnum<{
261
+ user_private: "user_private";
262
+ workspace_shared: "workspace_shared";
263
+ }>;
264
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
265
+ authorityGeneration: z.ZodNumber;
266
+ grantGeneration: z.ZodNumber;
267
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ }, z.core.$strip>>;
269
+ action: z.ZodLiteral<"connection.use">;
270
+ }, z.core.$strict>;
271
+ }, z.core.$strict>;
272
+ export type ConnectionUseGrantMutationResponse = z.infer<typeof ConnectionUseGrantMutationResponse>;
273
+ export declare const ConnectionUseGrantRevocationResponse: z.ZodObject<{
274
+ scope: z.ZodLiteral<"user">;
275
+ grant: z.ZodObject<{
276
+ grantId: z.ZodString;
277
+ generation: z.ZodNumber;
278
+ status: z.ZodLiteral<"revoked">;
279
+ revokedAt: z.ZodString;
280
+ }, z.core.$strict>;
281
+ }, z.core.$strict>;
282
+ export type ConnectionUseGrantRevocationResponse = z.infer<typeof ConnectionUseGrantRevocationResponse>;
283
+ export declare const ConnectionAuthoritySelectionSource: z.ZodEnum<{
284
+ explicit_workspace: "explicit_workspace";
285
+ legacy_user_compatibility: "legacy_user_compatibility";
286
+ legacy_workspace_omission: "legacy_workspace_omission";
287
+ user_delegation: "user_delegation";
288
+ }>;
289
+ export type ConnectionAuthoritySelectionSource = z.infer<typeof ConnectionAuthoritySelectionSource>;
290
+ export declare const ConnectionUseSelectionSource: z.ZodString;
291
+ export type ConnectionUseSelectionSource = z.infer<typeof ConnectionUseSelectionSource>;
292
+ /**
293
+ * Internal, credential-free authority frozen when work is accepted. Personal
294
+ * owner identity is retained only for live authorization and usage/audit
295
+ * attribution; it is never part of the public delegation envelope.
296
+ */
297
+ export declare const ConnectionUseAuthoritySnapshot: z.ZodObject<{
298
+ organizationId: z.ZodString;
299
+ originWorkspaceId: z.ZodString;
300
+ targetWorkspaceId: z.ZodString;
301
+ targetSessionId: z.ZodString;
302
+ targetSessionVisibility: z.ZodEnum<{
303
+ user_private: "user_private";
304
+ workspace_shared: "workspace_shared";
305
+ }>;
306
+ targetSessionAuthorityEpoch: z.ZodNumber;
307
+ acceptedWork: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ kind: z.ZodLiteral<"turn">;
309
+ turnId: z.ZodString;
310
+ }, z.core.$strict>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"scheduled_task">;
312
+ taskId: z.ZodString;
313
+ taskAuthorityRevision: z.ZodNumber;
314
+ runId: z.ZodString;
315
+ }, z.core.$strict>], "kind">;
316
+ connectionId: z.ZodString;
317
+ connectionGeneration: z.ZodNumber;
318
+ connectionStatus: z.ZodLiteral<"active">;
319
+ providerDomain: z.ZodString;
320
+ connectionKind: z.ZodEnum<{
321
+ api_key: "api_key";
322
+ app_install: "app_install";
323
+ delegated: "delegated";
324
+ oauth2: "oauth2";
325
+ }>;
326
+ scope: z.ZodEnum<{
327
+ legacy_user: "legacy_user";
328
+ user: "user";
329
+ workspace: "workspace";
330
+ }>;
331
+ ownerSubjectId: z.ZodNullable<z.ZodString>;
332
+ ownerOrganizationMembershipId: z.ZodNullable<z.ZodString>;
333
+ ownerMembershipAuthorizationRevision: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
334
+ authoritySource: z.ZodEnum<{
335
+ explicit_workspace: "explicit_workspace";
336
+ legacy_user_compatibility: "legacy_user_compatibility";
337
+ legacy_workspace_omission: "legacy_workspace_omission";
338
+ user_delegation: "user_delegation";
339
+ }>;
340
+ selectionSources: z.ZodArray<z.ZodString>;
341
+ userDelegation: z.ZodNullable<z.ZodObject<{
342
+ authorityId: z.ZodString;
343
+ grantId: z.ZodString;
344
+ organizationId: z.ZodString;
345
+ workspaceId: z.ZodString;
346
+ sessionId: z.ZodNullable<z.ZodString>;
347
+ action: z.ZodString;
348
+ mode: z.ZodEnum<{
349
+ always: "always";
350
+ once: "once";
351
+ session: "session";
352
+ }>;
353
+ context: z.ZodEnum<{
354
+ user_private: "user_private";
355
+ workspace_shared: "workspace_shared";
356
+ }>;
357
+ authorityEpoch: z.ZodNullable<z.ZodNumber>;
358
+ authorityGeneration: z.ZodNumber;
359
+ grantGeneration: z.ZodNumber;
360
+ resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strict>;
363
+ export type ConnectionUseAuthoritySnapshot = z.infer<typeof ConnectionUseAuthoritySnapshot>;
364
+ export declare const ConnectionUseDenialReason: z.ZodEnum<{
365
+ accepted_attempt_authority_required: "accepted_attempt_authority_required";
366
+ accepted_snapshot_digest_changed: "accepted_snapshot_digest_changed";
367
+ authority_generation_changed: "authority_generation_changed";
368
+ authority_identity_changed: "authority_identity_changed";
369
+ authority_missing: "authority_missing";
370
+ authority_status_inactive: "authority_status_inactive";
371
+ connection_generation_changed: "connection_generation_changed";
372
+ connection_identity_changed: "connection_identity_changed";
373
+ connection_missing: "connection_missing";
374
+ connection_owner_changed: "connection_owner_changed";
375
+ connection_status_inactive: "connection_status_inactive";
376
+ grant_already_consumed: "grant_already_consumed";
377
+ grant_expired: "grant_expired";
378
+ grant_generation_changed: "grant_generation_changed";
379
+ grant_identity_changed: "grant_identity_changed";
380
+ grant_missing: "grant_missing";
381
+ grant_status_inactive: "grant_status_inactive";
382
+ owner_membership_inactive: "owner_membership_inactive";
383
+ session_authority_epoch_changed: "session_authority_epoch_changed";
384
+ session_identity_changed: "session_identity_changed";
385
+ session_inactive: "session_inactive";
386
+ session_visibility_changed: "session_visibility_changed";
387
+ tenant_mismatch: "tenant_mismatch";
388
+ workspace_access_inactive: "workspace_access_inactive";
389
+ }>;
390
+ export type ConnectionUseDenialReason = z.infer<typeof ConnectionUseDenialReason>;
391
+ /** Metadata-only attribution emitted after pre-use authorization. */
392
+ export declare const ConnectionUseAttribution: z.ZodObject<{
393
+ organizationId: z.ZodString;
394
+ workspaceId: z.ZodString;
395
+ sessionId: z.ZodString;
396
+ connectionId: z.ZodString;
397
+ connectionGeneration: z.ZodNumber;
398
+ scope: z.ZodEnum<{
399
+ legacy_user: "legacy_user";
400
+ user: "user";
401
+ workspace: "workspace";
402
+ }>;
403
+ ownerSubjectId: z.ZodNullable<z.ZodString>;
404
+ authorityId: z.ZodNullable<z.ZodString>;
405
+ grantId: z.ZodNullable<z.ZodString>;
406
+ }, z.core.$strict>;
407
+ export type ConnectionUseAttribution = z.infer<typeof ConnectionUseAttribution>;
408
+ export declare const ConnectionUseAuditFact: z.ZodObject<{
409
+ organizationId: z.ZodString;
410
+ workspaceId: z.ZodString;
411
+ sessionId: z.ZodString;
412
+ connectionId: z.ZodString;
413
+ connectionGeneration: z.ZodNumber;
414
+ scope: z.ZodEnum<{
415
+ legacy_user: "legacy_user";
416
+ user: "user";
417
+ workspace: "workspace";
418
+ }>;
419
+ ownerSubjectId: z.ZodNullable<z.ZodString>;
420
+ authorityId: z.ZodNullable<z.ZodString>;
421
+ grantId: z.ZodNullable<z.ZodString>;
422
+ outcome: z.ZodEnum<{
423
+ authorized: "authorized";
424
+ denied: "denied";
425
+ }>;
426
+ denialReason: z.ZodNullable<z.ZodEnum<{
427
+ accepted_attempt_authority_required: "accepted_attempt_authority_required";
428
+ accepted_snapshot_digest_changed: "accepted_snapshot_digest_changed";
429
+ authority_generation_changed: "authority_generation_changed";
430
+ authority_identity_changed: "authority_identity_changed";
431
+ authority_missing: "authority_missing";
432
+ authority_status_inactive: "authority_status_inactive";
433
+ connection_generation_changed: "connection_generation_changed";
434
+ connection_identity_changed: "connection_identity_changed";
435
+ connection_missing: "connection_missing";
436
+ connection_owner_changed: "connection_owner_changed";
437
+ connection_status_inactive: "connection_status_inactive";
438
+ grant_already_consumed: "grant_already_consumed";
439
+ grant_expired: "grant_expired";
440
+ grant_generation_changed: "grant_generation_changed";
441
+ grant_identity_changed: "grant_identity_changed";
442
+ grant_missing: "grant_missing";
443
+ grant_status_inactive: "grant_status_inactive";
444
+ owner_membership_inactive: "owner_membership_inactive";
445
+ session_authority_epoch_changed: "session_authority_epoch_changed";
446
+ session_identity_changed: "session_identity_changed";
447
+ session_inactive: "session_inactive";
448
+ session_visibility_changed: "session_visibility_changed";
449
+ tenant_mismatch: "tenant_mismatch";
450
+ workspace_access_inactive: "workspace_access_inactive";
451
+ }>>;
452
+ occurredAt: z.ZodString;
453
+ }, z.core.$strict>;
454
+ export type ConnectionUseAuditFact = z.infer<typeof ConnectionUseAuditFact>;
455
+ export declare const ConnectionUseAuthorizationResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
456
+ status: z.ZodLiteral<"authorized">;
457
+ attribution: z.ZodObject<{
458
+ organizationId: z.ZodString;
459
+ workspaceId: z.ZodString;
460
+ sessionId: z.ZodString;
461
+ connectionId: z.ZodString;
462
+ connectionGeneration: z.ZodNumber;
463
+ scope: z.ZodEnum<{
464
+ legacy_user: "legacy_user";
465
+ user: "user";
466
+ workspace: "workspace";
467
+ }>;
468
+ ownerSubjectId: z.ZodNullable<z.ZodString>;
469
+ authorityId: z.ZodNullable<z.ZodString>;
470
+ grantId: z.ZodNullable<z.ZodString>;
471
+ }, z.core.$strict>;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ status: z.ZodLiteral<"denied">;
474
+ reason: z.ZodEnum<{
475
+ accepted_attempt_authority_required: "accepted_attempt_authority_required";
476
+ accepted_snapshot_digest_changed: "accepted_snapshot_digest_changed";
477
+ authority_generation_changed: "authority_generation_changed";
478
+ authority_identity_changed: "authority_identity_changed";
479
+ authority_missing: "authority_missing";
480
+ authority_status_inactive: "authority_status_inactive";
481
+ connection_generation_changed: "connection_generation_changed";
482
+ connection_identity_changed: "connection_identity_changed";
483
+ connection_missing: "connection_missing";
484
+ connection_owner_changed: "connection_owner_changed";
485
+ connection_status_inactive: "connection_status_inactive";
486
+ grant_already_consumed: "grant_already_consumed";
487
+ grant_expired: "grant_expired";
488
+ grant_generation_changed: "grant_generation_changed";
489
+ grant_identity_changed: "grant_identity_changed";
490
+ grant_missing: "grant_missing";
491
+ grant_status_inactive: "grant_status_inactive";
492
+ owner_membership_inactive: "owner_membership_inactive";
493
+ session_authority_epoch_changed: "session_authority_epoch_changed";
494
+ session_identity_changed: "session_identity_changed";
495
+ session_inactive: "session_inactive";
496
+ session_visibility_changed: "session_visibility_changed";
497
+ tenant_mismatch: "tenant_mismatch";
498
+ workspace_access_inactive: "workspace_access_inactive";
499
+ }>;
500
+ }, z.core.$strict>], "status">;
501
+ export type ConnectionUseAuthorizationResult = z.infer<typeof ConnectionUseAuthorizationResult>;