pgbeam 0.3.5 → 0.3.7

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.
@@ -1857,6 +1857,16 @@ type OrganizationPlan = {
1857
1857
  * @type number
1858
1858
  */
1859
1859
  spend_limit?: number | null;
1860
+ /**
1861
+ * @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
1862
+ * @type boolean | undefined
1863
+ */
1864
+ spend_capped?: boolean;
1865
+ /**
1866
+ * @description When the spend cap was applied. Null when not capped.
1867
+ * @type string
1868
+ */
1869
+ spend_capped_at?: string | null;
1860
1870
  /**
1861
1871
  * @description Effective usage limits enforced for an organization plan.
1862
1872
  * @type object
@@ -1910,6 +1920,136 @@ type GetOrganizationPlanRequestConfig = {
1910
1920
  url: `/v1/organizations/${string}/plan`;
1911
1921
  };
1912
1922
 
1923
+ /**
1924
+ * Generated by Kubb (https://kubb.dev/).
1925
+ * Do not edit manually.
1926
+ */
1927
+ declare const vercelResourceStatusStatusEnum: {
1928
+ readonly ready: "ready";
1929
+ readonly suspended: "suspended";
1930
+ readonly deleted: "deleted";
1931
+ };
1932
+ type VercelResourceStatusStatusEnumKey = (typeof vercelResourceStatusStatusEnum)[keyof typeof vercelResourceStatusStatusEnum];
1933
+ /**
1934
+ * @description A PgBeam project provisioned as a Vercel Marketplace resource, with current-period usage.
1935
+ * @type object
1936
+ */
1937
+ type VercelResourceStatus = {
1938
+ /**
1939
+ * @description Vercel resource identifier.
1940
+ * @type string
1941
+ */
1942
+ resource_id: string;
1943
+ /**
1944
+ * @description PgBeam project identifier backing the resource.
1945
+ * @type string
1946
+ */
1947
+ project_id: string;
1948
+ /**
1949
+ * @description Human-readable resource/project name.
1950
+ * @type string
1951
+ */
1952
+ name: string;
1953
+ /**
1954
+ * @description Plan tier the resource is billed on.
1955
+ * @type string
1956
+ */
1957
+ billing_plan_id: string;
1958
+ /**
1959
+ * @description Current resource lifecycle status.
1960
+ * @type string
1961
+ */
1962
+ status: VercelResourceStatusStatusEnumKey;
1963
+ /**
1964
+ * @description Queries this resource has served in the current billing period.
1965
+ * @type integer
1966
+ */
1967
+ period_queries: number;
1968
+ /**
1969
+ * @description Bytes transferred by this resource in the current billing period.
1970
+ * @type integer
1971
+ */
1972
+ period_bytes: number;
1973
+ };
1974
+
1975
+ /**
1976
+ * Generated by Kubb (https://kubb.dev/).
1977
+ * Do not edit manually.
1978
+ */
1979
+
1980
+ /**
1981
+ * @description Vercel Marketplace installation status for an organization, including its resources.
1982
+ * @type object
1983
+ */
1984
+ type VercelInstallationStatus = {
1985
+ /**
1986
+ * @description Vercel installation (integration configuration) identifier.
1987
+ * @type string
1988
+ */
1989
+ installation_id: string;
1990
+ /**
1991
+ * @description Vercel account/team identifier that owns the installation.
1992
+ * @type string
1993
+ */
1994
+ vercel_account_id: string;
1995
+ /**
1996
+ * @description Current plan tier for the organization.
1997
+ * @type string
1998
+ */
1999
+ plan: string;
2000
+ /**
2001
+ * @description Installation status (active).
2002
+ * @type string
2003
+ */
2004
+ status: string;
2005
+ /**
2006
+ * @description When the installation was created.
2007
+ * @type string | undefined
2008
+ */
2009
+ created_at?: string;
2010
+ /**
2011
+ * @description Resources (projects) provisioned under this installation.
2012
+ * @type array
2013
+ */
2014
+ resources: VercelResourceStatus[];
2015
+ };
2016
+
2017
+ /**
2018
+ * Generated by Kubb (https://kubb.dev/).
2019
+ * Do not edit manually.
2020
+ */
2021
+
2022
+ /**
2023
+ * @description Unique organization identifier.
2024
+ * @pattern ^[a-zA-Z0-9_.-]+$
2025
+ * @example org_abc123
2026
+ * @type string
2027
+ */
2028
+ type GetVercelInstallationPathOrgId = string;
2029
+ /**
2030
+ * @description Vercel Marketplace installation status for an organization, including its resources.
2031
+ * @type object
2032
+ */
2033
+ type GetVercelInstallationStatus200 = VercelInstallationStatus;
2034
+ /**
2035
+ * @type object
2036
+ */
2037
+ type GetVercelInstallationRequestConfig = {
2038
+ data?: never;
2039
+ /**
2040
+ * @type object
2041
+ */
2042
+ pathParams: {
2043
+ org_id: GetVercelInstallationPathOrgId;
2044
+ };
2045
+ queryParams?: never;
2046
+ headerParams?: never;
2047
+ /**
2048
+ * @type string
2049
+ */
2050
+ url: `/v1/organizations/${string}/vercel-installation`;
2051
+ };
2052
+
1913
2053
  /**
1914
2054
  * Generated by Kubb (https://kubb.dev/).
1915
2055
  * Do not edit manually.
@@ -4666,6 +4806,13 @@ type PolicyProfile = {
4666
4806
  * @type integer | undefined
4667
4807
  */
4668
4808
  egress_bytes_per_day?: number;
4809
+ /**
4810
+ * @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
4811
+ * @minLength 0
4812
+ * @default 0
4813
+ * @type integer | undefined
4814
+ */
4815
+ max_affected_rows?: number;
4669
4816
  /**
4670
4817
  * @description When the policy profile was created.
4671
4818
  * @type string
@@ -4894,6 +5041,13 @@ type PolicyProfileInput = {
4894
5041
  * @type integer | undefined
4895
5042
  */
4896
5043
  egress_bytes_per_day?: number;
5044
+ /**
5045
+ * @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
5046
+ * @minLength 0
5047
+ * @default 0
5048
+ * @type integer | undefined
5049
+ */
5050
+ max_affected_rows?: number;
4897
5051
  };
