@amerged/ohmyhost-sdk 0.1.41 → 0.1.42
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 +160 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +351 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +1008 -20
- 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 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +696 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +1153 -25
|
@@ -768,26 +768,22 @@ export type ProjectDatabaseAccessRequest = {
|
|
|
768
768
|
*/
|
|
769
769
|
label?: string | null;
|
|
770
770
|
};
|
|
771
|
-
export type ProjectDatabaseAccess =
|
|
772
|
-
database?: "neondb";
|
|
773
|
-
} | {
|
|
774
|
-
database?: unknown;
|
|
775
|
-
}) & {
|
|
771
|
+
export type ProjectDatabaseAccess = {
|
|
776
772
|
access_id: Ulid;
|
|
777
773
|
environment: "dev" | "prod";
|
|
778
774
|
mode: "read" | "write";
|
|
779
775
|
role_name: string;
|
|
780
776
|
host: string;
|
|
781
777
|
/**
|
|
782
|
-
*
|
|
778
|
+
* The exact 20-character PGCF database identity for WSS.
|
|
783
779
|
*/
|
|
784
780
|
database: string;
|
|
785
|
-
provider
|
|
786
|
-
transport
|
|
781
|
+
provider: "pgcf";
|
|
782
|
+
transport: "wss";
|
|
787
783
|
/**
|
|
788
784
|
* 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
785
|
*/
|
|
790
|
-
websocket_url
|
|
786
|
+
websocket_url: string;
|
|
791
787
|
label: string | null;
|
|
792
788
|
state: "active" | "expired" | "revoked";
|
|
793
789
|
issued_at: string;
|
|
@@ -795,26 +791,22 @@ export type ProjectDatabaseAccess = ({
|
|
|
795
791
|
revoked_at: string | null;
|
|
796
792
|
revocation_reason: "principal" | "expired" | "budget" | "creation_failed" | "data_change" | null;
|
|
797
793
|
};
|
|
798
|
-
export type ProjectDatabaseAccessCredential =
|
|
799
|
-
database?: "neondb";
|
|
800
|
-
} | {
|
|
801
|
-
database?: unknown;
|
|
802
|
-
}) & {
|
|
794
|
+
export type ProjectDatabaseAccessCredential = {
|
|
803
795
|
access_id: Ulid;
|
|
804
796
|
environment: "dev" | "prod";
|
|
805
797
|
mode: "read" | "write";
|
|
806
798
|
role_name: string;
|
|
807
799
|
host: string;
|
|
808
800
|
/**
|
|
809
|
-
*
|
|
801
|
+
* The exact 20-character PGCF database identity for WSS.
|
|
810
802
|
*/
|
|
811
803
|
database: string;
|
|
812
|
-
provider
|
|
813
|
-
transport
|
|
804
|
+
provider: "pgcf";
|
|
805
|
+
transport: "wss";
|
|
814
806
|
/**
|
|
815
807
|
* 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
808
|
*/
|
|
817
|
-
websocket_url
|
|
809
|
+
websocket_url: string;
|
|
818
810
|
label: string | null;
|
|
819
811
|
state: "active" | "expired" | "revoked";
|
|
820
812
|
issued_at: string;
|
|
@@ -826,13 +818,169 @@ export type ProjectDatabaseAccessCredential = ({
|
|
|
826
818
|
*/
|
|
827
819
|
connection_uri: string;
|
|
828
820
|
/**
|
|
829
|
-
* For PGCF, a secret-free ohmyhost database psql invocation that obtains and revokes its own session credential.
|
|
821
|
+
* For PGCF, a secret-free ohmyhost database psql invocation that obtains and revokes its own session credential.
|
|
830
822
|
*/
|
|
831
823
|
psql_command: string;
|
|
832
824
|
};
|
|
833
825
|
export type ProjectDatabaseAccessPage = {
|
|
834
826
|
items: Array<ProjectDatabaseAccess>;
|
|
835
827
|
};
|
|
828
|
+
export type DatabaseWebhookEventType = "database.created" | "database.ready" | "database.woke" | "database.slept" | "database.suspended" | "database.resized" | "database.deleted";
|
|
829
|
+
export type DatabaseWebhookCreateRequest = {
|
|
830
|
+
/**
|
|
831
|
+
* HTTPS receiver URL.
|
|
832
|
+
*/
|
|
833
|
+
url: string;
|
|
834
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
835
|
+
/**
|
|
836
|
+
* 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.
|
|
837
|
+
*/
|
|
838
|
+
headers?: {
|
|
839
|
+
[key: string]: string;
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
export type DatabaseWebhook = {
|
|
843
|
+
id: string;
|
|
844
|
+
environment: "dev" | "prod";
|
|
845
|
+
url: string;
|
|
846
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
847
|
+
/**
|
|
848
|
+
* Names of the extra headers only; their values are never returned.
|
|
849
|
+
*/
|
|
850
|
+
header_names: Array<string>;
|
|
851
|
+
created_at: string;
|
|
852
|
+
};
|
|
853
|
+
export type DatabaseWebhookCreated = {
|
|
854
|
+
id: string;
|
|
855
|
+
environment: "dev" | "prod";
|
|
856
|
+
url: string;
|
|
857
|
+
event_types: Array<DatabaseWebhookEventType>;
|
|
858
|
+
header_names: Array<string>;
|
|
859
|
+
created_at: string;
|
|
860
|
+
/**
|
|
861
|
+
* Signing secret, returned only by this creation answer.
|
|
862
|
+
*/
|
|
863
|
+
secret: string;
|
|
864
|
+
};
|
|
865
|
+
export type DatabaseWebhookPage = {
|
|
866
|
+
items: Array<DatabaseWebhook>;
|
|
867
|
+
};
|
|
868
|
+
export type DatabaseWebhookDeleted = {
|
|
869
|
+
id: string;
|
|
870
|
+
deleted: true;
|
|
871
|
+
};
|
|
872
|
+
export type DatabaseWebhookDelivery = {
|
|
873
|
+
id: string;
|
|
874
|
+
event_id: string;
|
|
875
|
+
event_type: DatabaseWebhookEventType;
|
|
876
|
+
webhook_id: string;
|
|
877
|
+
state: "pending" | "delivered" | "dead_lettered";
|
|
878
|
+
attempts: number;
|
|
879
|
+
created_at: string;
|
|
880
|
+
next_attempt_at: string | null;
|
|
881
|
+
delivered_at: string | null;
|
|
882
|
+
last_status: number | null;
|
|
883
|
+
last_error: "timeout" | "network" | "http" | "expired" | "permanent" | null;
|
|
884
|
+
};
|
|
885
|
+
export type DatabaseWebhookDeliveryPage = {
|
|
886
|
+
items: Array<DatabaseWebhookDelivery>;
|
|
887
|
+
next_cursor: string | null;
|
|
888
|
+
};
|
|
889
|
+
export type DatabaseWebhookTestResult = {
|
|
890
|
+
delivered: boolean;
|
|
891
|
+
status: number | null;
|
|
892
|
+
error: "timeout" | "network" | "http" | null;
|
|
893
|
+
duration_ms: number;
|
|
894
|
+
};
|
|
895
|
+
export type DatabaseWebhookReplayAccepted = {
|
|
896
|
+
delivery_id: string;
|
|
897
|
+
state: "pending";
|
|
898
|
+
};
|
|
899
|
+
export type DatabaseScheduleSetRequest = unknown & {
|
|
900
|
+
/**
|
|
901
|
+
* Five-field cron expression evaluated in UTC. Send exactly one of cron or every_seconds.
|
|
902
|
+
*/
|
|
903
|
+
cron?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Interval in seconds between runs. Send exactly one of cron or every_seconds.
|
|
906
|
+
*/
|
|
907
|
+
every_seconds?: number;
|
|
908
|
+
/**
|
|
909
|
+
* Statements run in order by the application's runtime role. At most 16 KiB per statement and 64 KiB in total.
|
|
910
|
+
*/
|
|
911
|
+
statements: Array<string>;
|
|
912
|
+
timeout_ms?: number;
|
|
913
|
+
enabled?: boolean;
|
|
914
|
+
/**
|
|
915
|
+
* Confirms that the statements run with the application's runtime role.
|
|
916
|
+
*/
|
|
917
|
+
confirm: true;
|
|
918
|
+
};
|
|
919
|
+
export type DatabaseSchedule = ({
|
|
920
|
+
cron?: string;
|
|
921
|
+
every_seconds?: null;
|
|
922
|
+
} | {
|
|
923
|
+
cron?: null;
|
|
924
|
+
every_seconds?: number;
|
|
925
|
+
}) & {
|
|
926
|
+
name: string;
|
|
927
|
+
environment: "dev" | "prod";
|
|
928
|
+
cron: string | null;
|
|
929
|
+
every_seconds: number | null;
|
|
930
|
+
statements: Array<string>;
|
|
931
|
+
timeout_ms: number;
|
|
932
|
+
enabled: boolean;
|
|
933
|
+
next_run_at: string | null;
|
|
934
|
+
created_at: string;
|
|
935
|
+
};
|
|
936
|
+
export type DatabaseSchedulePage = {
|
|
937
|
+
items: Array<DatabaseSchedule>;
|
|
938
|
+
};
|
|
939
|
+
export type DatabaseScheduleDeleted = {
|
|
940
|
+
name: string;
|
|
941
|
+
deleted: true;
|
|
942
|
+
};
|
|
943
|
+
export type DatabaseScheduleRun = {
|
|
944
|
+
id: number;
|
|
945
|
+
schedule: string;
|
|
946
|
+
scheduled_at: string;
|
|
947
|
+
started_at: string | null;
|
|
948
|
+
finished_at: string;
|
|
949
|
+
outcome: "succeeded" | "failed" | "timed_out" | "outcome_unknown" | "rejected" | "skipped_capacity" | "skipped_suspended" | "skipped_deleted" | "skipped_missed";
|
|
950
|
+
sqlstate: string | null;
|
|
951
|
+
attempts: number;
|
|
952
|
+
manual: boolean;
|
|
953
|
+
};
|
|
954
|
+
export type DatabaseScheduleRunPage = {
|
|
955
|
+
items: Array<DatabaseScheduleRun>;
|
|
956
|
+
};
|
|
957
|
+
export type DatabaseScheduleRunAccepted = {
|
|
958
|
+
schedule: string;
|
|
959
|
+
state: "queued";
|
|
960
|
+
};
|
|
961
|
+
export type DatabaseExecutionMetrics = {
|
|
962
|
+
schedule_runs_succeeded: number;
|
|
963
|
+
schedule_runs_failed: number;
|
|
964
|
+
schedule_runs_timed_out: number;
|
|
965
|
+
schedule_runs_outcome_unknown: number;
|
|
966
|
+
schedule_runs_rejected: number;
|
|
967
|
+
schedule_runs_skipped: number;
|
|
968
|
+
events_emitted: number;
|
|
969
|
+
event_bytes: number;
|
|
970
|
+
webhook_attempts: number;
|
|
971
|
+
webhook_deliveries_delivered: number;
|
|
972
|
+
webhook_deliveries_dead_lettered: number;
|
|
973
|
+
};
|
|
974
|
+
export type DatabaseExecutionUsageRow = {
|
|
975
|
+
start: string;
|
|
976
|
+
end: string;
|
|
977
|
+
final: boolean;
|
|
978
|
+
metrics: DatabaseExecutionMetrics;
|
|
979
|
+
};
|
|
980
|
+
export type DatabaseExecutionUsagePage = {
|
|
981
|
+
items: Array<DatabaseExecutionUsageRow>;
|
|
982
|
+
next_cursor: string | null;
|
|
983
|
+
};
|
|
836
984
|
export type SetDevAccessModeRequest = {
|
|
837
985
|
mode: "protected" | "public";
|
|
838
986
|
};
|
|
@@ -1202,7 +1350,7 @@ export type ProblemDetails = {
|
|
|
1202
1350
|
status: number;
|
|
1203
1351
|
detail?: string;
|
|
1204
1352
|
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";
|
|
1353
|
+
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
1354
|
request_id: string;
|
|
1207
1355
|
retryable: boolean;
|
|
1208
1356
|
/**
|
|
@@ -1478,10 +1626,30 @@ export type ProjectId = Ulid;
|
|
|
1478
1626
|
* Issued database credential identifier.
|
|
1479
1627
|
*/
|
|
1480
1628
|
export type DatabaseAccessId = Ulid;
|
|
1629
|
+
/**
|
|
1630
|
+
* Application environment to read; dev when omitted.
|
|
1631
|
+
*/
|
|
1632
|
+
export type DatabaseEnvironmentRead = "dev" | "prod";
|
|
1481
1633
|
/**
|
|
1482
1634
|
* Restrict the listing to one application environment.
|
|
1483
1635
|
*/
|
|
1484
1636
|
export type DatabaseEnvironmentFilter = "dev" | "prod";
|
|
1637
|
+
/**
|
|
1638
|
+
* Application environment the mutation applies to.
|
|
1639
|
+
*/
|
|
1640
|
+
export type DatabaseEnvironment = "dev" | "prod";
|
|
1641
|
+
/**
|
|
1642
|
+
* Database webhook identifier.
|
|
1643
|
+
*/
|
|
1644
|
+
export type DatabaseWebhookId = string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Database webhook delivery identifier.
|
|
1647
|
+
*/
|
|
1648
|
+
export type DatabaseWebhookDeliveryId = string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Database schedule name, unique per project environment.
|
|
1651
|
+
*/
|
|
1652
|
+
export type DatabaseScheduleName = string;
|
|
1485
1653
|
/**
|
|
1486
1654
|
* Opaque continuation cursor returned by the preceding project page.
|
|
1487
1655
|
*/
|
|
@@ -6931,6 +7099,826 @@ export type RevokeProjectDatabaseAccessResponses = {
|
|
|
6931
7099
|
200: ProjectDatabaseAccess;
|
|
6932
7100
|
};
|
|
6933
7101
|
export type RevokeProjectDatabaseAccessResponse = RevokeProjectDatabaseAccessResponses[keyof RevokeProjectDatabaseAccessResponses];
|
|
7102
|
+
export type ListProjectDatabaseWebhooksData = {
|
|
7103
|
+
body?: never;
|
|
7104
|
+
headers?: {
|
|
7105
|
+
/**
|
|
7106
|
+
* Optional caller-provided correlation identifier.
|
|
7107
|
+
*/
|
|
7108
|
+
"X-Request-Id"?: string;
|
|
7109
|
+
};
|
|
7110
|
+
path: {
|
|
7111
|
+
/**
|
|
7112
|
+
* Project identifier.
|
|
7113
|
+
*/
|
|
7114
|
+
project_id: Ulid;
|
|
7115
|
+
};
|
|
7116
|
+
query?: {
|
|
7117
|
+
/**
|
|
7118
|
+
* Application environment to read; dev when omitted.
|
|
7119
|
+
*/
|
|
7120
|
+
environment?: "dev" | "prod";
|
|
7121
|
+
};
|
|
7122
|
+
url: "/v1/projects/{project_id}/database/webhooks";
|
|
7123
|
+
};
|
|
7124
|
+
export type ListProjectDatabaseWebhooksErrors = {
|
|
7125
|
+
/**
|
|
7126
|
+
* The request failed.
|
|
7127
|
+
*/
|
|
7128
|
+
400: ProblemDetails;
|
|
7129
|
+
/**
|
|
7130
|
+
* The request failed.
|
|
7131
|
+
*/
|
|
7132
|
+
401: ProblemDetails;
|
|
7133
|
+
/**
|
|
7134
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7135
|
+
*/
|
|
7136
|
+
404: ProblemDetails;
|
|
7137
|
+
/**
|
|
7138
|
+
* The request failed.
|
|
7139
|
+
*/
|
|
7140
|
+
429: ProblemDetails;
|
|
7141
|
+
/**
|
|
7142
|
+
* The request failed.
|
|
7143
|
+
*/
|
|
7144
|
+
503: ProblemDetails;
|
|
7145
|
+
};
|
|
7146
|
+
export type ListProjectDatabaseWebhooksError = ListProjectDatabaseWebhooksErrors[keyof ListProjectDatabaseWebhooksErrors];
|
|
7147
|
+
export type ListProjectDatabaseWebhooksResponses = {
|
|
7148
|
+
/**
|
|
7149
|
+
* The database webhooks of the environment.
|
|
7150
|
+
*/
|
|
7151
|
+
200: DatabaseWebhookPage;
|
|
7152
|
+
};
|
|
7153
|
+
export type ListProjectDatabaseWebhooksResponse = ListProjectDatabaseWebhooksResponses[keyof ListProjectDatabaseWebhooksResponses];
|
|
7154
|
+
export type CreateProjectDatabaseWebhookData = {
|
|
7155
|
+
body: DatabaseWebhookCreateRequest;
|
|
7156
|
+
headers: {
|
|
7157
|
+
/**
|
|
7158
|
+
* Optional caller-provided correlation identifier.
|
|
7159
|
+
*/
|
|
7160
|
+
"X-Request-Id"?: string;
|
|
7161
|
+
/**
|
|
7162
|
+
* Identifies one mutation and its canonical request payload.
|
|
7163
|
+
*/
|
|
7164
|
+
"Idempotency-Key": string;
|
|
7165
|
+
};
|
|
7166
|
+
path: {
|
|
7167
|
+
/**
|
|
7168
|
+
* Project identifier.
|
|
7169
|
+
*/
|
|
7170
|
+
project_id: Ulid;
|
|
7171
|
+
};
|
|
7172
|
+
query: {
|
|
7173
|
+
/**
|
|
7174
|
+
* Application environment the mutation applies to.
|
|
7175
|
+
*/
|
|
7176
|
+
environment: "dev" | "prod";
|
|
7177
|
+
};
|
|
7178
|
+
url: "/v1/projects/{project_id}/database/webhooks";
|
|
7179
|
+
};
|
|
7180
|
+
export type CreateProjectDatabaseWebhookErrors = {
|
|
7181
|
+
/**
|
|
7182
|
+
* The request failed.
|
|
7183
|
+
*/
|
|
7184
|
+
400: ProblemDetails;
|
|
7185
|
+
/**
|
|
7186
|
+
* The request failed.
|
|
7187
|
+
*/
|
|
7188
|
+
401: ProblemDetails;
|
|
7189
|
+
/**
|
|
7190
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7191
|
+
*/
|
|
7192
|
+
404: ProblemDetails;
|
|
7193
|
+
/**
|
|
7194
|
+
* The request failed.
|
|
7195
|
+
*/
|
|
7196
|
+
409: ProblemDetails;
|
|
7197
|
+
/**
|
|
7198
|
+
* The request failed.
|
|
7199
|
+
*/
|
|
7200
|
+
429: ProblemDetails;
|
|
7201
|
+
/**
|
|
7202
|
+
* The request failed.
|
|
7203
|
+
*/
|
|
7204
|
+
503: ProblemDetails;
|
|
7205
|
+
};
|
|
7206
|
+
export type CreateProjectDatabaseWebhookError = CreateProjectDatabaseWebhookErrors[keyof CreateProjectDatabaseWebhookErrors];
|
|
7207
|
+
export type CreateProjectDatabaseWebhookResponses = {
|
|
7208
|
+
/**
|
|
7209
|
+
* The webhook with its signing secret, returned once and never persisted in plaintext.
|
|
7210
|
+
*/
|
|
7211
|
+
201: DatabaseWebhookCreated;
|
|
7212
|
+
};
|
|
7213
|
+
export type CreateProjectDatabaseWebhookResponse = CreateProjectDatabaseWebhookResponses[keyof CreateProjectDatabaseWebhookResponses];
|
|
7214
|
+
export type DeleteProjectDatabaseWebhookData = {
|
|
7215
|
+
body?: never;
|
|
7216
|
+
headers?: {
|
|
7217
|
+
/**
|
|
7218
|
+
* Optional caller-provided correlation identifier.
|
|
7219
|
+
*/
|
|
7220
|
+
"X-Request-Id"?: string;
|
|
7221
|
+
};
|
|
7222
|
+
path: {
|
|
7223
|
+
/**
|
|
7224
|
+
* Project identifier.
|
|
7225
|
+
*/
|
|
7226
|
+
project_id: Ulid;
|
|
7227
|
+
/**
|
|
7228
|
+
* Database webhook identifier.
|
|
7229
|
+
*/
|
|
7230
|
+
webhook_id: string;
|
|
7231
|
+
};
|
|
7232
|
+
query: {
|
|
7233
|
+
/**
|
|
7234
|
+
* Application environment the mutation applies to.
|
|
7235
|
+
*/
|
|
7236
|
+
environment: "dev" | "prod";
|
|
7237
|
+
};
|
|
7238
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}";
|
|
7239
|
+
};
|
|
7240
|
+
export type DeleteProjectDatabaseWebhookErrors = {
|
|
7241
|
+
/**
|
|
7242
|
+
* The request failed.
|
|
7243
|
+
*/
|
|
7244
|
+
400: ProblemDetails;
|
|
7245
|
+
/**
|
|
7246
|
+
* The request failed.
|
|
7247
|
+
*/
|
|
7248
|
+
401: ProblemDetails;
|
|
7249
|
+
/**
|
|
7250
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7251
|
+
*/
|
|
7252
|
+
404: ProblemDetails;
|
|
7253
|
+
/**
|
|
7254
|
+
* The request failed.
|
|
7255
|
+
*/
|
|
7256
|
+
429: ProblemDetails;
|
|
7257
|
+
/**
|
|
7258
|
+
* The request failed.
|
|
7259
|
+
*/
|
|
7260
|
+
503: ProblemDetails;
|
|
7261
|
+
};
|
|
7262
|
+
export type DeleteProjectDatabaseWebhookError = DeleteProjectDatabaseWebhookErrors[keyof DeleteProjectDatabaseWebhookErrors];
|
|
7263
|
+
export type DeleteProjectDatabaseWebhookResponses = {
|
|
7264
|
+
/**
|
|
7265
|
+
* The identifier of the deleted webhook.
|
|
7266
|
+
*/
|
|
7267
|
+
200: DatabaseWebhookDeleted;
|
|
7268
|
+
};
|
|
7269
|
+
export type DeleteProjectDatabaseWebhookResponse = DeleteProjectDatabaseWebhookResponses[keyof DeleteProjectDatabaseWebhookResponses];
|
|
7270
|
+
export type GetProjectDatabaseWebhookData = {
|
|
7271
|
+
body?: never;
|
|
7272
|
+
headers?: {
|
|
7273
|
+
/**
|
|
7274
|
+
* Optional caller-provided correlation identifier.
|
|
7275
|
+
*/
|
|
7276
|
+
"X-Request-Id"?: string;
|
|
7277
|
+
};
|
|
7278
|
+
path: {
|
|
7279
|
+
/**
|
|
7280
|
+
* Project identifier.
|
|
7281
|
+
*/
|
|
7282
|
+
project_id: Ulid;
|
|
7283
|
+
/**
|
|
7284
|
+
* Database webhook identifier.
|
|
7285
|
+
*/
|
|
7286
|
+
webhook_id: string;
|
|
7287
|
+
};
|
|
7288
|
+
query?: {
|
|
7289
|
+
/**
|
|
7290
|
+
* Application environment to read; dev when omitted.
|
|
7291
|
+
*/
|
|
7292
|
+
environment?: "dev" | "prod";
|
|
7293
|
+
};
|
|
7294
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}";
|
|
7295
|
+
};
|
|
7296
|
+
export type GetProjectDatabaseWebhookErrors = {
|
|
7297
|
+
/**
|
|
7298
|
+
* The request failed.
|
|
7299
|
+
*/
|
|
7300
|
+
400: ProblemDetails;
|
|
7301
|
+
/**
|
|
7302
|
+
* The request failed.
|
|
7303
|
+
*/
|
|
7304
|
+
401: ProblemDetails;
|
|
7305
|
+
/**
|
|
7306
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7307
|
+
*/
|
|
7308
|
+
404: ProblemDetails;
|
|
7309
|
+
/**
|
|
7310
|
+
* The request failed.
|
|
7311
|
+
*/
|
|
7312
|
+
429: ProblemDetails;
|
|
7313
|
+
/**
|
|
7314
|
+
* The request failed.
|
|
7315
|
+
*/
|
|
7316
|
+
503: ProblemDetails;
|
|
7317
|
+
};
|
|
7318
|
+
export type GetProjectDatabaseWebhookError = GetProjectDatabaseWebhookErrors[keyof GetProjectDatabaseWebhookErrors];
|
|
7319
|
+
export type GetProjectDatabaseWebhookResponses = {
|
|
7320
|
+
/**
|
|
7321
|
+
* The database webhook.
|
|
7322
|
+
*/
|
|
7323
|
+
200: DatabaseWebhook;
|
|
7324
|
+
};
|
|
7325
|
+
export type GetProjectDatabaseWebhookResponse = GetProjectDatabaseWebhookResponses[keyof GetProjectDatabaseWebhookResponses];
|
|
7326
|
+
export type TestProjectDatabaseWebhookData = {
|
|
7327
|
+
body?: never;
|
|
7328
|
+
headers?: {
|
|
7329
|
+
/**
|
|
7330
|
+
* Optional caller-provided correlation identifier.
|
|
7331
|
+
*/
|
|
7332
|
+
"X-Request-Id"?: string;
|
|
7333
|
+
};
|
|
7334
|
+
path: {
|
|
7335
|
+
/**
|
|
7336
|
+
* Project identifier.
|
|
7337
|
+
*/
|
|
7338
|
+
project_id: Ulid;
|
|
7339
|
+
/**
|
|
7340
|
+
* Database webhook identifier.
|
|
7341
|
+
*/
|
|
7342
|
+
webhook_id: string;
|
|
7343
|
+
};
|
|
7344
|
+
query: {
|
|
7345
|
+
/**
|
|
7346
|
+
* Application environment the mutation applies to.
|
|
7347
|
+
*/
|
|
7348
|
+
environment: "dev" | "prod";
|
|
7349
|
+
};
|
|
7350
|
+
url: "/v1/projects/{project_id}/database/webhooks/{webhook_id}/test";
|
|
7351
|
+
};
|
|
7352
|
+
export type TestProjectDatabaseWebhookErrors = {
|
|
7353
|
+
/**
|
|
7354
|
+
* The request failed.
|
|
7355
|
+
*/
|
|
7356
|
+
400: ProblemDetails;
|
|
7357
|
+
/**
|
|
7358
|
+
* The request failed.
|
|
7359
|
+
*/
|
|
7360
|
+
401: ProblemDetails;
|
|
7361
|
+
/**
|
|
7362
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7363
|
+
*/
|
|
7364
|
+
404: ProblemDetails;
|
|
7365
|
+
/**
|
|
7366
|
+
* The request failed.
|
|
7367
|
+
*/
|
|
7368
|
+
429: ProblemDetails;
|
|
7369
|
+
/**
|
|
7370
|
+
* The request failed.
|
|
7371
|
+
*/
|
|
7372
|
+
503: ProblemDetails;
|
|
7373
|
+
};
|
|
7374
|
+
export type TestProjectDatabaseWebhookError = TestProjectDatabaseWebhookErrors[keyof TestProjectDatabaseWebhookErrors];
|
|
7375
|
+
export type TestProjectDatabaseWebhookResponses = {
|
|
7376
|
+
/**
|
|
7377
|
+
* The outcome of the test request.
|
|
7378
|
+
*/
|
|
7379
|
+
200: DatabaseWebhookTestResult;
|
|
7380
|
+
};
|
|
7381
|
+
export type TestProjectDatabaseWebhookResponse = TestProjectDatabaseWebhookResponses[keyof TestProjectDatabaseWebhookResponses];
|
|
7382
|
+
export type ListProjectDatabaseWebhookDeliveriesData = {
|
|
7383
|
+
body?: never;
|
|
7384
|
+
headers?: {
|
|
7385
|
+
/**
|
|
7386
|
+
* Optional caller-provided correlation identifier.
|
|
7387
|
+
*/
|
|
7388
|
+
"X-Request-Id"?: string;
|
|
7389
|
+
};
|
|
7390
|
+
path: {
|
|
7391
|
+
/**
|
|
7392
|
+
* Project identifier.
|
|
7393
|
+
*/
|
|
7394
|
+
project_id: Ulid;
|
|
7395
|
+
};
|
|
7396
|
+
query?: {
|
|
7397
|
+
/**
|
|
7398
|
+
* Application environment to read; dev when omitted.
|
|
7399
|
+
*/
|
|
7400
|
+
environment?: "dev" | "prod";
|
|
7401
|
+
/**
|
|
7402
|
+
* Restrict the listing to the deliveries of one webhook.
|
|
7403
|
+
*/
|
|
7404
|
+
webhook_id?: string;
|
|
7405
|
+
/**
|
|
7406
|
+
* Maximum number of deliveries in this page.
|
|
7407
|
+
*/
|
|
7408
|
+
limit?: number;
|
|
7409
|
+
/**
|
|
7410
|
+
* Opaque cursor returned by the previous page.
|
|
7411
|
+
*/
|
|
7412
|
+
cursor?: string;
|
|
7413
|
+
};
|
|
7414
|
+
url: "/v1/projects/{project_id}/database/webhook-deliveries";
|
|
7415
|
+
};
|
|
7416
|
+
export type ListProjectDatabaseWebhookDeliveriesErrors = {
|
|
7417
|
+
/**
|
|
7418
|
+
* The request failed.
|
|
7419
|
+
*/
|
|
7420
|
+
400: ProblemDetails;
|
|
7421
|
+
/**
|
|
7422
|
+
* The request failed.
|
|
7423
|
+
*/
|
|
7424
|
+
401: ProblemDetails;
|
|
7425
|
+
/**
|
|
7426
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7427
|
+
*/
|
|
7428
|
+
404: ProblemDetails;
|
|
7429
|
+
/**
|
|
7430
|
+
* The request failed.
|
|
7431
|
+
*/
|
|
7432
|
+
429: ProblemDetails;
|
|
7433
|
+
/**
|
|
7434
|
+
* The request failed.
|
|
7435
|
+
*/
|
|
7436
|
+
503: ProblemDetails;
|
|
7437
|
+
};
|
|
7438
|
+
export type ListProjectDatabaseWebhookDeliveriesError = ListProjectDatabaseWebhookDeliveriesErrors[keyof ListProjectDatabaseWebhookDeliveriesErrors];
|
|
7439
|
+
export type ListProjectDatabaseWebhookDeliveriesResponses = {
|
|
7440
|
+
/**
|
|
7441
|
+
* One page of database webhook deliveries.
|
|
7442
|
+
*/
|
|
7443
|
+
200: DatabaseWebhookDeliveryPage;
|
|
7444
|
+
};
|
|
7445
|
+
export type ListProjectDatabaseWebhookDeliveriesResponse = ListProjectDatabaseWebhookDeliveriesResponses[keyof ListProjectDatabaseWebhookDeliveriesResponses];
|
|
7446
|
+
export type ReplayProjectDatabaseWebhookDeliveryData = {
|
|
7447
|
+
body?: never;
|
|
7448
|
+
headers?: {
|
|
7449
|
+
/**
|
|
7450
|
+
* Optional caller-provided correlation identifier.
|
|
7451
|
+
*/
|
|
7452
|
+
"X-Request-Id"?: string;
|
|
7453
|
+
};
|
|
7454
|
+
path: {
|
|
7455
|
+
/**
|
|
7456
|
+
* Project identifier.
|
|
7457
|
+
*/
|
|
7458
|
+
project_id: Ulid;
|
|
7459
|
+
/**
|
|
7460
|
+
* Database webhook delivery identifier.
|
|
7461
|
+
*/
|
|
7462
|
+
delivery_id: string;
|
|
7463
|
+
};
|
|
7464
|
+
query: {
|
|
7465
|
+
/**
|
|
7466
|
+
* Application environment the mutation applies to.
|
|
7467
|
+
*/
|
|
7468
|
+
environment: "dev" | "prod";
|
|
7469
|
+
};
|
|
7470
|
+
url: "/v1/projects/{project_id}/database/webhook-deliveries/{delivery_id}/replay";
|
|
7471
|
+
};
|
|
7472
|
+
export type ReplayProjectDatabaseWebhookDeliveryErrors = {
|
|
7473
|
+
/**
|
|
7474
|
+
* The request failed.
|
|
7475
|
+
*/
|
|
7476
|
+
400: ProblemDetails;
|
|
7477
|
+
/**
|
|
7478
|
+
* The request failed.
|
|
7479
|
+
*/
|
|
7480
|
+
401: ProblemDetails;
|
|
7481
|
+
/**
|
|
7482
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7483
|
+
*/
|
|
7484
|
+
404: ProblemDetails;
|
|
7485
|
+
/**
|
|
7486
|
+
* The request failed.
|
|
7487
|
+
*/
|
|
7488
|
+
409: ProblemDetails;
|
|
7489
|
+
/**
|
|
7490
|
+
* The request failed.
|
|
7491
|
+
*/
|
|
7492
|
+
429: ProblemDetails;
|
|
7493
|
+
/**
|
|
7494
|
+
* The request failed.
|
|
7495
|
+
*/
|
|
7496
|
+
503: ProblemDetails;
|
|
7497
|
+
};
|
|
7498
|
+
export type ReplayProjectDatabaseWebhookDeliveryError = ReplayProjectDatabaseWebhookDeliveryErrors[keyof ReplayProjectDatabaseWebhookDeliveryErrors];
|
|
7499
|
+
export type ReplayProjectDatabaseWebhookDeliveryResponses = {
|
|
7500
|
+
/**
|
|
7501
|
+
* The delivery was queued for another attempt.
|
|
7502
|
+
*/
|
|
7503
|
+
202: DatabaseWebhookReplayAccepted;
|
|
7504
|
+
};
|
|
7505
|
+
export type ReplayProjectDatabaseWebhookDeliveryResponse = ReplayProjectDatabaseWebhookDeliveryResponses[keyof ReplayProjectDatabaseWebhookDeliveryResponses];
|
|
7506
|
+
export type ListProjectDatabaseSchedulesData = {
|
|
7507
|
+
body?: never;
|
|
7508
|
+
headers?: {
|
|
7509
|
+
/**
|
|
7510
|
+
* Optional caller-provided correlation identifier.
|
|
7511
|
+
*/
|
|
7512
|
+
"X-Request-Id"?: string;
|
|
7513
|
+
};
|
|
7514
|
+
path: {
|
|
7515
|
+
/**
|
|
7516
|
+
* Project identifier.
|
|
7517
|
+
*/
|
|
7518
|
+
project_id: Ulid;
|
|
7519
|
+
};
|
|
7520
|
+
query?: {
|
|
7521
|
+
/**
|
|
7522
|
+
* Application environment to read; dev when omitted.
|
|
7523
|
+
*/
|
|
7524
|
+
environment?: "dev" | "prod";
|
|
7525
|
+
};
|
|
7526
|
+
url: "/v1/projects/{project_id}/database/schedules";
|
|
7527
|
+
};
|
|
7528
|
+
export type ListProjectDatabaseSchedulesErrors = {
|
|
7529
|
+
/**
|
|
7530
|
+
* The request failed.
|
|
7531
|
+
*/
|
|
7532
|
+
400: ProblemDetails;
|
|
7533
|
+
/**
|
|
7534
|
+
* The request failed.
|
|
7535
|
+
*/
|
|
7536
|
+
401: ProblemDetails;
|
|
7537
|
+
/**
|
|
7538
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7539
|
+
*/
|
|
7540
|
+
404: ProblemDetails;
|
|
7541
|
+
/**
|
|
7542
|
+
* The request failed.
|
|
7543
|
+
*/
|
|
7544
|
+
429: ProblemDetails;
|
|
7545
|
+
/**
|
|
7546
|
+
* The request failed.
|
|
7547
|
+
*/
|
|
7548
|
+
503: ProblemDetails;
|
|
7549
|
+
};
|
|
7550
|
+
export type ListProjectDatabaseSchedulesError = ListProjectDatabaseSchedulesErrors[keyof ListProjectDatabaseSchedulesErrors];
|
|
7551
|
+
export type ListProjectDatabaseSchedulesResponses = {
|
|
7552
|
+
/**
|
|
7553
|
+
* The database schedules of the environment.
|
|
7554
|
+
*/
|
|
7555
|
+
200: DatabaseSchedulePage;
|
|
7556
|
+
};
|
|
7557
|
+
export type ListProjectDatabaseSchedulesResponse = ListProjectDatabaseSchedulesResponses[keyof ListProjectDatabaseSchedulesResponses];
|
|
7558
|
+
export type DeleteProjectDatabaseScheduleData = {
|
|
7559
|
+
body?: never;
|
|
7560
|
+
headers?: {
|
|
7561
|
+
/**
|
|
7562
|
+
* Optional caller-provided correlation identifier.
|
|
7563
|
+
*/
|
|
7564
|
+
"X-Request-Id"?: string;
|
|
7565
|
+
};
|
|
7566
|
+
path: {
|
|
7567
|
+
/**
|
|
7568
|
+
* Project identifier.
|
|
7569
|
+
*/
|
|
7570
|
+
project_id: Ulid;
|
|
7571
|
+
/**
|
|
7572
|
+
* Database schedule name, unique per project environment.
|
|
7573
|
+
*/
|
|
7574
|
+
name: string;
|
|
7575
|
+
};
|
|
7576
|
+
query: {
|
|
7577
|
+
/**
|
|
7578
|
+
* Application environment the mutation applies to.
|
|
7579
|
+
*/
|
|
7580
|
+
environment: "dev" | "prod";
|
|
7581
|
+
};
|
|
7582
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7583
|
+
};
|
|
7584
|
+
export type DeleteProjectDatabaseScheduleErrors = {
|
|
7585
|
+
/**
|
|
7586
|
+
* The request failed.
|
|
7587
|
+
*/
|
|
7588
|
+
400: ProblemDetails;
|
|
7589
|
+
/**
|
|
7590
|
+
* The request failed.
|
|
7591
|
+
*/
|
|
7592
|
+
401: ProblemDetails;
|
|
7593
|
+
/**
|
|
7594
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7595
|
+
*/
|
|
7596
|
+
404: ProblemDetails;
|
|
7597
|
+
/**
|
|
7598
|
+
* The request failed.
|
|
7599
|
+
*/
|
|
7600
|
+
429: ProblemDetails;
|
|
7601
|
+
/**
|
|
7602
|
+
* The request failed.
|
|
7603
|
+
*/
|
|
7604
|
+
503: ProblemDetails;
|
|
7605
|
+
};
|
|
7606
|
+
export type DeleteProjectDatabaseScheduleError = DeleteProjectDatabaseScheduleErrors[keyof DeleteProjectDatabaseScheduleErrors];
|
|
7607
|
+
export type DeleteProjectDatabaseScheduleResponses = {
|
|
7608
|
+
/**
|
|
7609
|
+
* The name of the deleted schedule.
|
|
7610
|
+
*/
|
|
7611
|
+
200: DatabaseScheduleDeleted;
|
|
7612
|
+
};
|
|
7613
|
+
export type DeleteProjectDatabaseScheduleResponse = DeleteProjectDatabaseScheduleResponses[keyof DeleteProjectDatabaseScheduleResponses];
|
|
7614
|
+
export type GetProjectDatabaseScheduleData = {
|
|
7615
|
+
body?: never;
|
|
7616
|
+
headers?: {
|
|
7617
|
+
/**
|
|
7618
|
+
* Optional caller-provided correlation identifier.
|
|
7619
|
+
*/
|
|
7620
|
+
"X-Request-Id"?: string;
|
|
7621
|
+
};
|
|
7622
|
+
path: {
|
|
7623
|
+
/**
|
|
7624
|
+
* Project identifier.
|
|
7625
|
+
*/
|
|
7626
|
+
project_id: Ulid;
|
|
7627
|
+
/**
|
|
7628
|
+
* Database schedule name, unique per project environment.
|
|
7629
|
+
*/
|
|
7630
|
+
name: string;
|
|
7631
|
+
};
|
|
7632
|
+
query?: {
|
|
7633
|
+
/**
|
|
7634
|
+
* Application environment to read; dev when omitted.
|
|
7635
|
+
*/
|
|
7636
|
+
environment?: "dev" | "prod";
|
|
7637
|
+
};
|
|
7638
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7639
|
+
};
|
|
7640
|
+
export type GetProjectDatabaseScheduleErrors = {
|
|
7641
|
+
/**
|
|
7642
|
+
* The request failed.
|
|
7643
|
+
*/
|
|
7644
|
+
400: ProblemDetails;
|
|
7645
|
+
/**
|
|
7646
|
+
* The request failed.
|
|
7647
|
+
*/
|
|
7648
|
+
401: ProblemDetails;
|
|
7649
|
+
/**
|
|
7650
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7651
|
+
*/
|
|
7652
|
+
404: ProblemDetails;
|
|
7653
|
+
/**
|
|
7654
|
+
* The request failed.
|
|
7655
|
+
*/
|
|
7656
|
+
429: ProblemDetails;
|
|
7657
|
+
/**
|
|
7658
|
+
* The request failed.
|
|
7659
|
+
*/
|
|
7660
|
+
503: ProblemDetails;
|
|
7661
|
+
};
|
|
7662
|
+
export type GetProjectDatabaseScheduleError = GetProjectDatabaseScheduleErrors[keyof GetProjectDatabaseScheduleErrors];
|
|
7663
|
+
export type GetProjectDatabaseScheduleResponses = {
|
|
7664
|
+
/**
|
|
7665
|
+
* The database schedule.
|
|
7666
|
+
*/
|
|
7667
|
+
200: DatabaseSchedule;
|
|
7668
|
+
};
|
|
7669
|
+
export type GetProjectDatabaseScheduleResponse = GetProjectDatabaseScheduleResponses[keyof GetProjectDatabaseScheduleResponses];
|
|
7670
|
+
export type SetProjectDatabaseScheduleData = {
|
|
7671
|
+
body: DatabaseScheduleSetRequest;
|
|
7672
|
+
headers?: {
|
|
7673
|
+
/**
|
|
7674
|
+
* Optional caller-provided correlation identifier.
|
|
7675
|
+
*/
|
|
7676
|
+
"X-Request-Id"?: string;
|
|
7677
|
+
};
|
|
7678
|
+
path: {
|
|
7679
|
+
/**
|
|
7680
|
+
* Project identifier.
|
|
7681
|
+
*/
|
|
7682
|
+
project_id: Ulid;
|
|
7683
|
+
/**
|
|
7684
|
+
* Database schedule name, unique per project environment.
|
|
7685
|
+
*/
|
|
7686
|
+
name: string;
|
|
7687
|
+
};
|
|
7688
|
+
query: {
|
|
7689
|
+
/**
|
|
7690
|
+
* Application environment the mutation applies to.
|
|
7691
|
+
*/
|
|
7692
|
+
environment: "dev" | "prod";
|
|
7693
|
+
};
|
|
7694
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}";
|
|
7695
|
+
};
|
|
7696
|
+
export type SetProjectDatabaseScheduleErrors = {
|
|
7697
|
+
/**
|
|
7698
|
+
* The request failed.
|
|
7699
|
+
*/
|
|
7700
|
+
400: ProblemDetails;
|
|
7701
|
+
/**
|
|
7702
|
+
* The request failed.
|
|
7703
|
+
*/
|
|
7704
|
+
401: ProblemDetails;
|
|
7705
|
+
/**
|
|
7706
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7707
|
+
*/
|
|
7708
|
+
404: ProblemDetails;
|
|
7709
|
+
/**
|
|
7710
|
+
* The request failed.
|
|
7711
|
+
*/
|
|
7712
|
+
409: ProblemDetails;
|
|
7713
|
+
/**
|
|
7714
|
+
* The request failed.
|
|
7715
|
+
*/
|
|
7716
|
+
429: ProblemDetails;
|
|
7717
|
+
/**
|
|
7718
|
+
* The request failed.
|
|
7719
|
+
*/
|
|
7720
|
+
503: ProblemDetails;
|
|
7721
|
+
};
|
|
7722
|
+
export type SetProjectDatabaseScheduleError = SetProjectDatabaseScheduleErrors[keyof SetProjectDatabaseScheduleErrors];
|
|
7723
|
+
export type SetProjectDatabaseScheduleResponses = {
|
|
7724
|
+
/**
|
|
7725
|
+
* The schedule as stored.
|
|
7726
|
+
*/
|
|
7727
|
+
200: DatabaseSchedule;
|
|
7728
|
+
};
|
|
7729
|
+
export type SetProjectDatabaseScheduleResponse = SetProjectDatabaseScheduleResponses[keyof SetProjectDatabaseScheduleResponses];
|
|
7730
|
+
export type ListProjectDatabaseScheduleRunsData = {
|
|
7731
|
+
body?: never;
|
|
7732
|
+
headers?: {
|
|
7733
|
+
/**
|
|
7734
|
+
* Optional caller-provided correlation identifier.
|
|
7735
|
+
*/
|
|
7736
|
+
"X-Request-Id"?: string;
|
|
7737
|
+
};
|
|
7738
|
+
path: {
|
|
7739
|
+
/**
|
|
7740
|
+
* Project identifier.
|
|
7741
|
+
*/
|
|
7742
|
+
project_id: Ulid;
|
|
7743
|
+
/**
|
|
7744
|
+
* Database schedule name, unique per project environment.
|
|
7745
|
+
*/
|
|
7746
|
+
name: string;
|
|
7747
|
+
};
|
|
7748
|
+
query?: {
|
|
7749
|
+
/**
|
|
7750
|
+
* Application environment to read; dev when omitted.
|
|
7751
|
+
*/
|
|
7752
|
+
environment?: "dev" | "prod";
|
|
7753
|
+
/**
|
|
7754
|
+
* Maximum number of runs in this page.
|
|
7755
|
+
*/
|
|
7756
|
+
limit?: number;
|
|
7757
|
+
};
|
|
7758
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}/runs";
|
|
7759
|
+
};
|
|
7760
|
+
export type ListProjectDatabaseScheduleRunsErrors = {
|
|
7761
|
+
/**
|
|
7762
|
+
* The request failed.
|
|
7763
|
+
*/
|
|
7764
|
+
400: ProblemDetails;
|
|
7765
|
+
/**
|
|
7766
|
+
* The request failed.
|
|
7767
|
+
*/
|
|
7768
|
+
401: ProblemDetails;
|
|
7769
|
+
/**
|
|
7770
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7771
|
+
*/
|
|
7772
|
+
404: ProblemDetails;
|
|
7773
|
+
/**
|
|
7774
|
+
* The request failed.
|
|
7775
|
+
*/
|
|
7776
|
+
429: ProblemDetails;
|
|
7777
|
+
/**
|
|
7778
|
+
* The request failed.
|
|
7779
|
+
*/
|
|
7780
|
+
503: ProblemDetails;
|
|
7781
|
+
};
|
|
7782
|
+
export type ListProjectDatabaseScheduleRunsError = ListProjectDatabaseScheduleRunsErrors[keyof ListProjectDatabaseScheduleRunsErrors];
|
|
7783
|
+
export type ListProjectDatabaseScheduleRunsResponses = {
|
|
7784
|
+
/**
|
|
7785
|
+
* The newest runs of the schedule, newest first.
|
|
7786
|
+
*/
|
|
7787
|
+
200: DatabaseScheduleRunPage;
|
|
7788
|
+
};
|
|
7789
|
+
export type ListProjectDatabaseScheduleRunsResponse = ListProjectDatabaseScheduleRunsResponses[keyof ListProjectDatabaseScheduleRunsResponses];
|
|
7790
|
+
export type RunProjectDatabaseScheduleData = {
|
|
7791
|
+
body?: never;
|
|
7792
|
+
headers?: {
|
|
7793
|
+
/**
|
|
7794
|
+
* Optional caller-provided correlation identifier.
|
|
7795
|
+
*/
|
|
7796
|
+
"X-Request-Id"?: string;
|
|
7797
|
+
};
|
|
7798
|
+
path: {
|
|
7799
|
+
/**
|
|
7800
|
+
* Project identifier.
|
|
7801
|
+
*/
|
|
7802
|
+
project_id: Ulid;
|
|
7803
|
+
/**
|
|
7804
|
+
* Database schedule name, unique per project environment.
|
|
7805
|
+
*/
|
|
7806
|
+
name: string;
|
|
7807
|
+
};
|
|
7808
|
+
query: {
|
|
7809
|
+
/**
|
|
7810
|
+
* Application environment the mutation applies to.
|
|
7811
|
+
*/
|
|
7812
|
+
environment: "dev" | "prod";
|
|
7813
|
+
};
|
|
7814
|
+
url: "/v1/projects/{project_id}/database/schedules/{name}/run";
|
|
7815
|
+
};
|
|
7816
|
+
export type RunProjectDatabaseScheduleErrors = {
|
|
7817
|
+
/**
|
|
7818
|
+
* The request failed.
|
|
7819
|
+
*/
|
|
7820
|
+
400: ProblemDetails;
|
|
7821
|
+
/**
|
|
7822
|
+
* The request failed.
|
|
7823
|
+
*/
|
|
7824
|
+
401: ProblemDetails;
|
|
7825
|
+
/**
|
|
7826
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7827
|
+
*/
|
|
7828
|
+
404: ProblemDetails;
|
|
7829
|
+
/**
|
|
7830
|
+
* The request failed.
|
|
7831
|
+
*/
|
|
7832
|
+
409: ProblemDetails;
|
|
7833
|
+
/**
|
|
7834
|
+
* The request failed.
|
|
7835
|
+
*/
|
|
7836
|
+
429: ProblemDetails;
|
|
7837
|
+
/**
|
|
7838
|
+
* The request failed.
|
|
7839
|
+
*/
|
|
7840
|
+
503: ProblemDetails;
|
|
7841
|
+
};
|
|
7842
|
+
export type RunProjectDatabaseScheduleError = RunProjectDatabaseScheduleErrors[keyof RunProjectDatabaseScheduleErrors];
|
|
7843
|
+
export type RunProjectDatabaseScheduleResponses = {
|
|
7844
|
+
/**
|
|
7845
|
+
* The run was queued.
|
|
7846
|
+
*/
|
|
7847
|
+
202: DatabaseScheduleRunAccepted;
|
|
7848
|
+
};
|
|
7849
|
+
export type RunProjectDatabaseScheduleResponse = RunProjectDatabaseScheduleResponses[keyof RunProjectDatabaseScheduleResponses];
|
|
7850
|
+
export type GetProjectDatabaseExecutionUsageData = {
|
|
7851
|
+
body?: never;
|
|
7852
|
+
headers?: {
|
|
7853
|
+
/**
|
|
7854
|
+
* Optional caller-provided correlation identifier.
|
|
7855
|
+
*/
|
|
7856
|
+
"X-Request-Id"?: string;
|
|
7857
|
+
};
|
|
7858
|
+
path: {
|
|
7859
|
+
/**
|
|
7860
|
+
* Project identifier.
|
|
7861
|
+
*/
|
|
7862
|
+
project_id: Ulid;
|
|
7863
|
+
};
|
|
7864
|
+
query: {
|
|
7865
|
+
/**
|
|
7866
|
+
* Application environment to read; dev when omitted.
|
|
7867
|
+
*/
|
|
7868
|
+
environment?: "dev" | "prod";
|
|
7869
|
+
/**
|
|
7870
|
+
* Inclusive window start in UTC, aligned to the granularity.
|
|
7871
|
+
*/
|
|
7872
|
+
from: string;
|
|
7873
|
+
/**
|
|
7874
|
+
* Exclusive window end in UTC, aligned to the granularity.
|
|
7875
|
+
*/
|
|
7876
|
+
to: string;
|
|
7877
|
+
/**
|
|
7878
|
+
* Length of each returned window.
|
|
7879
|
+
*/
|
|
7880
|
+
granularity: "hour" | "day";
|
|
7881
|
+
/**
|
|
7882
|
+
* Maximum number of windows in this page.
|
|
7883
|
+
*/
|
|
7884
|
+
limit?: number;
|
|
7885
|
+
/**
|
|
7886
|
+
* Opaque cursor returned by the previous page.
|
|
7887
|
+
*/
|
|
7888
|
+
cursor?: string;
|
|
7889
|
+
};
|
|
7890
|
+
url: "/v1/projects/{project_id}/database/execution-usage";
|
|
7891
|
+
};
|
|
7892
|
+
export type GetProjectDatabaseExecutionUsageErrors = {
|
|
7893
|
+
/**
|
|
7894
|
+
* The request failed.
|
|
7895
|
+
*/
|
|
7896
|
+
400: ProblemDetails;
|
|
7897
|
+
/**
|
|
7898
|
+
* The request failed.
|
|
7899
|
+
*/
|
|
7900
|
+
401: ProblemDetails;
|
|
7901
|
+
/**
|
|
7902
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7903
|
+
*/
|
|
7904
|
+
404: ProblemDetails;
|
|
7905
|
+
/**
|
|
7906
|
+
* The request failed.
|
|
7907
|
+
*/
|
|
7908
|
+
429: ProblemDetails;
|
|
7909
|
+
/**
|
|
7910
|
+
* The request failed.
|
|
7911
|
+
*/
|
|
7912
|
+
503: ProblemDetails;
|
|
7913
|
+
};
|
|
7914
|
+
export type GetProjectDatabaseExecutionUsageError = GetProjectDatabaseExecutionUsageErrors[keyof GetProjectDatabaseExecutionUsageErrors];
|
|
7915
|
+
export type GetProjectDatabaseExecutionUsageResponses = {
|
|
7916
|
+
/**
|
|
7917
|
+
* One page of execution usage windows.
|
|
7918
|
+
*/
|
|
7919
|
+
200: DatabaseExecutionUsagePage;
|
|
7920
|
+
};
|
|
7921
|
+
export type GetProjectDatabaseExecutionUsageResponse = GetProjectDatabaseExecutionUsageResponses[keyof GetProjectDatabaseExecutionUsageResponses];
|
|
6934
7922
|
export type PlanDeploymentRollbackData = {
|
|
6935
7923
|
body?: never;
|
|
6936
7924
|
headers?: {
|