@amerged/ohmyhost-sdk 0.1.44 → 0.1.46
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 +45 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +106 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +350 -5
- 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 +37 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +204 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +407 -4
|
@@ -805,12 +805,111 @@ export type ProjectDatabaseAccessPage = {
|
|
|
805
805
|
items: Array<ProjectDatabaseAccess>;
|
|
806
806
|
};
|
|
807
807
|
export type DatabaseWebhookEventType = "database.created" | "database.ready" | "database.woke" | "database.slept" | "database.suspended" | "database.resized" | "database.deleted";
|
|
808
|
+
/**
|
|
809
|
+
* A platform event type, data.<topic> for the rows of one watched table, or data.* for every watched table. A bare * is not accepted and never matches data events.
|
|
810
|
+
*/
|
|
811
|
+
export type DatabaseWebhookEventPattern = DatabaseWebhookEventType | string;
|
|
812
|
+
export type DatabaseTableCreateRequest = {
|
|
813
|
+
environment: "dev" | "prod";
|
|
814
|
+
/**
|
|
815
|
+
* Name of the new table in the public schema. Lower-case, not a PostgreSQL reserved word and not starting with pg_.
|
|
816
|
+
*/
|
|
817
|
+
table: string;
|
|
818
|
+
/**
|
|
819
|
+
* Columns in the order written. Names are unique, and at most one column is an identity column.
|
|
820
|
+
*/
|
|
821
|
+
columns: Array<DatabaseTableColumnRequest>;
|
|
822
|
+
/**
|
|
823
|
+
* Columns of the primary key, each one of the table's columns. Identity and primary key columns are NOT NULL; omitted when the table has no primary key.
|
|
824
|
+
*/
|
|
825
|
+
primary_key?: Array<string>;
|
|
826
|
+
};
|
|
827
|
+
export type DatabaseTableColumnRequest = {
|
|
828
|
+
name: string;
|
|
829
|
+
type: DatabaseTableColumnType;
|
|
830
|
+
/**
|
|
831
|
+
* Whether the column accepts NULL. Identity and primary key columns never do.
|
|
832
|
+
*/
|
|
833
|
+
nullable?: boolean;
|
|
834
|
+
/**
|
|
835
|
+
* Generated always as identity. Only integer and bigint columns can be identity columns, and an identity column has no default.
|
|
836
|
+
*/
|
|
837
|
+
identity?: boolean;
|
|
838
|
+
/**
|
|
839
|
+
* now is now() on a timestamptz column; uuid is gen_random_uuid() on a uuid column. Omitted when the column has no default.
|
|
840
|
+
*/
|
|
841
|
+
default?: "now" | "uuid";
|
|
842
|
+
};
|
|
843
|
+
export type DatabaseTableColumnType = "text" | "integer" | "bigint" | "boolean" | "numeric" | "double precision" | "timestamptz" | "date" | "uuid" | "jsonb";
|
|
844
|
+
export type DatabaseTableColumn = {
|
|
845
|
+
name: string;
|
|
846
|
+
type: DatabaseTableColumnType;
|
|
847
|
+
nullable: boolean;
|
|
848
|
+
identity: boolean;
|
|
849
|
+
default: "now" | "uuid" | null;
|
|
850
|
+
};
|
|
851
|
+
export type DatabaseTable = {
|
|
852
|
+
environment: "dev" | "prod";
|
|
853
|
+
schema: "public";
|
|
854
|
+
table: string;
|
|
855
|
+
columns: Array<DatabaseTableColumn>;
|
|
856
|
+
primary_key: Array<string>;
|
|
857
|
+
/**
|
|
858
|
+
* true when this request created the table, false when an identical table already existed.
|
|
859
|
+
*/
|
|
860
|
+
created: boolean;
|
|
861
|
+
};
|
|
862
|
+
export type DatabaseTableCreated = {
|
|
863
|
+
table: DatabaseTable;
|
|
864
|
+
};
|
|
865
|
+
export type DatabaseWatchCreateRequest = {
|
|
866
|
+
environment: "dev" | "prod";
|
|
867
|
+
/**
|
|
868
|
+
* Schema of the table, public when omitted. The schemas pgcf, ohmyhost, information_schema and pg_* cannot be watched.
|
|
869
|
+
*/
|
|
870
|
+
schema?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Ordinary table owned by the application, created by a deployed migration.
|
|
873
|
+
*/
|
|
874
|
+
table: string;
|
|
875
|
+
/**
|
|
876
|
+
* Columns published with every event, exactly as written; names are case-sensitive.
|
|
877
|
+
*/
|
|
878
|
+
columns: Array<string>;
|
|
879
|
+
/**
|
|
880
|
+
* Row changes that publish an event; all three when omitted.
|
|
881
|
+
*/
|
|
882
|
+
operations?: Array<"insert" | "update" | "delete">;
|
|
883
|
+
};
|
|
884
|
+
export type DatabaseWatch = {
|
|
885
|
+
id: string;
|
|
886
|
+
environment: "dev" | "prod";
|
|
887
|
+
schema: string;
|
|
888
|
+
table: string;
|
|
889
|
+
columns: Array<string>;
|
|
890
|
+
operations: Array<"insert" | "update" | "delete">;
|
|
891
|
+
/**
|
|
892
|
+
* Topic of the watched table, derived by the platform from its name.
|
|
893
|
+
*/
|
|
894
|
+
topic: string;
|
|
895
|
+
/**
|
|
896
|
+
* Event type of the rows of the table; pass it to a database webhook.
|
|
897
|
+
*/
|
|
898
|
+
event_type: string;
|
|
899
|
+
};
|
|
900
|
+
export type DatabaseWatchPage = {
|
|
901
|
+
items: Array<DatabaseWatch>;
|
|
902
|
+
};
|
|
903
|
+
export type DatabaseWatchDeleted = {
|
|
904
|
+
id: string;
|
|
905
|
+
deleted: true;
|
|
906
|
+
};
|
|
808
907
|
export type DatabaseWebhookCreateRequest = {
|
|
809
908
|
/**
|
|
810
909
|
* HTTPS receiver URL.
|
|
811
910
|
*/
|
|
812
911
|
url: string;
|
|
813
|
-
event_types: Array<
|
|
912
|
+
event_types: Array<DatabaseWebhookEventPattern>;
|
|
814
913
|
/**
|
|
815
914
|
* 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
915
|
*/
|
|
@@ -822,7 +921,7 @@ export type DatabaseWebhook = {
|
|
|
822
921
|
id: string;
|
|
823
922
|
environment: "dev" | "prod";
|
|
824
923
|
url: string;
|
|
825
|
-
event_types: Array<
|
|
924
|
+
event_types: Array<DatabaseWebhookEventPattern>;
|
|
826
925
|
/**
|
|
827
926
|
* Names of the extra headers only; their values are never returned.
|
|
828
927
|
*/
|
|
@@ -833,7 +932,7 @@ export type DatabaseWebhookCreated = {
|
|
|
833
932
|
id: string;
|
|
834
933
|
environment: "dev" | "prod";
|
|
835
934
|
url: string;
|
|
836
|
-
event_types: Array<
|
|
935
|
+
event_types: Array<DatabaseWebhookEventPattern>;
|
|
837
936
|
header_names: Array<string>;
|
|
838
937
|
created_at: string;
|
|
839
938
|
/**
|
|
@@ -851,7 +950,7 @@ export type DatabaseWebhookDeleted = {
|
|
|
851
950
|
export type DatabaseWebhookDelivery = {
|
|
852
951
|
id: string;
|
|
853
952
|
event_id: string;
|
|
854
|
-
event_type: DatabaseWebhookEventType;
|
|
953
|
+
event_type: DatabaseWebhookEventType | string;
|
|
855
954
|
webhook_id: string;
|
|
856
955
|
state: "pending" | "delivered" | "dead_lettered";
|
|
857
956
|
attempts: number;
|
|
@@ -1329,7 +1428,7 @@ export type ProblemDetails = {
|
|
|
1329
1428
|
status: number;
|
|
1330
1429
|
detail?: string;
|
|
1331
1430
|
instance?: string;
|
|
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";
|
|
1431
|
+
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" | "database_watch_limit" | "database_watch_table_unavailable" | "database_watch_column_unavailable" | "database_watch_events_unavailable" | "database_watch_conflict" | "database_table_conflict" | "database_table_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";
|
|
1333
1432
|
request_id: string;
|
|
1334
1433
|
retryable: boolean;
|
|
1335
1434
|
/**
|
|
@@ -1545,6 +1644,10 @@ export type ProjectDataChangePlan = {
|
|
|
1545
1644
|
created_at: string;
|
|
1546
1645
|
expires_at: string;
|
|
1547
1646
|
};
|
|
1647
|
+
/**
|
|
1648
|
+
* A platform event type, data.<topic> for the rows of one watched table, or data.* for every watched table. A bare * is not accepted and never matches data events.
|
|
1649
|
+
*/
|
|
1650
|
+
export type DatabaseWebhookEventPatternWritable = DatabaseWebhookEventType | string;
|
|
1548
1651
|
/**
|
|
1549
1652
|
* Immutable pre-build deployment plan. It expires exactly 24 hours after creation.
|
|
1550
1653
|
*/
|
|
@@ -1625,6 +1728,10 @@ export type DatabaseWebhookId = string;
|
|
|
1625
1728
|
* Database webhook delivery identifier.
|
|
1626
1729
|
*/
|
|
1627
1730
|
export type DatabaseWebhookDeliveryId = string;
|
|
1731
|
+
/**
|
|
1732
|
+
* Database watch identifier, derived from the watched schema and table.
|
|
1733
|
+
*/
|
|
1734
|
+
export type DatabaseWatchId = string;
|
|
1628
1735
|
/**
|
|
1629
1736
|
* Database schedule name, unique per project environment.
|
|
1630
1737
|
*/
|
|
@@ -7078,6 +7185,244 @@ export type RevokeProjectDatabaseAccessResponses = {
|
|
|
7078
7185
|
200: ProjectDatabaseAccess;
|
|
7079
7186
|
};
|
|
7080
7187
|
export type RevokeProjectDatabaseAccessResponse = RevokeProjectDatabaseAccessResponses[keyof RevokeProjectDatabaseAccessResponses];
|
|
7188
|
+
export type CreateProjectDatabaseTableData = {
|
|
7189
|
+
body: DatabaseTableCreateRequest;
|
|
7190
|
+
headers: {
|
|
7191
|
+
/**
|
|
7192
|
+
* Optional caller-provided correlation identifier.
|
|
7193
|
+
*/
|
|
7194
|
+
"X-Request-Id"?: string;
|
|
7195
|
+
/**
|
|
7196
|
+
* Identifies one mutation and its canonical request payload.
|
|
7197
|
+
*/
|
|
7198
|
+
"Idempotency-Key": string;
|
|
7199
|
+
};
|
|
7200
|
+
path: {
|
|
7201
|
+
/**
|
|
7202
|
+
* Project identifier.
|
|
7203
|
+
*/
|
|
7204
|
+
project_id: Ulid;
|
|
7205
|
+
};
|
|
7206
|
+
query?: never;
|
|
7207
|
+
url: "/v1/projects/{project_id}/database/tables";
|
|
7208
|
+
};
|
|
7209
|
+
export type CreateProjectDatabaseTableErrors = {
|
|
7210
|
+
/**
|
|
7211
|
+
* The request failed.
|
|
7212
|
+
*/
|
|
7213
|
+
400: ProblemDetails;
|
|
7214
|
+
/**
|
|
7215
|
+
* The request failed.
|
|
7216
|
+
*/
|
|
7217
|
+
401: ProblemDetails;
|
|
7218
|
+
/**
|
|
7219
|
+
* The request failed.
|
|
7220
|
+
*/
|
|
7221
|
+
402: ProblemDetails;
|
|
7222
|
+
/**
|
|
7223
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7224
|
+
*/
|
|
7225
|
+
404: ProblemDetails;
|
|
7226
|
+
/**
|
|
7227
|
+
* The request failed.
|
|
7228
|
+
*/
|
|
7229
|
+
409: ProblemDetails;
|
|
7230
|
+
/**
|
|
7231
|
+
* The request failed.
|
|
7232
|
+
*/
|
|
7233
|
+
429: ProblemDetails;
|
|
7234
|
+
/**
|
|
7235
|
+
* The request failed.
|
|
7236
|
+
*/
|
|
7237
|
+
503: ProblemDetails;
|
|
7238
|
+
};
|
|
7239
|
+
export type CreateProjectDatabaseTableError = CreateProjectDatabaseTableErrors[keyof CreateProjectDatabaseTableErrors];
|
|
7240
|
+
export type CreateProjectDatabaseTableResponses = {
|
|
7241
|
+
/**
|
|
7242
|
+
* The table already exists with the same columns, types, nullability, identity, defaults and primary key.
|
|
7243
|
+
*/
|
|
7244
|
+
200: DatabaseTableCreated;
|
|
7245
|
+
/**
|
|
7246
|
+
* The table this request created.
|
|
7247
|
+
*/
|
|
7248
|
+
201: DatabaseTableCreated;
|
|
7249
|
+
};
|
|
7250
|
+
export type CreateProjectDatabaseTableResponse = CreateProjectDatabaseTableResponses[keyof CreateProjectDatabaseTableResponses];
|
|
7251
|
+
export type ListProjectDatabaseWatchesData = {
|
|
7252
|
+
body?: never;
|
|
7253
|
+
headers?: {
|
|
7254
|
+
/**
|
|
7255
|
+
* Optional caller-provided correlation identifier.
|
|
7256
|
+
*/
|
|
7257
|
+
"X-Request-Id"?: string;
|
|
7258
|
+
};
|
|
7259
|
+
path: {
|
|
7260
|
+
/**
|
|
7261
|
+
* Project identifier.
|
|
7262
|
+
*/
|
|
7263
|
+
project_id: Ulid;
|
|
7264
|
+
};
|
|
7265
|
+
query?: {
|
|
7266
|
+
/**
|
|
7267
|
+
* Application environment to read; dev when omitted.
|
|
7268
|
+
*/
|
|
7269
|
+
environment?: "dev" | "prod";
|
|
7270
|
+
};
|
|
7271
|
+
url: "/v1/projects/{project_id}/database/watches";
|
|
7272
|
+
};
|
|
7273
|
+
export type ListProjectDatabaseWatchesErrors = {
|
|
7274
|
+
/**
|
|
7275
|
+
* The request failed.
|
|
7276
|
+
*/
|
|
7277
|
+
400: ProblemDetails;
|
|
7278
|
+
/**
|
|
7279
|
+
* The request failed.
|
|
7280
|
+
*/
|
|
7281
|
+
401: ProblemDetails;
|
|
7282
|
+
/**
|
|
7283
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7284
|
+
*/
|
|
7285
|
+
404: ProblemDetails;
|
|
7286
|
+
/**
|
|
7287
|
+
* The request failed.
|
|
7288
|
+
*/
|
|
7289
|
+
429: ProblemDetails;
|
|
7290
|
+
/**
|
|
7291
|
+
* The request failed.
|
|
7292
|
+
*/
|
|
7293
|
+
503: ProblemDetails;
|
|
7294
|
+
};
|
|
7295
|
+
export type ListProjectDatabaseWatchesError = ListProjectDatabaseWatchesErrors[keyof ListProjectDatabaseWatchesErrors];
|
|
7296
|
+
export type ListProjectDatabaseWatchesResponses = {
|
|
7297
|
+
/**
|
|
7298
|
+
* The database watches of the environment.
|
|
7299
|
+
*/
|
|
7300
|
+
200: DatabaseWatchPage;
|
|
7301
|
+
};
|
|
7302
|
+
export type ListProjectDatabaseWatchesResponse = ListProjectDatabaseWatchesResponses[keyof ListProjectDatabaseWatchesResponses];
|
|
7303
|
+
export type CreateProjectDatabaseWatchData = {
|
|
7304
|
+
body: DatabaseWatchCreateRequest;
|
|
7305
|
+
headers: {
|
|
7306
|
+
/**
|
|
7307
|
+
* Optional caller-provided correlation identifier.
|
|
7308
|
+
*/
|
|
7309
|
+
"X-Request-Id"?: string;
|
|
7310
|
+
/**
|
|
7311
|
+
* Identifies one mutation and its canonical request payload.
|
|
7312
|
+
*/
|
|
7313
|
+
"Idempotency-Key": string;
|
|
7314
|
+
};
|
|
7315
|
+
path: {
|
|
7316
|
+
/**
|
|
7317
|
+
* Project identifier.
|
|
7318
|
+
*/
|
|
7319
|
+
project_id: Ulid;
|
|
7320
|
+
};
|
|
7321
|
+
query?: never;
|
|
7322
|
+
url: "/v1/projects/{project_id}/database/watches";
|
|
7323
|
+
};
|
|
7324
|
+
export type CreateProjectDatabaseWatchErrors = {
|
|
7325
|
+
/**
|
|
7326
|
+
* The request failed.
|
|
7327
|
+
*/
|
|
7328
|
+
400: ProblemDetails;
|
|
7329
|
+
/**
|
|
7330
|
+
* The request failed.
|
|
7331
|
+
*/
|
|
7332
|
+
401: ProblemDetails;
|
|
7333
|
+
/**
|
|
7334
|
+
* The request failed.
|
|
7335
|
+
*/
|
|
7336
|
+
402: ProblemDetails;
|
|
7337
|
+
/**
|
|
7338
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7339
|
+
*/
|
|
7340
|
+
404: ProblemDetails;
|
|
7341
|
+
/**
|
|
7342
|
+
* The request failed.
|
|
7343
|
+
*/
|
|
7344
|
+
409: ProblemDetails;
|
|
7345
|
+
/**
|
|
7346
|
+
* The request failed.
|
|
7347
|
+
*/
|
|
7348
|
+
429: ProblemDetails;
|
|
7349
|
+
/**
|
|
7350
|
+
* The request failed.
|
|
7351
|
+
*/
|
|
7352
|
+
503: ProblemDetails;
|
|
7353
|
+
};
|
|
7354
|
+
export type CreateProjectDatabaseWatchError = CreateProjectDatabaseWatchErrors[keyof CreateProjectDatabaseWatchErrors];
|
|
7355
|
+
export type CreateProjectDatabaseWatchResponses = {
|
|
7356
|
+
/**
|
|
7357
|
+
* The watch with the event type its deliveries carry.
|
|
7358
|
+
*/
|
|
7359
|
+
201: DatabaseWatch;
|
|
7360
|
+
};
|
|
7361
|
+
export type CreateProjectDatabaseWatchResponse = CreateProjectDatabaseWatchResponses[keyof CreateProjectDatabaseWatchResponses];
|
|
7362
|
+
export type DeleteProjectDatabaseWatchData = {
|
|
7363
|
+
body?: never;
|
|
7364
|
+
headers: {
|
|
7365
|
+
/**
|
|
7366
|
+
* Optional caller-provided correlation identifier.
|
|
7367
|
+
*/
|
|
7368
|
+
"X-Request-Id"?: string;
|
|
7369
|
+
/**
|
|
7370
|
+
* Identifies one mutation and its canonical request payload.
|
|
7371
|
+
*/
|
|
7372
|
+
"Idempotency-Key": string;
|
|
7373
|
+
};
|
|
7374
|
+
path: {
|
|
7375
|
+
/**
|
|
7376
|
+
* Project identifier.
|
|
7377
|
+
*/
|
|
7378
|
+
project_id: Ulid;
|
|
7379
|
+
/**
|
|
7380
|
+
* Database watch identifier, derived from the watched schema and table.
|
|
7381
|
+
*/
|
|
7382
|
+
watch_id: string;
|
|
7383
|
+
};
|
|
7384
|
+
query: {
|
|
7385
|
+
/**
|
|
7386
|
+
* Application environment the mutation applies to.
|
|
7387
|
+
*/
|
|
7388
|
+
environment: "dev" | "prod";
|
|
7389
|
+
};
|
|
7390
|
+
url: "/v1/projects/{project_id}/database/watches/{watch_id}";
|
|
7391
|
+
};
|
|
7392
|
+
export type DeleteProjectDatabaseWatchErrors = {
|
|
7393
|
+
/**
|
|
7394
|
+
* The request failed.
|
|
7395
|
+
*/
|
|
7396
|
+
400: ProblemDetails;
|
|
7397
|
+
/**
|
|
7398
|
+
* The request failed.
|
|
7399
|
+
*/
|
|
7400
|
+
401: ProblemDetails;
|
|
7401
|
+
/**
|
|
7402
|
+
* The request failed.
|
|
7403
|
+
*/
|
|
7404
|
+
402: ProblemDetails;
|
|
7405
|
+
/**
|
|
7406
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
7407
|
+
*/
|
|
7408
|
+
404: ProblemDetails;
|
|
7409
|
+
/**
|
|
7410
|
+
* The request failed.
|
|
7411
|
+
*/
|
|
7412
|
+
429: ProblemDetails;
|
|
7413
|
+
/**
|
|
7414
|
+
* The request failed.
|
|
7415
|
+
*/
|
|
7416
|
+
503: ProblemDetails;
|
|
7417
|
+
};
|
|
7418
|
+
export type DeleteProjectDatabaseWatchError = DeleteProjectDatabaseWatchErrors[keyof DeleteProjectDatabaseWatchErrors];
|
|
7419
|
+
export type DeleteProjectDatabaseWatchResponses = {
|
|
7420
|
+
/**
|
|
7421
|
+
* The identifier of the deleted watch.
|
|
7422
|
+
*/
|
|
7423
|
+
200: DatabaseWatchDeleted;
|
|
7424
|
+
};
|
|
7425
|
+
export type DeleteProjectDatabaseWatchResponse = DeleteProjectDatabaseWatchResponses[keyof DeleteProjectDatabaseWatchResponses];
|
|
7081
7426
|
export type ListProjectDatabaseWebhooksData = {
|
|
7082
7427
|
body?: never;
|
|
7083
7428
|
headers?: {
|