@opengeni/contracts 2.2.0-canary.0 → 2.5.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.
- package/dist/agent-authored-durable-text.d.ts +7 -4
- package/dist/atlassian.js +1 -1
- package/dist/{chunk-7ZZ3R27P.js → chunk-4I7DWNRR.js} +585 -37
- package/dist/chunk-4I7DWNRR.js.map +1 -0
- package/dist/company-profile.d.ts +3 -3
- package/dist/connection-authority.js +1 -1
- package/dist/google-drive.js +1 -1
- package/dist/index.d.ts +318 -12
- package/dist/index.js +83 -3
- package/dist/knowledge.d.ts +5 -0
- package/dist/organization-membership-lifecycle.d.ts +493 -14
- package/dist/personal-github.js +1 -1
- package/dist/remember.d.ts +7 -4
- package/dist/session-titles.d.ts +23 -0
- package/package.json +1 -1
- package/src/agent-authored-durable-text.ts +12 -11
- package/src/company-profile.ts +3 -3
- package/src/index.ts +281 -19
- package/src/knowledge.ts +1 -0
- package/src/organization-membership-lifecycle.ts +222 -19
- package/src/remember.ts +6 -4
- package/src/session-titles.ts +324 -0
- package/dist/chunk-7ZZ3R27P.js.map +0 -1
|
@@ -5,6 +5,19 @@ export declare const OrganizationMembershipRole: z.ZodEnum<{
|
|
|
5
5
|
owner: "owner";
|
|
6
6
|
}>;
|
|
7
7
|
export type OrganizationMembershipRole = z.infer<typeof OrganizationMembershipRole>;
|
|
8
|
+
export declare const WorkspaceMemberRole: z.ZodEnum<{
|
|
9
|
+
admin: "admin";
|
|
10
|
+
custom: "custom";
|
|
11
|
+
member: "member";
|
|
12
|
+
viewer: "viewer";
|
|
13
|
+
}>;
|
|
14
|
+
export type WorkspaceMemberRole = z.infer<typeof WorkspaceMemberRole>;
|
|
15
|
+
export declare const AssignableWorkspaceMemberRole: z.ZodEnum<{
|
|
16
|
+
admin: "admin";
|
|
17
|
+
member: "member";
|
|
18
|
+
viewer: "viewer";
|
|
19
|
+
}>;
|
|
20
|
+
export type AssignableWorkspaceMemberRole = z.infer<typeof AssignableWorkspaceMemberRole>;
|
|
8
21
|
export declare const OrganizationInvitationStatus: z.ZodEnum<{
|
|
9
22
|
accepted: "accepted";
|
|
10
23
|
expired: "expired";
|
|
@@ -12,9 +25,39 @@ export declare const OrganizationInvitationStatus: z.ZodEnum<{
|
|
|
12
25
|
revoked: "revoked";
|
|
13
26
|
}>;
|
|
14
27
|
export type OrganizationInvitationStatus = z.infer<typeof OrganizationInvitationStatus>;
|
|
28
|
+
export declare const OrganizationUserSetupDeliveryState: z.ZodEnum<{
|
|
29
|
+
failed: "failed";
|
|
30
|
+
outcome_unknown: "outcome_unknown";
|
|
31
|
+
pending: "pending";
|
|
32
|
+
revoked: "revoked";
|
|
33
|
+
sent: "sent";
|
|
34
|
+
}>;
|
|
35
|
+
export type OrganizationUserSetupDeliveryState = z.infer<typeof OrganizationUserSetupDeliveryState>;
|
|
36
|
+
export declare const OrganizationUserSetupDelivery: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
state: z.ZodEnum<{
|
|
39
|
+
failed: "failed";
|
|
40
|
+
outcome_unknown: "outcome_unknown";
|
|
41
|
+
pending: "pending";
|
|
42
|
+
revoked: "revoked";
|
|
43
|
+
sent: "sent";
|
|
44
|
+
}>;
|
|
45
|
+
attemptCount: z.ZodNumber;
|
|
46
|
+
revision: z.ZodNumber;
|
|
47
|
+
errorClass: z.ZodNullable<z.ZodString>;
|
|
48
|
+
retryState: z.ZodEnum<{
|
|
49
|
+
available: "available";
|
|
50
|
+
reconciliation_required: "reconciliation_required";
|
|
51
|
+
unavailable: "unavailable";
|
|
52
|
+
}>;
|
|
53
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
54
|
+
updatedAt: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type OrganizationUserSetupDelivery = z.infer<typeof OrganizationUserSetupDelivery>;
|
|
15
57
|
export declare const OrganizationInvitation: z.ZodObject<{
|
|
16
58
|
id: z.ZodString;
|
|
17
59
|
organizationId: z.ZodString;
|
|
60
|
+
organizationName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
18
61
|
targetEmail: z.ZodString;
|
|
19
62
|
targetName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
20
63
|
initialWorkspaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -34,6 +77,26 @@ export declare const OrganizationInvitation: z.ZodObject<{
|
|
|
34
77
|
acceptedMembershipId: z.ZodNullable<z.ZodString>;
|
|
35
78
|
createdAt: z.ZodString;
|
|
36
79
|
updatedAt: z.ZodString;
|
|
80
|
+
delivery: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
state: z.ZodEnum<{
|
|
83
|
+
failed: "failed";
|
|
84
|
+
outcome_unknown: "outcome_unknown";
|
|
85
|
+
pending: "pending";
|
|
86
|
+
revoked: "revoked";
|
|
87
|
+
sent: "sent";
|
|
88
|
+
}>;
|
|
89
|
+
attemptCount: z.ZodNumber;
|
|
90
|
+
revision: z.ZodNumber;
|
|
91
|
+
errorClass: z.ZodNullable<z.ZodString>;
|
|
92
|
+
retryState: z.ZodEnum<{
|
|
93
|
+
available: "available";
|
|
94
|
+
reconciliation_required: "reconciliation_required";
|
|
95
|
+
unavailable: "unavailable";
|
|
96
|
+
}>;
|
|
97
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
98
|
+
updatedAt: z.ZodString;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
37
100
|
}, z.core.$strip>;
|
|
38
101
|
export type OrganizationInvitation = z.infer<typeof OrganizationInvitation>;
|
|
39
102
|
export declare const OrganizationMember: z.ZodObject<{
|
|
@@ -61,6 +124,55 @@ export declare const OrganizationMember: z.ZodObject<{
|
|
|
61
124
|
updatedAt: z.ZodString;
|
|
62
125
|
}, z.core.$strip>;
|
|
63
126
|
export type OrganizationMember = z.infer<typeof OrganizationMember>;
|
|
127
|
+
export declare const OrganizationAdministrationMemberWorkspaceAccess: z.ZodObject<{
|
|
128
|
+
workspaceId: z.ZodString;
|
|
129
|
+
workspaceName: z.ZodString;
|
|
130
|
+
membershipId: z.ZodString;
|
|
131
|
+
role: z.ZodEnum<{
|
|
132
|
+
admin: "admin";
|
|
133
|
+
custom: "custom";
|
|
134
|
+
member: "member";
|
|
135
|
+
viewer: "viewer";
|
|
136
|
+
}>;
|
|
137
|
+
updatedAt: z.ZodString;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type OrganizationAdministrationMemberWorkspaceAccess = z.infer<typeof OrganizationAdministrationMemberWorkspaceAccess>;
|
|
140
|
+
/** Safe admin projection. Personal-workspace and personal-resource metadata are absent. */
|
|
141
|
+
export declare const OrganizationAdministrationMember: z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
organizationId: z.ZodString;
|
|
144
|
+
subjectId: z.ZodString;
|
|
145
|
+
name: z.ZodNullable<z.ZodString>;
|
|
146
|
+
email: z.ZodNullable<z.ZodString>;
|
|
147
|
+
role: z.ZodEnum<{
|
|
148
|
+
admin: "admin";
|
|
149
|
+
member: "member";
|
|
150
|
+
owner: "owner";
|
|
151
|
+
}>;
|
|
152
|
+
status: z.ZodEnum<{
|
|
153
|
+
active: "active";
|
|
154
|
+
provisioning: "provisioning";
|
|
155
|
+
revoked: "revoked";
|
|
156
|
+
suspended: "suspended";
|
|
157
|
+
}>;
|
|
158
|
+
authorizationRevision: z.ZodNumber;
|
|
159
|
+
sharedWorkspaceAccess: z.ZodArray<z.ZodObject<{
|
|
160
|
+
workspaceId: z.ZodString;
|
|
161
|
+
workspaceName: z.ZodString;
|
|
162
|
+
membershipId: z.ZodString;
|
|
163
|
+
role: z.ZodEnum<{
|
|
164
|
+
admin: "admin";
|
|
165
|
+
custom: "custom";
|
|
166
|
+
member: "member";
|
|
167
|
+
viewer: "viewer";
|
|
168
|
+
}>;
|
|
169
|
+
updatedAt: z.ZodString;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
172
|
+
createdAt: z.ZodString;
|
|
173
|
+
updatedAt: z.ZodString;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export type OrganizationAdministrationMember = z.infer<typeof OrganizationAdministrationMember>;
|
|
64
176
|
export declare const OrganizationSummary: z.ZodObject<{
|
|
65
177
|
id: z.ZodString;
|
|
66
178
|
name: z.ZodString;
|
|
@@ -85,15 +197,29 @@ export declare const UpdateOrganizationPrivateSessionSettingsRequest: z.ZodObjec
|
|
|
85
197
|
export type UpdateOrganizationPrivateSessionSettingsRequest = z.infer<typeof UpdateOrganizationPrivateSessionSettingsRequest>;
|
|
86
198
|
export declare const OrganizationWorkspaceAccessMember: z.ZodObject<{
|
|
87
199
|
membershipId: z.ZodString;
|
|
200
|
+
organizationMembershipId: z.ZodNullable<z.ZodString>;
|
|
88
201
|
subjectId: z.ZodString;
|
|
202
|
+
name: z.ZodNullable<z.ZodString>;
|
|
203
|
+
email: z.ZodNullable<z.ZodString>;
|
|
89
204
|
subjectLabel: z.ZodNullable<z.ZodString>;
|
|
90
205
|
principalKind: z.ZodEnum<{
|
|
91
206
|
human: "human";
|
|
92
207
|
service: "service";
|
|
93
208
|
}>;
|
|
94
|
-
|
|
209
|
+
organizationRole: z.ZodNullable<z.ZodEnum<{
|
|
210
|
+
admin: "admin";
|
|
211
|
+
member: "member";
|
|
212
|
+
owner: "owner";
|
|
213
|
+
}>>;
|
|
214
|
+
role: z.ZodEnum<{
|
|
215
|
+
admin: "admin";
|
|
216
|
+
custom: "custom";
|
|
217
|
+
member: "member";
|
|
218
|
+
viewer: "viewer";
|
|
219
|
+
}>;
|
|
95
220
|
permissions: z.ZodArray<z.ZodString>;
|
|
96
221
|
createdAt: z.ZodString;
|
|
222
|
+
updatedAt: z.ZodString;
|
|
97
223
|
}, z.core.$strip>;
|
|
98
224
|
export type OrganizationWorkspaceAccessMember = z.infer<typeof OrganizationWorkspaceAccessMember>;
|
|
99
225
|
export declare const OrganizationWorkspaceAccess: z.ZodObject<{
|
|
@@ -104,18 +230,91 @@ export declare const OrganizationWorkspaceAccess: z.ZodObject<{
|
|
|
104
230
|
updatedAt: z.ZodString;
|
|
105
231
|
members: z.ZodArray<z.ZodObject<{
|
|
106
232
|
membershipId: z.ZodString;
|
|
233
|
+
organizationMembershipId: z.ZodNullable<z.ZodString>;
|
|
107
234
|
subjectId: z.ZodString;
|
|
235
|
+
name: z.ZodNullable<z.ZodString>;
|
|
236
|
+
email: z.ZodNullable<z.ZodString>;
|
|
108
237
|
subjectLabel: z.ZodNullable<z.ZodString>;
|
|
109
238
|
principalKind: z.ZodEnum<{
|
|
110
239
|
human: "human";
|
|
111
240
|
service: "service";
|
|
112
241
|
}>;
|
|
113
|
-
|
|
242
|
+
organizationRole: z.ZodNullable<z.ZodEnum<{
|
|
243
|
+
admin: "admin";
|
|
244
|
+
member: "member";
|
|
245
|
+
owner: "owner";
|
|
246
|
+
}>>;
|
|
247
|
+
role: z.ZodEnum<{
|
|
248
|
+
admin: "admin";
|
|
249
|
+
custom: "custom";
|
|
250
|
+
member: "member";
|
|
251
|
+
viewer: "viewer";
|
|
252
|
+
}>;
|
|
114
253
|
permissions: z.ZodArray<z.ZodString>;
|
|
115
254
|
createdAt: z.ZodString;
|
|
255
|
+
updatedAt: z.ZodString;
|
|
116
256
|
}, z.core.$strip>>;
|
|
117
257
|
}, z.core.$strip>;
|
|
118
258
|
export type OrganizationWorkspaceAccess = z.infer<typeof OrganizationWorkspaceAccess>;
|
|
259
|
+
export declare const OrganizationWorkspaceRoleDefinition: z.ZodObject<{
|
|
260
|
+
role: z.ZodEnum<{
|
|
261
|
+
admin: "admin";
|
|
262
|
+
member: "member";
|
|
263
|
+
viewer: "viewer";
|
|
264
|
+
}>;
|
|
265
|
+
label: z.ZodString;
|
|
266
|
+
description: z.ZodString;
|
|
267
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
268
|
+
"account:admin": "account:admin";
|
|
269
|
+
"account:read": "account:read";
|
|
270
|
+
"api_keys:manage": "api_keys:manage";
|
|
271
|
+
"artifacts:publish": "artifacts:publish";
|
|
272
|
+
"artifacts:read": "artifacts:read";
|
|
273
|
+
"billing:manage": "billing:manage";
|
|
274
|
+
"billing:read": "billing:read";
|
|
275
|
+
"codemode:call": "codemode:call";
|
|
276
|
+
"connections:read": "connections:read";
|
|
277
|
+
"connections:write": "connections:write";
|
|
278
|
+
"documents:manage": "documents:manage";
|
|
279
|
+
"documents:search": "documents:search";
|
|
280
|
+
"enrollments:manage": "enrollments:manage";
|
|
281
|
+
"enrollments:read": "enrollments:read";
|
|
282
|
+
"environments:manage": "environments:manage";
|
|
283
|
+
"environments:use": "environments:use";
|
|
284
|
+
"files:read": "files:read";
|
|
285
|
+
"files:upload": "files:upload";
|
|
286
|
+
"files:write": "files:write";
|
|
287
|
+
"github:manage": "github:manage";
|
|
288
|
+
"github:use": "github:use";
|
|
289
|
+
"goals:manage": "goals:manage";
|
|
290
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
291
|
+
"members:manage": "members:manage";
|
|
292
|
+
"rigs:manage": "rigs:manage";
|
|
293
|
+
"rigs:use": "rigs:use";
|
|
294
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
295
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
296
|
+
"secrets:list": "secrets:list";
|
|
297
|
+
"secrets:read": "secrets:read";
|
|
298
|
+
"secrets:write": "secrets:write";
|
|
299
|
+
"sessions:control": "sessions:control";
|
|
300
|
+
"sessions:create": "sessions:create";
|
|
301
|
+
"sessions:read": "sessions:read";
|
|
302
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
303
|
+
"stream:control": "stream:control";
|
|
304
|
+
"stream:view": "stream:view";
|
|
305
|
+
"terminal:attach": "terminal:attach";
|
|
306
|
+
"variable-sets:attach": "variable-sets:attach";
|
|
307
|
+
"variable-sets:list": "variable-sets:list";
|
|
308
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
309
|
+
"variable-sets:read": "variable-sets:read";
|
|
310
|
+
"variable-sets:use": "variable-sets:use";
|
|
311
|
+
"variable-sets:write": "variable-sets:write";
|
|
312
|
+
"workspace:admin": "workspace:admin";
|
|
313
|
+
"workspace:create": "workspace:create";
|
|
314
|
+
"workspace:read": "workspace:read";
|
|
315
|
+
}>>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
export type OrganizationWorkspaceRoleDefinition = z.infer<typeof OrganizationWorkspaceRoleDefinition>;
|
|
119
318
|
export declare const OrganizationAdministrationOverview: z.ZodObject<{
|
|
120
319
|
organization: z.ZodObject<{
|
|
121
320
|
id: z.ZodString;
|
|
@@ -123,6 +322,64 @@ export declare const OrganizationAdministrationOverview: z.ZodObject<{
|
|
|
123
322
|
createdAt: z.ZodString;
|
|
124
323
|
updatedAt: z.ZodString;
|
|
125
324
|
}, z.core.$strip>;
|
|
325
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
326
|
+
role: z.ZodEnum<{
|
|
327
|
+
admin: "admin";
|
|
328
|
+
member: "member";
|
|
329
|
+
viewer: "viewer";
|
|
330
|
+
}>;
|
|
331
|
+
label: z.ZodString;
|
|
332
|
+
description: z.ZodString;
|
|
333
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
334
|
+
"account:admin": "account:admin";
|
|
335
|
+
"account:read": "account:read";
|
|
336
|
+
"api_keys:manage": "api_keys:manage";
|
|
337
|
+
"artifacts:publish": "artifacts:publish";
|
|
338
|
+
"artifacts:read": "artifacts:read";
|
|
339
|
+
"billing:manage": "billing:manage";
|
|
340
|
+
"billing:read": "billing:read";
|
|
341
|
+
"codemode:call": "codemode:call";
|
|
342
|
+
"connections:read": "connections:read";
|
|
343
|
+
"connections:write": "connections:write";
|
|
344
|
+
"documents:manage": "documents:manage";
|
|
345
|
+
"documents:search": "documents:search";
|
|
346
|
+
"enrollments:manage": "enrollments:manage";
|
|
347
|
+
"enrollments:read": "enrollments:read";
|
|
348
|
+
"environments:manage": "environments:manage";
|
|
349
|
+
"environments:use": "environments:use";
|
|
350
|
+
"files:read": "files:read";
|
|
351
|
+
"files:upload": "files:upload";
|
|
352
|
+
"files:write": "files:write";
|
|
353
|
+
"github:manage": "github:manage";
|
|
354
|
+
"github:use": "github:use";
|
|
355
|
+
"goals:manage": "goals:manage";
|
|
356
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
357
|
+
"members:manage": "members:manage";
|
|
358
|
+
"rigs:manage": "rigs:manage";
|
|
359
|
+
"rigs:use": "rigs:use";
|
|
360
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
361
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
362
|
+
"secrets:list": "secrets:list";
|
|
363
|
+
"secrets:read": "secrets:read";
|
|
364
|
+
"secrets:write": "secrets:write";
|
|
365
|
+
"sessions:control": "sessions:control";
|
|
366
|
+
"sessions:create": "sessions:create";
|
|
367
|
+
"sessions:read": "sessions:read";
|
|
368
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
369
|
+
"stream:control": "stream:control";
|
|
370
|
+
"stream:view": "stream:view";
|
|
371
|
+
"terminal:attach": "terminal:attach";
|
|
372
|
+
"variable-sets:attach": "variable-sets:attach";
|
|
373
|
+
"variable-sets:list": "variable-sets:list";
|
|
374
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
375
|
+
"variable-sets:read": "variable-sets:read";
|
|
376
|
+
"variable-sets:use": "variable-sets:use";
|
|
377
|
+
"variable-sets:write": "variable-sets:write";
|
|
378
|
+
"workspace:admin": "workspace:admin";
|
|
379
|
+
"workspace:create": "workspace:create";
|
|
380
|
+
"workspace:read": "workspace:read";
|
|
381
|
+
}>>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
126
383
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
127
384
|
id: z.ZodString;
|
|
128
385
|
name: z.ZodString;
|
|
@@ -131,22 +388,54 @@ export declare const OrganizationAdministrationOverview: z.ZodObject<{
|
|
|
131
388
|
updatedAt: z.ZodString;
|
|
132
389
|
members: z.ZodArray<z.ZodObject<{
|
|
133
390
|
membershipId: z.ZodString;
|
|
391
|
+
organizationMembershipId: z.ZodNullable<z.ZodString>;
|
|
134
392
|
subjectId: z.ZodString;
|
|
393
|
+
name: z.ZodNullable<z.ZodString>;
|
|
394
|
+
email: z.ZodNullable<z.ZodString>;
|
|
135
395
|
subjectLabel: z.ZodNullable<z.ZodString>;
|
|
136
396
|
principalKind: z.ZodEnum<{
|
|
137
397
|
human: "human";
|
|
138
398
|
service: "service";
|
|
139
399
|
}>;
|
|
140
|
-
|
|
400
|
+
organizationRole: z.ZodNullable<z.ZodEnum<{
|
|
401
|
+
admin: "admin";
|
|
402
|
+
member: "member";
|
|
403
|
+
owner: "owner";
|
|
404
|
+
}>>;
|
|
405
|
+
role: z.ZodEnum<{
|
|
406
|
+
admin: "admin";
|
|
407
|
+
custom: "custom";
|
|
408
|
+
member: "member";
|
|
409
|
+
viewer: "viewer";
|
|
410
|
+
}>;
|
|
141
411
|
permissions: z.ZodArray<z.ZodString>;
|
|
142
412
|
createdAt: z.ZodString;
|
|
413
|
+
updatedAt: z.ZodString;
|
|
143
414
|
}, z.core.$strip>>;
|
|
144
415
|
}, z.core.$strip>>;
|
|
145
416
|
}, z.core.$strip>;
|
|
146
417
|
export type OrganizationAdministrationOverview = z.infer<typeof OrganizationAdministrationOverview>;
|
|
147
|
-
export declare const
|
|
148
|
-
|
|
149
|
-
|
|
418
|
+
export declare const CreateOrganizationWorkspaceRequest: z.ZodObject<{
|
|
419
|
+
name: z.ZodString;
|
|
420
|
+
operationId: z.ZodString;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
export type CreateOrganizationWorkspaceRequest = z.infer<typeof CreateOrganizationWorkspaceRequest>;
|
|
423
|
+
export declare const UpdateOrganizationWorkspaceRequest: z.ZodObject<{
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
expectedUpdatedAt: z.ZodString;
|
|
426
|
+
operationId: z.ZodString;
|
|
427
|
+
}, z.core.$strict>;
|
|
428
|
+
export type UpdateOrganizationWorkspaceRequest = z.infer<typeof UpdateOrganizationWorkspaceRequest>;
|
|
429
|
+
export declare const PutOrganizationWorkspaceMemberRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
430
|
+
role: z.ZodEnum<{
|
|
431
|
+
admin: "admin";
|
|
432
|
+
member: "member";
|
|
433
|
+
viewer: "viewer";
|
|
434
|
+
}>;
|
|
435
|
+
expectedUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
436
|
+
operationId: z.ZodString;
|
|
437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
438
|
+
role: z.ZodLiteral<"custom">;
|
|
150
439
|
permissions: z.ZodArray<z.ZodEnum<{
|
|
151
440
|
"account:admin": "account:admin";
|
|
152
441
|
"account:read": "account:read";
|
|
@@ -196,15 +485,20 @@ export declare const AddOrganizationWorkspaceMemberRequest: z.ZodObject<{
|
|
|
196
485
|
"workspace:create": "workspace:create";
|
|
197
486
|
"workspace:read": "workspace:read";
|
|
198
487
|
}>>;
|
|
199
|
-
|
|
200
|
-
export type AddOrganizationWorkspaceMemberRequest = z.infer<typeof AddOrganizationWorkspaceMemberRequest>;
|
|
201
|
-
export declare const CreateOrganizationWorkspaceRequest: z.ZodObject<{
|
|
202
|
-
name: z.ZodString;
|
|
203
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
-
agentInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
expectedUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
205
489
|
operationId: z.ZodString;
|
|
206
|
-
}, z.core.$
|
|
207
|
-
export type
|
|
490
|
+
}, z.core.$strict>], "role">;
|
|
491
|
+
export type PutOrganizationWorkspaceMemberRequest = z.infer<typeof PutOrganizationWorkspaceMemberRequest>;
|
|
492
|
+
export declare const RevokeOrganizationWorkspaceMemberRequest: z.ZodObject<{
|
|
493
|
+
expectedUpdatedAt: z.ZodString;
|
|
494
|
+
operationId: z.ZodString;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
export type RevokeOrganizationWorkspaceMemberRequest = z.infer<typeof RevokeOrganizationWorkspaceMemberRequest>;
|
|
497
|
+
export declare const RevokeOrganizationWorkspaceMemberResponse: z.ZodObject<{
|
|
498
|
+
removed: z.ZodBoolean;
|
|
499
|
+
replay: z.ZodBoolean;
|
|
500
|
+
}, z.core.$strict>;
|
|
501
|
+
export type RevokeOrganizationWorkspaceMemberResponse = z.infer<typeof RevokeOrganizationWorkspaceMemberResponse>;
|
|
208
502
|
export declare const CreateOrganizationRequest: z.ZodObject<{
|
|
209
503
|
name: z.ZodString;
|
|
210
504
|
operationId: z.ZodString;
|
|
@@ -311,6 +605,92 @@ export declare const CreateOrganizationInvitationRequest: z.ZodObject<{
|
|
|
311
605
|
operationId: z.ZodString;
|
|
312
606
|
}, z.core.$strip>;
|
|
313
607
|
export type CreateOrganizationInvitationRequest = z.infer<typeof CreateOrganizationInvitationRequest>;
|
|
608
|
+
/**
|
|
609
|
+
* Public, signed-out completion contract for an invitation-bound account setup.
|
|
610
|
+
* The bearer is delivered out of band to the invited email address. It is
|
|
611
|
+
* never persisted in plaintext; `operationId` makes an outcome-unknown retry
|
|
612
|
+
* converge on the first committed result.
|
|
613
|
+
*/
|
|
614
|
+
export declare const CompleteOrganizationUserSetupRequest: z.ZodObject<{
|
|
615
|
+
token: z.ZodString;
|
|
616
|
+
name: z.ZodString;
|
|
617
|
+
password: z.ZodString;
|
|
618
|
+
operationId: z.ZodString;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
export type CompleteOrganizationUserSetupRequest = z.infer<typeof CompleteOrganizationUserSetupRequest>;
|
|
621
|
+
export declare const CompleteOrganizationUserSetupResponse: z.ZodObject<{
|
|
622
|
+
status: z.ZodLiteral<"complete">;
|
|
623
|
+
}, z.core.$strip>;
|
|
624
|
+
export type CompleteOrganizationUserSetupResponse = z.infer<typeof CompleteOrganizationUserSetupResponse>;
|
|
625
|
+
export declare const PreviewOrganizationUserSetupRequest: z.ZodObject<{
|
|
626
|
+
token: z.ZodString;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
export type PreviewOrganizationUserSetupRequest = z.infer<typeof PreviewOrganizationUserSetupRequest>;
|
|
629
|
+
export declare const OrganizationUserSetupPreviewWorkspace: z.ZodObject<{
|
|
630
|
+
workspaceId: z.ZodString;
|
|
631
|
+
workspaceName: z.ZodString;
|
|
632
|
+
role: z.ZodEnum<{
|
|
633
|
+
admin: "admin";
|
|
634
|
+
member: "member";
|
|
635
|
+
viewer: "viewer";
|
|
636
|
+
}>;
|
|
637
|
+
}, z.core.$strip>;
|
|
638
|
+
export type OrganizationUserSetupPreviewWorkspace = z.infer<typeof OrganizationUserSetupPreviewWorkspace>;
|
|
639
|
+
export declare const OrganizationUserSetupPreview: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
640
|
+
state: z.ZodEnum<{
|
|
641
|
+
completed: "completed";
|
|
642
|
+
expired: "expired";
|
|
643
|
+
revoked: "revoked";
|
|
644
|
+
unavailable: "unavailable";
|
|
645
|
+
}>;
|
|
646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
+
state: z.ZodLiteral<"pending">;
|
|
648
|
+
organizationId: z.ZodString;
|
|
649
|
+
organizationName: z.ZodString;
|
|
650
|
+
targetEmail: z.ZodString;
|
|
651
|
+
targetName: z.ZodNullable<z.ZodString>;
|
|
652
|
+
organizationRole: z.ZodEnum<{
|
|
653
|
+
admin: "admin";
|
|
654
|
+
member: "member";
|
|
655
|
+
owner: "owner";
|
|
656
|
+
}>;
|
|
657
|
+
sharedWorkspaceAccess: z.ZodArray<z.ZodObject<{
|
|
658
|
+
workspaceId: z.ZodString;
|
|
659
|
+
workspaceName: z.ZodString;
|
|
660
|
+
role: z.ZodEnum<{
|
|
661
|
+
admin: "admin";
|
|
662
|
+
member: "member";
|
|
663
|
+
viewer: "viewer";
|
|
664
|
+
}>;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
expiresAt: z.ZodString;
|
|
667
|
+
}, z.core.$strip>], "state">;
|
|
668
|
+
export type OrganizationUserSetupPreview = z.infer<typeof OrganizationUserSetupPreview>;
|
|
669
|
+
export declare const RetryOrganizationUserSetupDeliveryRequest: z.ZodObject<{
|
|
670
|
+
operationId: z.ZodString;
|
|
671
|
+
}, z.core.$strict>;
|
|
672
|
+
export type RetryOrganizationUserSetupDeliveryRequest = z.infer<typeof RetryOrganizationUserSetupDeliveryRequest>;
|
|
673
|
+
/** Authenticated organization-name-only setup after ordinary account creation. */
|
|
674
|
+
export declare const CompleteSelfServiceOrganizationSetupRequest: z.ZodObject<{
|
|
675
|
+
organizationName: z.ZodString;
|
|
676
|
+
operationId: z.ZodString;
|
|
677
|
+
}, z.core.$strip>;
|
|
678
|
+
export type CompleteSelfServiceOrganizationSetupRequest = z.infer<typeof CompleteSelfServiceOrganizationSetupRequest>;
|
|
679
|
+
export declare const CompleteSelfServiceOrganizationSetupResponse: z.ZodObject<{
|
|
680
|
+
status: z.ZodLiteral<"complete">;
|
|
681
|
+
organizationId: z.ZodString;
|
|
682
|
+
personalWorkspaceId: z.ZodString;
|
|
683
|
+
}, z.core.$strip>;
|
|
684
|
+
export type CompleteSelfServiceOrganizationSetupResponse = z.infer<typeof CompleteSelfServiceOrganizationSetupResponse>;
|
|
685
|
+
export declare const SelfServiceOrganizationOnboardingStatus: z.ZodObject<{
|
|
686
|
+
state: z.ZodEnum<{
|
|
687
|
+
complete: "complete";
|
|
688
|
+
invitation_pending: "invitation_pending";
|
|
689
|
+
required: "required";
|
|
690
|
+
unavailable: "unavailable";
|
|
691
|
+
}>;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
export type SelfServiceOrganizationOnboardingStatus = z.infer<typeof SelfServiceOrganizationOnboardingStatus>;
|
|
314
694
|
export declare const AcceptOrganizationInvitationRequest: z.ZodObject<{
|
|
315
695
|
expectedRevision: z.ZodNumber;
|
|
316
696
|
operationId: z.ZodString;
|
|
@@ -359,6 +739,7 @@ export declare const ListOrganizationInvitationsResponse: z.ZodObject<{
|
|
|
359
739
|
invitations: z.ZodArray<z.ZodObject<{
|
|
360
740
|
id: z.ZodString;
|
|
361
741
|
organizationId: z.ZodString;
|
|
742
|
+
organizationName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
362
743
|
targetEmail: z.ZodString;
|
|
363
744
|
targetName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
364
745
|
initialWorkspaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -378,6 +759,26 @@ export declare const ListOrganizationInvitationsResponse: z.ZodObject<{
|
|
|
378
759
|
acceptedMembershipId: z.ZodNullable<z.ZodString>;
|
|
379
760
|
createdAt: z.ZodString;
|
|
380
761
|
updatedAt: z.ZodString;
|
|
762
|
+
delivery: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
763
|
+
id: z.ZodString;
|
|
764
|
+
state: z.ZodEnum<{
|
|
765
|
+
failed: "failed";
|
|
766
|
+
outcome_unknown: "outcome_unknown";
|
|
767
|
+
pending: "pending";
|
|
768
|
+
revoked: "revoked";
|
|
769
|
+
sent: "sent";
|
|
770
|
+
}>;
|
|
771
|
+
attemptCount: z.ZodNumber;
|
|
772
|
+
revision: z.ZodNumber;
|
|
773
|
+
errorClass: z.ZodNullable<z.ZodString>;
|
|
774
|
+
retryState: z.ZodEnum<{
|
|
775
|
+
available: "available";
|
|
776
|
+
reconciliation_required: "reconciliation_required";
|
|
777
|
+
unavailable: "unavailable";
|
|
778
|
+
}>;
|
|
779
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
780
|
+
updatedAt: z.ZodString;
|
|
781
|
+
}, z.core.$strip>>>;
|
|
381
782
|
}, z.core.$strip>>;
|
|
382
783
|
}, z.core.$strip>;
|
|
383
784
|
export declare const ListOrganizationInvitationsPageQuery: z.ZodObject<{
|
|
@@ -389,6 +790,7 @@ export declare const ListOrganizationInvitationsPageResponse: z.ZodObject<{
|
|
|
389
790
|
invitations: z.ZodArray<z.ZodObject<{
|
|
390
791
|
id: z.ZodString;
|
|
391
792
|
organizationId: z.ZodString;
|
|
793
|
+
organizationName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
392
794
|
targetEmail: z.ZodString;
|
|
393
795
|
targetName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
394
796
|
initialWorkspaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -408,6 +810,26 @@ export declare const ListOrganizationInvitationsPageResponse: z.ZodObject<{
|
|
|
408
810
|
acceptedMembershipId: z.ZodNullable<z.ZodString>;
|
|
409
811
|
createdAt: z.ZodString;
|
|
410
812
|
updatedAt: z.ZodString;
|
|
813
|
+
delivery: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
814
|
+
id: z.ZodString;
|
|
815
|
+
state: z.ZodEnum<{
|
|
816
|
+
failed: "failed";
|
|
817
|
+
outcome_unknown: "outcome_unknown";
|
|
818
|
+
pending: "pending";
|
|
819
|
+
revoked: "revoked";
|
|
820
|
+
sent: "sent";
|
|
821
|
+
}>;
|
|
822
|
+
attemptCount: z.ZodNumber;
|
|
823
|
+
revision: z.ZodNumber;
|
|
824
|
+
errorClass: z.ZodNullable<z.ZodString>;
|
|
825
|
+
retryState: z.ZodEnum<{
|
|
826
|
+
available: "available";
|
|
827
|
+
reconciliation_required: "reconciliation_required";
|
|
828
|
+
unavailable: "unavailable";
|
|
829
|
+
}>;
|
|
830
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
831
|
+
updatedAt: z.ZodString;
|
|
832
|
+
}, z.core.$strip>>>;
|
|
411
833
|
}, z.core.$strip>>;
|
|
412
834
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
413
835
|
}, z.core.$strip>;
|
|
@@ -416,6 +838,7 @@ export declare const AcceptOrganizationInvitationResponse: z.ZodObject<{
|
|
|
416
838
|
invitation: z.ZodObject<{
|
|
417
839
|
id: z.ZodString;
|
|
418
840
|
organizationId: z.ZodString;
|
|
841
|
+
organizationName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
419
842
|
targetEmail: z.ZodString;
|
|
420
843
|
targetName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
421
844
|
initialWorkspaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -435,6 +858,26 @@ export declare const AcceptOrganizationInvitationResponse: z.ZodObject<{
|
|
|
435
858
|
acceptedMembershipId: z.ZodNullable<z.ZodString>;
|
|
436
859
|
createdAt: z.ZodString;
|
|
437
860
|
updatedAt: z.ZodString;
|
|
861
|
+
delivery: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
862
|
+
id: z.ZodString;
|
|
863
|
+
state: z.ZodEnum<{
|
|
864
|
+
failed: "failed";
|
|
865
|
+
outcome_unknown: "outcome_unknown";
|
|
866
|
+
pending: "pending";
|
|
867
|
+
revoked: "revoked";
|
|
868
|
+
sent: "sent";
|
|
869
|
+
}>;
|
|
870
|
+
attemptCount: z.ZodNumber;
|
|
871
|
+
revision: z.ZodNumber;
|
|
872
|
+
errorClass: z.ZodNullable<z.ZodString>;
|
|
873
|
+
retryState: z.ZodEnum<{
|
|
874
|
+
available: "available";
|
|
875
|
+
reconciliation_required: "reconciliation_required";
|
|
876
|
+
unavailable: "unavailable";
|
|
877
|
+
}>;
|
|
878
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
879
|
+
updatedAt: z.ZodString;
|
|
880
|
+
}, z.core.$strip>>>;
|
|
438
881
|
}, z.core.$strip>;
|
|
439
882
|
membership: z.ZodObject<{
|
|
440
883
|
id: z.ZodString;
|
|
@@ -488,6 +931,42 @@ export declare const ListOrganizationMembersResponse: z.ZodObject<{
|
|
|
488
931
|
updatedAt: z.ZodString;
|
|
489
932
|
}, z.core.$strip>>;
|
|
490
933
|
}, z.core.$strip>;
|
|
934
|
+
export declare const ListOrganizationAdministrationMembersResponse: z.ZodObject<{
|
|
935
|
+
members: z.ZodArray<z.ZodObject<{
|
|
936
|
+
id: z.ZodString;
|
|
937
|
+
organizationId: z.ZodString;
|
|
938
|
+
subjectId: z.ZodString;
|
|
939
|
+
name: z.ZodNullable<z.ZodString>;
|
|
940
|
+
email: z.ZodNullable<z.ZodString>;
|
|
941
|
+
role: z.ZodEnum<{
|
|
942
|
+
admin: "admin";
|
|
943
|
+
member: "member";
|
|
944
|
+
owner: "owner";
|
|
945
|
+
}>;
|
|
946
|
+
status: z.ZodEnum<{
|
|
947
|
+
active: "active";
|
|
948
|
+
provisioning: "provisioning";
|
|
949
|
+
revoked: "revoked";
|
|
950
|
+
suspended: "suspended";
|
|
951
|
+
}>;
|
|
952
|
+
authorizationRevision: z.ZodNumber;
|
|
953
|
+
sharedWorkspaceAccess: z.ZodArray<z.ZodObject<{
|
|
954
|
+
workspaceId: z.ZodString;
|
|
955
|
+
workspaceName: z.ZodString;
|
|
956
|
+
membershipId: z.ZodString;
|
|
957
|
+
role: z.ZodEnum<{
|
|
958
|
+
admin: "admin";
|
|
959
|
+
custom: "custom";
|
|
960
|
+
member: "member";
|
|
961
|
+
viewer: "viewer";
|
|
962
|
+
}>;
|
|
963
|
+
updatedAt: z.ZodString;
|
|
964
|
+
}, z.core.$strip>>;
|
|
965
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
966
|
+
createdAt: z.ZodString;
|
|
967
|
+
updatedAt: z.ZodString;
|
|
968
|
+
}, z.core.$strip>>;
|
|
969
|
+
}, z.core.$strip>;
|
|
491
970
|
export declare const ListSelfOrganizationMembershipsResponse: z.ZodObject<{
|
|
492
971
|
memberships: z.ZodArray<z.ZodObject<{
|
|
493
972
|
id: z.ZodString;
|