4898
5052
 
4899
5053
  /**
@@ -7522,6 +7676,10 @@ declare const operationsByTag: {
7522
7676
  readonly method: "GET";
7523
7677
  readonly path: "/v1/organizations/{org_id}/plan";
7524
7678
  };
7679
+ readonly getVercelInstallation: {
7680
+ readonly method: "GET";
7681
+ readonly path: "/v1/organizations/{org_id}/vercel-installation";
7682
+ };
7525
7683
  readonly updateSpendLimit: {
7526
7684
  readonly method: "PUT";
7527
7685
  readonly path: "/v1/organizations/{org_id}/spend-limit";
@@ -7827,6 +7985,11 @@ declare const operationsByPath: {
7827
7985
  readonly path: "/v1/organizations/{org_id}/plan";
7828
7986
  readonly operationId: "getOrganizationPlan";
7829
7987
  };
7988
+ readonly "GET /v1/organizations/{org_id}/vercel-installation": {
7989
+ readonly method: "GET";
7990
+ readonly path: "/v1/organizations/{org_id}/vercel-installation";
7991
+ readonly operationId: "getVercelInstallation";
7992
+ };
7830
7993
  readonly "PUT /v1/organizations/{org_id}/spend-limit": {
7831
7994
  readonly method: "PUT";
7832
7995
  readonly path: "/v1/organizations/{org_id}/spend-limit";
@@ -8145,6 +8308,9 @@ type ExportAuditLogsParams = {
8145
8308
  type GetOrganizationPlanParams = {
8146
8309
  pathParams: NonNullable<GetOrganizationPlanRequestConfig["pathParams"]>;
8147
8310
  };
8311
+ type GetVercelInstallationParams = {
8312
+ pathParams: NonNullable<GetVercelInstallationRequestConfig["pathParams"]>;
8313
+ };
8148
8314
  type UpdateSpendLimitParams = {
8149
8315
  pathParams: NonNullable<UpdateSpendLimitRequestConfig["pathParams"]>;
8150
8316
  body: NonNullable<UpdateSpendLimitRequestConfig["data"]>;
@@ -8355,6 +8521,7 @@ interface ApiOperations {
8355
8521
  analytics: {
8356
8522
  listPlans(): Promise<ListPlansStatus200>;
8357
8523
  getOrganizationPlan(params: GetOrganizationPlanParams): Promise<GetOrganizationPlanStatus200>;
8524
+ getVercelInstallation(params: GetVercelInstallationParams): Promise<GetVercelInstallationStatus200>;
8358
8525
  updateSpendLimit(params: UpdateSpendLimitParams): Promise<UpdateSpendLimitStatus200>;
8359
8526
  submitCancellationFeedback(params: SubmitCancellationFeedbackParams): Promise<void>;
8360
8527
  getProjectInsights(params: GetProjectInsightsParams): Promise<GetProjectInsightsStatus200>;
@@ -8491,6 +8658,10 @@ interface RequestMap {
8491
8658
  params: GetOrganizationPlanParams;
8492
8659
  response: GetOrganizationPlanStatus200;
8493
8660
  };
8661
+ "GET /v1/organizations/{org_id}/vercel-installation": {
8662
+ params: GetVercelInstallationParams;
8663
+ response: GetVercelInstallationStatus200;
8664
+ };
8494
8665
  "PUT /v1/organizations/{org_id}/spend-limit": {
8495
8666
  params: UpdateSpendLimitParams;
8496
8667
  response: UpdateSpendLimitStatus200;
@@ -1857,6 +1857,16 @@ type OrganizationPlan = {
1857
1857
  * @type number
1858
1858
  */
