@opengeni/contracts 2.5.0-canary.2 → 2.6.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/atlassian.js +6 -5
- package/dist/chunk-BCS7WHCK.js +139 -0
- package/dist/chunk-BCS7WHCK.js.map +1 -0
- package/dist/{chunk-4I7DWNRR.js → chunk-MJ3K6ICH.js} +40 -7
- package/dist/chunk-MJ3K6ICH.js.map +1 -0
- package/dist/connection-authority.js +6 -5
- package/dist/connection-authority.js.map +1 -1
- package/dist/editable-artifact-live.js +1 -1
- package/dist/editable-artifact-serialized-commit.js +1 -1
- package/dist/editable-artifacts.js +8 -8
- package/dist/google-drive.js +7 -6
- package/dist/google-drive.js.map +1 -1
- package/dist/index.d.ts +40 -3
- package/dist/index.js +91 -47
- package/dist/managed-auth-session-sets.d.ts +215 -0
- package/dist/managed-auth-session-sets.js +166 -0
- package/dist/managed-auth-session-sets.js.map +1 -0
- package/dist/organization-recovery.d.ts +337 -0
- package/dist/organization-recovery.js +37 -0
- package/dist/organization-recovery.js.map +1 -0
- package/dist/personal-github.js +6 -5
- package/dist/personal-github.js.map +1 -1
- package/package.json +9 -1
- package/src/image-generation.ts +8 -2
- package/src/index.ts +58 -11
- package/src/managed-auth-session-sets.ts +208 -0
- package/src/organization-recovery.ts +186 -0
- package/dist/chunk-4I7DWNRR.js.map +0 -1
package/dist/atlassian.js
CHANGED
|
@@ -17,24 +17,25 @@ import {
|
|
|
17
17
|
AtlassianSyncCadence,
|
|
18
18
|
SaveAtlassianSourcesRequest,
|
|
19
19
|
atlassianScopesAllowRead
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MJ3K6ICH.js";
|
|
21
|
+
import "./chunk-WYBDERIY.js";
|
|
21
22
|
import "./chunk-MRWYRAS5.js";
|
|
23
|
+
import "./chunk-CM6BMECR.js";
|
|
22
24
|
import "./chunk-JUFK3T4Q.js";
|
|
23
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-YBW5JSA3.js";
|
|
24
26
|
import "./chunk-N6GRVXAJ.js";
|
|
25
27
|
import "./chunk-3SIZGL3O.js";
|
|
26
28
|
import "./chunk-NVJMJWLL.js";
|
|
29
|
+
import "./chunk-YRKRZ6OF.js";
|
|
27
30
|
import "./chunk-7RMTKFJW.js";
|
|
28
31
|
import "./chunk-Y3KNXVTD.js";
|
|
29
32
|
import "./chunk-RIY7GYQS.js";
|
|
30
|
-
import "./chunk-YRKRZ6OF.js";
|
|
31
|
-
import "./chunk-CM6BMECR.js";
|
|
32
33
|
import "./chunk-D2HKF2EF.js";
|
|
33
34
|
import "./chunk-MYBZRDTY.js";
|
|
34
35
|
import "./chunk-TXTQIYCV.js";
|
|
35
36
|
import "./chunk-PX3VCKAU.js";
|
|
37
|
+
import "./chunk-BCS7WHCK.js";
|
|
36
38
|
import "./chunk-M5ZGRVIQ.js";
|
|
37
|
-
import "./chunk-YBW5JSA3.js";
|
|
38
39
|
export {
|
|
39
40
|
ATLASSIAN_CREDENTIAL_LABEL,
|
|
40
41
|
ATLASSIAN_CREDENTIAL_ROLE,
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// src/organization-recovery.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var Uuid = z.string().uuid();
|
|
4
|
+
var Timestamp = z.string().datetime({ offset: true });
|
|
5
|
+
var OrganizationRecoveryPolicyState = z.enum([
|
|
6
|
+
"pending_acceptance",
|
|
7
|
+
"active",
|
|
8
|
+
"degraded",
|
|
9
|
+
"superseded",
|
|
10
|
+
"disabled"
|
|
11
|
+
]);
|
|
12
|
+
var OrganizationRecoveryOperationState = z.enum([
|
|
13
|
+
"collecting",
|
|
14
|
+
"cooling",
|
|
15
|
+
"executed",
|
|
16
|
+
"cancelled",
|
|
17
|
+
"expired",
|
|
18
|
+
"superseded"
|
|
19
|
+
]);
|
|
20
|
+
var OrganizationRecoveryUnavailableReason = z.enum([
|
|
21
|
+
"no_policy",
|
|
22
|
+
"pending_acceptance",
|
|
23
|
+
"degraded",
|
|
24
|
+
"disabled",
|
|
25
|
+
"identity_unavailable"
|
|
26
|
+
]);
|
|
27
|
+
var OrganizationRecoveryMemberSummary = z.object({
|
|
28
|
+
membershipId: Uuid,
|
|
29
|
+
name: z.string().trim().min(1).max(1024).nullable(),
|
|
30
|
+
email: z.string().email().max(320).nullable()
|
|
31
|
+
}).strict();
|
|
32
|
+
var OrganizationRecoveryCustodian = OrganizationRecoveryMemberSummary.extend({
|
|
33
|
+
ordinal: z.number().int().min(1).max(3),
|
|
34
|
+
enrollmentState: z.enum(["pending_acceptance", "accepted", "ineligible"]),
|
|
35
|
+
acceptedAt: Timestamp.nullable()
|
|
36
|
+
}).strict();
|
|
37
|
+
var OrganizationRecoveryPolicy = z.object({
|
|
38
|
+
id: Uuid,
|
|
39
|
+
organizationId: Uuid,
|
|
40
|
+
revision: z.number().int().positive(),
|
|
41
|
+
state: OrganizationRecoveryPolicyState,
|
|
42
|
+
custodians: z.array(OrganizationRecoveryCustodian).length(3),
|
|
43
|
+
createdAt: Timestamp,
|
|
44
|
+
updatedAt: Timestamp
|
|
45
|
+
}).strict();
|
|
46
|
+
var OrganizationRecoveryApproval = OrganizationRecoveryMemberSummary.extend({
|
|
47
|
+
approvedAt: Timestamp
|
|
48
|
+
}).strict();
|
|
49
|
+
var OrganizationRecoveryOperation = z.object({
|
|
50
|
+
id: Uuid,
|
|
51
|
+
organizationId: Uuid,
|
|
52
|
+
policyId: Uuid,
|
|
53
|
+
policyRevision: z.number().int().positive(),
|
|
54
|
+
revision: z.number().int().positive(),
|
|
55
|
+
state: OrganizationRecoveryOperationState,
|
|
56
|
+
target: OrganizationRecoveryMemberSummary,
|
|
57
|
+
approvals: z.array(OrganizationRecoveryApproval).max(3),
|
|
58
|
+
approvalCount: z.number().int().min(0).max(3),
|
|
59
|
+
quorumAt: Timestamp.nullable(),
|
|
60
|
+
executableAt: Timestamp.nullable(),
|
|
61
|
+
expiresAt: Timestamp,
|
|
62
|
+
executedAt: Timestamp.nullable(),
|
|
63
|
+
cancelledAt: Timestamp.nullable(),
|
|
64
|
+
notificationJournaled: z.boolean(),
|
|
65
|
+
createdAt: Timestamp,
|
|
66
|
+
updatedAt: Timestamp
|
|
67
|
+
}).strict();
|
|
68
|
+
var OrganizationRecoveryCapabilities = z.object({
|
|
69
|
+
configure: z.boolean(),
|
|
70
|
+
accept: z.boolean(),
|
|
71
|
+
disable: z.boolean(),
|
|
72
|
+
start: z.boolean(),
|
|
73
|
+
approve: z.boolean(),
|
|
74
|
+
cancel: z.boolean(),
|
|
75
|
+
execute: z.boolean()
|
|
76
|
+
}).strict();
|
|
77
|
+
var OrganizationRecoveryOverview = z.object({
|
|
78
|
+
organizationId: Uuid,
|
|
79
|
+
availability: z.enum(["available", "recovery_unavailable"]),
|
|
80
|
+
unavailableReason: OrganizationRecoveryUnavailableReason.nullable(),
|
|
81
|
+
recentReauthenticationAt: Timestamp.nullable(),
|
|
82
|
+
eligibleMembers: z.array(OrganizationRecoveryMemberSummary).max(1e3),
|
|
83
|
+
policy: OrganizationRecoveryPolicy.nullable(),
|
|
84
|
+
operation: OrganizationRecoveryOperation.nullable(),
|
|
85
|
+
capabilities: OrganizationRecoveryCapabilities
|
|
86
|
+
}).strict();
|
|
87
|
+
var ExpectedPolicyRevision = z.number().int().nonnegative();
|
|
88
|
+
var ExpectedOperationRevision = z.number().int().positive();
|
|
89
|
+
var CommandOperationId = Uuid;
|
|
90
|
+
var ConfigureOrganizationRecoveryPolicyRequest = z.object({
|
|
91
|
+
custodianMembershipIds: z.tuple([Uuid, Uuid, Uuid]).superRefine((ids, context) => {
|
|
92
|
+
if (new Set(ids).size !== 3) {
|
|
93
|
+
context.addIssue({
|
|
94
|
+
code: "custom",
|
|
95
|
+
message: "recovery custodians must be three distinct memberships"
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}),
|
|
99
|
+
expectedPolicyRevision: ExpectedPolicyRevision,
|
|
100
|
+
operationId: CommandOperationId
|
|
101
|
+
}).strict();
|
|
102
|
+
var AcceptOrganizationRecoveryCustodyRequest = z.object({
|
|
103
|
+
expectedPolicyRevision: ExpectedPolicyRevision,
|
|
104
|
+
operationId: CommandOperationId
|
|
105
|
+
}).strict();
|
|
106
|
+
var DisableOrganizationRecoveryPolicyRequest = AcceptOrganizationRecoveryCustodyRequest;
|
|
107
|
+
var StartOrganizationRecoveryOperationRequest = z.object({
|
|
108
|
+
targetMembershipId: Uuid,
|
|
109
|
+
expectedPolicyRevision: z.number().int().positive(),
|
|
110
|
+
operationId: CommandOperationId
|
|
111
|
+
}).strict();
|
|
112
|
+
var OrganizationRecoveryOperationCommandRequest = z.object({
|
|
113
|
+
expectedOperationRevision: ExpectedOperationRevision,
|
|
114
|
+
operationId: CommandOperationId
|
|
115
|
+
}).strict();
|
|
116
|
+
var OrganizationRecoveryMutationResponse = z.object({
|
|
117
|
+
replay: z.boolean(),
|
|
118
|
+
overview: OrganizationRecoveryOverview
|
|
119
|
+
}).strict();
|
|
120
|
+
|
|
121
|
+
export {
|
|
122
|
+
OrganizationRecoveryPolicyState,
|
|
123
|
+
OrganizationRecoveryOperationState,
|
|
124
|
+
OrganizationRecoveryUnavailableReason,
|
|
125
|
+
OrganizationRecoveryMemberSummary,
|
|
126
|
+
OrganizationRecoveryCustodian,
|
|
127
|
+
OrganizationRecoveryPolicy,
|
|
128
|
+
OrganizationRecoveryApproval,
|
|
129
|
+
OrganizationRecoveryOperation,
|
|
130
|
+
OrganizationRecoveryCapabilities,
|
|
131
|
+
OrganizationRecoveryOverview,
|
|
132
|
+
ConfigureOrganizationRecoveryPolicyRequest,
|
|
133
|
+
AcceptOrganizationRecoveryCustodyRequest,
|
|
134
|
+
DisableOrganizationRecoveryPolicyRequest,
|
|
135
|
+
StartOrganizationRecoveryOperationRequest,
|
|
136
|
+
OrganizationRecoveryOperationCommandRequest,
|
|
137
|
+
OrganizationRecoveryMutationResponse
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=chunk-BCS7WHCK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/organization-recovery.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst Uuid = z.string().uuid();\nconst Timestamp = z.string().datetime({ offset: true });\n\nexport const OrganizationRecoveryPolicyState = z.enum([\n \"pending_acceptance\",\n \"active\",\n \"degraded\",\n \"superseded\",\n \"disabled\",\n]);\nexport type OrganizationRecoveryPolicyState = z.infer<typeof OrganizationRecoveryPolicyState>;\n\nexport const OrganizationRecoveryOperationState = z.enum([\n \"collecting\",\n \"cooling\",\n \"executed\",\n \"cancelled\",\n \"expired\",\n \"superseded\",\n]);\nexport type OrganizationRecoveryOperationState = z.infer<typeof OrganizationRecoveryOperationState>;\n\nexport const OrganizationRecoveryUnavailableReason = z.enum([\n \"no_policy\",\n \"pending_acceptance\",\n \"degraded\",\n \"disabled\",\n \"identity_unavailable\",\n]);\nexport type OrganizationRecoveryUnavailableReason = z.infer<\n typeof OrganizationRecoveryUnavailableReason\n>;\n\nexport const OrganizationRecoveryMemberSummary = z\n .object({\n membershipId: Uuid,\n name: z.string().trim().min(1).max(1024).nullable(),\n email: z.string().email().max(320).nullable(),\n })\n .strict();\nexport type OrganizationRecoveryMemberSummary = z.infer<typeof OrganizationRecoveryMemberSummary>;\n\nexport const OrganizationRecoveryCustodian = OrganizationRecoveryMemberSummary.extend({\n ordinal: z.number().int().min(1).max(3),\n enrollmentState: z.enum([\"pending_acceptance\", \"accepted\", \"ineligible\"]),\n acceptedAt: Timestamp.nullable(),\n}).strict();\nexport type OrganizationRecoveryCustodian = z.infer<typeof OrganizationRecoveryCustodian>;\n\nexport const OrganizationRecoveryPolicy = z\n .object({\n id: Uuid,\n organizationId: Uuid,\n revision: z.number().int().positive(),\n state: OrganizationRecoveryPolicyState,\n custodians: z.array(OrganizationRecoveryCustodian).length(3),\n createdAt: Timestamp,\n updatedAt: Timestamp,\n })\n .strict();\nexport type OrganizationRecoveryPolicy = z.infer<typeof OrganizationRecoveryPolicy>;\n\nexport const OrganizationRecoveryApproval = OrganizationRecoveryMemberSummary.extend({\n approvedAt: Timestamp,\n}).strict();\nexport type OrganizationRecoveryApproval = z.infer<typeof OrganizationRecoveryApproval>;\n\nexport const OrganizationRecoveryOperation = z\n .object({\n id: Uuid,\n organizationId: Uuid,\n policyId: Uuid,\n policyRevision: z.number().int().positive(),\n revision: z.number().int().positive(),\n state: OrganizationRecoveryOperationState,\n target: OrganizationRecoveryMemberSummary,\n approvals: z.array(OrganizationRecoveryApproval).max(3),\n approvalCount: z.number().int().min(0).max(3),\n quorumAt: Timestamp.nullable(),\n executableAt: Timestamp.nullable(),\n expiresAt: Timestamp,\n executedAt: Timestamp.nullable(),\n cancelledAt: Timestamp.nullable(),\n notificationJournaled: z.boolean(),\n createdAt: Timestamp,\n updatedAt: Timestamp,\n })\n .strict();\nexport type OrganizationRecoveryOperation = z.infer<typeof OrganizationRecoveryOperation>;\n\nexport const OrganizationRecoveryCapabilities = z\n .object({\n configure: z.boolean(),\n accept: z.boolean(),\n disable: z.boolean(),\n start: z.boolean(),\n approve: z.boolean(),\n cancel: z.boolean(),\n execute: z.boolean(),\n })\n .strict();\nexport type OrganizationRecoveryCapabilities = z.infer<typeof OrganizationRecoveryCapabilities>;\n\nexport const OrganizationRecoveryOverview = z\n .object({\n organizationId: Uuid,\n availability: z.enum([\"available\", \"recovery_unavailable\"]),\n unavailableReason: OrganizationRecoveryUnavailableReason.nullable(),\n recentReauthenticationAt: Timestamp.nullable(),\n eligibleMembers: z.array(OrganizationRecoveryMemberSummary).max(1000),\n policy: OrganizationRecoveryPolicy.nullable(),\n operation: OrganizationRecoveryOperation.nullable(),\n capabilities: OrganizationRecoveryCapabilities,\n })\n .strict();\nexport type OrganizationRecoveryOverview = z.infer<typeof OrganizationRecoveryOverview>;\n\nconst ExpectedPolicyRevision = z.number().int().nonnegative();\nconst ExpectedOperationRevision = z.number().int().positive();\nconst CommandOperationId = Uuid;\n\nexport const ConfigureOrganizationRecoveryPolicyRequest = z\n .object({\n custodianMembershipIds: z.tuple([Uuid, Uuid, Uuid]).superRefine((ids, context) => {\n if (new Set(ids).size !== 3) {\n context.addIssue({\n code: \"custom\",\n message: \"recovery custodians must be three distinct memberships\",\n });\n }\n }),\n expectedPolicyRevision: ExpectedPolicyRevision,\n operationId: CommandOperationId,\n })\n .strict();\nexport type ConfigureOrganizationRecoveryPolicyRequest = z.infer<\n typeof ConfigureOrganizationRecoveryPolicyRequest\n>;\n\nexport const AcceptOrganizationRecoveryCustodyRequest = z\n .object({\n expectedPolicyRevision: ExpectedPolicyRevision,\n operationId: CommandOperationId,\n })\n .strict();\nexport type AcceptOrganizationRecoveryCustodyRequest = z.infer<\n typeof AcceptOrganizationRecoveryCustodyRequest\n>;\n\nexport const DisableOrganizationRecoveryPolicyRequest = AcceptOrganizationRecoveryCustodyRequest;\nexport type DisableOrganizationRecoveryPolicyRequest = z.infer<\n typeof DisableOrganizationRecoveryPolicyRequest\n>;\n\nexport const StartOrganizationRecoveryOperationRequest = z\n .object({\n targetMembershipId: Uuid,\n expectedPolicyRevision: z.number().int().positive(),\n operationId: CommandOperationId,\n })\n .strict();\nexport type StartOrganizationRecoveryOperationRequest = z.infer<\n typeof StartOrganizationRecoveryOperationRequest\n>;\n\nexport const OrganizationRecoveryOperationCommandRequest = z\n .object({\n expectedOperationRevision: ExpectedOperationRevision,\n operationId: CommandOperationId,\n })\n .strict();\nexport type OrganizationRecoveryOperationCommandRequest = z.infer<\n typeof OrganizationRecoveryOperationCommandRequest\n>;\n\nexport const OrganizationRecoveryMutationResponse = z\n .object({\n replay: z.boolean(),\n overview: OrganizationRecoveryOverview,\n })\n .strict();\nexport type OrganizationRecoveryMutationResponse = z.infer<\n typeof OrganizationRecoveryMutationResponse\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,IAAM,OAAO,EAAE,OAAO,EAAE,KAAK;AAC7B,IAAM,YAAY,EAAE,OAAO,EAAE,SAAS,EAA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S;AAC5D,IAAM,qBAAqB;AAEpB,IAAM,6CAA6C,EACvD,OAAO;AAAA,EACN,wBAAwB,EAAE,MAAM,CAAC,MAAM,MAAM,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,YAAY;AAChF,QAAI,IAAI,IAAI,GAAG,EAAE,SAAS,GAAG;AAC3B,cAAQ,SAAS;AAAA,QACf,MAAM;AAAA,QACN,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAAA,EACD,wBAAwB;AAAA,EACxB,aAAa;AACf,CAAC,EACA,OAAO;AAKH,IAAM,2CAA2C,EACrD,OAAO;AAAA,EACN,wBAAwB;AAAA,EACxB,aAAa;AACf,CAAC,EACA,OAAO;AAKH,IAAM,2CAA2C;AAKjD,IAAM,4CAA4C,EACtD,OAAO;AAAA,EACN,oBAAoB;AAAA,EACpB,wBAAwB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EAClD,aAAa;AACf,CAAC,EACA,OAAO;AAKH,IAAM,8CAA8C,EACxD,OAAO;AAAA,EACN,2BAA2B;AAAA,EAC3B,aAAa;AACf,CAAC,EACA,OAAO;AAKH,IAAM,uCAAuC,EACjD,OAAO;AAAA,EACN,QAAQ,EAAE,QAAQ;AAAA,EAClB,UAAU;AACZ,CAAC,EACA,OAAO;","names":[]}
|
|
@@ -1722,7 +1722,9 @@ import { z as z8 } from "zod";
|
|
|
1722
1722
|
var IMAGE_GENERATION_MAX_REFERENCES = 4;
|
|
1723
1723
|
var WorkspaceImagePathSchema = z8.string().max(512).regex(/^\/workspace\/.+$/).refine((path) => path.split("/").every((segment) => segment !== "." && segment !== ".."), {
|
|
1724
1724
|
message: "Sandbox image paths cannot contain dot segments"
|
|
1725
|
-
})
|
|
1725
|
+
}).describe(
|
|
1726
|
+
"Absolute /workspace path to a PNG, JPEG, or WebP image. Convert SVG or other formats before using them as image-generation references."
|
|
1727
|
+
);
|
|
1726
1728
|
var ImageGenerationReferenceSchema = z8.discriminatedUnion("kind", [
|
|
1727
1729
|
z8.object({
|
|
1728
1730
|
kind: z8.literal("sandbox_path"),
|
|
@@ -1739,7 +1741,9 @@ var ImageGenerationReferenceSchema = z8.discriminatedUnion("kind", [
|
|
|
1739
1741
|
]);
|
|
1740
1742
|
var GenerateImageToolInput = z8.object({
|
|
1741
1743
|
prompt: z8.string().trim().min(1).max(32e3),
|
|
1742
|
-
references: z8.array(ImageGenerationReferenceSchema).max(IMAGE_GENERATION_MAX_REFERENCES).optional().default([])
|
|
1744
|
+
references: z8.array(ImageGenerationReferenceSchema).max(IMAGE_GENERATION_MAX_REFERENCES).optional().default([]).describe(
|
|
1745
|
+
"Ordered image references. Every sandbox path, File, or artifact must resolve to PNG, JPEG, or WebP bytes."
|
|
1746
|
+
)
|
|
1743
1747
|
}).strict();
|
|
1744
1748
|
var GeneratedImageReceiptSchema = z8.object({
|
|
1745
1749
|
type: z8.literal("generated_image"),
|
|
@@ -10179,7 +10183,7 @@ var UpdateWorkspaceRequest = z27.object({
|
|
|
10179
10183
|
// White-label persona override. Pass null to clear it back to the deployment
|
|
10180
10184
|
// default; omit to leave it unchanged.
|
|
10181
10185
|
agentInstructions: z27.string().min(1).nullable().optional()
|
|
10182
|
-
});
|
|
10186
|
+
}).strict();
|
|
10183
10187
|
var ApiKey = z27.object({
|
|
10184
10188
|
id: z27.string().uuid(),
|
|
10185
10189
|
accountId: z27.string().uuid(),
|
|
@@ -13159,6 +13163,26 @@ var VariableSetSecret = z27.object({
|
|
|
13159
13163
|
value: z27.string()
|
|
13160
13164
|
});
|
|
13161
13165
|
var VariableSetScope = z27.enum(["organization", "workspace", "user"]);
|
|
13166
|
+
var VariableSetAttachmentMetadata = z27.object({
|
|
13167
|
+
id: z27.string().uuid(),
|
|
13168
|
+
scope: VariableSetScope
|
|
13169
|
+
});
|
|
13170
|
+
var MAX_RESOLVED_VARIABLE_SET_ATTACHMENTS = MAX_SELECTED_VARIABLE_SETS * 2;
|
|
13171
|
+
var ResolveVariableSetAttachmentsRequest = z27.object({
|
|
13172
|
+
// One create can carry 25 explicit selections plus 25 defaults from its Rig.
|
|
13173
|
+
variableSetIds: z27.array(z27.string().uuid()).max(MAX_RESOLVED_VARIABLE_SET_ATTACHMENTS)
|
|
13174
|
+
}).strict().superRefine((value, context) => {
|
|
13175
|
+
if (new Set(value.variableSetIds).size !== value.variableSetIds.length) {
|
|
13176
|
+
context.addIssue({
|
|
13177
|
+
code: z27.ZodIssueCode.custom,
|
|
13178
|
+
path: ["variableSetIds"],
|
|
13179
|
+
message: "variableSetIds must not contain duplicates"
|
|
13180
|
+
});
|
|
13181
|
+
}
|
|
13182
|
+
});
|
|
13183
|
+
var ResolveVariableSetAttachmentsResponse = z27.object({
|
|
13184
|
+
variableSets: z27.array(VariableSetAttachmentMetadata)
|
|
13185
|
+
});
|
|
13162
13186
|
var VariableSet = z27.object({
|
|
13163
13187
|
id: z27.string().uuid(),
|
|
13164
13188
|
accountId: z27.string().uuid(),
|
|
@@ -13370,6 +13394,7 @@ var RigChange = z27.object({
|
|
|
13370
13394
|
createdAt: z27.string(),
|
|
13371
13395
|
updatedAt: z27.string()
|
|
13372
13396
|
});
|
|
13397
|
+
var RIG_SETUP_SCRIPT_MAX_CHARS = 1024 * 1024;
|
|
13373
13398
|
var CreateRigRequest = z27.object({
|
|
13374
13399
|
// Omitted remains the compatibility workspace-owned creation path.
|
|
13375
13400
|
scope: ResourceAuthorityScope.default("workspace"),
|
|
@@ -13382,7 +13407,7 @@ var CreateRigRequest = z27.object({
|
|
|
13382
13407
|
// explicit never-field instead of silently stripping `image` from older
|
|
13383
13408
|
// clients: callers must receive a validation error and remove the override.
|
|
13384
13409
|
image: z27.never().optional(),
|
|
13385
|
-
setupScript: z27.string().max(
|
|
13410
|
+
setupScript: z27.string().max(RIG_SETUP_SCRIPT_MAX_CHARS).optional(),
|
|
13386
13411
|
checks: z27.array(RigCheck).max(100).default([]),
|
|
13387
13412
|
credentialHooks: z27.array(z27.string().min(1).max(200)).max(50).default([]),
|
|
13388
13413
|
defaultVariableSetIds: z27.array(z27.string().uuid()).max(25).default([])
|
|
@@ -13425,7 +13450,7 @@ var RigDefinitionEditPayload = z27.object({
|
|
|
13425
13450
|
// the read model for compatibility, but no new definition may set or clear
|
|
13426
13451
|
// one through the public write contract.
|
|
13427
13452
|
image: z27.never().optional(),
|
|
13428
|
-
setupScript: z27.string().max(
|
|
13453
|
+
setupScript: z27.string().max(RIG_SETUP_SCRIPT_MAX_CHARS).nullish(),
|
|
13429
13454
|
checks: z27.array(RigCheck).max(100).optional(),
|
|
13430
13455
|
credentialHooks: z27.array(z27.string().min(1).max(200)).max(50).optional(),
|
|
13431
13456
|
defaultVariableSetIds: z27.array(z27.string().uuid()).max(25).optional(),
|
|
@@ -18932,7 +18957,7 @@ var WorkspaceModelCatalogResponse = /* @__PURE__ */ defineModelContractSchema(
|
|
|
18932
18957
|
models: z27.array(WorkspaceModelCatalogModel)
|
|
18933
18958
|
})
|
|
18934
18959
|
);
|
|
18935
|
-
var OPENGENI_API_CONTRACT_REVISION = "2026-08-
|
|
18960
|
+
var OPENGENI_API_CONTRACT_REVISION = "2026-08-organization-recovery-custody-v1";
|
|
18936
18961
|
var OPENGENI_API_CONTRACT_HEADER = "x-opengeni-api-contract";
|
|
18937
18962
|
var OPENGENI_CORRELATION_HEADER = "x-opengeni-correlation-id";
|
|
18938
18963
|
var ClientConfig = /* @__PURE__ */ defineModelContractSchema(
|
|
@@ -18976,6 +19001,9 @@ var ClientConfig = /* @__PURE__ */ defineModelContractSchema(
|
|
|
18976
19001
|
acceptedMimeTypes: [...VOICE_INPUT_ACCEPTED_MIME_TYPES]
|
|
18977
19002
|
}),
|
|
18978
19003
|
productAccessMode: ProductAccessMode,
|
|
19004
|
+
// Safe rollout discriminator: the browser only mounts the optional
|
|
19005
|
+
// @opengeni/sdk/accounts controller when this is dual or broker.
|
|
19006
|
+
managedAuthSessionSetMode: z27.enum(["legacy", "dual", "broker"]).default("legacy"),
|
|
18979
19007
|
auth: ClientAuthConfig.default({ mode: "none" }),
|
|
18980
19008
|
analytics: z27.object({
|
|
18981
19009
|
consentRequired: z27.boolean(),
|
|
@@ -20387,6 +20415,10 @@ export {
|
|
|
20387
20415
|
WorkspaceEnvironmentVariableMetadata,
|
|
20388
20416
|
VariableSetSecret,
|
|
20389
20417
|
VariableSetScope,
|
|
20418
|
+
VariableSetAttachmentMetadata,
|
|
20419
|
+
MAX_RESOLVED_VARIABLE_SET_ATTACHMENTS,
|
|
20420
|
+
ResolveVariableSetAttachmentsRequest,
|
|
20421
|
+
ResolveVariableSetAttachmentsResponse,
|
|
20390
20422
|
VariableSet,
|
|
20391
20423
|
WorkspaceEnvironment,
|
|
20392
20424
|
CreateVariableSetRequest,
|
|
@@ -20407,6 +20439,7 @@ export {
|
|
|
20407
20439
|
RigCheckResult,
|
|
20408
20440
|
RigChangeVerification,
|
|
20409
20441
|
RigChange,
|
|
20442
|
+
RIG_SETUP_SCRIPT_MAX_CHARS,
|
|
20410
20443
|
CreateRigRequest,
|
|
20411
20444
|
UpdateRigRequest,
|
|
20412
20445
|
Channel,
|
|
@@ -20856,4 +20889,4 @@ export {
|
|
|
20856
20889
|
ClientConfig,
|
|
20857
20890
|
evaluateWorkspaceModelPolicy
|
|
20858
20891
|
};
|
|
20859
|
-
//# sourceMappingURL=chunk-
|
|
20892
|
+
//# sourceMappingURL=chunk-MJ3K6ICH.js.map
|