@distilled.cloud/neon 0.18.1 → 0.19.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/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/operations/addProjectJWKS.d.ts +2 -2
- package/lib/operations/addProjectJWKS.d.ts.map +1 -1
- package/lib/operations/addProjectJWKS.js +3 -0
- package/lib/operations/addProjectJWKS.js.map +1 -1
- package/lib/operations/createOrgApiKey.d.ts +4 -0
- package/lib/operations/createOrgApiKey.d.ts.map +1 -1
- package/lib/operations/createOrgApiKey.js +2 -0
- package/lib/operations/createOrgApiKey.js.map +1 -1
- package/lib/operations/createProject.d.ts +12 -2
- package/lib/operations/createProject.d.ts.map +1 -1
- package/lib/operations/createProject.js +8 -0
- package/lib/operations/createProject.js.map +1 -1
- package/lib/operations/createProjectBranch.d.ts +70 -2
- package/lib/operations/createProjectBranch.d.ts.map +1 -1
- package/lib/operations/createProjectBranch.js +34 -0
- package/lib/operations/createProjectBranch.js.map +1 -1
- package/lib/operations/createProjectBranchAnonymized.d.ts +92 -2
- package/lib/operations/createProjectBranchAnonymized.d.ts.map +1 -1
- package/lib/operations/createProjectBranchAnonymized.js +45 -0
- package/lib/operations/createProjectBranchAnonymized.js.map +1 -1
- package/lib/operations/createProjectBranchDatabase.d.ts +2 -2
- package/lib/operations/createProjectBranchDatabase.d.ts.map +1 -1
- package/lib/operations/createProjectBranchDatabase.js +3 -0
- package/lib/operations/createProjectBranchDatabase.js.map +1 -1
- package/lib/operations/createProjectBranchRole.d.ts +2 -2
- package/lib/operations/createProjectBranchRole.d.ts.map +1 -1
- package/lib/operations/createProjectBranchRole.js +3 -0
- package/lib/operations/createProjectBranchRole.js.map +1 -1
- package/lib/operations/createProjectEndpoint.d.ts +2 -2
- package/lib/operations/createProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/createProjectEndpoint.js +3 -0
- package/lib/operations/createProjectEndpoint.js.map +1 -1
- package/lib/operations/createSnapshot.d.ts +6 -2
- package/lib/operations/createSnapshot.d.ts.map +1 -1
- package/lib/operations/createSnapshot.js +5 -0
- package/lib/operations/createSnapshot.js.map +1 -1
- package/lib/operations/deleteProjectBranch.d.ts +22 -2
- package/lib/operations/deleteProjectBranch.d.ts.map +1 -1
- package/lib/operations/deleteProjectBranch.js +17 -0
- package/lib/operations/deleteProjectBranch.js.map +1 -1
- package/lib/operations/deleteProjectBranchDatabase.d.ts +2 -2
- package/lib/operations/deleteProjectBranchDatabase.d.ts.map +1 -1
- package/lib/operations/deleteProjectBranchDatabase.js +3 -0
- package/lib/operations/deleteProjectBranchDatabase.js.map +1 -1
- package/lib/operations/deleteProjectBranchRole.d.ts +2 -2
- package/lib/operations/deleteProjectBranchRole.d.ts.map +1 -1
- package/lib/operations/deleteProjectBranchRole.js +3 -0
- package/lib/operations/deleteProjectBranchRole.js.map +1 -1
- package/lib/operations/deleteProjectEndpoint.d.ts +2 -2
- package/lib/operations/deleteProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/deleteProjectEndpoint.js +3 -0
- package/lib/operations/deleteProjectEndpoint.js.map +1 -1
- package/lib/operations/finalizeRestoreBranch.d.ts +2 -2
- package/lib/operations/finalizeRestoreBranch.d.ts.map +1 -1
- package/lib/operations/finalizeRestoreBranch.js +3 -0
- package/lib/operations/finalizeRestoreBranch.js.map +1 -1
- package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts +1 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts.map +1 -1
- package/lib/operations/getConsumptionHistoryPerProjectV2.js +1 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.js.map +1 -1
- package/lib/operations/getCurrentUserInfo.d.ts +4 -2
- package/lib/operations/getCurrentUserInfo.d.ts.map +1 -1
- package/lib/operations/getCurrentUserInfo.js +2 -0
- package/lib/operations/getCurrentUserInfo.js.map +1 -1
- package/lib/operations/getCurrentUserOrganizations.d.ts +2 -0
- package/lib/operations/getCurrentUserOrganizations.d.ts.map +1 -1
- package/lib/operations/getCurrentUserOrganizations.js +1 -0
- package/lib/operations/getCurrentUserOrganizations.js.map +1 -1
- package/lib/operations/getNeonAuth.d.ts +2 -0
- package/lib/operations/getNeonAuth.d.ts.map +1 -1
- package/lib/operations/getNeonAuth.js +1 -0
- package/lib/operations/getNeonAuth.js.map +1 -1
- package/lib/operations/getNeonAuthPluginConfigs.d.ts +20 -0
- package/lib/operations/getNeonAuthPluginConfigs.d.ts.map +1 -1
- package/lib/operations/getNeonAuthPluginConfigs.js +10 -0
- package/lib/operations/getNeonAuthPluginConfigs.js.map +1 -1
- package/lib/operations/getNeonAuthWebhookConfig.d.ts +2 -2
- package/lib/operations/getNeonAuthWebhookConfig.d.ts.map +1 -1
- package/lib/operations/getNeonAuthWebhookConfig.js +1 -0
- package/lib/operations/getNeonAuthWebhookConfig.js.map +1 -1
- package/lib/operations/getOrganization.d.ts +2 -0
- package/lib/operations/getOrganization.d.ts.map +1 -1
- package/lib/operations/getOrganization.js +1 -0
- package/lib/operations/getOrganization.js.map +1 -1
- package/lib/operations/getOrganizationMembers.d.ts +2 -0
- package/lib/operations/getOrganizationMembers.d.ts.map +1 -1
- package/lib/operations/getOrganizationMembers.js +1 -0
- package/lib/operations/getOrganizationMembers.js.map +1 -1
- package/lib/operations/getProjectBranch.d.ts +10 -0
- package/lib/operations/getProjectBranch.d.ts.map +1 -1
- package/lib/operations/getProjectBranch.js +5 -0
- package/lib/operations/getProjectBranch.js.map +1 -1
- package/lib/operations/getProjectOperation.d.ts +2 -2
- package/lib/operations/getProjectOperation.d.ts.map +1 -1
- package/lib/operations/getProjectOperation.js +3 -0
- package/lib/operations/getProjectOperation.js.map +1 -1
- package/lib/operations/index.d.ts +8 -1
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +8 -1
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/listProjectBranches.d.ts +17 -0
- package/lib/operations/listProjectBranches.d.ts.map +1 -1
- package/lib/operations/listProjectBranches.js +11 -0
- package/lib/operations/listProjectBranches.js.map +1 -1
- package/lib/operations/listProjectOperations.d.ts +2 -2
- package/lib/operations/listProjectOperations.d.ts.map +1 -1
- package/lib/operations/listProjectOperations.js +3 -0
- package/lib/operations/listProjectOperations.js.map +1 -1
- package/lib/operations/listSnapshots.d.ts +4 -0
- package/lib/operations/listSnapshots.d.ts.map +1 -1
- package/lib/operations/listSnapshots.js +2 -0
- package/lib/operations/listSnapshots.js.map +1 -1
- package/lib/operations/recoverProject.d.ts +10 -0
- package/lib/operations/recoverProject.d.ts.map +1 -1
- package/lib/operations/recoverProject.js +5 -0
- package/lib/operations/recoverProject.js.map +1 -1
- package/lib/operations/resetProjectBranchRolePassword.d.ts +2 -2
- package/lib/operations/resetProjectBranchRolePassword.d.ts.map +1 -1
- package/lib/operations/resetProjectBranchRolePassword.js +3 -0
- package/lib/operations/resetProjectBranchRolePassword.js.map +1 -1
- package/lib/operations/restartProjectEndpoint.d.ts +2 -2
- package/lib/operations/restartProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/restartProjectEndpoint.js +3 -0
- package/lib/operations/restartProjectEndpoint.js.map +1 -1
- package/lib/operations/restoreProjectBranch.d.ts +12 -2
- package/lib/operations/restoreProjectBranch.d.ts.map +1 -1
- package/lib/operations/restoreProjectBranch.js +8 -0
- package/lib/operations/restoreProjectBranch.js.map +1 -1
- package/lib/operations/restoreSnapshot.d.ts +12 -2
- package/lib/operations/restoreSnapshot.d.ts.map +1 -1
- package/lib/operations/restoreSnapshot.js +8 -0
- package/lib/operations/restoreSnapshot.js.map +1 -1
- package/lib/operations/sendNeonAuthTestEmail.d.ts +14 -0
- package/lib/operations/sendNeonAuthTestEmail.d.ts.map +1 -1
- package/lib/operations/sendNeonAuthTestEmail.js +8 -0
- package/lib/operations/sendNeonAuthTestEmail.js.map +1 -1
- package/lib/operations/setDefaultProjectBranch.d.ts +12 -2
- package/lib/operations/setDefaultProjectBranch.d.ts.map +1 -1
- package/lib/operations/setDefaultProjectBranch.js +8 -0
- package/lib/operations/setDefaultProjectBranch.js.map +1 -1
- package/lib/operations/startProjectEndpoint.d.ts +2 -2
- package/lib/operations/startProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/startProjectEndpoint.js +3 -0
- package/lib/operations/startProjectEndpoint.js.map +1 -1
- package/lib/operations/suspendProjectEndpoint.d.ts +2 -2
- package/lib/operations/suspendProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/suspendProjectEndpoint.js +3 -0
- package/lib/operations/suspendProjectEndpoint.js.map +1 -1
- package/lib/operations/updateNeonAuthWebhookConfig.d.ts +4 -4
- package/lib/operations/updateNeonAuthWebhookConfig.d.ts.map +1 -1
- package/lib/operations/updateNeonAuthWebhookConfig.js +2 -0
- package/lib/operations/updateNeonAuthWebhookConfig.js.map +1 -1
- package/lib/operations/updateProject.d.ts +2 -2
- package/lib/operations/updateProject.d.ts.map +1 -1
- package/lib/operations/updateProject.js +3 -0
- package/lib/operations/updateProject.js.map +1 -1
- package/lib/operations/updateProjectBranch.d.ts +12 -2
- package/lib/operations/updateProjectBranch.d.ts.map +1 -1
- package/lib/operations/updateProjectBranch.js +8 -0
- package/lib/operations/updateProjectBranch.js.map +1 -1
- package/lib/operations/updateProjectBranchDatabase.d.ts +2 -2
- package/lib/operations/updateProjectBranchDatabase.d.ts.map +1 -1
- package/lib/operations/updateProjectBranchDatabase.js +3 -0
- package/lib/operations/updateProjectBranchDatabase.js.map +1 -1
- package/lib/operations/updateProjectEndpoint.d.ts +2 -2
- package/lib/operations/updateProjectEndpoint.d.ts.map +1 -1
- package/lib/operations/updateProjectEndpoint.js +3 -0
- package/lib/operations/updateProjectEndpoint.js.map +1 -1
- package/lib/operations/updateSnapshot.d.ts +4 -0
- package/lib/operations/updateSnapshot.d.ts.map +1 -1
- package/lib/operations/updateSnapshot.js +2 -0
- package/lib/operations/updateSnapshot.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/operations/addProjectJWKS.ts +3 -0
- package/src/operations/createOrgApiKey.ts +2 -0
- package/src/operations/createProject.ts +10 -0
- package/src/operations/createProjectBranch.ts +54 -0
- package/src/operations/createProjectBranchAnonymized.ts +71 -0
- package/src/operations/createProjectBranchDatabase.ts +3 -0
- package/src/operations/createProjectBranchRole.ts +3 -0
- package/src/operations/createProjectEndpoint.ts +3 -0
- package/src/operations/createSnapshot.ts +5 -0
- package/src/operations/deleteProjectBranch.ts +19 -0
- package/src/operations/deleteProjectBranchDatabase.ts +3 -0
- package/src/operations/deleteProjectBranchRole.ts +3 -0
- package/src/operations/deleteProjectEndpoint.ts +3 -0
- package/src/operations/finalizeRestoreBranch.ts +3 -0
- package/src/operations/getConsumptionHistoryPerProjectV2.ts +1 -0
- package/src/operations/getCurrentUserInfo.ts +2 -0
- package/src/operations/getCurrentUserOrganizations.ts +1 -0
- package/src/operations/getNeonAuth.ts +1 -0
- package/src/operations/getNeonAuthPluginConfigs.ts +14 -0
- package/src/operations/getNeonAuthWebhookConfig.ts +1 -0
- package/src/operations/getOrganization.ts +1 -0
- package/src/operations/getOrganizationMembers.ts +1 -0
- package/src/operations/getProjectBranch.ts +7 -0
- package/src/operations/getProjectOperation.ts +3 -0
- package/src/operations/index.ts +8 -1
- package/src/operations/listProjectBranches.ts +13 -0
- package/src/operations/listProjectOperations.ts +3 -0
- package/src/operations/listSnapshots.ts +2 -0
- package/src/operations/recoverProject.ts +7 -0
- package/src/operations/resetProjectBranchRolePassword.ts +3 -0
- package/src/operations/restartProjectEndpoint.ts +3 -0
- package/src/operations/restoreProjectBranch.ts +10 -0
- package/src/operations/restoreSnapshot.ts +10 -0
- package/src/operations/sendNeonAuthTestEmail.ts +8 -0
- package/src/operations/setDefaultProjectBranch.ts +10 -0
- package/src/operations/startProjectEndpoint.ts +3 -0
- package/src/operations/suspendProjectEndpoint.ts +3 -0
- package/src/operations/updateNeonAuthWebhookConfig.ts +2 -0
- package/src/operations/updateProject.ts +3 -0
- package/src/operations/updateProjectBranch.ts +10 -0
- package/src/operations/updateProjectBranchDatabase.ts +3 -0
- package/src/operations/updateProjectEndpoint.ts +3 -0
- package/src/operations/updateSnapshot.ts +2 -0
|
@@ -17,6 +17,8 @@ export declare const UpdateSnapshotOutput: Schema.Struct<{
|
|
|
17
17
|
readonly created_at: Schema.String;
|
|
18
18
|
readonly expires_at: Schema.optional<Schema.String>;
|
|
19
19
|
readonly manual: Schema.optional<Schema.Boolean>;
|
|
20
|
+
readonly full_size: Schema.optional<Schema.Number>;
|
|
21
|
+
readonly diff_size: Schema.optional<Schema.Number>;
|
|
20
22
|
}>;
|
|
21
23
|
}>;
|
|
22
24
|
export type UpdateSnapshotOutput = typeof UpdateSnapshotOutput.Type;
|
|
@@ -38,7 +40,9 @@ export declare const updateSnapshot: import("@distilled.cloud/core/client").Oper
|
|
|
38
40
|
}, {
|
|
39
41
|
readonly snapshot: {
|
|
40
42
|
readonly created_at: string;
|
|
43
|
+
readonly diff_size?: number | undefined;
|
|
41
44
|
readonly expires_at?: string | undefined;
|
|
45
|
+
readonly full_size?: number | undefined;
|
|
42
46
|
readonly id: string;
|
|
43
47
|
readonly lsn?: string | undefined;
|
|
44
48
|
readonly manual?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateSnapshot.d.ts","sourceRoot":"","sources":["../../src/operations/updateSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;;;;EAW/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"updateSnapshot.d.ts","sourceRoot":"","sources":["../../src/operations/updateSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;;;;EAW/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;EAa/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;kDAGxB,CAAC"}
|
|
@@ -23,6 +23,8 @@ export const UpdateSnapshotOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
23
23
|
created_at: Schema.String,
|
|
24
24
|
expires_at: Schema.optional(Schema.String),
|
|
25
25
|
manual: Schema.optional(Schema.Boolean),
|
|
26
|
+
full_size: Schema.optional(Schema.Number),
|
|
27
|
+
diff_size: Schema.optional(Schema.Number),
|
|
26
28
|
}),
|
|
27
29
|
});
|
|
28
30
|
// The operation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateSnapshot.js","sourceRoot":"","sources":["../../src/operations/updateSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC9C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACrC,CAAC;CACH,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACnC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAChD,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"updateSnapshot.js","sourceRoot":"","sources":["../../src/operations/updateSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC9C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACrC,CAAC;CACH,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACnC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAChD,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACvC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC1C,CAAC;CACH,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/neon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"specs:update": "git -C specs/distilled-spec-neon fetch && git -C specs/distilled-spec-neon checkout main && git -C specs/distilled-spec-neon pull"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@distilled.cloud/core": "0.
|
|
77
|
+
"@distilled.cloud/core": "0.19.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
package/src/index.ts
CHANGED
|
@@ -59,10 +59,13 @@ export const AddProjectJWKSOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
59
59
|
"sync_dbs_and_roles_from_compute",
|
|
60
60
|
"apply_schema_from_branch",
|
|
61
61
|
"timeline_mark_invisible",
|
|
62
|
+
"timeline_update_protected_config",
|
|
62
63
|
"prewarm_replica",
|
|
63
64
|
"promote_replica",
|
|
64
65
|
"set_storage_non_dirty",
|
|
65
66
|
"swap_binding_id",
|
|
67
|
+
"finalize_migration",
|
|
68
|
+
"mark_migration_prepared",
|
|
66
69
|
]),
|
|
67
70
|
status: Schema.Literals([
|
|
68
71
|
"scheduling",
|
|
@@ -5,6 +5,8 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export const CreateOrgApiKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
7
|
org_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
key_name: Schema.String,
|
|
9
|
+
project_id: Schema.optional(Schema.String),
|
|
8
10
|
}).pipe(T.Http({ method: "POST", path: "/organizations/{org_id}/api_keys" }));
|
|
9
11
|
export type CreateOrgApiKeyInput = typeof CreateOrgApiKeyInput.Type;
|
|
10
12
|
|
|
@@ -253,10 +253,13 @@ export const CreateProjectOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
253
253
|
"sync_dbs_and_roles_from_compute",
|
|
254
254
|
"apply_schema_from_branch",
|
|
255
255
|
"timeline_mark_invisible",
|
|
256
|
+
"timeline_update_protected_config",
|
|
256
257
|
"prewarm_replica",
|
|
257
258
|
"promote_replica",
|
|
258
259
|
"set_storage_non_dirty",
|
|
259
260
|
"swap_binding_id",
|
|
261
|
+
"finalize_migration",
|
|
262
|
+
"mark_migration_prepared",
|
|
260
263
|
]),
|
|
261
264
|
status: Schema.Literals([
|
|
262
265
|
"scheduling",
|
|
@@ -319,6 +322,13 @@ export const CreateProjectOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
319
322
|
}),
|
|
320
323
|
),
|
|
321
324
|
),
|
|
325
|
+
recovery: Schema.optional(
|
|
326
|
+
Schema.Struct({
|
|
327
|
+
deleted_at: Schema.String,
|
|
328
|
+
recoverable_until: Schema.String,
|
|
329
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
330
|
+
}),
|
|
331
|
+
),
|
|
322
332
|
}),
|
|
323
333
|
endpoints: Schema.Array(
|
|
324
334
|
Schema.Struct({
|
|
@@ -7,6 +7,50 @@ import { SensitiveString } from "../sensitive.ts";
|
|
|
7
7
|
export const CreateProjectBranchInput =
|
|
8
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
9
|
project_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
endpoints: Schema.optional(
|
|
11
|
+
Schema.Array(
|
|
12
|
+
Schema.Struct({
|
|
13
|
+
type: Schema.Literals(["read_only", "read_write"]),
|
|
14
|
+
settings: Schema.optional(
|
|
15
|
+
Schema.Struct({
|
|
16
|
+
pg_settings: Schema.optional(
|
|
17
|
+
Schema.Record(Schema.String, Schema.String),
|
|
18
|
+
),
|
|
19
|
+
pgbouncer_settings: Schema.optional(
|
|
20
|
+
Schema.Record(Schema.String, Schema.String),
|
|
21
|
+
),
|
|
22
|
+
preload_libraries: Schema.optional(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
use_defaults: Schema.optional(Schema.Boolean),
|
|
25
|
+
enabled_libraries: Schema.optional(
|
|
26
|
+
Schema.Array(Schema.String),
|
|
27
|
+
),
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
autoscaling_limit_min_cu: Schema.optional(Schema.Number),
|
|
33
|
+
autoscaling_limit_max_cu: Schema.optional(Schema.Number),
|
|
34
|
+
provisioner: Schema.optional(Schema.String),
|
|
35
|
+
suspend_timeout_seconds: Schema.optional(Schema.Number),
|
|
36
|
+
}),
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
branch: Schema.optional(
|
|
40
|
+
Schema.Struct({
|
|
41
|
+
parent_id: Schema.optional(Schema.String),
|
|
42
|
+
name: Schema.optional(Schema.String),
|
|
43
|
+
parent_lsn: Schema.optional(Schema.String),
|
|
44
|
+
parent_timestamp: Schema.optional(Schema.String),
|
|
45
|
+
protected: Schema.optional(Schema.Boolean),
|
|
46
|
+
archived: Schema.optional(Schema.Boolean),
|
|
47
|
+
init_source: Schema.optional(Schema.String),
|
|
48
|
+
expires_at: Schema.optional(Schema.String),
|
|
49
|
+
}),
|
|
50
|
+
),
|
|
51
|
+
annotation_value: Schema.optional(
|
|
52
|
+
Schema.Record(Schema.String, Schema.String),
|
|
53
|
+
),
|
|
10
54
|
}).pipe(T.Http({ method: "POST", path: "/projects/{project_id}/branches" }));
|
|
11
55
|
export type CreateProjectBranchInput = typeof CreateProjectBranchInput.Type;
|
|
12
56
|
|
|
@@ -56,6 +100,13 @@ export const CreateProjectBranchOutput =
|
|
|
56
100
|
}),
|
|
57
101
|
),
|
|
58
102
|
),
|
|
103
|
+
recovery: Schema.optional(
|
|
104
|
+
Schema.Struct({
|
|
105
|
+
deleted_at: Schema.String,
|
|
106
|
+
recoverable_until: Schema.String,
|
|
107
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
108
|
+
}),
|
|
109
|
+
),
|
|
59
110
|
}),
|
|
60
111
|
endpoints: Schema.Array(
|
|
61
112
|
Schema.Struct({
|
|
@@ -134,10 +185,13 @@ export const CreateProjectBranchOutput =
|
|
|
134
185
|
"sync_dbs_and_roles_from_compute",
|
|
135
186
|
"apply_schema_from_branch",
|
|
136
187
|
"timeline_mark_invisible",
|
|
188
|
+
"timeline_update_protected_config",
|
|
137
189
|
"prewarm_replica",
|
|
138
190
|
"promote_replica",
|
|
139
191
|
"set_storage_non_dirty",
|
|
140
192
|
"swap_binding_id",
|
|
193
|
+
"finalize_migration",
|
|
194
|
+
"mark_migration_prepared",
|
|
141
195
|
]),
|
|
142
196
|
status: Schema.Literals([
|
|
143
197
|
"scheduling",
|
|
@@ -7,6 +7,67 @@ import { SensitiveString } from "../sensitive.ts";
|
|
|
7
7
|
export const CreateProjectBranchAnonymizedInput =
|
|
8
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
9
|
project_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
annotation_value: Schema.optional(
|
|
11
|
+
Schema.Record(Schema.String, Schema.String),
|
|
12
|
+
),
|
|
13
|
+
branch_create: Schema.optional(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
endpoints: Schema.optional(
|
|
16
|
+
Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
type: Schema.Literals(["read_only", "read_write"]),
|
|
19
|
+
settings: Schema.optional(
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
pg_settings: Schema.optional(
|
|
22
|
+
Schema.Record(Schema.String, Schema.String),
|
|
23
|
+
),
|
|
24
|
+
pgbouncer_settings: Schema.optional(
|
|
25
|
+
Schema.Record(Schema.String, Schema.String),
|
|
26
|
+
),
|
|
27
|
+
preload_libraries: Schema.optional(
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
use_defaults: Schema.optional(Schema.Boolean),
|
|
30
|
+
enabled_libraries: Schema.optional(
|
|
31
|
+
Schema.Array(Schema.String),
|
|
32
|
+
),
|
|
33
|
+
}),
|
|
34
|
+
),
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
autoscaling_limit_min_cu: Schema.optional(Schema.Number),
|
|
38
|
+
autoscaling_limit_max_cu: Schema.optional(Schema.Number),
|
|
39
|
+
provisioner: Schema.optional(Schema.String),
|
|
40
|
+
suspend_timeout_seconds: Schema.optional(Schema.Number),
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
),
|
|
44
|
+
branch: Schema.optional(
|
|
45
|
+
Schema.Struct({
|
|
46
|
+
parent_id: Schema.optional(Schema.String),
|
|
47
|
+
name: Schema.optional(Schema.String),
|
|
48
|
+
parent_lsn: Schema.optional(Schema.String),
|
|
49
|
+
parent_timestamp: Schema.optional(Schema.String),
|
|
50
|
+
protected: Schema.optional(Schema.Boolean),
|
|
51
|
+
archived: Schema.optional(Schema.Boolean),
|
|
52
|
+
init_source: Schema.optional(Schema.String),
|
|
53
|
+
expires_at: Schema.optional(Schema.String),
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
}),
|
|
57
|
+
),
|
|
58
|
+
masking_rules: Schema.optional(
|
|
59
|
+
Schema.Array(
|
|
60
|
+
Schema.Struct({
|
|
61
|
+
database_name: Schema.String,
|
|
62
|
+
schema_name: Schema.String,
|
|
63
|
+
table_name: Schema.String,
|
|
64
|
+
column_name: Schema.String,
|
|
65
|
+
masking_function: Schema.optional(Schema.String),
|
|
66
|
+
masking_value: Schema.optional(Schema.String),
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
),
|
|
70
|
+
start_anonymization: Schema.optional(Schema.Boolean),
|
|
10
71
|
}).pipe(
|
|
11
72
|
T.Http({
|
|
12
73
|
method: "POST",
|
|
@@ -62,6 +123,13 @@ export const CreateProjectBranchAnonymizedOutput =
|
|
|
62
123
|
}),
|
|
63
124
|
),
|
|
64
125
|
),
|
|
126
|
+
recovery: Schema.optional(
|
|
127
|
+
Schema.Struct({
|
|
128
|
+
deleted_at: Schema.String,
|
|
129
|
+
recoverable_until: Schema.String,
|
|
130
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
131
|
+
}),
|
|
132
|
+
),
|
|
65
133
|
}),
|
|
66
134
|
endpoints: Schema.Array(
|
|
67
135
|
Schema.Struct({
|
|
@@ -140,10 +208,13 @@ export const CreateProjectBranchAnonymizedOutput =
|
|
|
140
208
|
"sync_dbs_and_roles_from_compute",
|
|
141
209
|
"apply_schema_from_branch",
|
|
142
210
|
"timeline_mark_invisible",
|
|
211
|
+
"timeline_update_protected_config",
|
|
143
212
|
"prewarm_replica",
|
|
144
213
|
"promote_replica",
|
|
145
214
|
"set_storage_non_dirty",
|
|
146
215
|
"swap_binding_id",
|
|
216
|
+
"finalize_migration",
|
|
217
|
+
"mark_migration_prepared",
|
|
147
218
|
]),
|
|
148
219
|
status: Schema.Literals([
|
|
149
220
|
"scheduling",
|
|
@@ -69,10 +69,13 @@ export const CreateProjectBranchDatabaseOutput =
|
|
|
69
69
|
"sync_dbs_and_roles_from_compute",
|
|
70
70
|
"apply_schema_from_branch",
|
|
71
71
|
"timeline_mark_invisible",
|
|
72
|
+
"timeline_update_protected_config",
|
|
72
73
|
"prewarm_replica",
|
|
73
74
|
"promote_replica",
|
|
74
75
|
"set_storage_non_dirty",
|
|
75
76
|
"swap_binding_id",
|
|
77
|
+
"finalize_migration",
|
|
78
|
+
"mark_migration_prepared",
|
|
76
79
|
]),
|
|
77
80
|
status: Schema.Literals([
|
|
78
81
|
"scheduling",
|
|
@@ -66,10 +66,13 @@ export const CreateProjectBranchRoleOutput =
|
|
|
66
66
|
"sync_dbs_and_roles_from_compute",
|
|
67
67
|
"apply_schema_from_branch",
|
|
68
68
|
"timeline_mark_invisible",
|
|
69
|
+
"timeline_update_protected_config",
|
|
69
70
|
"prewarm_replica",
|
|
70
71
|
"promote_replica",
|
|
71
72
|
"set_storage_non_dirty",
|
|
72
73
|
"swap_binding_id",
|
|
74
|
+
"finalize_migration",
|
|
75
|
+
"mark_migration_prepared",
|
|
73
76
|
]),
|
|
74
77
|
status: Schema.Literals([
|
|
75
78
|
"scheduling",
|
|
@@ -118,10 +118,13 @@ export const CreateProjectEndpointOutput =
|
|
|
118
118
|
"sync_dbs_and_roles_from_compute",
|
|
119
119
|
"apply_schema_from_branch",
|
|
120
120
|
"timeline_mark_invisible",
|
|
121
|
+
"timeline_update_protected_config",
|
|
121
122
|
"prewarm_replica",
|
|
122
123
|
"promote_replica",
|
|
123
124
|
"set_storage_non_dirty",
|
|
124
125
|
"swap_binding_id",
|
|
126
|
+
"finalize_migration",
|
|
127
|
+
"mark_migration_prepared",
|
|
125
128
|
]),
|
|
126
129
|
status: Schema.Literals([
|
|
127
130
|
"scheduling",
|
|
@@ -29,6 +29,8 @@ export const CreateSnapshotOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
29
29
|
created_at: Schema.String,
|
|
30
30
|
expires_at: Schema.optional(Schema.String),
|
|
31
31
|
manual: Schema.optional(Schema.Boolean),
|
|
32
|
+
full_size: Schema.optional(Schema.Number),
|
|
33
|
+
diff_size: Schema.optional(Schema.Number),
|
|
32
34
|
}),
|
|
33
35
|
operations: Schema.Array(
|
|
34
36
|
Schema.Struct({
|
|
@@ -62,10 +64,13 @@ export const CreateSnapshotOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
62
64
|
"sync_dbs_and_roles_from_compute",
|
|
63
65
|
"apply_schema_from_branch",
|
|
64
66
|
"timeline_mark_invisible",
|
|
67
|
+
"timeline_update_protected_config",
|
|
65
68
|
"prewarm_replica",
|
|
66
69
|
"promote_replica",
|
|
67
70
|
"set_storage_non_dirty",
|
|
68
71
|
"swap_binding_id",
|
|
72
|
+
"finalize_migration",
|
|
73
|
+
"mark_migration_prepared",
|
|
69
74
|
]),
|
|
70
75
|
status: Schema.Literals([
|
|
71
76
|
"scheduling",
|
|
@@ -8,6 +8,7 @@ export const DeleteProjectBranchInput =
|
|
|
8
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
9
|
project_id: Schema.String.pipe(T.PathParam()),
|
|
10
10
|
branch_id: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
hard_delete: Schema.optional(Schema.Boolean),
|
|
11
12
|
}).pipe(
|
|
12
13
|
T.Http({
|
|
13
14
|
method: "DELETE",
|
|
@@ -62,6 +63,13 @@ export const DeleteProjectBranchOutput =
|
|
|
62
63
|
}),
|
|
63
64
|
),
|
|
64
65
|
),
|
|
66
|
+
recovery: Schema.optional(
|
|
67
|
+
Schema.Struct({
|
|
68
|
+
deleted_at: Schema.String,
|
|
69
|
+
recoverable_until: Schema.String,
|
|
70
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
65
73
|
}),
|
|
66
74
|
operations: Schema.Array(
|
|
67
75
|
Schema.Struct({
|
|
@@ -95,10 +103,13 @@ export const DeleteProjectBranchOutput =
|
|
|
95
103
|
"sync_dbs_and_roles_from_compute",
|
|
96
104
|
"apply_schema_from_branch",
|
|
97
105
|
"timeline_mark_invisible",
|
|
106
|
+
"timeline_update_protected_config",
|
|
98
107
|
"prewarm_replica",
|
|
99
108
|
"promote_replica",
|
|
100
109
|
"set_storage_non_dirty",
|
|
101
110
|
"swap_binding_id",
|
|
111
|
+
"finalize_migration",
|
|
112
|
+
"mark_migration_prepared",
|
|
102
113
|
]),
|
|
103
114
|
status: Schema.Literals([
|
|
104
115
|
"scheduling",
|
|
@@ -135,9 +146,17 @@ export type DeleteProjectBranchOutput = typeof DeleteProjectBranchOutput.Type;
|
|
|
135
146
|
* The deletion occurs after all operations finish.
|
|
136
147
|
* You cannot delete a project's root or default branch, and you cannot delete a branch that has a child branch.
|
|
137
148
|
* A project must have at least one branch.
|
|
149
|
+
* By default, deleted branches can be recovered within a 7-day grace period.
|
|
150
|
+
* Use the `hard_delete` parameter to permanently delete the branch immediately without a recovery window.
|
|
151
|
+
* Soft delete and branch recovery are in preview and not available to all users.
|
|
138
152
|
*
|
|
139
153
|
* @param project_id - The Neon project ID
|
|
140
154
|
* @param branch_id - The branch ID
|
|
155
|
+
* @param hard_delete - If true, the branch is permanently deleted immediately without a recovery window.
|
|
156
|
+
If false (default), the branch can be recovered within 7 days via the recover endpoint.
|
|
157
|
+
|
|
158
|
+
This parameter is part of the Branch Recovery feature, which is in preview and not available to all users.
|
|
159
|
+
|
|
141
160
|
*/
|
|
142
161
|
export const deleteProjectBranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
143
162
|
inputSchema: DeleteProjectBranchInput,
|
|
@@ -61,10 +61,13 @@ export const DeleteProjectBranchDatabaseOutput =
|
|
|
61
61
|
"sync_dbs_and_roles_from_compute",
|
|
62
62
|
"apply_schema_from_branch",
|
|
63
63
|
"timeline_mark_invisible",
|
|
64
|
+
"timeline_update_protected_config",
|
|
64
65
|
"prewarm_replica",
|
|
65
66
|
"promote_replica",
|
|
66
67
|
"set_storage_non_dirty",
|
|
67
68
|
"swap_binding_id",
|
|
69
|
+
"finalize_migration",
|
|
70
|
+
"mark_migration_prepared",
|
|
68
71
|
]),
|
|
69
72
|
status: Schema.Literals([
|
|
70
73
|
"scheduling",
|
|
@@ -63,10 +63,13 @@ export const DeleteProjectBranchRoleOutput =
|
|
|
63
63
|
"sync_dbs_and_roles_from_compute",
|
|
64
64
|
"apply_schema_from_branch",
|
|
65
65
|
"timeline_mark_invisible",
|
|
66
|
+
"timeline_update_protected_config",
|
|
66
67
|
"prewarm_replica",
|
|
67
68
|
"promote_replica",
|
|
68
69
|
"set_storage_non_dirty",
|
|
69
70
|
"swap_binding_id",
|
|
71
|
+
"finalize_migration",
|
|
72
|
+
"mark_migration_prepared",
|
|
70
73
|
]),
|
|
71
74
|
status: Schema.Literals([
|
|
72
75
|
"scheduling",
|
|
@@ -94,10 +94,13 @@ export const DeleteProjectEndpointOutput =
|
|
|
94
94
|
"sync_dbs_and_roles_from_compute",
|
|
95
95
|
"apply_schema_from_branch",
|
|
96
96
|
"timeline_mark_invisible",
|
|
97
|
+
"timeline_update_protected_config",
|
|
97
98
|
"prewarm_replica",
|
|
98
99
|
"promote_replica",
|
|
99
100
|
"set_storage_non_dirty",
|
|
100
101
|
"swap_binding_id",
|
|
102
|
+
"finalize_migration",
|
|
103
|
+
"mark_migration_prepared",
|
|
101
104
|
]),
|
|
102
105
|
status: Schema.Literals([
|
|
103
106
|
"scheduling",
|
|
@@ -51,10 +51,13 @@ export const FinalizeRestoreBranchOutput =
|
|
|
51
51
|
"sync_dbs_and_roles_from_compute",
|
|
52
52
|
"apply_schema_from_branch",
|
|
53
53
|
"timeline_mark_invisible",
|
|
54
|
+
"timeline_update_protected_config",
|
|
54
55
|
"prewarm_replica",
|
|
55
56
|
"promote_replica",
|
|
56
57
|
"set_storage_non_dirty",
|
|
57
58
|
"swap_binding_id",
|
|
59
|
+
"finalize_migration",
|
|
60
|
+
"mark_migration_prepared",
|
|
58
61
|
]),
|
|
59
62
|
status: Schema.Literals([
|
|
60
63
|
"scheduling",
|
|
@@ -108,6 +108,7 @@ Possible values:
|
|
|
108
108
|
- `public_network_transfer_bytes`
|
|
109
109
|
- `private_network_transfer_bytes`
|
|
110
110
|
- `extra_branches_month`
|
|
111
|
+
- `snapshot_storage_bytes_month`
|
|
111
112
|
|
|
112
113
|
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
113
114
|
- As an array of parameter values: `metrics=compute_unit_seconds&metrics=extra_branches_month`
|
|
@@ -69,6 +69,7 @@ export const GetCurrentUserInfoOutput =
|
|
|
69
69
|
"staff",
|
|
70
70
|
"trial",
|
|
71
71
|
"sponsorship",
|
|
72
|
+
"shared_payment_token",
|
|
72
73
|
]),
|
|
73
74
|
quota_reset_at_last: Schema.String,
|
|
74
75
|
name: Schema.String,
|
|
@@ -94,6 +95,7 @@ export const GetCurrentUserInfoOutput =
|
|
|
94
95
|
),
|
|
95
96
|
}),
|
|
96
97
|
),
|
|
98
|
+
spending_limit_cents: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
97
99
|
}),
|
|
98
100
|
),
|
|
99
101
|
auth_accounts: Schema.Array(
|
|
@@ -25,6 +25,7 @@ export const GetNeonAuthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
25
25
|
transfer_status: Schema.optional(Schema.Literals(["initiated", "finished"])),
|
|
26
26
|
jwks_url: Schema.String,
|
|
27
27
|
base_url: Schema.optional(Schema.String),
|
|
28
|
+
name: Schema.optional(Schema.String),
|
|
28
29
|
});
|
|
29
30
|
export type GetNeonAuthOutput = typeof GetNeonAuthOutput.Type;
|
|
30
31
|
|
|
@@ -29,6 +29,20 @@ export const GetNeonAuthPluginConfigsOutput =
|
|
|
29
29
|
send_invitation_email: Schema.Boolean,
|
|
30
30
|
}),
|
|
31
31
|
),
|
|
32
|
+
magic_link: Schema.optional(
|
|
33
|
+
Schema.Struct({
|
|
34
|
+
enabled: Schema.Boolean,
|
|
35
|
+
expires_in: Schema.Number,
|
|
36
|
+
disable_sign_up: Schema.Boolean,
|
|
37
|
+
}),
|
|
38
|
+
),
|
|
39
|
+
phone_number: Schema.optional(
|
|
40
|
+
Schema.Struct({
|
|
41
|
+
enabled: Schema.Boolean,
|
|
42
|
+
otp_expires_in: Schema.optional(Schema.Number),
|
|
43
|
+
allowed_attempts: Schema.optional(Schema.Number),
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
32
46
|
email_provider: Schema.optional(Schema.Unknown),
|
|
33
47
|
email_and_password: Schema.optional(
|
|
34
48
|
Schema.Struct({
|
|
@@ -18,6 +18,7 @@ export const GetOrganizationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
18
18
|
managed_by: Schema.String,
|
|
19
19
|
updated_at: Schema.String,
|
|
20
20
|
allow_hipaa_projects: Schema.optional(Schema.Boolean),
|
|
21
|
+
require_mfa: Schema.optional(Schema.Boolean),
|
|
21
22
|
});
|
|
22
23
|
export type GetOrganizationOutput = typeof GetOrganizationOutput.Type;
|
|
23
24
|
|
|
@@ -61,6 +61,13 @@ export const GetProjectBranchOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
61
61
|
}),
|
|
62
62
|
),
|
|
63
63
|
),
|
|
64
|
+
recovery: Schema.optional(
|
|
65
|
+
Schema.Struct({
|
|
66
|
+
deleted_at: Schema.String,
|
|
67
|
+
recoverable_until: Schema.String,
|
|
68
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
69
|
+
}),
|
|
70
|
+
),
|
|
64
71
|
}),
|
|
65
72
|
annotation: Schema.Struct({
|
|
66
73
|
object: Schema.Struct({
|
|
@@ -50,10 +50,13 @@ export const GetProjectOperationOutput =
|
|
|
50
50
|
"sync_dbs_and_roles_from_compute",
|
|
51
51
|
"apply_schema_from_branch",
|
|
52
52
|
"timeline_mark_invisible",
|
|
53
|
+
"timeline_update_protected_config",
|
|
53
54
|
"prewarm_replica",
|
|
54
55
|
"promote_replica",
|
|
55
56
|
"set_storage_non_dirty",
|
|
56
57
|
"swap_binding_id",
|
|
58
|
+
"finalize_migration",
|
|
59
|
+
"mark_migration_prepared",
|
|
57
60
|
]),
|
|
58
61
|
status: Schema.Literals([
|
|
59
62
|
"scheduling",
|
package/src/operations/index.ts
CHANGED
|
@@ -49,6 +49,10 @@ export * from "./getNeonAuthAllowLocalhost.ts";
|
|
|
49
49
|
export * from "./updateNeonAuthAllowLocalhost.ts";
|
|
50
50
|
export * from "./getNeonAuthPluginConfigs.ts";
|
|
51
51
|
export * from "./updateNeonAuthOrganizationPlugin.ts";
|
|
52
|
+
export * from "./updateNeonAuthConfig.ts";
|
|
53
|
+
export * from "./updateNeonAuthMagicLinkPlugin.ts";
|
|
54
|
+
export * from "./getNeonAuthPhoneNumberPlugin.ts";
|
|
55
|
+
export * from "./updateNeonAuthPhoneNumberPlugin.ts";
|
|
52
56
|
export * from "./getNeonAuthWebhookConfig.ts";
|
|
53
57
|
export * from "./updateNeonAuthWebhookConfig.ts";
|
|
54
58
|
export * from "./listProjectBranches.ts";
|
|
@@ -66,6 +70,7 @@ export * from "./updateMaskingRules.ts";
|
|
|
66
70
|
export * from "./getAnonymizedBranchStatus.ts";
|
|
67
71
|
export * from "./startAnonymization.ts";
|
|
68
72
|
export * from "./setDefaultProjectBranch.ts";
|
|
73
|
+
export * from "./recoverProjectBranch.ts";
|
|
69
74
|
export * from "./finalizeRestoreBranch.ts";
|
|
70
75
|
export * from "./listProjectBranchEndpoints.ts";
|
|
71
76
|
export * from "./listProjectBranchDatabases.ts";
|
|
@@ -96,6 +101,9 @@ export * from "./getOrganization.ts";
|
|
|
96
101
|
export * from "./listOrgApiKeys.ts";
|
|
97
102
|
export * from "./createOrgApiKey.ts";
|
|
98
103
|
export * from "./revokeOrgApiKey.ts";
|
|
104
|
+
export * from "./getOrganizationSpendingLimit.ts";
|
|
105
|
+
export * from "./setOrganizationSpendingLimit.ts";
|
|
106
|
+
export * from "./deleteOrganizationSpendingLimit.ts";
|
|
99
107
|
export * from "./getOrganizationMembers.ts";
|
|
100
108
|
export * from "./getOrganizationMember.ts";
|
|
101
109
|
export * from "./updateOrganizationMember.ts";
|
|
@@ -111,7 +119,6 @@ export * from "./deleteOrganizationVPCEndpoint.ts";
|
|
|
111
119
|
export * from "./getActiveRegions.ts";
|
|
112
120
|
export * from "./getCurrentUserInfo.ts";
|
|
113
121
|
export * from "./getCurrentUserOrganizations.ts";
|
|
114
|
-
export * from "./transferProjectsFromUserToOrg.ts";
|
|
115
122
|
export * from "./getAuthDetails.ts";
|
|
116
123
|
export * from "./createSnapshot.ts";
|
|
117
124
|
export * from "./listSnapshots.ts";
|