@neon/tools 2.8.0 → 2.9.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/README.md +2 -2
- package/dist/generated/zod.gen.d.ts +312 -312
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +1896 -1426
- package/dist/lib/ergonomic/composed.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +2 -2
- package/dist/operations.gen.js +20 -20
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composed.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/composed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"composed.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/composed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAsD1E,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAqBjC,CAAC;AAEJ,eAAO,MAAM,iCAAiC;;;;;;;;;;kBAM5C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEnC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;kBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;kBAOrC,CAAC;AAIH,eAAO,MAAM,wBAAwB;;;;;;;;;kBASnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;kBAOtC,CAAC;AAOH,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,iBAAiB;;;;;;;yDA0C7D,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;EA8CvD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B5D,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;mDA6BxD,CAAC"}
|
|
@@ -18,7 +18,7 @@ const computeSettingsSchema = z.strictObject({
|
|
|
18
18
|
min_cu: zComputeUnit.optional(),
|
|
19
19
|
max_cu: zComputeUnit.optional(),
|
|
20
20
|
suspend_timeout_seconds: zSuspendTimeoutSeconds.optional()
|
|
21
|
-
}).optional();
|
|
21
|
+
}).describe("Autoscaling limits and suspend timeout for the read-write endpoint.").optional();
|
|
22
22
|
const mapCompute = (compute) => compute === void 0 ? void 0 : {
|
|
23
23
|
minCu: compute.min_cu,
|
|
24
24
|
maxCu: compute.max_cu,
|
|
@@ -114,7 +114,7 @@ const setScheduleInputSchema = z.strictObject({
|
|
|
114
114
|
schedule: z.array(z.strictObject({
|
|
115
115
|
...zBackupScheduleItem.shape,
|
|
116
116
|
frequency: snapshotFrequency
|
|
117
|
-
}))
|
|
117
|
+
})).describe("Schedule entries defining the backup frequency.")
|
|
118
118
|
});
|
|
119
119
|
const createBranchTool = (options) => bindTool(options, {
|
|
120
120
|
operationId: "branches.create",
|
package/dist/operations.gen.js
CHANGED
|
@@ -634,7 +634,7 @@ const operationFactories = {
|
|
|
634
634
|
"project_id": zCreateCredentialPath.shape.project_id,
|
|
635
635
|
"branch_id": zCreateCredentialPath.shape.branch_id,
|
|
636
636
|
"name": zCreateCredentialBody.shape.name,
|
|
637
|
-
"scopes": zCreateCredentialBody.shape.scopes,
|
|
637
|
+
"scopes": zCreateCredentialBody.shape.scopes.describe("Capabilities to grant. The credential may only perform actions in these scopes."),
|
|
638
638
|
"principal_type": zCreateCredentialBody.shape.principal_type
|
|
639
639
|
}),
|
|
640
640
|
annotations: {
|
|
@@ -1180,8 +1180,8 @@ const operationFactories = {
|
|
|
1180
1180
|
"project_id": zCreateProjectBranchFunctionDeploymentPath.shape.project_id,
|
|
1181
1181
|
"branch_id": zCreateProjectBranchFunctionDeploymentPath.shape.branch_id,
|
|
1182
1182
|
"slug": zCreateProjectBranchFunctionDeploymentPath.shape.slug,
|
|
1183
|
-
"zip": z.base64().describe("Base64-encoded
|
|
1184
|
-
"runtime": zCreateProjectBranchFunctionDeploymentBody.shape.runtime,
|
|
1183
|
+
"zip": z.base64().describe("Base64-encoded ZIP of the function source. Omit to reuse the latest bundle; required for the first deployment.").optional(),
|
|
1184
|
+
"runtime": zCreateProjectBranchFunctionDeploymentBody.shape.runtime.describe("The Node.js runtime for the deployment."),
|
|
1185
1185
|
"environment": zCreateProjectBranchFunctionDeploymentBody.shape.environment
|
|
1186
1186
|
}),
|
|
1187
1187
|
annotations: {
|
|
@@ -1259,7 +1259,7 @@ const operationFactories = {
|
|
|
1259
1259
|
inputSchema: z.strictObject({
|
|
1260
1260
|
"project_id": zCreateProjectBranchTriggerPath.shape.project_id,
|
|
1261
1261
|
"branch_id": zCreateProjectBranchTriggerPath.shape.branch_id,
|
|
1262
|
-
"body": zCreateProjectBranchTriggerBody
|
|
1262
|
+
"body": zCreateProjectBranchTriggerBody.describe("Trigger creation payload discriminated by `type`.")
|
|
1263
1263
|
}),
|
|
1264
1264
|
annotations: {
|
|
1265
1265
|
readOnlyHint: false,
|
|
@@ -3873,7 +3873,7 @@ const operationFactories = {
|
|
|
3873
3873
|
title: "Grant project access",
|
|
3874
3874
|
description: "Grants project access to the account associated with the specified email address.",
|
|
3875
3875
|
inputSchema: z.strictObject({
|
|
3876
|
-
"project_id": zGrantPermissionToProjectPath.shape.project_id,
|
|
3876
|
+
"project_id": zGrantPermissionToProjectPath.shape.project_id.describe("The Neon project ID"),
|
|
3877
3877
|
"email": zGrantPermissionToProjectBody.shape.email
|
|
3878
3878
|
}),
|
|
3879
3879
|
annotations: {
|
|
@@ -4621,7 +4621,7 @@ const operationFactories = {
|
|
|
4621
4621
|
title: "List org members and their project roles",
|
|
4622
4622
|
description: "Lists organization members and their per-project roles for an org-owned project.",
|
|
4623
4623
|
inputSchema: z.strictObject({
|
|
4624
|
-
"project_id": zListProjectMembersPath.shape.project_id,
|
|
4624
|
+
"project_id": zListProjectMembersPath.shape.project_id.describe("The Neon project ID"),
|
|
4625
4625
|
"cursor": zListProjectMembersQuery.shape.cursor.optional(),
|
|
4626
4626
|
"limit": zListProjectMembersQuery.shape.limit.optional()
|
|
4627
4627
|
}),
|
|
@@ -4686,7 +4686,7 @@ const operationFactories = {
|
|
|
4686
4686
|
id: "list_project_permissions",
|
|
4687
4687
|
title: "List project access",
|
|
4688
4688
|
description: "Retrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.",
|
|
4689
|
-
inputSchema: z.strictObject({ "project_id": zListProjectPermissionsPath.shape.project_id }),
|
|
4689
|
+
inputSchema: z.strictObject({ "project_id": zListProjectPermissionsPath.shape.project_id.describe("The Neon project ID") }),
|
|
4690
4690
|
annotations: {
|
|
4691
4691
|
readOnlyHint: true,
|
|
4692
4692
|
openWorldHint: false
|
|
@@ -5040,9 +5040,9 @@ const operationFactories = {
|
|
|
5040
5040
|
title: "Remove an org member's role on a project",
|
|
5041
5041
|
description: "Idempotently removes the explicit project grant.",
|
|
5042
5042
|
inputSchema: z.strictObject({
|
|
5043
|
-
"project_id": zRemoveProjectMemberRolePath.shape.project_id,
|
|
5044
|
-
"member_id": zRemoveProjectMemberRolePath.shape.member_id,
|
|
5045
|
-
"confirm_self_lockout": zRemoveProjectMemberRoleQuery.shape.confirm_self_lockout.optional()
|
|
5043
|
+
"project_id": zRemoveProjectMemberRolePath.shape.project_id.describe("The Neon project ID"),
|
|
5044
|
+
"member_id": zRemoveProjectMemberRolePath.shape.member_id.describe("The organization member ID"),
|
|
5045
|
+
"confirm_self_lockout": zRemoveProjectMemberRoleQuery.shape.confirm_self_lockout.describe("Set true to remove your own grant when you would lose manage access.").optional()
|
|
5046
5046
|
}),
|
|
5047
5047
|
annotations: {
|
|
5048
5048
|
readOnlyHint: false,
|
|
@@ -5348,8 +5348,8 @@ const operationFactories = {
|
|
|
5348
5348
|
title: "Revoke project access",
|
|
5349
5349
|
description: "Revokes project access from the user associated with the specified permission `id`.",
|
|
5350
5350
|
inputSchema: z.strictObject({
|
|
5351
|
-
"project_id": zRevokePermissionFromProjectPath.shape.project_id,
|
|
5352
|
-
"permission_id": zRevokePermissionFromProjectPath.shape.permission_id
|
|
5351
|
+
"project_id": zRevokePermissionFromProjectPath.shape.project_id.describe("The Neon project ID"),
|
|
5352
|
+
"permission_id": zRevokePermissionFromProjectPath.shape.permission_id.describe("The permission `id` from listing project access.")
|
|
5353
5353
|
}),
|
|
5354
5354
|
annotations: {
|
|
5355
5355
|
readOnlyHint: false,
|
|
@@ -5624,9 +5624,9 @@ const operationFactories = {
|
|
|
5624
5624
|
title: "Set an org member's role on a project",
|
|
5625
5625
|
description: "Idempotently sets or updates the explicit project grant of the specified org member.",
|
|
5626
5626
|
inputSchema: z.strictObject({
|
|
5627
|
-
"project_id": zSetProjectMemberRolePath.shape.project_id,
|
|
5628
|
-
"member_id": zSetProjectMemberRolePath.shape.member_id,
|
|
5629
|
-
"confirm_self_demotion": zSetProjectMemberRoleQuery.shape.confirm_self_demotion.optional(),
|
|
5627
|
+
"project_id": zSetProjectMemberRolePath.shape.project_id.describe("The Neon project ID"),
|
|
5628
|
+
"member_id": zSetProjectMemberRolePath.shape.member_id.describe("The organization member ID"),
|
|
5629
|
+
"confirm_self_demotion": zSetProjectMemberRoleQuery.shape.confirm_self_demotion.describe("Set true to lower your own role on the project.").optional(),
|
|
5630
5630
|
"role": zSetProjectMemberRoleBody.shape.role
|
|
5631
5631
|
}),
|
|
5632
5632
|
annotations: {
|
|
@@ -6088,7 +6088,7 @@ const operationFactories = {
|
|
|
6088
6088
|
inputSchema: z.strictObject({
|
|
6089
6089
|
"project_id": zUpdateNeonAuthEmailProviderPath.shape.project_id,
|
|
6090
6090
|
"branch_id": zUpdateNeonAuthEmailProviderPath.shape.branch_id,
|
|
6091
|
-
"body": zUpdateNeonAuthEmailProviderBody
|
|
6091
|
+
"body": zUpdateNeonAuthEmailProviderBody.describe("Email provider configuration for the branch's Neon Auth integration.")
|
|
6092
6092
|
}),
|
|
6093
6093
|
annotations: {
|
|
6094
6094
|
readOnlyHint: false,
|
|
@@ -6560,7 +6560,7 @@ const operationFactories = {
|
|
|
6560
6560
|
"branch_id": zUpdateProjectBranchPath.shape.branch_id,
|
|
6561
6561
|
"name": zUpdateProjectBranchBody.shape.branch.shape.name,
|
|
6562
6562
|
"protected": zUpdateProjectBranchBody.shape.branch.shape.protected,
|
|
6563
|
-
"expires_at": zUpdateProjectBranchBody.shape.branch.shape.expires_at
|
|
6563
|
+
"expires_at": zUpdateProjectBranchBody.shape.branch.shape.expires_at.describe("The timestamp when the branch is scheduled to expire and be automatically deleted.")
|
|
6564
6564
|
}),
|
|
6565
6565
|
annotations: {
|
|
6566
6566
|
readOnlyHint: false,
|
|
@@ -6695,7 +6695,7 @@ const operationFactories = {
|
|
|
6695
6695
|
"project_id": zUpdateProjectBranchFunctionPath.shape.project_id,
|
|
6696
6696
|
"branch_id": zUpdateProjectBranchFunctionPath.shape.branch_id,
|
|
6697
6697
|
"slug": zUpdateProjectBranchFunctionPath.shape.slug,
|
|
6698
|
-
"name": zUpdateProjectBranchFunctionBody.shape.name
|
|
6698
|
+
"name": zUpdateProjectBranchFunctionBody.shape.name.describe("New display name for the function.")
|
|
6699
6699
|
}),
|
|
6700
6700
|
annotations: {
|
|
6701
6701
|
readOnlyHint: false,
|
|
@@ -6731,7 +6731,7 @@ const operationFactories = {
|
|
|
6731
6731
|
"project_id": zUpdateProjectBranchTriggerPath.shape.project_id,
|
|
6732
6732
|
"branch_id": zUpdateProjectBranchTriggerPath.shape.branch_id,
|
|
6733
6733
|
"trigger_id": zUpdateProjectBranchTriggerPath.shape.trigger_id,
|
|
6734
|
-
"body": zUpdateProjectBranchTriggerBody
|
|
6734
|
+
"body": zUpdateProjectBranchTriggerBody.describe("Partial trigger update discriminated by `type`.")
|
|
6735
6735
|
}),
|
|
6736
6736
|
annotations: {
|
|
6737
6737
|
readOnlyHint: false,
|
|
@@ -6823,7 +6823,7 @@ const operationFactories = {
|
|
|
6823
6823
|
"project_id": zUpdateSnapshotPath.shape.project_id,
|
|
6824
6824
|
"snapshot_id": zUpdateSnapshotPath.shape.snapshot_id,
|
|
6825
6825
|
"name": zUpdateSnapshotBody.shape.snapshot.shape.name,
|
|
6826
|
-
"expires_at": zUpdateSnapshotBody.shape.snapshot.shape.expires_at
|
|
6826
|
+
"expires_at": zUpdateSnapshotBody.shape.snapshot.shape.expires_at.describe("The date and time when the snapshot will expire.")
|
|
6827
6827
|
}),
|
|
6828
6828
|
annotations: {
|
|
6829
6829
|
readOnlyHint: false,
|