@opengeni/contracts 0.44.1 → 0.50.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/atlassian.js +10 -8
- package/dist/canonical-human-identities.d.ts +157 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/chunk-CM6BMECR.js +24 -0
- package/dist/chunk-CM6BMECR.js.map +1 -0
- package/dist/{chunk-FJBG5E4O.js → chunk-JBCIY7QD.js} +12 -12
- package/dist/chunk-JUFK3T4Q.js +80 -0
- package/dist/chunk-JUFK3T4Q.js.map +1 -0
- package/dist/{chunk-H5BVCZKF.js → chunk-LW7OH6CS.js} +2 -2
- package/dist/{chunk-52SGB2QO.js → chunk-M5ZGRVIQ.js} +37 -6
- package/dist/chunk-M5ZGRVIQ.js.map +1 -0
- package/dist/{chunk-VA22KRHS.js → chunk-Q6A7XT2N.js} +6371 -4814
- package/dist/chunk-Q6A7XT2N.js.map +1 -0
- package/dist/codex-provider-account-authority.d.ts +23 -0
- package/dist/codex-provider-account-authority.js +23 -0
- package/dist/codex-provider-account-authority.js.map +1 -0
- package/dist/editable-artifact-codec-registry.js +5 -5
- package/dist/editable-artifact-live.js +3 -3
- package/dist/editable-artifact-serialized-commit.js +4 -4
- package/dist/editable-artifacts.js +27 -27
- package/dist/google-drive.js +11 -9
- package/dist/google-drive.js.map +1 -1
- package/dist/index.d.ts +1318 -128
- package/dist/index.js +400 -80
- package/dist/interaction.d.ts +1415 -20
- package/dist/knowledge.d.ts +543 -0
- package/dist/slack-task-policy.d.ts +294 -0
- package/dist/task-notes.d.ts +128 -0
- package/dist/video-generation.d.ts +48 -0
- package/dist/video-generation.js +9 -1
- package/dist/xai-provider-account-authority.d.ts +23 -0
- package/dist/xai-provider-account-authority.js +9 -0
- package/dist/xai-provider-account-authority.js.map +1 -0
- package/package.json +13 -1
- package/src/artifacts.ts +1 -1
- package/src/canonical-human-identities.ts +93 -0
- package/src/codex-provider-account-authority.ts +37 -0
- package/src/index.ts +731 -138
- package/src/interaction.ts +886 -5
- package/src/knowledge.ts +207 -0
- package/src/slack-task-policy.ts +215 -0
- package/src/task-notes.ts +92 -0
- package/src/video-generation.ts +43 -6
- package/src/xai-provider-account-authority.ts +37 -0
- package/dist/chunk-52SGB2QO.js.map +0 -1
- package/dist/chunk-VA22KRHS.js.map +0 -1
- /package/dist/{chunk-FJBG5E4O.js.map → chunk-JBCIY7QD.js.map} +0 -0
- /package/dist/{chunk-H5BVCZKF.js.map → chunk-LW7OH6CS.js.map} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const CanonicalHumanIdentityStatus = z.enum([
|
|
4
|
+
"active",
|
|
5
|
+
"recovery_required",
|
|
6
|
+
"disputed",
|
|
7
|
+
"disabled",
|
|
8
|
+
]);
|
|
9
|
+
export type CanonicalHumanIdentityStatus = z.infer<typeof CanonicalHumanIdentityStatus>;
|
|
10
|
+
|
|
11
|
+
export const CanonicalHumanLoginBindingStatus = z.enum([
|
|
12
|
+
"active",
|
|
13
|
+
"recovery_pending",
|
|
14
|
+
"stale",
|
|
15
|
+
"disputed",
|
|
16
|
+
"revoked",
|
|
17
|
+
]);
|
|
18
|
+
export type CanonicalHumanLoginBindingStatus = z.infer<typeof CanonicalHumanLoginBindingStatus>;
|
|
19
|
+
|
|
20
|
+
export const CanonicalHumanRecoveryState = z.enum([
|
|
21
|
+
"ready",
|
|
22
|
+
"recovery_required",
|
|
23
|
+
"lost_factor",
|
|
24
|
+
"disputed",
|
|
25
|
+
"disabled",
|
|
26
|
+
]);
|
|
27
|
+
export type CanonicalHumanRecoveryState = z.infer<typeof CanonicalHumanRecoveryState>;
|
|
28
|
+
|
|
29
|
+
export const CanonicalHumanLoginBinding = z.object({
|
|
30
|
+
id: z.string().uuid(),
|
|
31
|
+
providerId: z.string().min(1).max(128),
|
|
32
|
+
providerAccountId: z.string().min(1).max(1024),
|
|
33
|
+
status: CanonicalHumanLoginBindingStatus,
|
|
34
|
+
revision: z.number().int().positive(),
|
|
35
|
+
verifiedAt: z.string().datetime(),
|
|
36
|
+
lastVerifiedAt: z.string().datetime(),
|
|
37
|
+
revokedAt: z.string().datetime().nullable(),
|
|
38
|
+
createdAt: z.string().datetime(),
|
|
39
|
+
updatedAt: z.string().datetime(),
|
|
40
|
+
});
|
|
41
|
+
export type CanonicalHumanLoginBinding = z.infer<typeof CanonicalHumanLoginBinding>;
|
|
42
|
+
|
|
43
|
+
export const CanonicalHumanIdentityProjection = z.object({
|
|
44
|
+
activeIdentity: z.object({
|
|
45
|
+
id: z.string().uuid(),
|
|
46
|
+
displayName: z.string().min(1).max(256),
|
|
47
|
+
status: CanonicalHumanIdentityStatus,
|
|
48
|
+
identityRevision: z.number().int().positive(),
|
|
49
|
+
authRevision: z.number().int().positive(),
|
|
50
|
+
activeLoginBindingId: z.string().uuid().nullable(),
|
|
51
|
+
recoveryState: CanonicalHumanRecoveryState,
|
|
52
|
+
createdAt: z.string().datetime(),
|
|
53
|
+
updatedAt: z.string().datetime(),
|
|
54
|
+
}),
|
|
55
|
+
loginBindings: z.array(CanonicalHumanLoginBinding).max(64),
|
|
56
|
+
});
|
|
57
|
+
export type CanonicalHumanIdentityProjection = z.infer<typeof CanonicalHumanIdentityProjection>;
|
|
58
|
+
|
|
59
|
+
const OperationFields = {
|
|
60
|
+
operationId: z.string().uuid().optional(),
|
|
61
|
+
expectedIdentityRevision: z.number().int().positive(),
|
|
62
|
+
reason: z.string().trim().min(1).max(512),
|
|
63
|
+
} as const;
|
|
64
|
+
|
|
65
|
+
export const LinkCanonicalHumanLoginBindingRequest = z.object({
|
|
66
|
+
...OperationFields,
|
|
67
|
+
providerId: z.string().trim().min(1).max(128),
|
|
68
|
+
providerAccountId: z.string().trim().min(1).max(1024),
|
|
69
|
+
});
|
|
70
|
+
export type LinkCanonicalHumanLoginBindingRequest = z.infer<
|
|
71
|
+
typeof LinkCanonicalHumanLoginBindingRequest
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
export const CanonicalHumanBindingOperationRequest = z.object({
|
|
75
|
+
...OperationFields,
|
|
76
|
+
});
|
|
77
|
+
export type CanonicalHumanBindingOperationRequest = z.infer<
|
|
78
|
+
typeof CanonicalHumanBindingOperationRequest
|
|
79
|
+
>;
|
|
80
|
+
|
|
81
|
+
export const CanonicalHumanIdentityMutationOutcome = z.enum(["applied", "lost_factor", "disputed"]);
|
|
82
|
+
export type CanonicalHumanIdentityMutationOutcome = z.infer<
|
|
83
|
+
typeof CanonicalHumanIdentityMutationOutcome
|
|
84
|
+
>;
|
|
85
|
+
|
|
86
|
+
export const CanonicalHumanIdentityMutationResponse = z.object({
|
|
87
|
+
outcome: CanonicalHumanIdentityMutationOutcome,
|
|
88
|
+
operationId: z.string().uuid(),
|
|
89
|
+
identity: CanonicalHumanIdentityProjection,
|
|
90
|
+
});
|
|
91
|
+
export type CanonicalHumanIdentityMutationResponse = z.infer<
|
|
92
|
+
typeof CanonicalHumanIdentityMutationResponse
|
|
93
|
+
>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
const PositiveSafeInteger = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Opaque authority frozen at a Codex provider-account acceptance boundary.
|
|
7
|
+
*
|
|
8
|
+
* The snapshot deliberately carries no organization, membership, credential,
|
|
9
|
+
* provider-account, subject, label, quota, token, or plan identity. A later
|
|
10
|
+
* activation slice may use the user generation only together with separately
|
|
11
|
+
* authorized durable state; this value is never sufficient authority alone.
|
|
12
|
+
*/
|
|
13
|
+
export const CodexProviderAccountAuthoritySnapshotV1 = z.discriminatedUnion("scope", [
|
|
14
|
+
z
|
|
15
|
+
.object({
|
|
16
|
+
version: z.literal(1),
|
|
17
|
+
scope: z.literal("workspace"),
|
|
18
|
+
})
|
|
19
|
+
.strict(),
|
|
20
|
+
z
|
|
21
|
+
.object({
|
|
22
|
+
version: z.literal(1),
|
|
23
|
+
scope: z.literal("user"),
|
|
24
|
+
authorityGeneration: PositiveSafeInteger,
|
|
25
|
+
})
|
|
26
|
+
.strict(),
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
export type CodexProviderAccountAuthoritySnapshotV1 = z.infer<
|
|
30
|
+
typeof CodexProviderAccountAuthoritySnapshotV1
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
/** Explicit compatibility value for all pre-foundation accepted work. */
|
|
34
|
+
export const LEGACY_WORKSPACE_CODEX_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1 = {
|
|
35
|
+
version: 1,
|
|
36
|
+
scope: "workspace",
|
|
37
|
+
} as const satisfies CodexProviderAccountAuthoritySnapshotV1;
|