1859
1859
  spend_limit?: number | null;
1860
+ /**
1861
+ * @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
1862
+ * @type boolean | undefined
1863
+ */
1864
+ spend_capped?: boolean;
1865
+ /**
1866
+ * @description When the spend cap was applied. Null when not capped.
1867
+ * @type string
1868
+ */
1869
+ spend_capped_at?: string | null;
1860
1870
  /**
1861
1871
  * @description Effective usage limits enforced for an organization plan.
1862
1872
  * @type object
@@ -1910,6 +1920,136 @@ type GetOrganizationPlanRequestConfig = {
1910
1920
  url: `/v1/organizations/${string}/plan`;
1911
1921
  };
1912
1922
 
1923
+ /**
1924
+ * Generated by Kubb (https://kubb.dev/).
1925
+ * Do not edit manually.
1926
+ */
1927
+ declare const vercelResourceStatusStatusEnum: {
1928
+ readonly ready: "ready";
1929
+ readonly suspended: "suspended";
1930
+ readonly deleted: "deleted";
1931
+ };
1932
+ type VercelResourceStatusStatusEnumKey = (typeof vercelResourceStatusStatusEnum)[keyof typeof vercelResourceStatusStatusEnum];
1933
+ /**
1934
+ * @description A PgBeam project provisioned as a Vercel Marketplace resource, with current-period usage.
1935
+ * @type object
1936
+ */
1937
+ type VercelResourceStatus = {
1938
+ /**
1939
+ * @description Vercel resource identifier.
1940
+ * @type string
1941
+ */
1942
+ resource_id: string;
1943
+ /**
1944
+ * @description PgBeam project identifier backing the resource.
1945
+ * @type string
1946
+ */
1947
+ project_id: string;
1948
+ /**
1949
+ * @description Human-readable resource/project name.
1950
+ * @type string
1951
+ */
1952
+ name: string;
1953
+ /**
1954
+ * @description Plan tier the resource is billed on.
1955
+ * @type string
1956
+ */
1957
+ billing_plan_id: string;
1958
+ /**
1959
+ * @description Current resource lifecycle status.
1960
+ * @type string
1961
+ */
1962
+ status: VercelResourceStatusStatusEnumKey;
1963
+ /**
1964
+ * @description Queries this resource has served in the current billing period.
1965
+ * @type integer
1966
+ */
1967
+ period_queries: number;
1968
+ /**
1969
+ * @description Bytes transferred by this resource in the current billing period.
1970
+ * @type integer
1971
+ */
1972
+ period_bytes: number;
1973
+ };
1974
+
1975
+ /**
1976
+ * Generated by Kubb (https://kubb.dev/).
1977
+ * Do not edit manually.
1978
+ */
1979
+
1980
+ /**
1981
+ * @description Vercel Marketplace installation status for an organization, including its resources.
1982
+ * @type object
1983
+ */
1984
+ type VercelInstallationStatus = {
1985
+ /**
1986
+ * @description Vercel installation (integration configuration) identifier.
1987
+ * @type string
1988
+ */
1989
+ installation_id: string;
1990
+ /**
1991
+ * @description Vercel account/team identifier that owns the installation.
1992
+ * @type string
1993
+ */
1994
+ vercel_account_id: string;
1995
+ /**
1996
+ * @description Current plan tier for the organization.
1997
+ * @type string
1998
+ */
1999
+ plan: string;
2000
+ /**
2001
+ * @description Installation status (active).
2002
+ * @type string
2003
+ */
2004
+ status: string;
2005
+ /**
2006
+ * @description When the installation was created.
2007
+ * @type string | undefined
2008
+ */
2009
+ created_at?: string;
2010
+ /**
2011
+ * @description Resources (projects) provisioned under this installation.
2012
+ * @type array
2013
+ */
2014
+ resources: VercelResourceStatus[];
2015
+ };
2016
+
2017
+ /**
2018
+ * Generated by Kubb (https://kubb.dev/).
2019
+ * Do not edit manually.
2020
+ */
2021
+
2022
+ /**
2023
+ * @description Unique organization identifier.
2024
+ * @pattern ^[a-zA-Z0-9_.-]+$
2025
+ * @example org_abc123
2026
+ * @type string
2027
+ */
2028
+ type GetVercelInstallationPathOrgId = string;
2029
+ /**
2030
+ * @description Vercel Marketplace installation status for an organization, including its resources.
2031
+ * @type object
2032
+ */
2033
+ type GetVercelInstallationStatus200 = VercelInstallationStatus;
2034
+ /**
2035
+ * @type object
2036
+ */
2037
+ type GetVercelInstallationRequestConfig = {
2038
+ data?: never;
2039
+ /**
2040
+ * @type object
2041
+ */
2042
+ pathParams: {
2043
+ org_id: GetVercelInstallationPathOrgId;
2044
+ };
2045
+ queryParams?: never;
2046
+ headerParams?: never;
2047
+ /**
2048
+ * @type string
2049
+ */
2050
+ url: `/v1/organizations/${string}/vercel-installation`;
2051
+ };
2052
+
1913
2053
  /**
1914
2054
  * Generated by Kubb (https://kubb.dev/).
1915
2055
  * Do not edit manually.
@@ -4666,6 +4806,13 @@ type PolicyProfile = {
4666
4806
  * @type integer | undefined
4667
4807
  */
