@amerged/ohmyhost-sdk 0.1.41 → 0.1.43
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 +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +161 -2
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +352 -1
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +1008 -41
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/index.ts +109 -1
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +697 -1
- package/src/packages/sdk-ts/src/generated/types.gen.ts +1153 -47
|
@@ -280,11 +280,6 @@ export type OrganizationCredits = {
|
|
|
280
280
|
* Seven days after the credit was used up. Existing services and domains are retained during this grace; no automatic data deletion. Explicit project stop budgets are separate.
|
|
281
281
|
*/
|
|
282
282
|
grace_expires_at: string | null;
|
|
283
|
-
active_meters: Array<string>;
|
|
284
|
-
/**
|
|
285
|
-
* Published integer prices, newest first. A published rate is not proof of enabled billing; only active_meters names currently billed sources. Builds retain their accepted quote. Provider cost is a list-price basis before platform allowances, not an invoice.
|
|
286
|
-
*/
|
|
287
|
-
rate_cards: Array<PublishedCreditRateCard>;
|
|
288
283
|
};
|
|
289
284
|
/**
|
|
290
285
|
* Non-negative integer aggregate, serialized exactly without floating-point rounding.
|
|
@@ -327,22 +322,6 @@ export type OrganizationCreditUsage = {
|
|
|
327
322
|
}>;
|
|
328
323
|
}>;
|
|
329
324
|
};
|
|
330
|
-
export type PublishedCreditRateCard = {
|
|
331
|
-
id: string;
|
|
332
|
-
currency: "USD";
|
|
333
|
-
published_at: string;
|
|
334
|
-
effective_from: string;
|
|
335
|
-
rates: Array<{
|
|
336
|
-
meter: string;
|
|
337
|
-
unit: string;
|
|
338
|
-
units_per_charge: string;
|
|
339
|
-
/**
|
|
340
|
-
* Provider list-cost basis for units_per_charge, in USD micro-units (1000000 equals 1 USD), before shared allowances and discounts. Null for the PGCF RAM tariff means node infrastructure costs are tracked separately and are not allocated to this customer rate; null never means zero cost.
|
|
341
|
-
*/
|
|
342
|
-
provider_cost_micros: string | null;
|
|
343
|
-
credit_micros: CreditMicros;
|
|
344
|
-
}>;
|
|
345
|
-
};
|
|
346
325
|
export type SetProjectCreditBudgetRequest = {
|
|
347
326
|
/**
|
|
348
327
|
* The monthly budget, at most 9007199254740991 microcredits (about 9 billion credits); null removes it.
|
|
@@ -768,26 +747,22 @@ export type ProjectDatabaseAccessRequest = {
|
|
|
768
747
|
*/
|
|
769
748
|
label?: string | null;
|
|
770
749
|
};
|
|
771
|
-
export type ProjectDatabaseAccess =
|
|
772
|
-
database?: "neondb";
|
|
773
|
-
} | {
|
|
774
|
-
database?: unknown;
|
|
775
|
-
}) & {
|
|
750
|
+
export type ProjectDatabaseAccess = {
|
|
776
751
|
access_id: Ulid;
|
|
777
752
|
environment: "dev" | "prod";
|
|
778
753
|
mode: "read" | "write";
|
|
779
754
|
role_name: string;
|
|
780
755
|
host: string;
|
|
781
756
|
/**
|
|
782
|
-
*
|
|
757
|
+
* The exact 20-character PGCF database identity for WSS.
|
|
783
758
|
*/
|
|
784
759
|
database: string;
|
|
785
|
-
provider
|
|
786
|
-
transport
|
|
760
|
+
provider: "pgcf";
|
|
761
|
+
transport: "wss";
|
|
787
762
|
/**
|
|
788
763
|
* Verified WSS origin ending in / and matching host. The local bridge adds /v2 and the bound database and user; no public PostgreSQL TCP endpoint.
|
|
789
764
|
*/
|
|
790
|
-
websocket_url
|
|
765
|
+
websocket_url: string;
|
|
791
766
|
label: string | null;
|
|
792
767
|
state: "active" | "expired" | "revoked";
|
|
793
768
|
issued_at: string;
|
|
@@ -795,26 +770,22 @@ export type ProjectDatabaseAccess = ({
|
|
|
795
770
|
revoked_at: string | null;
|
|
796
771
|
revocation_reason: "principal" | "expired" | "budget" | "creation_failed" | "data_change" | null;
|
|
797
772
|
};
|
|
798
|
-
export type ProjectDatabaseAccessCredential =
|
|
799
|
-
database?: "neondb";
|
|
800
|
-
} | {
|
|
801
|
-
database?: unknown;
|
|
802
|
-
}) & {
|
|
773
|
+
export type ProjectDatabaseAccessCredential = {
|
|
803
774
|
access_id: Ulid;
|
|
804
775
|
environment: "dev" | "prod";
|
|
805
776
|
mode: "read" | "write";
|
|
806
777
|
role_name: string;
|
|
807
778
|
host: string;
|
|
808
779
|
/**
|
|
809
|
-
*
|
|
780
|
+
* The exact 20-character PGCF database identity for WSS.
|
|
810
781
|
*/
|
|
811
782
|
database: string;
|
|
812
|
-
provider
|
|
813
|
-
transport
|
|
783
|
+
provider: "pgcf";
|
|
784
|
+
transport: "wss";
|
|
814
785
|
/**
|
|
815
786
|
* Verified WSS origin ending in / and matching host. The local bridge adds /v2 and the bound database and user; no public PostgreSQL TCP endpoint.
|
|
816
787
|
*/
|
|
817
|
-
websocket_url
|
|
788
|
+
websocket_url: string;
|
|
818
789
|
label: string | null;
|
|
819
790
|
state: "active" | "expired" | "revoked";
|
|
820
791
|
issued_at: string;
|
|
@@ -826,13 +797,169 @@ export type ProjectDatabaseAccessCredential = ({
|
|
|
826
797
|
*/
|
|
827
798
|
connection_uri: string;
|
|
828
799
|
/**
|
|
829
|
-
* For PGCF, a secret-free ohmyhost database psql invocation that obtains and revokes its own session credential.
|
|
800
|
+
* For PGCF, a secret-free ohmyhost database psql invocation that obtains and revokes its own session credential.
|
|
830
801
|
*/
|
|
831
802
|
psql_command: string;
|
|
832
803
|
};
|
|
833
804
|
export type ProjectDatabaseAccessPage = {
|
|
834
805
|
items: Array<ProjectDatabaseAccess>;
|
|
835
806
|
};
|
|
807
|
+
export type DatabaseWebhookEventType = "database.created" | "database.ready" | "database.woke" | "database.slept" | "database.suspended" | "database.resized" | "database.deleted";
|
|
808
|
+
export type DatabaseWebhookCreateRequest = {
|
|
809
|
+
/**
|
|
810
|
+
* HTTPS receiver URL.
|
|
811
|
+
*/
|
|
812
|
+
url: string;
|
|
813
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
814
|
+
/**
|
|
815
|
+
* Extra headers sent with every delivery. Names are case-insensitive and must be unique; content-type, host, content-length, connection, transfer-encoding, user-agent, te, upgrade, expect and any name starting with pgcf-, cf- or x-forwarded- are refused.
|
|
816
|
+
*/
|
|
817
|
+
headers?: {
|
|
818
|
+
[key: string]: string;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
export type DatabaseWebhook = {
|
|
822
|
+
id: string;
|
|
823
|
+
environment: "dev" | "prod";
|
|
824
|
+
url: string;
|
|
825
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
826
|
+
/**
|
|
827
|
+
* Names of the extra headers only; their values are never returned.
|
|
828
|
+
*/
|
|
829
|
+
header_names: Array<string>;
|
|
830
|
+
created_at: string;
|
|
831
|
+
};
|
|
832
|
+
export type DatabaseWebhookCreated = {
|
|
833
|
+
id: string;
|
|
834
|
+
environment: "dev" | "prod";
|
|
835
|
+
url: string;
|
|
836
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
837
|
+
header_names: Array<string>;
|
|
838
|
+
created_at: string;
|
|
839
|
+
/**
|
|
840
|
+
* Signing secret, returned only by this creation answer.
|
|
841
|
+
*/
|
|
842
|
+
secret: string;
|
|
843
|
+
};
|
|
844
|
+
export type DatabaseWebhookPage = {
|
|
845
|
+
items: Array<DatabaseWebhook>;
|
|
846
|
+
};
|
|
847
|
+
export type DatabaseWebhookDeleted = {
|
|
848
|
+
id: string;
|
|
849
|
+
deleted: true;
|
|
850
|
+
};
|
|
851
|
+
export type DatabaseWebhookDelivery = {
|
|
852
|
+
id: string;
|
|
853
|
+
event_id: string;
|
|
854
|
+
event_type: DatabaseWebhookEventType;
|
|
855
|
+
webhook_id: string;
|
|
856
|
+
state: "pending" | "delivered" | "dead_lettered";
|
|
857
|
+
attempts: number;
|
|
858
|
+
created_at: string;
|
|
859
|
+
next_attempt_at: string | null;
|
|
860
|
+
delivered_at: string | null;
|
|
861
|
+
last_status: number | null;
|
|
862
|
+
last_error: "timeout" | "network" | "http" | "expired" | "permanent" | null;
|
|
863
|
+
};
|
|
864
|
+
export type DatabaseWebhookDeliveryPage = {
|
|
865
|
+
items: Array<DatabaseWebhookDelivery>;
|
|
866
|
+
next_cursor: string | null;
|
|
867
|
+
};
|
|
868
|
+
export type DatabaseWebhookTestResult = {
|
|
869
|
+
delivered: boolean;
|
|
870
|
+
status: number | null;
|
|
871
|
+
error: "timeout" | "network" | "http" | null;
|
|
872
|
+
duration_ms: number;
|
|
873
|
+
};
|
|
874
|
+
export type DatabaseWebhookReplayAccepted = {
|
|
875
|
+
delivery_id: string;
|
|
876
|
+
state: "pending";
|
|
877
|
+
};
|
|
878
|
+
export type DatabaseScheduleSetRequest = unknown & {
|
|
879
|
+
/**
|
|
880
|
+
* Five-field cron expression evaluated in UTC. Send exactly one of cron or every_seconds.
|
|
881
|
+
*/
|
|
882
|
+
cron?: string;
|
|
883
|
+
/**
|
|
884
|
+
* Interval in seconds between runs. Send exactly one of cron or every_seconds.
|
|
885
|
+
*/
|
|
886
|
+
every_seconds?: number;
|
|
887
|
+
/**
|
|
888
|
+
* Statements run in order by the application's runtime role. At most 16 KiB per statement and 64 KiB in total.
|
|
889
|
+
*/
|
|
890
|
+
statements: Array<string>;
|
|
891
|
+
timeout_ms?: number;
|
|
892
|
+
enabled?: boolean;
|
|
893
|
+
/**
|
|
894
|
+
* Confirms that the statements run with the application's runtime role.
|
|
895
|
+
*/
|
|
896
|
+
confirm: true;
|
|
897
|
+
};
|
|
898
|
+
export type DatabaseSchedule = ({
|
|
899
|
+
cron?: string;
|
|
900
|
+
every_seconds?: null;
|
|
901
|
+
} | {
|
|
902
|
+
cron?: null;
|
|
903
|
+
every_seconds?: number;
|
|
904
|
+
}) & {
|
|
905
|
+
name: string;
|
|
906
|
+
environment: "dev" | "prod";
|
|
907
|
+
cron: string | null;
|
|
908
|
+
every_seconds: number | null;
|
|
909
|
+
statements: Array<string>;
|
|
910
|
+
timeout_ms: number;
|
|
911
|
+
enabled: boolean;
|
|
912
|
+
next_run_at: string | null;
|
|
913
|
+
created_at: string;
|
|
914
|
+
};
|
|
915
|
+
export type DatabaseSchedulePage = {
|
|
916
|
+
items: Array<DatabaseSchedule>;
|
|
917
|
+
};
|
|
918
|
+
export type DatabaseScheduleDeleted = {
|
|
919
|
+
name: string;
|
|
920
|
+
deleted: true;
|
|
921
|
+
};
|
|
922
|
+
export type DatabaseScheduleRun = {
|
|
923
|
+
id: number;
|
|
924
|
+
schedule: string;
|
|
925
|
+
scheduled_at: string;
|
|
926
|
+
started_at: string | null;
|
|
927
|
+
finished_at: string;
|
|
928
|
+
outcome: "succeeded" | "failed" | "timed_out" | "outcome_unknown" | "rejected" | "skipped_capacity" | "skipped_suspended" | "skipped_deleted" | "skipped_missed";
|
|
929
|
+
sqlstate: string | null;
|
|
930
|
+
attempts: number;
|
|
931
|
+
manual: boolean;
|
|
932
|
+
};
|
|
933
|
+
export type DatabaseScheduleRunPage = {
|
|
934
|
+
items: Array<DatabaseScheduleRun>;
|
|
935
|
+
};
|
|
936
|
+
export type DatabaseScheduleRunAccepted = {
|
|
937
|
+
schedule: string;
|
|
938
|
+
state: "queued";
|
|
939
|
+
};
|
|
940
|
+
export type DatabaseExecutionMetrics = {
|
|
941
|
+
schedule_runs_succeeded: number;
|
|
942
|
+
schedule_runs_failed: number;
|
|
943
|
+
schedule_runs_timed_out: number;
|
|
944
|
+
schedule_runs_outcome_unknown: number;
|
|
945
|
+
schedule_runs_rejected: number;
|
|
946
|
+
schedule_runs_skipped: number;
|
|
947
|
+
events_emitted: number;
|
|
948
|
+
event_bytes: number;
|
|
949
|
+
webhook_attempts: number;
|
|
950
|
+
webhook_deliveries_delivered: number;
|
|
951
|
+
webhook_deliveries_dead_lettered: number;
|
|
952
|
+
};
|
|
953
|
+
export type DatabaseExecutionUsageRow = {
|
|
954
|
+
start: string;
|
|
955
|
+
end: string;
|
|
956
|
+
final: boolean;
|
|
957
|
+
metrics: DatabaseExecutionMetrics;
|
|
958
|
+
};
|
|
959
|
+
export type DatabaseExecutionUsagePage = {
|
|
960
|
+
items: Array<DatabaseExecutionUsageRow>;
|
|
961
|
+
next_cursor: string | null;
|
|
962
|
+
};
|
|
836
963
|
export type SetDevAccessModeRequest = {
|
|
837
964
|
mode: "protected" | "public";
|
|
838
965
|
};
|
|
@@ -1202,7 +1329,7 @@ export type ProblemDetails = {
|
|
|
1202
1329
|
status: number;
|
|
1203
1330
|
detail?: string;
|
|
1204
1331
|
instance?: string;
|
|
1205
|
-
code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required";
|
|
1332
|
+
code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "database_webhook_limit" | "database_schedule_limit" | "database_schedule_not_runnable" | "database_webhook_delivery_pending" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required";
|
|
1206
1333
|
request_id: string;
|
|
1207
1334
|
retryable: boolean;
|
|
1208
1335
|
/**
|
|
@@ -1478,10 +1605,30 @@ export type ProjectId = Ulid;
|
|
|
1478
1605
|
* Issued database credential identifier.
|
|
1479
1606
|
*/
|
|
1480
1607
|
export type DatabaseAccessId = Ulid;
|
|
1608
|
+
/**
|
|
1609
|
+
* Application environment to read; dev when omitted.
|
|
1610
|
+
*/
|
|
1611
|
+
export type DatabaseEnvironmentRead = "dev" | "prod";
|
|
1481
1612
|
/**
|
|
1482
1613
|
* Restrict the listing to one application environment.
|
|
1483
1614
|
*/
|
|
1484
1615
|
export type DatabaseEnvironmentFilter = "dev" | "prod";
|
|
1616
|
+
/**
|
|
1617
|
+
* Application environment the mutation applies to.
|
|
1618
|
+
*/
|
|
1619
|
+
export type DatabaseEnvironment = "dev" | "prod";
|
|
1620
|
+
/**
|
|
1621
|
+
* Database webhook identifier.
|
|
1622
|
+
*/
|
|
1623
|
+
export type DatabaseWebhookId = string;
|
|
1624
|
+
/**
|
|
1625
|
+
* Database webhook delivery identifier.
|
|
1626
|
+
*/
|
|
1627
|
+
export type DatabaseWebhookDeliveryId = string;
|
|
1628
|
+
/**
|
|
1629
|
+
* Database schedule name, unique per project environment.
|
|
1630
|
+
*/
|
|
1631
|
+
export type DatabaseScheduleName = string;
|
|
1485
1632
|
/**
|
|
1486
1633
|
* Opaque continuation cursor returned by the preceding project page.
|
|
1487
1634
|
*/
|
|
@@ -6931,6 +7078,826 @@ export type RevokeProjectDatabaseAccessResponses = {
|
|
|
6931
7078
|
200: ProjectDatabaseAccess;
|
|
6932
7079
|
};
|
|
6933
7080
|
export type RevokeProjectDatabaseAccessResponse = RevokeProjectDatabaseAccessResponses[keyof RevokeProjectDatabaseAccessResponses];
|
|
7081
|
+
export type ListProjectDatabaseWebhooksData = {
|
|
7082
|
+
body?: never;
|
|
7083
|
+
headers?: {
|
|
7084
|
+
/**
|
|
7085
|
+
* Optional caller-provided correlation identifier.
|
|
7086
|
+
*/
|
|
7087
|
+
"X-Request-Id"?: string;
|
|
7088
|
+
};
|
|
7089
|
+
path: {
|
|
7090
|
+
/**
|
|
7091
|
+
* Project identifier.
|
|
7092
|
+
*/
|
|
7093
|
+
project_id: Ulid;
|
|
7094
|
+
};
|
|
7095
|
+
query?: {
|
|
7096
|
+
/**
|
|
7097
|
+
* Application environment to read; dev when omitted.
|
|
7098
|
+
*/
|
|
7099
|
+
environment?: "dev" | "prod";
|
|
7100
|
+
};
|
|
7101
|
+
url: "/v1/projects/{project_id}/database/webhooks";
|
|
7102
|
+
};
|
|
7103
|
+
export type ListProjectDatabaseWebhooksErrors = {
|
|
7104
|
+
/**
|
|
7105
|
+
* The request failed.
|
|
7106
|
+
*/
|
|
7107
|
+
400: ProblemDetails;
|
|
7108
|
+
/**
|
|
7109
|
+
* The request failed.
|
|
7110
|
+
*/
|
|
7111
|
+
401: ProblemDetails;
|
|
7112
|
+
/**
|
|
7113
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7114
|
+
*/
|
|
7115
|
+
404: ProblemDetails;
|
|
7116
|
+
/**
|
|
7117
|
+
* The request failed.
|
|
7118
|
+
*/
|
|
7119
|
+
429: ProblemDetails;
|
|
7120
|
+
/**
|
|
7121
|
+
* The request failed.
|
|
7122
|
+
*/
|
|
7123
|
+
503: ProblemDetails;
|
|
7124
|
+
};
|
|
7125
|
+
export type ListProjectDatabaseWebhooksError = ListProjectDatabaseWebhooksErrors[keyof ListProjectDatabaseWebhooksErrors];
|
|
7126
|
+
export type ListProjectDatabaseWebhooksResponses = {
|
|
7127
|
+
/**
|
|
7128
|
+
* The database webhooks of the environment.
|
|
7129
|
+
*/
|
|
7130
|
+
200: DatabaseWebhookPage;
|
|
7131
|
+
};
|
|
7132
|
+
export type ListProjectDatabaseWebhooksResponse = ListProjectDatabaseWebhooksResponses[keyof ListProjectDatabaseWebhooksResponses];
|
|
7133
|
+
export type CreateProjectDatabaseWebhookData = {
|
|
7134
|
+
body: DatabaseWebhookCreateRequest;
|
|
7135
|
+
headers: {
|
|
7136
|
+
/**
|
|
7137
|
+
* Optional caller-provided correlation identifier.
|
|
7138
|
+
*/
|
|
7139
|
+
"X-Request-Id"?: string;
|
|
7140
|
+
/**
|
|
7141
|
+
* Identifies one mutation and its canonical request payload.
|
|
7142
|
+
*/
|
|
7143
|
+
"Idempotency-Key": string;
|
|
7144
|
+
};
|
|
7145
|
+
path: {
|
|
7146
|
+
/**
|
|
7147
|
+
* Project identifier.
|
|
7148
|
+
*/
|
|
7149
|
+
project_id: Ulid;
|
|
7150
|
+
};
|
|
7151
|
+
query: {
|
|
7152
|
+
/**
|
|
7153
|
+
* Application environment the mutation applies to.
|
|
7154
|
+
*/
|
|
7155
|
+
environment: "dev" | "prod";
|
|
7156
|
+
};
|
|
7157
|
+
url: "/v1/projects/{project_id}/database/webhooks";
|
|
7158
|
+
};
|
|
7159
|
+
export type CreateProjectDatabaseWebhookErrors = {
|
|
7160
|
+
/**
|
|
7161
|
+
* The request failed.
|
|
7162
|
+
*/
|
|
7163
|
+
400: ProblemDetails;
|
|
7164
|
+
/**
|
|
7165
|
+
* The request failed.
|
|
7166
|
+
*/
|
|
7167
|
+
401: ProblemDetails;
|
|
7168
|
+
/**
|
|
7169
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7170
|
+
*/
|
|
7171
|
+
404: ProblemDetails;
|
|
7172
|
+
/**
|
|
7173
|
+
* The request failed.
|
|
7174
|
+
*/
|
|
7175
|
+
409: ProblemDetails;
|
|
7176
|
+
/**
|
|
7177
|
+
* The request failed.
|
|
7178
|
+
*/
|
|
7179
|
+
429: ProblemDetails;
|
|
7180
|
+
/**
|
|
7181
|
+
* The request failed.
|
|
7182
|
+
*/
|
|
7183
|
+
503: ProblemDetails;
|
|
7184
|
+
};
|
|
7185
|
+
export type CreateProjectDatabaseWebhookError = CreateProjectDatabaseWebhookErrors[keyof CreateProjectDatabaseWebhookErrors];
|
|
7186
|
+
export type CreateProjectDatabaseWebhookResponses = {
|
|
7187
|
+
/**
|
|
7188
|
+
* The webhook with its signing secret, returned once and never persisted in plaintext.
|
|
7189
|
+
*/
|
|
7190
|
+
201: DatabaseWebhookCreated;
|
|
7191
|
+
};
|
|
7192
|
+
export type CreateProjectDatabaseWebhookResponse = CreateProjectDatabaseWebhookResponses[keyof CreateProjectDatabaseWebhookResponses];
|
|
7193
|
+
export type DeleteProjectDatabaseWebhookData = {
|
|
7194
|
+
body?: never;
|
|
7195
|
+
headers?: {
|
|
7196
|
+
/**
|
|
7197
|
+
* Optional caller-provided correlation identifier.
|
|
7198
|
+
*/
|
|
7199
|
+
"X-Request-Id"?: string;
|
|
7200
|
+
};
|
|
7201
|
+
path: {
|
|
7202
|
+
/**
|
|
7203
|
+
* Project identifier.
|
|
7204
|
+
*/
|
|
7205
|
+
project_id: Ulid;
|
|
7206
|
+
/**
|
|
7207
|
+
* Database webhook identifier.
|
|
7208
|
+
*/
|
|
7209
|
+
webhook_id: string;
|
|
7210
|
+
};
|
|
7211
|
+
query: {
|
|
7212
|
+
/**
|
|
7213
|
+
* Application environment the mutation applies to.
|
|
7214
|
+
*/
|
|
7215
|
+
environment: "dev" | "prod";
|
|
7216
|
+
};
|
|
7217
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}";
|
|
7218
|
+
};
|
|
7219
|
+
export type DeleteProjectDatabaseWebhookErrors = {
|
|
7220
|
+
/**
|
|
7221
|
+
* The request failed.
|
|
7222
|
+
*/
|
|
7223
|
+
400: ProblemDetails;
|
|
7224
|
+
/**
|
|
7225
|
+
* The request failed.
|
|
7226
|
+
*/
|
|
7227
|
+
401: ProblemDetails;
|
|
7228
|
+
/**
|
|
7229
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7230
|
+
*/
|
|
7231
|
+
404: ProblemDetails;
|
|
7232
|
+
/**
|
|
7233
|
+
* The request failed.
|
|
7234
|
+
*/
|
|
7235
|
+
429: ProblemDetails;
|
|
7236
|
+
/**
|
|
7237
|
+
* The request failed.
|
|
7238
|
+
*/
|
|
7239
|
+
503: ProblemDetails;
|
|
7240
|
+
};
|
|
7241
|
+
export type DeleteProjectDatabaseWebhookError = DeleteProjectDatabaseWebhookErrors[keyof DeleteProjectDatabaseWebhookErrors];
|
|
7242
|
+
export type DeleteProjectDatabaseWebhookResponses = {
|
|
7243
|
+
/**
|
|
7244
|
+
* The identifier of the deleted webhook.
|
|
7245
|
+
*/
|
|
7246
|
+
200: DatabaseWebhookDeleted;
|
|
7247
|
+
};
|
|
7248
|
+
export type DeleteProjectDatabaseWebhookResponse = DeleteProjectDatabaseWebhookResponses[keyof DeleteProjectDatabaseWebhookResponses];
|
|
7249
|
+
export type GetProjectDatabaseWebhookData = {
|
|
7250
|
+
body?: never;
|
|
7251
|
+
headers?: {
|
|
7252
|
+
/**
|
|
7253
|
+
* Optional caller-provided correlation identifier.
|
|
7254
|
+
*/
|
|
7255
|
+
"X-Request-Id"?: string;
|
|
7256
|
+
};
|
|
7257
|
+
path: {
|
|
7258
|
+
/**
|
|
7259
|
+
* Project identifier.
|
|
7260
|
+
*/
|
|
7261
|
+
project_id: Ulid;
|
|
7262
|
+
/**
|
|
7263
|
+
* Database webhook identifier.
|
|
7264
|
+
*/
|
|
7265
|
+
webhook_id: string;
|
|
7266
|
+
};
|
|
7267
|
+
query?: {
|
|
7268
|
+
/**
|
|
7269
|
+
* Application environment to read; dev when omitted.
|
|
7270
|
+
*/
|
|
7271
|
+
environment?: "dev" | "prod";
|
|
7272
|
+
};
|
|
7273
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}";
|
|
7274
|
+
};
|
|
7275
|
+
export type GetProjectDatabaseWebhookErrors = {
|
|
7276
|
+
/**
|
|
7277
|
+
* The request failed.
|
|
7278
|
+
*/
|
|
7279
|
+
400: ProblemDetails;
|
|
7280
|
+
/**
|
|
7281
|
+
* The request failed.
|
|
7282
|
+
*/
|
|
7283
|
+
401: ProblemDetails;
|
|
7284
|
+
/**
|
|
7285
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7286
|
+
*/
|
|
7287
|
+
404: ProblemDetails;
|
|
7288
|
+
/**
|
|
7289
|
+
* The request failed.
|
|
7290
|
+
*/
|
|
7291
|
+
429: ProblemDetails;
|
|
7292
|
+
/**
|
|
7293
|
+
* The request failed.
|
|
7294
|
+
*/
|
|
7295
|
+
503: ProblemDetails;
|
|
7296
|
+
};
|
|
7297
|
+
export type GetProjectDatabaseWebhookError = GetProjectDatabaseWebhookErrors[keyof GetProjectDatabaseWebhookErrors];
|
|
7298
|
+
export type GetProjectDatabaseWebhookResponses = {
|
|
7299
|
+
/**
|
|
7300
|
+
* The database webhook.
|
|
7301
|
+
*/
|
|
7302
|
+
200: DatabaseWebhook;
|
|
7303
|
+
};
|
|
7304
|
+
export type GetProjectDatabaseWebhookResponse = GetProjectDatabaseWebhookResponses[keyof GetProjectDatabaseWebhookResponses];
|
|
7305
|
+
export type TestProjectDatabaseWebhookData = {
|
|
7306
|
+
body?: never;
|
|
7307
|
+
headers?: {
|
|
7308
|
+
/**
|
|
7309
|
+
* Optional caller-provided correlation identifier.
|
|
7310
|
+
*/
|
|
7311
|
+
"X-Request-Id"?: string;
|
|
7312
|
+
};
|
|
7313
|
+
path: {
|
|
7314
|
+
/**
|
|
7315
|
+
* Project identifier.
|
|
7316
|
+
*/
|
|
7317
|
+
project_id: Ulid;
|
|
7318
|
+
/**
|
|
7319
|
+
* Database webhook identifier.
|
|
7320
|
+
*/
|
|
7321
|
+
webhook_id: string;
|
|
7322
|
+
};
|
|
7323
|
+
query: {
|
|
7324
|
+
/**
|
|
7325
|
+
* Application environment the mutation applies to.
|
|
7326
|
+
*/
|
|
7327
|
+
environment: "dev" | "prod";
|
|
7328
|
+
};
|
|
7329
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}/test";
|
|
7330
|
+
};
|
|
7331
|
+
export type TestProjectDatabaseWebhookErrors = {
|
|
7332
|
+
/**
|
|
7333
|
+
* The request failed.
|
|
7334
|
+
*/
|
|
7335
|
+
400: ProblemDetails;
|
|
7336
|
+
/**
|
|
7337
|
+
* The request failed.
|
|
7338
|
+
*/
|
|
7339
|
+
401: ProblemDetails;
|
|
7340
|
+
/**
|
|
7341
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7342
|
+
*/
|
|
7343
|
+
404: ProblemDetails;
|
|
7344
|
+
/**
|
|
7345
|
+
* The request failed.
|
|
7346
|
+
*/
|
|
7347
|
+
429: ProblemDetails;
|
|
7348
|
+
/**
|
|
7349
|
+
* The request failed.
|
|
7350
|
+
*/
|
|
7351
|
+
503: ProblemDetails;
|
|
7352
|
+
};
|
|
7353
|
+
export type TestProjectDatabaseWebhookError = TestProjectDatabaseWebhookErrors[keyof TestProjectDatabaseWebhookErrors];
|
|
7354
|
+
export type TestProjectDatabaseWebhookResponses = {
|
|
7355
|
+
/**
|
|
7356
|
+
* The outcome of the test request.
|
|
7357
|
+
*/
|
|
7358
|
+
200: DatabaseWebhookTestResult;
|
|
7359
|
+
};
|
|
7360
|
+
export type TestProjectDatabaseWebhookResponse = TestProjectDatabaseWebhookResponses[keyof TestProjectDatabaseWebhookResponses];
|
|
7361
|
+
export type ListProjectDatabaseWebhookDeliveriesData = {
|
|
7362
|
+
body?: never;
|
|
7363
|
+
headers?: {
|
|
7364
|
+
/**
|
|
7365
|
+
* Optional caller-provided correlation identifier.
|
|
7366
|
+
*/
|
|
7367
|
+
"X-Request-Id"?: string;
|
|
7368
|
+
};
|
|
7369
|
+
path: {
|
|
7370
|
+
/**
|
|
7371
|
+
* Project identifier.
|
|
7372
|
+
*/
|
|
7373
|
+
project_id: Ulid;
|
|
7374
|
+
};
|
|
7375
|
+
query?: {
|
|
7376
|
+
/**
|
|
7377
|
+
* Application environment to read; dev when omitted.
|
|
7378
|
+
*/
|
|
7379
|
+
environment?: "dev" | "prod";
|
|
7380
|
+
/**
|
|
7381
|
+
* Restrict the listing to the deliveries of one webhook.
|
|
7382
|
+
*/
|
|
7383
|
+
webhook_id?: string;
|
|
7384
|
+
/**
|
|
7385
|
+
* Maximum number of deliveries in this page.
|
|
7386
|
+
*/
|
|
7387
|
+
limit?: number;
|
|
7388
|
+
/**
|
|
7389
|
+
* Opaque cursor returned by the previous page.
|
|
7390
|
+
*/
|
|
7391
|
+
cursor?: string;
|
|
7392
|
+
};
|
|
7393
|
+
url: "/v1/projects/{project_id}/database/webhook-deliveries";
|
|
7394
|
+
};
|
|
7395
|
+
export type ListProjectDatabaseWebhookDeliveriesErrors = {
|
|
7396
|
+
/**
|
|
7397
|
+
* The request failed.
|
|
7398
|
+
*/
|
|
7399
|
+
400: ProblemDetails;
|
|
7400
|
+
/**
|
|
7401
|
+
* The request failed.
|
|
7402
|
+
*/
|
|
7403
|
+
401: ProblemDetails;
|
|
7404
|
+
/**
|
|
7405
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7406
|
+
*/
|
|
7407
|
+
404: ProblemDetails;
|
|
7408
|
+
/**
|
|
7409
|
+
* The request failed.
|
|
7410
|
+
*/
|
|
7411
|
+
429: ProblemDetails;
|
|
7412
|
+
/**
|
|
7413
|
+
* The request failed.
|
|
7414
|
+
*/
|
|
7415
|
+
503: ProblemDetails;
|
|
7416
|
+
};
|
|
7417
|
+
export type ListProjectDatabaseWebhookDeliveriesError = ListProjectDatabaseWebhookDeliveriesErrors[keyof ListProjectDatabaseWebhookDeliveriesErrors];
|
|
7418
|
+
export type ListProjectDatabaseWebhookDeliveriesResponses = {
|
|
7419
|
+
/**
|
|
7420
|
+
* One page of database webhook deliveries.
|
|
7421
|
+
*/
|
|
7422
|
+
200: DatabaseWebhookDeliveryPage;
|
|
7423
|
+
};
|
|
7424
|
+
export type ListProjectDatabaseWebhookDeliveriesResponse = ListProjectDatabaseWebhookDeliveriesResponses[keyof ListProjectDatabaseWebhookDeliveriesResponses];
|
|
7425
|
+
export type ReplayProjectDatabaseWebhookDeliveryData = {
|
|
7426
|
+
body?: never;
|
|
7427
|
+
headers?: {
|
|
7428
|
+
/**
|
|
7429
|
+
* Optional caller-provided correlation identifier.
|
|
7430
|
+
*/
|
|
7431
|
+
"X-Request-Id"?: string;
|
|
7432
|
+
};
|
|
7433
|
+
path: {
|
|
7434
|
+
/**
|
|
7435
|
+
* Project identifier.
|
|
7436
|
+
*/
|
|
7437
|
+
project_id: Ulid;
|
|
7438
|
+
/**
|
|
7439
|
+
* Database webhook delivery identifier.
|
|
7440
|
+
*/
|
|
7441
|
+
delivery_id: string;
|
|
7442
|
+
};
|
|
7443
|
+
query: {
|
|
7444
|
+
/**
|
|
7445
|
+
* Application environment the mutation applies to.
|
|
7446
|
+
*/
|
|
7447
|
+
environment: "dev" | "prod";
|
|
7448
|
+
};
|
|
7449
|
+
url: "/v1/projects/{project_id}/database/webhook-deliveries/{delivery_id}/replay";
|
|
7450
|
+
};
|
|
7451
|
+
export type ReplayProjectDatabaseWebhookDeliveryErrors = {
|
|
7452
|
+
/**
|
|
7453
|
+
* The request failed.
|
|
7454
|
+
*/
|
|
7455
|
+
400: ProblemDetails;
|
|
7456
|
+
/**
|
|
7457
|
+
* The request failed.
|
|
7458
|
+
*/
|
|
7459
|
+
401: ProblemDetails;
|
|
7460
|
+
/**
|
|
7461
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7462
|
+
*/
|
|
7463
|
+
404: ProblemDetails;
|
|
7464
|
+
/**
|
|
7465
|
+
* The request failed.
|
|
7466
|
+
*/
|
|
7467
|
+
409: ProblemDetails;
|
|
7468
|
+
/**
|
|
7469
|
+
* The request failed.
|
|
7470
|
+
*/
|
|
7471
|
+
429: ProblemDetails;
|
|
7472
|
+
/**
|
|
7473
|
+
* The request failed.
|
|
7474
|
+
*/
|
|
7475
|
+
503: ProblemDetails;
|
|
7476
|
+
};
|
|
7477
|
+
export type ReplayProjectDatabaseWebhookDeliveryError = ReplayProjectDatabaseWebhookDeliveryErrors[keyof ReplayProjectDatabaseWebhookDeliveryErrors];
|
|
7478
|
+
export type ReplayProjectDatabaseWebhookDeliveryResponses = {
|
|
7479
|
+
/**
|
|
7480
|
+
* The delivery was queued for another attempt.
|
|
7481
|
+
*/
|
|
7482
|
+
202: DatabaseWebhookReplayAccepted;
|
|
7483
|
+
};
|
|
7484
|
+
export type ReplayProjectDatabaseWebhookDeliveryResponse = ReplayProjectDatabaseWebhookDeliveryResponses[keyof ReplayProjectDatabaseWebhookDeliveryResponses];
|
|
7485
|
+
export type ListProjectDatabaseSchedulesData = {
|
|
7486
|
+
body?: never;
|
|
7487
|
+
headers?: {
|
|
7488
|
+
/**
|
|
7489
|
+
* Optional caller-provided correlation identifier.
|
|
7490
|
+
*/
|
|
7491
|
+
"X-Request-Id"?: string;
|
|
7492
|
+
};
|
|
7493
|
+
path: {
|
|
7494
|
+
/**
|
|
7495
|
+
* Project identifier.
|
|
7496
|
+
*/
|
|
7497
|
+
project_id: Ulid;
|
|
7498
|
+
};
|
|
7499
|
+
query?: {
|
|
7500
|
+
/**
|
|
7501
|
+
* Application environment to read; dev when omitted.
|
|
7502
|
+
*/
|
|
7503
|
+
environment?: "dev" | "prod";
|
|
7504
|
+
};
|
|
7505
|
+
url: "/v1/projects/{project_id}/database/schedules";
|
|
7506
|
+
};
|
|
7507
|
+
export type ListProjectDatabaseSchedulesErrors = {
|
|
7508
|
+
/**
|
|
7509
|
+
* The request failed.
|
|
7510
|
+
*/
|
|
7511
|
+
400: ProblemDetails;
|
|
7512
|
+
/**
|
|
7513
|
+
* The request failed.
|
|
7514
|
+
*/
|
|
7515
|
+
401: ProblemDetails;
|
|
7516
|
+
/**
|
|
7517
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7518
|
+
*/
|
|
7519
|
+
404: ProblemDetails;
|
|
7520
|
+
/**
|
|
7521
|
+
* The request failed.
|
|
7522
|
+
*/
|
|
7523
|
+
429: ProblemDetails;
|
|
7524
|
+
/**
|
|
7525
|
+
* The request failed.
|
|
7526
|
+
*/
|
|
7527
|
+
503: ProblemDetails;
|
|
7528
|
+
};
|
|
7529
|
+
export type ListProjectDatabaseSchedulesError = ListProjectDatabaseSchedulesErrors[keyof ListProjectDatabaseSchedulesErrors];
|
|
7530
|
+
export type ListProjectDatabaseSchedulesResponses = {
|
|
7531
|
+
/**
|
|
7532
|
+
* The database schedules of the environment.
|
|
7533
|
+
*/
|
|
7534
|
+
200: DatabaseSchedulePage;
|
|
7535
|
+
};
|
|
7536
|
+
export type ListProjectDatabaseSchedulesResponse = ListProjectDatabaseSchedulesResponses[keyof ListProjectDatabaseSchedulesResponses];
|
|
7537
|
+
export type DeleteProjectDatabaseScheduleData = {
|
|
7538
|
+
body?: never;
|
|
7539
|
+
headers?: {
|
|
7540
|
+
/**
|
|
7541
|
+
* Optional caller-provided correlation identifier.
|
|
7542
|
+
*/
|
|
7543
|
+
"X-Request-Id"?: string;
|
|
7544
|
+
};
|
|
7545
|
+
path: {
|
|
7546
|
+
/**
|
|
7547
|
+
* Project identifier.
|
|
7548
|
+
*/
|
|
7549
|
+
project_id: Ulid;
|
|
7550
|
+
/**
|
|
7551
|
+
* Database schedule name, unique per project environment.
|
|
7552
|
+
*/
|
|
7553
|
+
name: string;
|
|
7554
|
+
};
|
|
7555
|
+
query: {
|
|
7556
|
+
/**
|
|
7557
|
+
* Application environment the mutation applies to.
|
|
7558
|
+
*/
|
|
7559
|
+
environment: "dev" | "prod";
|
|
7560
|
+
};
|
|
7561
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7562
|
+
};
|
|
7563
|
+
export type DeleteProjectDatabaseScheduleErrors = {
|
|
7564
|
+
/**
|
|
7565
|
+
* The request failed.
|
|
7566
|
+
*/
|
|
7567
|
+
400: ProblemDetails;
|
|
7568
|
+
/**
|
|
7569
|
+
* The request failed.
|
|
7570
|
+
*/
|
|
7571
|
+
401: ProblemDetails;
|
|
7572
|
+
/**
|
|
7573
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7574
|
+
*/
|
|
7575
|
+
404: ProblemDetails;
|
|
7576
|
+
/**
|
|
7577
|
+
* The request failed.
|
|
7578
|
+
*/
|
|
7579
|
+
429: ProblemDetails;
|
|
7580
|
+
/**
|
|
7581
|
+
* The request failed.
|
|
7582
|
+
*/
|
|
7583
|
+
503: ProblemDetails;
|
|
7584
|
+
};
|
|
7585
|
+
export type DeleteProjectDatabaseScheduleError = DeleteProjectDatabaseScheduleErrors[keyof DeleteProjectDatabaseScheduleErrors];
|
|
7586
|
+
export type DeleteProjectDatabaseScheduleResponses = {
|
|
7587
|
+
/**
|
|
7588
|
+
* The name of the deleted schedule.
|
|
7589
|
+
*/
|
|
7590
|
+
200: DatabaseScheduleDeleted;
|
|
7591
|
+
};
|
|
7592
|
+
export type DeleteProjectDatabaseScheduleResponse = DeleteProjectDatabaseScheduleResponses[keyof DeleteProjectDatabaseScheduleResponses];
|
|
7593
|
+
export type GetProjectDatabaseScheduleData = {
|
|
7594
|
+
body?: never;
|
|
7595
|
+
headers?: {
|
|
7596
|
+
/**
|
|
7597
|
+
* Optional caller-provided correlation identifier.
|
|
7598
|
+
*/
|
|
7599
|
+
"X-Request-Id"?: string;
|
|
7600
|
+
};
|
|
7601
|
+
path: {
|
|
7602
|
+
/**
|
|
7603
|
+
* Project identifier.
|
|
7604
|
+
*/
|
|
7605
|
+
project_id: Ulid;
|
|
7606
|
+
/**
|
|
7607
|
+
* Database schedule name, unique per project environment.
|
|
7608
|
+
*/
|
|
7609
|
+
name: string;
|
|
7610
|
+
};
|
|
7611
|
+
query?: {
|
|
7612
|
+
/**
|
|
7613
|
+
* Application environment to read; dev when omitted.
|
|
7614
|
+
*/
|
|
7615
|
+
environment?: "dev" | "prod";
|
|
7616
|
+
};
|
|
7617
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7618
|
+
};
|
|
7619
|
+
export type GetProjectDatabaseScheduleErrors = {
|
|
7620
|
+
/**
|
|
7621
|
+
* The request failed.
|
|
7622
|
+
*/
|
|
7623
|
+
400: ProblemDetails;
|
|
7624
|
+
/**
|
|
7625
|
+
* The request failed.
|
|
7626
|
+
*/
|
|
7627
|
+
401: ProblemDetails;
|
|
7628
|
+
/**
|
|
7629
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7630
|
+
*/
|
|
7631
|
+
404: ProblemDetails;
|
|
7632
|
+
/**
|
|
7633
|
+
* The request failed.
|
|
7634
|
+
*/
|
|
7635
|
+
429: ProblemDetails;
|
|
7636
|
+
/**
|
|
7637
|
+
* The request failed.
|
|
7638
|
+
*/
|
|
7639
|
+
503: ProblemDetails;
|
|
7640
|
+
};
|
|
7641
|
+
export type GetProjectDatabaseScheduleError = GetProjectDatabaseScheduleErrors[keyof GetProjectDatabaseScheduleErrors];
|
|
7642
|
+
export type GetProjectDatabaseScheduleResponses = {
|
|
7643
|
+
/**
|
|
7644
|
+
* The database schedule.
|
|
7645
|
+
*/
|
|
7646
|
+
200: DatabaseSchedule;
|
|
7647
|
+
};
|
|
7648
|
+
export type GetProjectDatabaseScheduleResponse = GetProjectDatabaseScheduleResponses[keyof GetProjectDatabaseScheduleResponses];
|
|
7649
|
+
export type SetProjectDatabaseScheduleData = {
|
|
7650
|
+
body: DatabaseScheduleSetRequest;
|
|
7651
|
+
headers?: {
|
|
7652
|
+
/**
|
|
7653
|
+
* Optional caller-provided correlation identifier.
|
|
7654
|
+
*/
|
|
7655
|
+
"X-Request-Id"?: string;
|
|
7656
|
+
};
|
|
7657
|
+
path: {
|
|
7658
|
+
/**
|
|
7659
|
+
* Project identifier.
|
|
7660
|
+
*/
|
|
7661
|
+
project_id: Ulid;
|
|
7662
|
+
/**
|
|
7663
|
+
* Database schedule name, unique per project environment.
|
|
7664
|
+
*/
|
|
7665
|
+
name: string;
|
|
7666
|
+
};
|
|
7667
|
+
query: {
|
|
7668
|
+
/**
|
|
7669
|
+
* Application environment the mutation applies to.
|
|
7670
|
+
*/
|
|
7671
|
+
environment: "dev" | "prod";
|
|
7672
|
+
};
|
|
7673
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7674
|
+
};
|
|
7675
|
+
export type SetProjectDatabaseScheduleErrors = {
|
|
7676
|
+
/**
|
|
7677
|
+
* The request failed.
|
|
7678
|
+
*/
|
|
7679
|
+
400: ProblemDetails;
|
|
7680
|
+
/**
|
|
7681
|
+
* The request failed.
|
|
7682
|
+
*/
|
|
7683
|
+
401: ProblemDetails;
|
|
7684
|
+
/**
|
|
7685
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7686
|
+
*/
|
|
7687
|
+
404: ProblemDetails;
|
|
7688
|
+
/**
|
|
7689
|
+
* The request failed.
|
|
7690
|
+
*/
|
|
7691
|
+
409: ProblemDetails;
|
|
7692
|
+
/**
|
|
7693
|
+
* The request failed.
|
|
7694
|
+
*/
|
|
7695
|
+
429: ProblemDetails;
|
|
7696
|
+
/**
|
|
7697
|
+
* The request failed.
|
|
7698
|
+
*/
|
|
7699
|
+
503: ProblemDetails;
|
|
7700
|
+
};
|
|
7701
|
+
export type SetProjectDatabaseScheduleError = SetProjectDatabaseScheduleErrors[keyof SetProjectDatabaseScheduleErrors];
|
|
7702
|
+
export type SetProjectDatabaseScheduleResponses = {
|
|
7703
|
+
/**
|
|
7704
|
+
* The schedule as stored.
|
|
7705
|
+
*/
|
|
7706
|
+
200: DatabaseSchedule;
|
|
7707
|
+
};
|
|
7708
|
+
export type SetProjectDatabaseScheduleResponse = SetProjectDatabaseScheduleResponses[keyof SetProjectDatabaseScheduleResponses];
|
|
7709
|
+
export type ListProjectDatabaseScheduleRunsData = {
|
|
7710
|
+
body?: never;
|
|
7711
|
+
headers?: {
|
|
7712
|
+
/**
|
|
7713
|
+
* Optional caller-provided correlation identifier.
|
|
7714
|
+
*/
|
|
7715
|
+
"X-Request-Id"?: string;
|
|
7716
|
+
};
|
|
7717
|
+
path: {
|
|
7718
|
+
/**
|
|
7719
|
+
* Project identifier.
|
|
7720
|
+
*/
|
|
7721
|
+
project_id: Ulid;
|
|
7722
|
+
/**
|
|
7723
|
+
* Database schedule name, unique per project environment.
|
|
7724
|
+
*/
|
|
7725
|
+
name: string;
|
|
7726
|
+
};
|
|
7727
|
+
query?: {
|
|
7728
|
+
/**
|
|
7729
|
+
* Application environment to read; dev when omitted.
|
|
7730
|
+
*/
|
|
7731
|
+
environment?: "dev" | "prod";
|
|
7732
|
+
/**
|
|
7733
|
+
* Maximum number of runs in this page.
|
|
7734
|
+
*/
|
|
7735
|
+
limit?: number;
|
|
7736
|
+
};
|
|
7737
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}/runs";
|
|
7738
|
+
};
|
|
7739
|
+
export type ListProjectDatabaseScheduleRunsErrors = {
|
|
7740
|
+
/**
|
|
7741
|
+
* The request failed.
|
|
7742
|
+
*/
|
|
7743
|
+
400: ProblemDetails;
|
|
7744
|
+
/**
|
|
7745
|
+
* The request failed.
|
|
7746
|
+
*/
|
|
7747
|
+
401: ProblemDetails;
|
|
7748
|
+
/**
|
|
7749
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7750
|
+
*/
|
|
7751
|
+
404: ProblemDetails;
|
|
7752
|
+
/**
|
|
7753
|
+
* The request failed.
|
|
7754
|
+
*/
|
|
7755
|
+
429: ProblemDetails;
|
|
7756
|
+
/**
|
|
7757
|
+
* The request failed.
|
|
7758
|
+
*/
|
|
7759
|
+
503: ProblemDetails;
|
|
7760
|
+
};
|
|
7761
|
+
export type ListProjectDatabaseScheduleRunsError = ListProjectDatabaseScheduleRunsErrors[keyof ListProjectDatabaseScheduleRunsErrors];
|
|
7762
|
+
export type ListProjectDatabaseScheduleRunsResponses = {
|
|
7763
|
+
/**
|
|
7764
|
+
* The newest runs of the schedule, newest first.
|
|
7765
|
+
*/
|
|
7766
|
+
200: DatabaseScheduleRunPage;
|
|
7767
|
+
};
|
|
7768
|
+
export type ListProjectDatabaseScheduleRunsResponse = ListProjectDatabaseScheduleRunsResponses[keyof ListProjectDatabaseScheduleRunsResponses];
|
|
7769
|
+
export type RunProjectDatabaseScheduleData = {
|
|
7770
|
+
body?: never;
|
|
7771
|
+
headers?: {
|
|
7772
|
+
/**
|
|
7773
|
+
* Optional caller-provided correlation identifier.
|
|
7774
|
+
*/
|
|
7775
|
+
"X-Request-Id"?: string;
|
|
7776
|
+
};
|
|
7777
|
+
path: {
|
|
7778
|
+
/**
|
|
7779
|
+
* Project identifier.
|
|
7780
|
+
*/
|
|
7781
|
+
project_id: Ulid;
|
|
7782
|
+
/**
|
|
7783
|
+
* Database schedule name, unique per project environment.
|
|
7784
|
+
*/
|
|
7785
|
+
name: string;
|
|
7786
|
+
};
|
|
7787
|
+
query: {
|
|
7788
|
+
/**
|
|
7789
|
+
* Application environment the mutation applies to.
|
|
7790
|
+
*/
|
|
7791
|
+
environment: "dev" | "prod";
|
|
7792
|
+
};
|
|
7793
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}/run";
|
|
7794
|
+
};
|
|
7795
|
+
export type RunProjectDatabaseScheduleErrors = {
|
|
7796
|
+
/**
|
|
7797
|
+
* The request failed.
|
|
7798
|
+
*/
|
|
7799
|
+
400: ProblemDetails;
|
|
7800
|
+
/**
|
|
7801
|
+
* The request failed.
|
|
7802
|
+
*/
|
|
7803
|
+
401: ProblemDetails;
|
|
7804
|
+
/**
|
|
7805
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7806
|
+
*/
|
|
7807
|
+
404: ProblemDetails;
|
|
7808
|
+
/**
|
|
7809
|
+
* The request failed.
|
|
7810
|
+
*/
|
|
7811
|
+
409: ProblemDetails;
|
|
7812
|
+
/**
|
|
7813
|
+
* The request failed.
|
|
7814
|
+
*/
|
|
7815
|
+
429: ProblemDetails;
|
|
7816
|
+
/**
|
|
7817
|
+
* The request failed.
|
|
7818
|
+
*/
|
|
7819
|
+
503: ProblemDetails;
|
|
7820
|
+
};
|
|
7821
|
+
export type RunProjectDatabaseScheduleError = RunProjectDatabaseScheduleErrors[keyof RunProjectDatabaseScheduleErrors];
|
|
7822
|
+
export type RunProjectDatabaseScheduleResponses = {
|
|
7823
|
+
/**
|
|
7824
|
+
* The run was queued.
|
|
7825
|
+
*/
|
|
7826
|
+
202: DatabaseScheduleRunAccepted;
|
|
7827
|
+
};
|
|
7828
|
+
export type RunProjectDatabaseScheduleResponse = RunProjectDatabaseScheduleResponses[keyof RunProjectDatabaseScheduleResponses];
|
|
7829
|
+
export type GetProjectDatabaseExecutionUsageData = {
|
|
7830
|
+
body?: never;
|
|
7831
|
+
headers?: {
|
|
7832
|
+
/**
|
|
7833
|
+
* Optional caller-provided correlation identifier.
|
|
7834
|
+
*/
|
|
7835
|
+
"X-Request-Id"?: string;
|
|
7836
|
+
};
|
|
7837
|
+
path: {
|
|
7838
|
+
/**
|
|
7839
|
+
* Project identifier.
|
|
7840
|
+
*/
|
|
7841
|
+
project_id: Ulid;
|
|
7842
|
+
};
|
|
7843
|
+
query: {
|
|
7844
|
+
/**
|
|
7845
|
+
* Application environment to read; dev when omitted.
|
|
7846
|
+
*/
|
|
7847
|
+
environment?: "dev" | "prod";
|
|
7848
|
+
/**
|
|
7849
|
+
* Inclusive window start in UTC, aligned to the granularity.
|
|
7850
|
+
*/
|
|
7851
|
+
from: string;
|
|
7852
|
+
/**
|
|
7853
|
+
* Exclusive window end in UTC, aligned to the granularity.
|
|
7854
|
+
*/
|
|
7855
|
+
to: string;
|
|
7856
|
+
/**
|
|
7857
|
+
* Length of each returned window.
|
|
7858
|
+
*/
|
|
7859
|
+
granularity: "hour" | "day";
|
|
7860
|
+
/**
|
|
7861
|
+
* Maximum number of windows in this page.
|
|
7862
|
+
*/
|
|
7863
|
+
limit?: number;
|
|
7864
|
+
/**
|
|
7865
|
+
* Opaque cursor returned by the previous page.
|
|
7866
|
+
*/
|
|
7867
|
+
cursor?: string;
|
|
7868
|
+
};
|
|
7869
|
+
url: "/v1/projects/{project_id}/database/execution-usage";
|
|
7870
|
+
};
|
|
7871
|
+
export type GetProjectDatabaseExecutionUsageErrors = {
|
|
7872
|
+
/**
|
|
7873
|
+
* The request failed.
|
|
7874
|
+
*/
|
|
7875
|
+
400: ProblemDetails;
|
|
7876
|
+
/**
|
|
7877
|
+
* The request failed.
|
|
7878
|
+
*/
|
|
7879
|
+
401: ProblemDetails;
|
|
7880
|
+
/**
|
|
7881
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7882
|
+
*/
|
|
7883
|
+
404: ProblemDetails;
|
|
7884
|
+
/**
|
|
7885
|
+
* The request failed.
|
|
7886
|
+
*/
|
|
7887
|
+
429: ProblemDetails;
|
|
7888
|
+
/**
|
|
7889
|
+
* The request failed.
|
|
7890
|
+
*/
|
|
7891
|
+
503: ProblemDetails;
|
|
7892
|
+
};
|
|
7893
|
+
export type GetProjectDatabaseExecutionUsageError = GetProjectDatabaseExecutionUsageErrors[keyof GetProjectDatabaseExecutionUsageErrors];
|
|
7894
|
+
export type GetProjectDatabaseExecutionUsageResponses = {
|
|
7895
|
+
/**
|
|
7896
|
+
* One page of execution usage windows.
|
|
7897
|
+
*/
|
|
7898
|
+
200: DatabaseExecutionUsagePage;
|
|
7899
|
+
};
|
|
7900
|
+
export type GetProjectDatabaseExecutionUsageResponse = GetProjectDatabaseExecutionUsageResponses[keyof GetProjectDatabaseExecutionUsageResponses];
|
|
6934
7901
|
export type PlanDeploymentRollbackData = {
|
|
6935
7902
|
body?: never;
|
|
6936
7903
|
headers?: {
|