4668
4808
  egress_bytes_per_day?: number;
4809
+ /**
4810
+ * @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
4811
+ * @minLength 0
4812
+ * @default 0
4813
+ * @type integer | undefined
4814
+ */
4815
+ max_affected_rows?: number;
4669
4816
  /**
4670
4817
  * @description When the policy profile was created.
4671
4818
  * @type string
@@ -4894,6 +5041,13 @@ type PolicyProfileInput = {
4894
5041
  * @type integer | undefined
4895
5042
  */
4896
5043
  egress_bytes_per_day?: number;
5044
+ /**
5045
+ * @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
5046
+ * @minLength 0
5047
+ * @default 0
5048
+ * @type integer | undefined
5049
+ */
5050
+ max_affected_rows?: number;
4897
5051
  };
4898
5052
 
4899
5053
  /**
@@ -7522,6 +7676,10 @@ declare const operationsByTag: {
7522
7676
  readonly method: "GET";
7523
7677
  readonly path: "/v1/organizations/{org_id}/plan";
7524
7678
  };
7679
+ readonly getVercelInstallation: {
7680
+ readonly method: "GET";
7681
+ readonly path: "/v1/organizations/{org_id}/vercel-installation";
7682
+ };
7525
7683
  readonly updateSpendLimit: {
7526
7684
  readonly method: "PUT";
7527
7685
  readonly path: "/v1/organizations/{org_id}/spend-limit";
@@ -7827,6 +7985,11 @@ declare const operationsByPath: {
7827
7985
  readonly path: "/v1/organizations/{org_id}/plan";
7828
7986
  readonly operationId: "getOrganizationPlan";
7829
7987
  };
7988
+ readonly "GET /v1/organizations/{org_id}/vercel-installation": {
7989
+ readonly method: "GET";
7990
+ readonly path: "/v1/organizations/{org_id}/vercel-installation";
7991
+ readonly operationId: "getVercelInstallation";
7992
+ };
7830
7993
  readonly "PUT /v1/organizations/{org_id}/spend-limit": {
7831
7994
  readonly method: "PUT";
7832
7995
  readonly path: "/v1/organizations/{org_id}/spend-limit";
@@ -8145,6 +8308,9 @@ type ExportAuditLogsParams = {
8145
8308
  type GetOrganizationPlanParams = {
8146
8309
  pathParams: NonNullable<GetOrganizationPlanRequestConfig["pathParams"]>;
8147
8310
  };
8311
+ type GetVercelInstallationParams = {
8312
+ pathParams: NonNullable<GetVercelInstallationRequestConfig["pathParams"]>;
8313
+ };
8148
8314
  type UpdateSpendLimitParams = {
8149
8315
  pathParams: NonNullable<UpdateSpendLimitRequestConfig["pathParams"]>;
8150
8316
  body: NonNullable<UpdateSpendLimitRequestConfig["data"]>;
@@ -8355,6 +8521,7 @@ interface ApiOperations {
8355
8521
  analytics: {
8356
8522
  listPlans(): Promise<ListPlansStatus200>;
8357
8523
  getOrganizationPlan(params: GetOrganizationPlanParams): Promise<GetOrganizationPlanStatus200>;
8524
+ getVercelInstallation(params: GetVercelInstallationParams): Promise<GetVercelInstallationStatus200>;
8358
8525
  updateSpendLimit(params: UpdateSpendLimitParams): Promise<UpdateSpendLimitStatus200>;
8359
8526
  submitCancellationFeedback(params: SubmitCancellationFeedbackParams): Promise<void>;
8360
8527
  getProjectInsights(params: GetProjectInsightsParams): Promise<GetProjectInsightsStatus200>;
@@ -8491,6 +8658,10 @@ interface RequestMap {
8491
8658
  params: GetOrganizationPlanParams;
8492
8659
  response: GetOrganizationPlanStatus200;
8493
8660
  };
8661
+ "GET /v1/organizations/{org_id}/vercel-installation": {
8662
+ params: GetVercelInstallationParams;
8663
+ response: GetVercelInstallationStatus200;
8664
+ };
8494
8665
  "PUT /v1/organizations/{org_id}/spend-limit": {
8495
8666
  params: UpdateSpendLimitParams;
8496
8667
  response: UpdateSpendLimitStatus200;
@@ -510,7 +510,27 @@
510
510
  ],
511
511
  "requestBodyType": "",
512
512
  "requestBodyRequired": false,
513
- "responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
513
+ "responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
514
+ "responseStatus": "200"
515
+ },
516
+ "getVercelInstallation": {
517
+ "operationId": "getVercelInstallation",
518
+ "method": "GET",
519
+ "path": "/v1/organizations/{org_id}/vercel-installation",
520
+ "summary": "Get Vercel Marketplace installation status",
521
+ "description": "Returns the Vercel Marketplace installation for the organization,\nincluding its provisioned resources and their current-period usage.\nReturns 404 when the organization was not provisioned through the\nVercel Marketplace. Powers the dashboard's Vercel integration page.\n",
522
+ "parameters": [
523
+ {
524
+ "name": "org_id",
525
+ "in": "path",
526
+ "required": true,
527
+ "type": "string",
528
+ "description": "Unique organization identifier."
529
+ }
530
+ ],
531
+ "requestBodyType": "",
532
+ "requestBodyRequired": false,
533
+ "responseType": "{ created_at?: string; installation_id: string; plan: string; resources: ({ billing_plan_id: string; name: string; period_bytes: number; period_queries: number; project_id: string; resource_id: string; status: \"ready\" | \"suspended\" | \"deleted\" })[]; status: string; vercel_account_id: string }",
514
534
  "responseStatus": "200"
515
535
  },
516
536
  "updateSpendLimit": {
@@ -530,7 +550,7 @@
530
550
  ],
531
551
  "requestBodyType": "{ spend_limit?: number }",
532
552
  "requestBodyRequired": true,
533
- "responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
553
+ "responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
534
554
  "responseStatus": "200"
535
555
  },
536
556
  "submitCancellationFeedback": {
@@ -1157,7 +1177,7 @@
1157
1177
  ],
1158
1178
  "requestBodyType": "",
1159
1179
  "requestBodyRequired": false,
1160
- "responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
1180
+ "responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
1161
1181
  "responseStatus": "200"
1162
1182
  },
1163
1183
  "createPolicyProfile": {
@@ -1175,9 +1195,9 @@
1175
1195
  "description": "Unique project identifier (prefixed, e.g. prj_xxx)."
1176
1196
  }
1177
1197
  ],
1178
- "requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1198
+ "requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1179
1199
  "requestBodyRequired": true,
1180
- "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1200
+ "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1181
1201
  "responseStatus": "201"
1182
1202
  },
1183
1203
  "getPolicyProfile": {
@@ -1204,7 +1224,7 @@
1204
1224
  ],
1205
1225
  "requestBodyType": "",
1206
1226
  "requestBodyRequired": false,
1207
- "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1227
+ "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1208
1228
  "responseStatus": "200"
1209
1229
  },
1210
1230
  "updatePolicyProfile": {
@@ -1229,9 +1249,9 @@
1229
1249
  "description": "Unique policy profile identifier (prefixed, e.g. pol_xxx)."
1230
1250
  }
1231
1251
  ],
1232
- "requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1252
+ "requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1233
1253
  "requestBodyRequired": true,
1234
- "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1254
+ "responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
1235
1255
  "responseStatus": "200"
1236
1256
  },
1237
1257
  "deletePolicyProfile": {
@@ -1266,7 +1286,7 @@
1266
1286
  "method": "POST",
1267
1287
  "path": "/v1/projects/{project_id}/policy-evaluations",
1268
1288
  "summary": "Dry-eval a policy against a SQL statement",
1269
- "description": "Evaluates a single SQL statement against a policy — either a draft policy supplied inline or an existing policy referenced by id — and returns the decision the proxy would make: allow, block, mask, or row-filter. The evaluation reuses the data plane's own policy engine (the same parser, allow/block rules, row-filter rewriter, and masking analysis enforced on live agent sessions), so a what-if verdict matches real enforcement. Stateful checks a single-statement preview cannot model — per-region query and egress budgets, human approvals, and rollback/sandbox write routing — are reported as informational notes, not verdicts. This is a pure compute endpoint; it does not connect to the upstream database and persists nothing.",
1289
+ "description": "Evaluates a single SQL statement against a policy (either a draft policy supplied inline or an existing policy referenced by id) and returns the decision the proxy would make: allow, block, mask, or row-filter. The evaluation reuses the data plane's own policy engine (the same parser, allow/block rules, row-filter rewriter, and masking analysis enforced on live agent sessions), so a what-if verdict matches real enforcement. Stateful checks a single-statement preview cannot model (per-region query and egress budgets, human approvals, and rollback/sandbox write routing) are reported as informational notes, not verdicts. This is a pure compute endpoint; it does not connect to the upstream database and persists nothing.",
1270
1290
  "parameters": [
1271
1291
  {
1272
1292
  "name": "project_id",
@@ -1276,7 +1296,7 @@
1276
1296
  "description": "Unique project identifier (prefixed, e.g. prj_xxx)."
1277
1297
  }
1278
1298
  ],
1279
- "requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
1299
+ "requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
1280
1300
  "requestBodyRequired": true,
1281
1301
  "responseType": "{ hint?: string; masked_columns?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\" })[]; notes?: string[]; reason: string; rewritten_sql?: string; row_filter_predicate?: string; rule: string; verdict: \"allow\" | \"block\" | \"mask\" | \"row-filter\" }",
1282
1302
  "responseStatus": "200"
@@ -1985,6 +2005,10 @@
1985
2005
  method: "GET",
1986
2006
  path: "/v1/organizations/{org_id}/plan"
1987
2007
  },
2008
+ getVercelInstallation: {
2009
+ method: "GET",
2010
+ path: "/v1/organizations/{org_id}/vercel-installation"
2011
+ },
1988
2012
  updateSpendLimit: {
1989
2013
  method: "PUT",
1990
2014
  path: "/v1/organizations/{org_id}/spend-limit"
@@ -2290,6 +2314,11 @@ const operationsByPath = {
2290
2314
  path: "/v1/organizations/{org_id}/plan",
2291
2315
  operationId: "getOrganizationPlan"
2292
2316
  },
2317
+ "GET /v1/organizations/{org_id}/vercel-installation": {
2318
+ method: "GET",
2319
+ path: "/v1/organizations/{org_id}/vercel-installation",
2320
+ operationId: "getVercelInstallation"
2321
+ },
2293
2322
  "PUT /v1/organizations/{org_id}/spend-limit": {
2294
2323
  method: "PUT",
2295
2324
  path: "/v1/organizations/{org_id}/spend-limit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -50,9 +50,10 @@
50
50
  "@kubb/adapter-oas": "5.0.0-beta.11",
51
51
  "@kubb/middleware-barrel": "5.0.0-beta.35",
52
52
  "@kubb/plugin-ts": "5.0.0-beta.10",
53
- "bunchee": "6.11.0",
53
+ "@typescript/typescript6": "6.0.2",
54
+ "bunchee": "6.12.0",
54
55
  "kubb": "5.0.0-beta.11",
55
- "typescript": "6.0.3",
56
+ "typescript": "7.0.2",
56
57
  "@pgbeam/config": "0.0.1"
57
58
  },
58
59
  "scripts": {