mtmsdk 0.0.50 → 0.0.52
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/dist/gomtmapi/@tanstack/react-query.gen.d.ts +1 -13
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +1 -37
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +0 -57
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +0 -60
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +1 -13
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +0 -26
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +0 -94
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +0 -62
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +0 -51
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/schema.d.ts +1 -11
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/schema.js +0 -9
- package/dist/lib/schema.js.map +1 -1
- package/dist/mtgate_api/client.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client.gen.js +1 -1
- package/dist/mtgate_api/client.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +0 -8
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +1 -29
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +1 -200
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +1 -1
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +39 -65
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +19 -65
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +6 -95
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +7 -139
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -17
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +10 -32
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +41 -157
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/supabase-client.d.ts +85 -181
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +170 -362
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -2
- package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/build-query-opts.js +8 -4
- package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -1
- package/dist/supabase/use-sb-query/use-query.d.ts +9 -6
- package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-query.js.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts +25 -17
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +48 -26
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +129 -222
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +112 -124
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +85 -181
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +30 -59
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +105 -110
- package/src/cloud-account/platform-configs.ts +73 -73
- package/src/gomtmapi/@tanstack/react-query.gen.ts +537 -575
- package/src/gomtmapi/client/client.gen.ts +311 -311
- package/src/gomtmapi/client/index.ts +25 -25
- package/src/gomtmapi/client/types.gen.ts +241 -241
- package/src/gomtmapi/client/utils.gen.ts +332 -332
- package/src/gomtmapi/client.gen.ts +16 -16
- package/src/gomtmapi/core/auth.gen.ts +42 -42
- package/src/gomtmapi/core/bodySerializer.gen.ts +100 -100
- package/src/gomtmapi/core/params.gen.ts +176 -176
- package/src/gomtmapi/core/pathSerializer.gen.ts +181 -181
- package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -136
- package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -266
- package/src/gomtmapi/core/types.gen.ts +118 -118
- package/src/gomtmapi/core/utils.gen.ts +143 -143
- package/src/gomtmapi/index.ts +4 -4
- package/src/gomtmapi/schemas.gen.ts +532 -596
- package/src/gomtmapi/sdk.gen.ts +371 -399
- package/src/gomtmapi/types.gen.ts +854 -962
- package/src/gomtmapi/zod.gen.ts +448 -507
- package/src/index.ts +4 -5
- package/src/lib/aisdk/types.ts +7 -7
- package/src/lib/logger/index.ts +8 -8
- package/src/lib/schema.ts +37 -50
- package/src/mtgate_api/client/client.gen.ts +311 -311
- package/src/mtgate_api/client/index.ts +25 -25
- package/src/mtgate_api/client/types.gen.ts +241 -241
- package/src/mtgate_api/client/utils.gen.ts +332 -332
- package/src/mtgate_api/client.gen.ts +16 -16
- package/src/mtgate_api/core/auth.gen.ts +42 -42
- package/src/mtgate_api/core/bodySerializer.gen.ts +100 -100
- package/src/mtgate_api/core/params.gen.ts +176 -176
- package/src/mtgate_api/core/pathSerializer.gen.ts +181 -181
- package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -136
- package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -266
- package/src/mtgate_api/core/types.gen.ts +118 -118
- package/src/mtgate_api/core/utils.gen.ts +143 -143
- package/src/mtgate_api/index.ts +4 -4
- package/src/mtgate_api/sdk.gen.ts +17 -54
- package/src/mtgate_api/types.gen.ts +5 -239
- package/src/openclaw/client-info.ts +54 -54
- package/src/openclaw/device-auth-utils.ts +26 -26
- package/src/openclaw/device-auth.ts +99 -99
- package/src/openclaw/device-identity.ts +108 -108
- package/src/openclaw/gateway.ts +392 -392
- package/src/openclaw/types.ts +518 -518
- package/src/sbmng/@tanstack/react-query.gen.ts +2967 -3017
- package/src/sbmng/client/client.gen.ts +311 -311
- package/src/sbmng/client/index.ts +25 -25
- package/src/sbmng/client/types.gen.ts +241 -241
- package/src/sbmng/client/utils.gen.ts +332 -332
- package/src/sbmng/client.gen.ts +16 -16
- package/src/sbmng/core/auth.gen.ts +42 -42
- package/src/sbmng/core/bodySerializer.gen.ts +100 -100
- package/src/sbmng/core/params.gen.ts +176 -176
- package/src/sbmng/core/pathSerializer.gen.ts +181 -181
- package/src/sbmng/core/queryKeySerializer.gen.ts +136 -136
- package/src/sbmng/core/serverSentEvents.gen.ts +266 -266
- package/src/sbmng/core/types.gen.ts +118 -118
- package/src/sbmng/core/utils.gen.ts +143 -143
- package/src/sbmng/index.ts +4 -4
- package/src/sbmng/schemas.gen.ts +9671 -9805
- package/src/sbmng/sdk.gen.ts +1755 -1780
- package/src/sbmng/types.gen.ts +7886 -8016
- package/src/supabase/auth-provider.tsx +67 -67
- package/src/supabase/context.tsx +51 -51
- package/src/supabase/cursor-pagination.ts +155 -155
- package/src/supabase/schema/browser.ts +44 -44
- package/src/supabase/schema/index.ts +25 -25
- package/src/supabase/supabase-client.ts +30 -30
- package/src/supabase/supabase.ts +67 -67
- package/src/supabase/use-sb-query/build-query-opts.ts +68 -56
- package/src/supabase/use-sb-query/key.ts +57 -57
- package/src/supabase/use-sb-query/use-query.ts +352 -340
- package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -83
- package/src/supabase/use-sb-query/use-rpc-query.ts +267 -231
- package/src/supabase/utils.ts +75 -75
- package/src/types/database.schemas.ts +4359 -4378
- package/src/types/database.types.ts +4182 -4288
- package/src/types/index.ts +85 -102
- package/dist/adk/api/client.d.ts +0 -9
- package/dist/adk/api/client.d.ts.map +0 -1
- package/dist/adk/api/client.js +0 -39
- package/dist/adk/api/client.js.map +0 -1
- package/dist/adk/core/constants/tool-icons.d.ts +0 -21
- package/dist/adk/core/constants/tool-icons.d.ts.map +0 -1
- package/dist/adk/core/constants/tool-icons.js +0 -47
- package/dist/adk/core/constants/tool-icons.js.map +0 -1
- package/dist/adk/core/models/AgentBuilder.d.ts +0 -77
- package/dist/adk/core/models/AgentBuilder.d.ts.map +0 -1
- package/dist/adk/core/models/AgentBuilder.js +0 -18
- package/dist/adk/core/models/AgentBuilder.js.map +0 -1
- package/dist/adk/core/models/AgentRunRequest.d.ts +0 -37
- package/dist/adk/core/models/AgentRunRequest.d.ts.map +0 -1
- package/dist/adk/core/models/AgentRunRequest.js +0 -18
- package/dist/adk/core/models/AgentRunRequest.js.map +0 -1
- package/dist/adk/core/models/Eval.d.ts +0 -55
- package/dist/adk/core/models/Eval.d.ts.map +0 -1
- package/dist/adk/core/models/Eval.js +0 -27
- package/dist/adk/core/models/Eval.js.map +0 -1
- package/dist/adk/core/models/LiveRequest.d.ts +0 -23
- package/dist/adk/core/models/LiveRequest.d.ts.map +0 -1
- package/dist/adk/core/models/LiveRequest.js +0 -18
- package/dist/adk/core/models/LiveRequest.js.map +0 -1
- package/dist/adk/core/models/RuntimeConfig.d.ts +0 -32
- package/dist/adk/core/models/RuntimeConfig.d.ts.map +0 -1
- package/dist/adk/core/models/RuntimeConfig.js +0 -18
- package/dist/adk/core/models/RuntimeConfig.js.map +0 -1
- package/dist/adk/core/models/Session.d.ts +0 -117
- package/dist/adk/core/models/Session.d.ts.map +0 -1
- package/dist/adk/core/models/Session.js +0 -31
- package/dist/adk/core/models/Session.js.map +0 -1
- package/dist/adk/core/models/Trace.d.ts +0 -40
- package/dist/adk/core/models/Trace.d.ts.map +0 -1
- package/dist/adk/core/models/Trace.js +0 -2
- package/dist/adk/core/models/Trace.js.map +0 -1
- package/dist/adk/core/models/types.d.ts +0 -338
- package/dist/adk/core/models/types.d.ts.map +0 -1
- package/dist/adk/core/models/types.js +0 -189
- package/dist/adk/core/models/types.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -14
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -45
- package/dist/lib/utils.js.map +0 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +0 -166
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +0 -118
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +0 -1
- package/dist/mtgate_api/schemas.gen.d.ts +0 -233
- package/dist/mtgate_api/schemas.gen.d.ts.map +0 -1
- package/dist/mtgate_api/schemas.gen.js +0 -277
- package/dist/mtgate_api/schemas.gen.js.map +0 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -321
- package/dist/mtgate_api/zod.gen.d.ts.map +0 -1
- package/dist/mtgate_api/zod.gen.js +0 -148
- package/dist/mtgate_api/zod.gen.js.map +0 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +0 -949
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +0 -917
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +0 -1
- package/dist/mtmai_api/client/client.gen.d.ts +0 -3
- package/dist/mtmai_api/client/client.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/client.gen.js +0 -236
- package/dist/mtmai_api/client/client.gen.js.map +0 -1
- package/dist/mtmai_api/client/index.d.ts +0 -9
- package/dist/mtmai_api/client/index.d.ts.map +0 -1
- package/dist/mtmai_api/client/index.js +0 -7
- package/dist/mtmai_api/client/index.js.map +0 -1
- package/dist/mtmai_api/client/types.gen.d.ts +0 -118
- package/dist/mtmai_api/client/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/types.gen.js +0 -3
- package/dist/mtmai_api/client/types.gen.js.map +0 -1
- package/dist/mtmai_api/client/utils.gen.d.ts +0 -34
- package/dist/mtmai_api/client/utils.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/utils.gen.js +0 -232
- package/dist/mtmai_api/client/utils.gen.js.map +0 -1
- package/dist/mtmai_api/client.gen.d.ts +0 -13
- package/dist/mtmai_api/client.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client.gen.js +0 -4
- package/dist/mtmai_api/client.gen.js.map +0 -1
- package/dist/mtmai_api/core/auth.gen.d.ts +0 -19
- package/dist/mtmai_api/core/auth.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/auth.gen.js +0 -15
- package/dist/mtmai_api/core/auth.gen.js.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts +0 -26
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js +0 -58
- package/dist/mtmai_api/core/bodySerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/params.gen.d.ts +0 -44
- package/dist/mtmai_api/core/params.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/params.gen.js +0 -101
- package/dist/mtmai_api/core/params.gen.js.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts +0 -34
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.gen.js +0 -115
- package/dist/mtmai_api/core/pathSerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/queryKeySerializer.gen.js +0 -100
- package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/serverSentEvents.gen.js +0 -138
- package/dist/mtmai_api/core/serverSentEvents.gen.js.map +0 -1
- package/dist/mtmai_api/core/types.gen.d.ts +0 -79
- package/dist/mtmai_api/core/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/types.gen.js +0 -3
- package/dist/mtmai_api/core/types.gen.js.map +0 -1
- package/dist/mtmai_api/core/utils.gen.d.ts +0 -20
- package/dist/mtmai_api/core/utils.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/utils.gen.js +0 -88
- package/dist/mtmai_api/core/utils.gen.js.map +0 -1
- package/dist/mtmai_api/index.d.ts +0 -3
- package/dist/mtmai_api/index.d.ts.map +0 -1
- package/dist/mtmai_api/index.js +0 -4
- package/dist/mtmai_api/index.js.map +0 -1
- package/dist/mtmai_api/schemas.gen.d.ts +0 -7721
- package/dist/mtmai_api/schemas.gen.d.ts.map +0 -1
- package/dist/mtmai_api/schemas.gen.js +0 -9774
- package/dist/mtmai_api/schemas.gen.js.map +0 -1
- package/dist/mtmai_api/sdk.gen.d.ts +0 -282
- package/dist/mtmai_api/sdk.gen.d.ts.map +0 -1
- package/dist/mtmai_api/sdk.gen.js +0 -404
- package/dist/mtmai_api/sdk.gen.js.map +0 -1
- package/dist/mtmai_api/types.gen.d.ts +0 -7152
- package/dist/mtmai_api/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/types.gen.js +0 -253
- package/dist/mtmai_api/types.gen.js.map +0 -1
- package/dist/mtmai_api/zod.gen.d.ts +0 -55827
- package/dist/mtmai_api/zod.gen.d.ts.map +0 -1
- package/dist/mtmai_api/zod.gen.js +0 -4805
- package/dist/mtmai_api/zod.gen.js.map +0 -1
- package/dist/supabase/use-sb-query/prefetch.d.ts +0 -10
- package/dist/supabase/use-sb-query/prefetch.d.ts.map +0 -1
- package/dist/supabase/use-sb-query/prefetch.js +0 -14
- package/dist/supabase/use-sb-query/prefetch.js.map +0 -1
- package/src/adk/api/client.ts +0 -46
- package/src/adk/core/constants/tool-icons.ts +0 -51
- package/src/adk/core/models/AgentBuilder.ts +0 -80
- package/src/adk/core/models/AgentRunRequest.ts +0 -33
- package/src/adk/core/models/Eval.ts +0 -70
- package/src/adk/core/models/LiveRequest.ts +0 -23
- package/src/adk/core/models/RuntimeConfig.ts +0 -33
- package/src/adk/core/models/Session.ts +0 -52
- package/src/adk/core/models/Trace.ts +0 -42
- package/src/adk/core/models/types.ts +0 -255
- package/src/lib/utils.ts +0 -54
- package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
- package/src/mtgate_api/schemas.gen.ts +0 -290
- package/src/mtgate_api/zod.gen.ts +0 -176
- package/src/mtmai_api/@tanstack/react-query.gen.ts +0 -1010
- package/src/mtmai_api/client/client.gen.ts +0 -311
- package/src/mtmai_api/client/index.ts +0 -25
- package/src/mtmai_api/client/types.gen.ts +0 -241
- package/src/mtmai_api/client/utils.gen.ts +0 -332
- package/src/mtmai_api/client.gen.ts +0 -16
- package/src/mtmai_api/core/auth.gen.ts +0 -42
- package/src/mtmai_api/core/bodySerializer.gen.ts +0 -100
- package/src/mtmai_api/core/params.gen.ts +0 -176
- package/src/mtmai_api/core/pathSerializer.gen.ts +0 -181
- package/src/mtmai_api/core/queryKeySerializer.gen.ts +0 -136
- package/src/mtmai_api/core/serverSentEvents.gen.ts +0 -266
- package/src/mtmai_api/core/types.gen.ts +0 -118
- package/src/mtmai_api/core/utils.gen.ts +0 -143
- package/src/mtmai_api/index.ts +0 -4
- package/src/mtmai_api/schemas.gen.ts +0 -9980
- package/src/mtmai_api/sdk.gen.ts +0 -471
- package/src/mtmai_api/types.gen.ts +0 -7609
- package/src/mtmai_api/zod.gen.ts +0 -5101
- package/src/supabase/use-sb-query/prefetch.ts +0 -59
package/src/sbmng/sdk.gen.ts
CHANGED
|
@@ -1,1780 +1,1755 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape, urlSearchParamsBodySerializer } from './client';
|
|
4
|
-
import { client } from './client.gen';
|
|
5
|
-
import type { V1ActivateCustomHostnameData, V1ActivateCustomHostnameErrors, V1ActivateCustomHostnameResponses, V1ActivateVanitySubdomainConfigData, V1ActivateVanitySubdomainConfigErrors, V1ActivateVanitySubdomainConfigResponses, V1ApplyAMigrationData, V1ApplyAMigrationErrors, V1ApplyAMigrationResponses, V1ApplyProjectAddonData, V1ApplyProjectAddonErrors, V1ApplyProjectAddonResponses, V1AuthorizeJitAccessData, V1AuthorizeJitAccessErrors, V1AuthorizeJitAccessResponses, V1AuthorizeUserData, V1AuthorizeUserResponses, V1BulkCreateSecretsData, V1BulkCreateSecretsErrors, V1BulkCreateSecretsResponses, V1BulkDeleteSecretsData, V1BulkDeleteSecretsErrors, V1BulkDeleteSecretsResponses, V1BulkUpdateFunctionsData, V1BulkUpdateFunctionsErrors, V1BulkUpdateFunctionsResponses, V1CancelAProjectRestorationData, V1CancelAProjectRestorationErrors, V1CancelAProjectRestorationResponses, V1CheckVanitySubdomainAvailabilityData, V1CheckVanitySubdomainAvailabilityErrors, V1CheckVanitySubdomainAvailabilityResponses, V1ClaimProjectForOrganizationData, V1ClaimProjectForOrganizationErrors, V1ClaimProjectForOrganizationResponses, V1CountActionRunsData, V1CountActionRunsErrors, V1CountActionRunsResponses, V1CreateABranchData, V1CreateABranchErrors, V1CreateABranchResponses, V1CreateAFunctionData, V1CreateAFunctionErrors, V1CreateAFunctionResponses, V1CreateAnOrganizationData, V1CreateAnOrganizationErrors, V1CreateAnOrganizationResponses, V1CreateAProjectData, V1CreateAProjectResponses, V1CreateAssoProviderData, V1CreateAssoProviderErrors, V1CreateAssoProviderResponses, V1CreateLegacySigningKeyData, V1CreateLegacySigningKeyErrors, V1CreateLegacySigningKeyResponses, V1CreateLoginRoleData, V1CreateLoginRoleErrors, V1CreateLoginRoleResponses, V1CreateProjectApiKeyData, V1CreateProjectApiKeyErrors, V1CreateProjectApiKeyResponses, V1CreateProjectClaimTokenData, V1CreateProjectClaimTokenErrors, V1CreateProjectClaimTokenResponses, V1CreateProjectSigningKeyData, V1CreateProjectSigningKeyErrors, V1CreateProjectSigningKeyResponses, V1CreateProjectTpaIntegrationData, V1CreateProjectTpaIntegrationErrors, V1CreateProjectTpaIntegrationResponses, V1CreateRestorePointData, V1CreateRestorePointErrors, V1CreateRestorePointResponses, V1DeactivateVanitySubdomainConfigData, V1DeactivateVanitySubdomainConfigErrors, V1DeactivateVanitySubdomainConfigResponses, V1DeleteABranchData, V1DeleteABranchErrors, V1DeleteABranchResponses, V1DeleteAFunctionData, V1DeleteAFunctionErrors, V1DeleteAFunctionResponses, V1DeleteAProjectData, V1DeleteAProjectErrors, V1DeleteAProjectResponses, V1DeleteAssoProviderData, V1DeleteAssoProviderErrors, V1DeleteAssoProviderResponses, V1DeleteHostnameConfigData, V1DeleteHostnameConfigErrors, V1DeleteHostnameConfigResponses, V1DeleteJitAccessData, V1DeleteJitAccessErrors, V1DeleteJitAccessResponses, V1DeleteLoginRolesData, V1DeleteLoginRolesErrors, V1DeleteLoginRolesResponses, V1DeleteNetworkBansData, V1DeleteNetworkBansErrors, V1DeleteNetworkBansResponses, V1DeleteProjectApiKeyData, V1DeleteProjectApiKeyErrors, V1DeleteProjectApiKeyResponses, V1DeleteProjectClaimTokenData, V1DeleteProjectClaimTokenErrors, V1DeleteProjectClaimTokenResponses, V1DeleteProjectTpaIntegrationData, V1DeleteProjectTpaIntegrationErrors, V1DeleteProjectTpaIntegrationResponses, V1DeployAFunctionData, V1DeployAFunctionErrors, V1DeployAFunctionResponses, V1DiffABranchData, V1DiffABranchErrors, V1DiffABranchResponses, V1DisablePreviewBranchingData, V1DisablePreviewBranchingErrors, V1DisablePreviewBranchingResponses, V1DisableReadonlyModeTemporarilyData, V1DisableReadonlyModeTemporarilyErrors, V1DisableReadonlyModeTemporarilyResponses, V1EnableDatabaseWebhookData, V1EnableDatabaseWebhookErrors, V1EnableDatabaseWebhookResponses, V1ExchangeOauthTokenData, V1ExchangeOauthTokenResponses, V1GenerateTypescriptTypesData, V1GenerateTypescriptTypesErrors, V1GenerateTypescriptTypesResponses, V1GetABranchConfigData, V1GetABranchConfigErrors, V1GetABranchConfigResponses, V1GetABranchData, V1GetABranchErrors, V1GetABranchResponses, V1GetActionRunData, V1GetActionRunErrors, V1GetActionRunLogsData, V1GetActionRunLogsErrors, V1GetActionRunLogsResponses, V1GetActionRunResponses, V1GetAFunctionBodyData, V1GetAFunctionBodyErrors, V1GetAFunctionBodyResponses, V1GetAFunctionData, V1GetAFunctionErrors, V1GetAFunctionResponses, V1GetAllProjectsForOrganizationData, V1GetAllProjectsForOrganizationErrors, V1GetAllProjectsForOrganizationResponses, V1GetAMigrationData, V1GetAMigrationErrors, V1GetAMigrationResponses, V1GetAnOrganizationData, V1GetAnOrganizationErrors, V1GetAnOrganizationResponses, V1GetASnippetData, V1GetASnippetErrors, V1GetASnippetResponses, V1GetAssoProviderData, V1GetAssoProviderErrors, V1GetAssoProviderResponses, V1GetAuthServiceConfigData, V1GetAuthServiceConfigErrors, V1GetAuthServiceConfigResponses, V1GetAvailableRegionsData, V1GetAvailableRegionsResponses, V1GetDatabaseDiskData, V1GetDatabaseDiskErrors, V1GetDatabaseDiskResponses, V1GetDatabaseMetadataData, V1GetDatabaseMetadataErrors, V1GetDatabaseMetadataResponses, V1GetDiskUtilizationData, V1GetDiskUtilizationErrors, V1GetDiskUtilizationResponses, V1GetHostnameConfigData, V1GetHostnameConfigErrors, V1GetHostnameConfigResponses, V1GetJitAccessConfigData, V1GetJitAccessConfigErrors, V1GetJitAccessConfigResponses, V1GetJitAccessData, V1GetJitAccessErrors, V1GetJitAccessResponses, V1GetLegacySigningKeyData, V1GetLegacySigningKeyErrors, V1GetLegacySigningKeyResponses, V1GetNetworkRestrictionsData, V1GetNetworkRestrictionsErrors, V1GetNetworkRestrictionsResponses, V1GetOrganizationProjectClaimData, V1GetOrganizationProjectClaimErrors, V1GetOrganizationProjectClaimResponses, V1GetPerformanceAdvisorsData, V1GetPerformanceAdvisorsErrors, V1GetPerformanceAdvisorsResponses, V1GetPgsodiumConfigData, V1GetPgsodiumConfigErrors, V1GetPgsodiumConfigResponses, V1GetPoolerConfigData, V1GetPoolerConfigErrors, V1GetPoolerConfigResponses, V1GetPostgresConfigData, V1GetPostgresConfigErrors, V1GetPostgresConfigResponses, V1GetPostgrestServiceConfigData, V1GetPostgrestServiceConfigErrors, V1GetPostgrestServiceConfigResponses, V1GetPostgresUpgradeEligibilityData, V1GetPostgresUpgradeEligibilityErrors, V1GetPostgresUpgradeEligibilityResponses, V1GetPostgresUpgradeStatusData, V1GetPostgresUpgradeStatusErrors, V1GetPostgresUpgradeStatusResponses, V1GetProjectApiKeyData, V1GetProjectApiKeyErrors, V1GetProjectApiKeyResponses, V1GetProjectApiKeysData, V1GetProjectApiKeysErrors, V1GetProjectApiKeysResponses, V1GetProjectClaimTokenData, V1GetProjectClaimTokenErrors, V1GetProjectClaimTokenResponses, V1GetProjectData, V1GetProjectDiskAutoscaleConfigData, V1GetProjectDiskAutoscaleConfigErrors, V1GetProjectDiskAutoscaleConfigResponses, V1GetProjectErrors, V1GetProjectFunctionCombinedStatsData, V1GetProjectFunctionCombinedStatsErrors, V1GetProjectFunctionCombinedStatsResponses, V1GetProjectLegacyApiKeysData, V1GetProjectLegacyApiKeysErrors, V1GetProjectLegacyApiKeysResponses, V1GetProjectLogsData, V1GetProjectLogsErrors, V1GetProjectLogsResponses, V1GetProjectPgbouncerConfigData, V1GetProjectPgbouncerConfigErrors, V1GetProjectPgbouncerConfigResponses, V1GetProjectResponses, V1GetProjectSigningKeyData, V1GetProjectSigningKeyErrors, V1GetProjectSigningKeyResponses, V1GetProjectSigningKeysData, V1GetProjectSigningKeysErrors, V1GetProjectSigningKeysResponses, V1GetProjectTpaIntegrationData, V1GetProjectTpaIntegrationErrors, V1GetProjectTpaIntegrationResponses, V1GetProjectUsageApiCountData, V1GetProjectUsageApiCountErrors, V1GetProjectUsageApiCountResponses, V1GetProjectUsageRequestCountData, V1GetProjectUsageRequestCountErrors, V1GetProjectUsageRequestCountResponses, V1GetReadonlyModeStatusData, V1GetReadonlyModeStatusErrors, V1GetReadonlyModeStatusResponses, V1GetRealtimeConfigData, V1GetRealtimeConfigErrors, V1GetRealtimeConfigResponses, V1GetRestorePointData, V1GetRestorePointErrors, V1GetRestorePointResponses, V1GetSecurityAdvisorsData, V1GetSecurityAdvisorsErrors, V1GetSecurityAdvisorsResponses, V1GetServicesHealthData, V1GetServicesHealthErrors, V1GetServicesHealthResponses, V1GetSslEnforcementConfigData, V1GetSslEnforcementConfigErrors, V1GetSslEnforcementConfigResponses, V1GetStorageConfigData, V1GetStorageConfigErrors, V1GetStorageConfigResponses, V1GetVanitySubdomainConfigData, V1GetVanitySubdomainConfigErrors, V1GetVanitySubdomainConfigResponses, V1ListActionRunsData, V1ListActionRunsErrors, V1ListActionRunsResponses, V1ListAllBackupsData, V1ListAllBackupsErrors, V1ListAllBackupsResponses, V1ListAllBranchesData, V1ListAllBranchesErrors, V1ListAllBranchesResponses, V1ListAllBucketsData, V1ListAllBucketsErrors, V1ListAllBucketsResponses, V1ListAllFunctionsData, V1ListAllFunctionsErrors, V1ListAllFunctionsResponses, V1ListAllNetworkBansData, V1ListAllNetworkBansEnrichedData, V1ListAllNetworkBansEnrichedErrors, V1ListAllNetworkBansEnrichedResponses, V1ListAllNetworkBansErrors, V1ListAllNetworkBansResponses, V1ListAllOrganizationsData, V1ListAllOrganizationsErrors, V1ListAllOrganizationsResponses, V1ListAllProjectsData, V1ListAllProjectsResponses, V1ListAllSecretsData, V1ListAllSecretsErrors, V1ListAllSecretsResponses, V1ListAllSnippetsData, V1ListAllSnippetsErrors, V1ListAllSnippetsResponses, V1ListAllSsoProviderData, V1ListAllSsoProviderErrors, V1ListAllSsoProviderResponses, V1ListAvailableRestoreVersionsData, V1ListAvailableRestoreVersionsErrors, V1ListAvailableRestoreVersionsResponses, V1ListJitAccessData, V1ListJitAccessErrors, V1ListJitAccessResponses, V1ListMigrationHistoryData, V1ListMigrationHistoryErrors, V1ListMigrationHistoryResponses, V1ListOrganizationMembersData, V1ListOrganizationMembersResponses, V1ListProjectAddonsData, V1ListProjectAddonsErrors, V1ListProjectAddonsResponses, V1ListProjectTpaIntegrationsData, V1ListProjectTpaIntegrationsErrors, V1ListProjectTpaIntegrationsResponses, V1MergeABranchData, V1MergeABranchErrors, V1MergeABranchResponses, V1ModifyDatabaseDiskData, V1ModifyDatabaseDiskErrors, V1ModifyDatabaseDiskResponses, V1OauthAuthorizeProjectClaimData, V1OauthAuthorizeProjectClaimResponses, V1PatchAMigrationData, V1PatchAMigrationErrors, V1PatchAMigrationResponses, V1PatchNetworkRestrictionsData, V1PatchNetworkRestrictionsErrors, V1PatchNetworkRestrictionsResponses, V1PauseAProjectData, V1PauseAProjectErrors, V1PauseAProjectResponses, V1PushABranchData, V1PushABranchErrors, V1PushABranchResponses, V1ReadOnlyQueryData, V1ReadOnlyQueryErrors, V1ReadOnlyQueryResponses, V1RemoveAReadReplicaData, V1RemoveAReadReplicaErrors, V1RemoveAReadReplicaResponses, V1RemoveProjectAddonData, V1RemoveProjectAddonErrors, V1RemoveProjectAddonResponses, V1RemoveProjectSigningKeyData, V1RemoveProjectSigningKeyErrors, V1RemoveProjectSigningKeyResponses, V1ResetABranchData, V1ResetABranchErrors, V1ResetABranchResponses, V1RestoreABranchData, V1RestoreABranchErrors, V1RestoreABranchResponses, V1RestoreAProjectData, V1RestoreAProjectErrors, V1RestoreAProjectResponses, V1RestorePitrBackupData, V1RestorePitrBackupErrors, V1RestorePitrBackupResponses, V1RevokeTokenData, V1RevokeTokenResponses, V1RollbackMigrationsData, V1RollbackMigrationsErrors, V1RollbackMigrationsResponses, V1RunAQueryData, V1RunAQueryErrors, V1RunAQueryResponses, V1SetupAReadReplicaData, V1SetupAReadReplicaErrors, V1SetupAReadReplicaResponses, V1ShutdownRealtimeData, V1ShutdownRealtimeErrors, V1ShutdownRealtimeResponses, V1UndoData, V1UndoErrors, V1UndoResponses, V1UpdateABranchConfigData, V1UpdateABranchConfigErrors, V1UpdateABranchConfigResponses, V1UpdateActionRunStatusData, V1UpdateActionRunStatusErrors, V1UpdateActionRunStatusResponses, V1UpdateAFunctionData, V1UpdateAFunctionErrors, V1UpdateAFunctionResponses, V1UpdateAProjectData, V1UpdateAProjectErrors, V1UpdateAProjectResponses, V1UpdateAssoProviderData, V1UpdateAssoProviderErrors, V1UpdateAssoProviderResponses, V1UpdateAuthServiceConfigData, V1UpdateAuthServiceConfigErrors, V1UpdateAuthServiceConfigResponses, V1UpdateDatabasePasswordData, V1UpdateDatabasePasswordErrors, V1UpdateDatabasePasswordResponses, V1UpdateHostnameConfigData, V1UpdateHostnameConfigErrors, V1UpdateHostnameConfigResponses, V1UpdateJitAccessConfigData, V1UpdateJitAccessConfigErrors, V1UpdateJitAccessConfigResponses, V1UpdateJitAccessData, V1UpdateJitAccessErrors, V1UpdateJitAccessResponses, V1UpdateNetworkRestrictionsData, V1UpdateNetworkRestrictionsErrors, V1UpdateNetworkRestrictionsResponses, V1UpdatePgsodiumConfigData, V1UpdatePgsodiumConfigErrors, V1UpdatePgsodiumConfigResponses, V1UpdatePoolerConfigData, V1UpdatePoolerConfigErrors, V1UpdatePoolerConfigResponses, V1UpdatePostgresConfigData, V1UpdatePostgresConfigErrors, V1UpdatePostgresConfigResponses, V1UpdatePostgrestServiceConfigData, V1UpdatePostgrestServiceConfigErrors, V1UpdatePostgrestServiceConfigResponses, V1UpdateProjectApiKeyData, V1UpdateProjectApiKeyErrors, V1UpdateProjectApiKeyResponses, V1UpdateProjectLegacyApiKeysData, V1UpdateProjectLegacyApiKeysErrors, V1UpdateProjectLegacyApiKeysResponses, V1UpdateProjectSigningKeyData, V1UpdateProjectSigningKeyErrors, V1UpdateProjectSigningKeyResponses, V1UpdateRealtimeConfigData, V1UpdateRealtimeConfigErrors, V1UpdateRealtimeConfigResponses, V1UpdateSslEnforcementConfigData, V1UpdateSslEnforcementConfigErrors, V1UpdateSslEnforcementConfigResponses, V1UpdateStorageConfigData, V1UpdateStorageConfigErrors, V1UpdateStorageConfigResponses, V1UpgradePostgresVersionData, V1UpgradePostgresVersionErrors, V1UpgradePostgresVersionResponses, V1UpsertAMigrationData, V1UpsertAMigrationErrors, V1UpsertAMigrationResponses, V1VerifyDnsConfigData, V1VerifyDnsConfigErrors, V1VerifyDnsConfigResponses } from './types.gen';
|
|
6
|
-
|
|
7
|
-
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
|
-
/**
|
|
9
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
10
|
-
* individual options. This might be also useful if you want to implement a
|
|
11
|
-
* custom client.
|
|
12
|
-
*/
|
|
13
|
-
client?: Client;
|
|
14
|
-
/**
|
|
15
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
17
|
-
*/
|
|
18
|
-
meta?: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Delete a database branch
|
|
23
|
-
*
|
|
24
|
-
* Deletes the specified database branch. By default, deletes immediately. Use force=false to schedule deletion with 1-hour grace period (only when soft deletion is enabled).
|
|
25
|
-
*/
|
|
26
|
-
export const v1DeleteABranch = <ThrowOnError extends boolean = false>(options: Options<V1DeleteABranchData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteABranchResponses, V1DeleteABranchErrors, ThrowOnError>({
|
|
27
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
28
|
-
url: '/v1/branches/{branch_id_or_ref}',
|
|
29
|
-
...options
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Get database branch config
|
|
34
|
-
*
|
|
35
|
-
* Fetches configurations of the specified database branch
|
|
36
|
-
*/
|
|
37
|
-
export const v1GetABranchConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetABranchConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetABranchConfigResponses, V1GetABranchConfigErrors, ThrowOnError>({
|
|
38
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
39
|
-
url: '/v1/branches/{branch_id_or_ref}',
|
|
40
|
-
...options
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Update database branch config
|
|
45
|
-
*
|
|
46
|
-
* Updates the configuration of the specified database branch
|
|
47
|
-
*/
|
|
48
|
-
export const v1UpdateABranchConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateABranchConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateABranchConfigResponses, V1UpdateABranchConfigErrors, ThrowOnError>({
|
|
49
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
50
|
-
url: '/v1/branches/{branch_id_or_ref}',
|
|
51
|
-
...options,
|
|
52
|
-
headers: {
|
|
53
|
-
'Content-Type': 'application/json',
|
|
54
|
-
...options.headers
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Pushes a database branch
|
|
60
|
-
*
|
|
61
|
-
* Pushes the specified database branch
|
|
62
|
-
*/
|
|
63
|
-
export const v1PushABranch = <ThrowOnError extends boolean = false>(options: Options<V1PushABranchData, ThrowOnError>) => (options.client ?? client).post<V1PushABranchResponses, V1PushABranchErrors, ThrowOnError>({
|
|
64
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
65
|
-
url: '/v1/branches/{branch_id_or_ref}/push',
|
|
66
|
-
...options,
|
|
67
|
-
headers: {
|
|
68
|
-
'Content-Type': 'application/json',
|
|
69
|
-
...options.headers
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Merges a database branch
|
|
75
|
-
*
|
|
76
|
-
* Merges the specified database branch
|
|
77
|
-
*/
|
|
78
|
-
export const v1MergeABranch = <ThrowOnError extends boolean = false>(options: Options<V1MergeABranchData, ThrowOnError>) => (options.client ?? client).post<V1MergeABranchResponses, V1MergeABranchErrors, ThrowOnError>({
|
|
79
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
80
|
-
url: '/v1/branches/{branch_id_or_ref}/merge',
|
|
81
|
-
...options,
|
|
82
|
-
headers: {
|
|
83
|
-
'Content-Type': 'application/json',
|
|
84
|
-
...options.headers
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Resets a database branch
|
|
90
|
-
*
|
|
91
|
-
* Resets the specified database branch
|
|
92
|
-
*/
|
|
93
|
-
export const v1ResetABranch = <ThrowOnError extends boolean = false>(options: Options<V1ResetABranchData, ThrowOnError>) => (options.client ?? client).post<V1ResetABranchResponses, V1ResetABranchErrors, ThrowOnError>({
|
|
94
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
95
|
-
url: '/v1/branches/{branch_id_or_ref}/reset',
|
|
96
|
-
...options,
|
|
97
|
-
headers: {
|
|
98
|
-
'Content-Type': 'application/json',
|
|
99
|
-
...options.headers
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Restore a scheduled branch deletion
|
|
105
|
-
*
|
|
106
|
-
* Cancels scheduled deletion and restores the branch to active state
|
|
107
|
-
*/
|
|
108
|
-
export const v1RestoreABranch = <ThrowOnError extends boolean = false>(options: Options<V1RestoreABranchData, ThrowOnError>) => (options.client ?? client).post<V1RestoreABranchResponses, V1RestoreABranchErrors, ThrowOnError>({
|
|
109
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
110
|
-
url: '/v1/branches/{branch_id_or_ref}/restore',
|
|
111
|
-
...options
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* [Beta] Diffs a database branch
|
|
116
|
-
*
|
|
117
|
-
* Diffs the specified database branch
|
|
118
|
-
*/
|
|
119
|
-
export const v1DiffABranch = <ThrowOnError extends boolean = false>(options: Options<V1DiffABranchData, ThrowOnError>) => (options.client ?? client).get<V1DiffABranchResponses, V1DiffABranchErrors, ThrowOnError>({
|
|
120
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
121
|
-
url: '/v1/branches/{branch_id_or_ref}/diff',
|
|
122
|
-
...options
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* List all projects
|
|
127
|
-
*
|
|
128
|
-
* Returns a list of all projects you've previously created.
|
|
129
|
-
*
|
|
130
|
-
* Use `/v1/organizations/{slug}/projects` instead when possible to get more precise results and pagination support.
|
|
131
|
-
*/
|
|
132
|
-
export const v1ListAllProjects = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllProjectsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllProjectsResponses, unknown, ThrowOnError>({
|
|
133
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
134
|
-
url: '/v1/projects',
|
|
135
|
-
...options
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Create a project
|
|
140
|
-
*/
|
|
141
|
-
export const v1CreateAProject = <ThrowOnError extends boolean = false>(options: Options<V1CreateAProjectData, ThrowOnError>) => (options.client ?? client).post<V1CreateAProjectResponses, unknown, ThrowOnError>({
|
|
142
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
143
|
-
url: '/v1/projects',
|
|
144
|
-
...options,
|
|
145
|
-
headers: {
|
|
146
|
-
'Content-Type': 'application/json',
|
|
147
|
-
...options.headers
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* [Beta] Gets the list of available regions that can be used for a new project
|
|
153
|
-
*/
|
|
154
|
-
export const v1GetAvailableRegions = <ThrowOnError extends boolean = false>(options: Options<V1GetAvailableRegionsData, ThrowOnError>) => (options.client ?? client).get<V1GetAvailableRegionsResponses, unknown, ThrowOnError>({
|
|
155
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
156
|
-
url: '/v1/projects/available-regions',
|
|
157
|
-
...options
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* List all organizations
|
|
162
|
-
*
|
|
163
|
-
* Returns a list of organizations that you currently belong to.
|
|
164
|
-
*/
|
|
165
|
-
export const v1ListAllOrganizations = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllOrganizationsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllOrganizationsResponses, V1ListAllOrganizationsErrors, ThrowOnError>({
|
|
166
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
167
|
-
url: '/v1/organizations',
|
|
168
|
-
...options
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Create an organization
|
|
173
|
-
*/
|
|
174
|
-
export const v1CreateAnOrganization = <ThrowOnError extends boolean = false>(options: Options<V1CreateAnOrganizationData, ThrowOnError>) => (options.client ?? client).post<V1CreateAnOrganizationResponses, V1CreateAnOrganizationErrors, ThrowOnError>({
|
|
175
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
176
|
-
url: '/v1/organizations',
|
|
177
|
-
...options,
|
|
178
|
-
headers: {
|
|
179
|
-
'Content-Type': 'application/json',
|
|
180
|
-
...options.headers
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* [Beta] Authorize user through oauth
|
|
186
|
-
*/
|
|
187
|
-
export const v1AuthorizeUser = <ThrowOnError extends boolean = false>(options: Options<V1AuthorizeUserData, ThrowOnError>) => (options.client ?? client).get<V1AuthorizeUserResponses, unknown, ThrowOnError>({ url: '/v1/oauth/authorize', ...options });
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* [Beta] Exchange auth code for user's access and refresh token
|
|
191
|
-
*/
|
|
192
|
-
export const v1ExchangeOauthToken = <ThrowOnError extends boolean = false>(options: Options<V1ExchangeOauthTokenData, ThrowOnError>) => (options.client ?? client).post<V1ExchangeOauthTokenResponses, unknown, ThrowOnError>({
|
|
193
|
-
...urlSearchParamsBodySerializer,
|
|
194
|
-
url: '/v1/oauth/token',
|
|
195
|
-
...options,
|
|
196
|
-
headers: {
|
|
197
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
198
|
-
...options.headers
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* [Beta] Revoke oauth app authorization and it's corresponding tokens
|
|
204
|
-
*/
|
|
205
|
-
export const v1RevokeToken = <ThrowOnError extends boolean = false>(options: Options<V1RevokeTokenData, ThrowOnError>) => (options.client ?? client).post<V1RevokeTokenResponses, unknown, ThrowOnError>({
|
|
206
|
-
url: '/v1/oauth/revoke',
|
|
207
|
-
...options,
|
|
208
|
-
headers: {
|
|
209
|
-
'Content-Type': 'application/json',
|
|
210
|
-
...options.headers
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Authorize user through oauth and claim a project
|
|
216
|
-
*
|
|
217
|
-
* Initiates the OAuth authorization flow for the specified provider. After successful authentication, the user can claim ownership of the specified project.
|
|
218
|
-
*/
|
|
219
|
-
export const v1OauthAuthorizeProjectClaim = <ThrowOnError extends boolean = false>(options: Options<V1OauthAuthorizeProjectClaimData, ThrowOnError>) => (options.client ?? client).get<V1OauthAuthorizeProjectClaimResponses, unknown, ThrowOnError>({
|
|
220
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
221
|
-
url: '/v1/oauth/authorize/project-claim',
|
|
222
|
-
...options
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Lists SQL snippets for the logged in user
|
|
227
|
-
*/
|
|
228
|
-
export const v1ListAllSnippets = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllSnippetsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllSnippetsResponses, V1ListAllSnippetsErrors, ThrowOnError>({
|
|
229
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
230
|
-
url: '/v1/snippets',
|
|
231
|
-
...options
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Gets a specific SQL snippet
|
|
236
|
-
*/
|
|
237
|
-
export const v1GetASnippet = <ThrowOnError extends boolean = false>(options: Options<V1GetASnippetData, ThrowOnError>) => (options.client ?? client).get<V1GetASnippetResponses, V1GetASnippetErrors, ThrowOnError>({
|
|
238
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
239
|
-
url: '/v1/snippets/{id}',
|
|
240
|
-
...options
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* List all action runs
|
|
245
|
-
*
|
|
246
|
-
* Returns a paginated list of action runs of the specified project.
|
|
247
|
-
*/
|
|
248
|
-
export const v1ListActionRuns = <ThrowOnError extends boolean = false>(options: Options<V1ListActionRunsData, ThrowOnError>) => (options.client ?? client).get<V1ListActionRunsResponses, V1ListActionRunsErrors, ThrowOnError>({
|
|
249
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
250
|
-
url: '/v1/projects/{ref}/actions',
|
|
251
|
-
...options
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Count the number of action runs
|
|
256
|
-
*
|
|
257
|
-
* Returns the total number of action runs of the specified project.
|
|
258
|
-
*/
|
|
259
|
-
export const v1CountActionRuns = <ThrowOnError extends boolean = false>(options: Options<V1CountActionRunsData, ThrowOnError>) => (options.client ?? client).head<V1CountActionRunsResponses, V1CountActionRunsErrors, ThrowOnError>({
|
|
260
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
261
|
-
url: '/v1/projects/{ref}/actions',
|
|
262
|
-
...options
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Get the status of an action run
|
|
267
|
-
*
|
|
268
|
-
* Returns the current status of the specified action run.
|
|
269
|
-
*/
|
|
270
|
-
export const v1GetActionRun = <ThrowOnError extends boolean = false>(options: Options<V1GetActionRunData, ThrowOnError>) => (options.client ?? client).get<V1GetActionRunResponses, V1GetActionRunErrors, ThrowOnError>({
|
|
271
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
272
|
-
url: '/v1/projects/{ref}/actions/{run_id}',
|
|
273
|
-
...options
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Update the status of an action run
|
|
278
|
-
*
|
|
279
|
-
* Updates the status of an ongoing action run.
|
|
280
|
-
*/
|
|
281
|
-
export const v1UpdateActionRunStatus = <ThrowOnError extends boolean = false>(options: Options<V1UpdateActionRunStatusData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateActionRunStatusResponses, V1UpdateActionRunStatusErrors, ThrowOnError>({
|
|
282
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
283
|
-
url: '/v1/projects/{ref}/actions/{run_id}/status',
|
|
284
|
-
...options,
|
|
285
|
-
headers: {
|
|
286
|
-
'Content-Type': 'application/json',
|
|
287
|
-
...options.headers
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Get the logs of an action run
|
|
293
|
-
*
|
|
294
|
-
* Returns the logs from the specified action run.
|
|
295
|
-
*/
|
|
296
|
-
export const v1GetActionRunLogs = <ThrowOnError extends boolean = false>(options: Options<V1GetActionRunLogsData, ThrowOnError>) => (options.client ?? client).get<V1GetActionRunLogsResponses, V1GetActionRunLogsErrors, ThrowOnError>({
|
|
297
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
298
|
-
url: '/v1/projects/{ref}/actions/{run_id}/logs',
|
|
299
|
-
...options
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Get project api keys
|
|
304
|
-
*/
|
|
305
|
-
export const v1GetProjectApiKeys = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectApiKeysData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectApiKeysResponses, V1GetProjectApiKeysErrors, ThrowOnError>({
|
|
306
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
307
|
-
url: '/v1/projects/{ref}/api-keys',
|
|
308
|
-
...options
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Creates a new API key for the project
|
|
313
|
-
*/
|
|
314
|
-
export const v1CreateProjectApiKey = <ThrowOnError extends boolean = false>(options: Options<V1CreateProjectApiKeyData, ThrowOnError>) => (options.client ?? client).post<V1CreateProjectApiKeyResponses, V1CreateProjectApiKeyErrors, ThrowOnError>({
|
|
315
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
316
|
-
url: '/v1/projects/{ref}/api-keys',
|
|
317
|
-
...options,
|
|
318
|
-
headers: {
|
|
319
|
-
'Content-Type': 'application/json',
|
|
320
|
-
...options.headers
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
326
|
-
*/
|
|
327
|
-
export const
|
|
328
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
329
|
-
url: '/v1/projects/{ref}/api-keys/
|
|
330
|
-
...options
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
*
|
|
335
|
-
*/
|
|
336
|
-
export const
|
|
337
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
338
|
-
url: '/v1/projects/{ref}/api-keys/
|
|
339
|
-
...options
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
*
|
|
344
|
-
*/
|
|
345
|
-
export const
|
|
346
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
347
|
-
url: '/v1/projects/{ref}/api-keys/{id}',
|
|
348
|
-
...options
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
*
|
|
414
|
-
*/
|
|
415
|
-
export const
|
|
416
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
417
|
-
url: '/v1/projects/{ref}/
|
|
418
|
-
...options
|
|
419
|
-
});
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* [Beta]
|
|
423
|
-
*/
|
|
424
|
-
export const
|
|
425
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
426
|
-
url: '/v1/projects/{ref}/custom-hostname',
|
|
427
|
-
...options
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* [Beta]
|
|
454
|
-
*/
|
|
455
|
-
export const
|
|
456
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
457
|
-
url: '/v1/projects/{ref}/
|
|
458
|
-
...options
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* [Beta]
|
|
463
|
-
*/
|
|
464
|
-
export const
|
|
465
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
466
|
-
url: '/v1/projects/{ref}/
|
|
467
|
-
...options
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
});
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* [Beta]
|
|
494
|
-
*/
|
|
495
|
-
export const
|
|
496
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
497
|
-
url: '/v1/projects/{ref}/network-bans
|
|
498
|
-
...options
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
*
|
|
604
|
-
*/
|
|
605
|
-
export const
|
|
606
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
607
|
-
url: '/v1/projects/{ref}',
|
|
608
|
-
...options
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
*
|
|
700
|
-
*/
|
|
701
|
-
export const
|
|
702
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
703
|
-
url: '/v1/projects/{ref}/
|
|
704
|
-
...options
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* [Beta]
|
|
709
|
-
*/
|
|
710
|
-
export const
|
|
711
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
712
|
-
url: '/v1/projects/{ref}/vanity-subdomain',
|
|
713
|
-
...options
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
});
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
*
|
|
766
|
-
*/
|
|
767
|
-
export const
|
|
768
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
769
|
-
url: '/v1/projects/{ref}/
|
|
770
|
-
...options
|
|
771
|
-
});
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
*
|
|
775
|
-
*/
|
|
776
|
-
export const
|
|
777
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
778
|
-
url: '/v1/projects/{ref}/
|
|
779
|
-
...options
|
|
780
|
-
});
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
*
|
|
784
|
-
*/
|
|
785
|
-
export const
|
|
786
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
787
|
-
url: '/v1/projects/{ref}/
|
|
788
|
-
...options
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
});
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
*
|
|
828
|
-
*/
|
|
829
|
-
export const
|
|
830
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
831
|
-
url: '/v1/projects/{ref}/
|
|
832
|
-
...options
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
});
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
*
|
|
952
|
-
*/
|
|
953
|
-
export const
|
|
954
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
955
|
-
url: '/v1/projects/{ref}/
|
|
956
|
-
...options
|
|
957
|
-
});
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
*
|
|
961
|
-
*/
|
|
962
|
-
export const
|
|
963
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
964
|
-
url: '/v1/projects/{ref}/
|
|
965
|
-
...options
|
|
966
|
-
});
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
*
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
*
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
*
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
*
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
*
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
*
|
|
1087
|
-
*/
|
|
1088
|
-
export const
|
|
1089
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1090
|
-
url: '/v1/projects/{ref}/
|
|
1091
|
-
...options
|
|
1092
|
-
});
|
|
1093
|
-
|
|
1094
|
-
/**
|
|
1095
|
-
* Gets project's
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
*
|
|
1105
|
-
*/
|
|
1106
|
-
export const
|
|
1107
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1108
|
-
url: '/v1/projects/{ref}/
|
|
1109
|
-
...options
|
|
1110
|
-
});
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
*
|
|
1114
|
-
*/
|
|
1115
|
-
export const
|
|
1116
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1117
|
-
url: '/v1/projects/{ref}/
|
|
1118
|
-
...options
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
*
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
*
|
|
1164
|
-
*
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
*
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
*
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
*
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
*
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
*
|
|
1438
|
-
*
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
*
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
url: '/v1/organizations/{slug}/project-claim/{token}',
|
|
1757
|
-
...options
|
|
1758
|
-
});
|
|
1759
|
-
|
|
1760
|
-
/**
|
|
1761
|
-
* Claims project for the specified organization
|
|
1762
|
-
*/
|
|
1763
|
-
export const v1ClaimProjectForOrganization = <ThrowOnError extends boolean = false>(options: Options<V1ClaimProjectForOrganizationData, ThrowOnError>) => (options.client ?? client).post<V1ClaimProjectForOrganizationResponses, V1ClaimProjectForOrganizationErrors, ThrowOnError>({
|
|
1764
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1765
|
-
url: '/v1/organizations/{slug}/project-claim/{token}',
|
|
1766
|
-
...options
|
|
1767
|
-
});
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* Gets all projects for the given organization
|
|
1771
|
-
*
|
|
1772
|
-
* Returns a paginated list of projects for the specified organization.
|
|
1773
|
-
*
|
|
1774
|
-
* This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page.
|
|
1775
|
-
*/
|
|
1776
|
-
export const v1GetAllProjectsForOrganization = <ThrowOnError extends boolean = false>(options: Options<V1GetAllProjectsForOrganizationData, ThrowOnError>) => (options.client ?? client).get<V1GetAllProjectsForOrganizationResponses, V1GetAllProjectsForOrganizationErrors, ThrowOnError>({
|
|
1777
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1778
|
-
url: '/v1/organizations/{slug}/projects',
|
|
1779
|
-
...options
|
|
1780
|
-
});
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape, urlSearchParamsBodySerializer } from './client';
|
|
4
|
+
import { client } from './client.gen';
|
|
5
|
+
import type { V1ActivateCustomHostnameData, V1ActivateCustomHostnameErrors, V1ActivateCustomHostnameResponses, V1ActivateVanitySubdomainConfigData, V1ActivateVanitySubdomainConfigErrors, V1ActivateVanitySubdomainConfigResponses, V1ApplyAMigrationData, V1ApplyAMigrationErrors, V1ApplyAMigrationResponses, V1ApplyProjectAddonData, V1ApplyProjectAddonErrors, V1ApplyProjectAddonResponses, V1AuthorizeJitAccessData, V1AuthorizeJitAccessErrors, V1AuthorizeJitAccessResponses, V1AuthorizeUserData, V1AuthorizeUserResponses, V1BulkCreateSecretsData, V1BulkCreateSecretsErrors, V1BulkCreateSecretsResponses, V1BulkDeleteSecretsData, V1BulkDeleteSecretsErrors, V1BulkDeleteSecretsResponses, V1BulkUpdateFunctionsData, V1BulkUpdateFunctionsErrors, V1BulkUpdateFunctionsResponses, V1CancelAProjectRestorationData, V1CancelAProjectRestorationErrors, V1CancelAProjectRestorationResponses, V1CheckVanitySubdomainAvailabilityData, V1CheckVanitySubdomainAvailabilityErrors, V1CheckVanitySubdomainAvailabilityResponses, V1ClaimProjectForOrganizationData, V1ClaimProjectForOrganizationErrors, V1ClaimProjectForOrganizationResponses, V1CountActionRunsData, V1CountActionRunsErrors, V1CountActionRunsResponses, V1CreateABranchData, V1CreateABranchErrors, V1CreateABranchResponses, V1CreateAFunctionData, V1CreateAFunctionErrors, V1CreateAFunctionResponses, V1CreateAnOrganizationData, V1CreateAnOrganizationErrors, V1CreateAnOrganizationResponses, V1CreateAProjectData, V1CreateAProjectResponses, V1CreateAssoProviderData, V1CreateAssoProviderErrors, V1CreateAssoProviderResponses, V1CreateLoginRoleData, V1CreateLoginRoleErrors, V1CreateLoginRoleResponses, V1CreateProjectApiKeyData, V1CreateProjectApiKeyErrors, V1CreateProjectApiKeyResponses, V1CreateProjectClaimTokenData, V1CreateProjectClaimTokenErrors, V1CreateProjectClaimTokenResponses, V1CreateProjectSigningKeyData, V1CreateProjectSigningKeyErrors, V1CreateProjectSigningKeyResponses, V1CreateProjectTpaIntegrationData, V1CreateProjectTpaIntegrationErrors, V1CreateProjectTpaIntegrationResponses, V1CreateRestorePointData, V1CreateRestorePointErrors, V1CreateRestorePointResponses, V1DeactivateVanitySubdomainConfigData, V1DeactivateVanitySubdomainConfigErrors, V1DeactivateVanitySubdomainConfigResponses, V1DeleteABranchData, V1DeleteABranchErrors, V1DeleteABranchResponses, V1DeleteAFunctionData, V1DeleteAFunctionErrors, V1DeleteAFunctionResponses, V1DeleteAProjectData, V1DeleteAProjectErrors, V1DeleteAProjectResponses, V1DeleteAssoProviderData, V1DeleteAssoProviderErrors, V1DeleteAssoProviderResponses, V1DeleteHostnameConfigData, V1DeleteHostnameConfigErrors, V1DeleteHostnameConfigResponses, V1DeleteJitAccessData, V1DeleteJitAccessErrors, V1DeleteJitAccessResponses, V1DeleteLoginRolesData, V1DeleteLoginRolesErrors, V1DeleteLoginRolesResponses, V1DeleteNetworkBansData, V1DeleteNetworkBansErrors, V1DeleteNetworkBansResponses, V1DeleteProjectApiKeyData, V1DeleteProjectApiKeyErrors, V1DeleteProjectApiKeyResponses, V1DeleteProjectClaimTokenData, V1DeleteProjectClaimTokenErrors, V1DeleteProjectClaimTokenResponses, V1DeleteProjectTpaIntegrationData, V1DeleteProjectTpaIntegrationErrors, V1DeleteProjectTpaIntegrationResponses, V1DeployAFunctionData, V1DeployAFunctionErrors, V1DeployAFunctionResponses, V1DiffABranchData, V1DiffABranchErrors, V1DiffABranchResponses, V1DisablePreviewBranchingData, V1DisablePreviewBranchingErrors, V1DisablePreviewBranchingResponses, V1DisableReadonlyModeTemporarilyData, V1DisableReadonlyModeTemporarilyErrors, V1DisableReadonlyModeTemporarilyResponses, V1EnableDatabaseWebhookData, V1EnableDatabaseWebhookErrors, V1EnableDatabaseWebhookResponses, V1ExchangeOauthTokenData, V1ExchangeOauthTokenResponses, V1GenerateTypescriptTypesData, V1GenerateTypescriptTypesErrors, V1GenerateTypescriptTypesResponses, V1GetABranchConfigData, V1GetABranchConfigErrors, V1GetABranchConfigResponses, V1GetABranchData, V1GetABranchErrors, V1GetABranchResponses, V1GetActionRunData, V1GetActionRunErrors, V1GetActionRunLogsData, V1GetActionRunLogsErrors, V1GetActionRunLogsResponses, V1GetActionRunResponses, V1GetAFunctionBodyData, V1GetAFunctionBodyErrors, V1GetAFunctionBodyResponses, V1GetAFunctionData, V1GetAFunctionErrors, V1GetAFunctionResponses, V1GetAllProjectsForOrganizationData, V1GetAllProjectsForOrganizationErrors, V1GetAllProjectsForOrganizationResponses, V1GetAMigrationData, V1GetAMigrationErrors, V1GetAMigrationResponses, V1GetAnOrganizationData, V1GetAnOrganizationErrors, V1GetAnOrganizationResponses, V1GetASnippetData, V1GetASnippetErrors, V1GetASnippetResponses, V1GetAssoProviderData, V1GetAssoProviderErrors, V1GetAssoProviderResponses, V1GetAuthServiceConfigData, V1GetAuthServiceConfigErrors, V1GetAuthServiceConfigResponses, V1GetAvailableRegionsData, V1GetAvailableRegionsResponses, V1GetDatabaseDiskData, V1GetDatabaseDiskErrors, V1GetDatabaseDiskResponses, V1GetDatabaseMetadataData, V1GetDatabaseMetadataErrors, V1GetDatabaseMetadataResponses, V1GetDatabaseOpenapiData, V1GetDatabaseOpenapiErrors, V1GetDatabaseOpenapiResponses, V1GetDiskUtilizationData, V1GetDiskUtilizationErrors, V1GetDiskUtilizationResponses, V1GetHostnameConfigData, V1GetHostnameConfigErrors, V1GetHostnameConfigResponses, V1GetJitAccessConfigData, V1GetJitAccessConfigErrors, V1GetJitAccessConfigResponses, V1GetJitAccessData, V1GetJitAccessErrors, V1GetJitAccessResponses, V1GetNetworkRestrictionsData, V1GetNetworkRestrictionsErrors, V1GetNetworkRestrictionsResponses, V1GetOrganizationProjectClaimData, V1GetOrganizationProjectClaimErrors, V1GetOrganizationProjectClaimResponses, V1GetPerformanceAdvisorsData, V1GetPerformanceAdvisorsErrors, V1GetPerformanceAdvisorsResponses, V1GetPgsodiumConfigData, V1GetPgsodiumConfigErrors, V1GetPgsodiumConfigResponses, V1GetPoolerConfigData, V1GetPoolerConfigErrors, V1GetPoolerConfigResponses, V1GetPostgresConfigData, V1GetPostgresConfigErrors, V1GetPostgresConfigResponses, V1GetPostgrestServiceConfigData, V1GetPostgrestServiceConfigErrors, V1GetPostgrestServiceConfigResponses, V1GetPostgresUpgradeEligibilityData, V1GetPostgresUpgradeEligibilityErrors, V1GetPostgresUpgradeEligibilityResponses, V1GetPostgresUpgradeStatusData, V1GetPostgresUpgradeStatusErrors, V1GetPostgresUpgradeStatusResponses, V1GetProjectApiKeyData, V1GetProjectApiKeyErrors, V1GetProjectApiKeyResponses, V1GetProjectApiKeysData, V1GetProjectApiKeysErrors, V1GetProjectApiKeysResponses, V1GetProjectClaimTokenData, V1GetProjectClaimTokenErrors, V1GetProjectClaimTokenResponses, V1GetProjectData, V1GetProjectDiskAutoscaleConfigData, V1GetProjectDiskAutoscaleConfigErrors, V1GetProjectDiskAutoscaleConfigResponses, V1GetProjectErrors, V1GetProjectFunctionCombinedStatsData, V1GetProjectFunctionCombinedStatsErrors, V1GetProjectFunctionCombinedStatsResponses, V1GetProjectLogsData, V1GetProjectLogsErrors, V1GetProjectLogsResponses, V1GetProjectPgbouncerConfigData, V1GetProjectPgbouncerConfigErrors, V1GetProjectPgbouncerConfigResponses, V1GetProjectResponses, V1GetProjectSigningKeyData, V1GetProjectSigningKeyErrors, V1GetProjectSigningKeyResponses, V1GetProjectSigningKeysData, V1GetProjectSigningKeysErrors, V1GetProjectSigningKeysResponses, V1GetProjectTpaIntegrationData, V1GetProjectTpaIntegrationErrors, V1GetProjectTpaIntegrationResponses, V1GetProjectUsageApiCountData, V1GetProjectUsageApiCountErrors, V1GetProjectUsageApiCountResponses, V1GetProjectUsageRequestCountData, V1GetProjectUsageRequestCountErrors, V1GetProjectUsageRequestCountResponses, V1GetReadonlyModeStatusData, V1GetReadonlyModeStatusErrors, V1GetReadonlyModeStatusResponses, V1GetRealtimeConfigData, V1GetRealtimeConfigErrors, V1GetRealtimeConfigResponses, V1GetRestorePointData, V1GetRestorePointErrors, V1GetRestorePointResponses, V1GetSecurityAdvisorsData, V1GetSecurityAdvisorsErrors, V1GetSecurityAdvisorsResponses, V1GetServicesHealthData, V1GetServicesHealthErrors, V1GetServicesHealthResponses, V1GetSslEnforcementConfigData, V1GetSslEnforcementConfigErrors, V1GetSslEnforcementConfigResponses, V1GetStorageConfigData, V1GetStorageConfigErrors, V1GetStorageConfigResponses, V1GetVanitySubdomainConfigData, V1GetVanitySubdomainConfigErrors, V1GetVanitySubdomainConfigResponses, V1ListActionRunsData, V1ListActionRunsErrors, V1ListActionRunsResponses, V1ListAllBackupsData, V1ListAllBackupsErrors, V1ListAllBackupsResponses, V1ListAllBranchesData, V1ListAllBranchesErrors, V1ListAllBranchesResponses, V1ListAllBucketsData, V1ListAllBucketsErrors, V1ListAllBucketsResponses, V1ListAllFunctionsData, V1ListAllFunctionsErrors, V1ListAllFunctionsResponses, V1ListAllNetworkBansData, V1ListAllNetworkBansEnrichedData, V1ListAllNetworkBansEnrichedErrors, V1ListAllNetworkBansEnrichedResponses, V1ListAllNetworkBansErrors, V1ListAllNetworkBansResponses, V1ListAllOrganizationsData, V1ListAllOrganizationsErrors, V1ListAllOrganizationsResponses, V1ListAllProjectsData, V1ListAllProjectsResponses, V1ListAllSecretsData, V1ListAllSecretsErrors, V1ListAllSecretsResponses, V1ListAllSnippetsData, V1ListAllSnippetsErrors, V1ListAllSnippetsResponses, V1ListAllSsoProviderData, V1ListAllSsoProviderErrors, V1ListAllSsoProviderResponses, V1ListAvailableRestoreVersionsData, V1ListAvailableRestoreVersionsErrors, V1ListAvailableRestoreVersionsResponses, V1ListJitAccessData, V1ListJitAccessErrors, V1ListJitAccessResponses, V1ListMigrationHistoryData, V1ListMigrationHistoryErrors, V1ListMigrationHistoryResponses, V1ListOrganizationMembersData, V1ListOrganizationMembersResponses, V1ListProjectAddonsData, V1ListProjectAddonsErrors, V1ListProjectAddonsResponses, V1ListProjectTpaIntegrationsData, V1ListProjectTpaIntegrationsErrors, V1ListProjectTpaIntegrationsResponses, V1MergeABranchData, V1MergeABranchErrors, V1MergeABranchResponses, V1ModifyDatabaseDiskData, V1ModifyDatabaseDiskErrors, V1ModifyDatabaseDiskResponses, V1OauthAuthorizeProjectClaimData, V1OauthAuthorizeProjectClaimResponses, V1PatchAMigrationData, V1PatchAMigrationErrors, V1PatchAMigrationResponses, V1PatchNetworkRestrictionsData, V1PatchNetworkRestrictionsErrors, V1PatchNetworkRestrictionsResponses, V1PauseAProjectData, V1PauseAProjectErrors, V1PauseAProjectResponses, V1PushABranchData, V1PushABranchErrors, V1PushABranchResponses, V1ReadOnlyQueryData, V1ReadOnlyQueryErrors, V1ReadOnlyQueryResponses, V1RemoveAReadReplicaData, V1RemoveAReadReplicaErrors, V1RemoveAReadReplicaResponses, V1RemoveProjectAddonData, V1RemoveProjectAddonErrors, V1RemoveProjectAddonResponses, V1RemoveProjectSigningKeyData, V1RemoveProjectSigningKeyErrors, V1RemoveProjectSigningKeyResponses, V1ResetABranchData, V1ResetABranchErrors, V1ResetABranchResponses, V1RestoreABranchData, V1RestoreABranchErrors, V1RestoreABranchResponses, V1RestoreAProjectData, V1RestoreAProjectErrors, V1RestoreAProjectResponses, V1RestorePitrBackupData, V1RestorePitrBackupErrors, V1RestorePitrBackupResponses, V1RevokeTokenData, V1RevokeTokenResponses, V1RollbackMigrationsData, V1RollbackMigrationsErrors, V1RollbackMigrationsResponses, V1RunAQueryData, V1RunAQueryErrors, V1RunAQueryResponses, V1SetupAReadReplicaData, V1SetupAReadReplicaErrors, V1SetupAReadReplicaResponses, V1ShutdownRealtimeData, V1ShutdownRealtimeErrors, V1ShutdownRealtimeResponses, V1UndoData, V1UndoErrors, V1UndoResponses, V1UpdateABranchConfigData, V1UpdateABranchConfigErrors, V1UpdateABranchConfigResponses, V1UpdateActionRunStatusData, V1UpdateActionRunStatusErrors, V1UpdateActionRunStatusResponses, V1UpdateAFunctionData, V1UpdateAFunctionErrors, V1UpdateAFunctionResponses, V1UpdateAProjectData, V1UpdateAProjectErrors, V1UpdateAProjectResponses, V1UpdateAssoProviderData, V1UpdateAssoProviderErrors, V1UpdateAssoProviderResponses, V1UpdateAuthServiceConfigData, V1UpdateAuthServiceConfigErrors, V1UpdateAuthServiceConfigResponses, V1UpdateDatabasePasswordData, V1UpdateDatabasePasswordErrors, V1UpdateDatabasePasswordResponses, V1UpdateHostnameConfigData, V1UpdateHostnameConfigErrors, V1UpdateHostnameConfigResponses, V1UpdateJitAccessConfigData, V1UpdateJitAccessConfigErrors, V1UpdateJitAccessConfigResponses, V1UpdateJitAccessData, V1UpdateJitAccessErrors, V1UpdateJitAccessResponses, V1UpdateNetworkRestrictionsData, V1UpdateNetworkRestrictionsErrors, V1UpdateNetworkRestrictionsResponses, V1UpdatePgsodiumConfigData, V1UpdatePgsodiumConfigErrors, V1UpdatePgsodiumConfigResponses, V1UpdatePoolerConfigData, V1UpdatePoolerConfigErrors, V1UpdatePoolerConfigResponses, V1UpdatePostgresConfigData, V1UpdatePostgresConfigErrors, V1UpdatePostgresConfigResponses, V1UpdatePostgrestServiceConfigData, V1UpdatePostgrestServiceConfigErrors, V1UpdatePostgrestServiceConfigResponses, V1UpdateProjectApiKeyData, V1UpdateProjectApiKeyErrors, V1UpdateProjectApiKeyResponses, V1UpdateProjectSigningKeyData, V1UpdateProjectSigningKeyErrors, V1UpdateProjectSigningKeyResponses, V1UpdateRealtimeConfigData, V1UpdateRealtimeConfigErrors, V1UpdateRealtimeConfigResponses, V1UpdateSslEnforcementConfigData, V1UpdateSslEnforcementConfigErrors, V1UpdateSslEnforcementConfigResponses, V1UpdateStorageConfigData, V1UpdateStorageConfigErrors, V1UpdateStorageConfigResponses, V1UpgradePostgresVersionData, V1UpgradePostgresVersionErrors, V1UpgradePostgresVersionResponses, V1UpsertAMigrationData, V1UpsertAMigrationErrors, V1UpsertAMigrationResponses, V1VerifyDnsConfigData, V1VerifyDnsConfigErrors, V1VerifyDnsConfigResponses } from './types.gen';
|
|
6
|
+
|
|
7
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
|
+
/**
|
|
9
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
10
|
+
* individual options. This might be also useful if you want to implement a
|
|
11
|
+
* custom client.
|
|
12
|
+
*/
|
|
13
|
+
client?: Client;
|
|
14
|
+
/**
|
|
15
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
17
|
+
*/
|
|
18
|
+
meta?: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Delete a database branch
|
|
23
|
+
*
|
|
24
|
+
* Deletes the specified database branch. By default, deletes immediately. Use force=false to schedule deletion with 1-hour grace period (only when soft deletion is enabled).
|
|
25
|
+
*/
|
|
26
|
+
export const v1DeleteABranch = <ThrowOnError extends boolean = false>(options: Options<V1DeleteABranchData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteABranchResponses, V1DeleteABranchErrors, ThrowOnError>({
|
|
27
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
28
|
+
url: '/v1/branches/{branch_id_or_ref}',
|
|
29
|
+
...options
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get database branch config
|
|
34
|
+
*
|
|
35
|
+
* Fetches configurations of the specified database branch
|
|
36
|
+
*/
|
|
37
|
+
export const v1GetABranchConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetABranchConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetABranchConfigResponses, V1GetABranchConfigErrors, ThrowOnError>({
|
|
38
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
39
|
+
url: '/v1/branches/{branch_id_or_ref}',
|
|
40
|
+
...options
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Update database branch config
|
|
45
|
+
*
|
|
46
|
+
* Updates the configuration of the specified database branch
|
|
47
|
+
*/
|
|
48
|
+
export const v1UpdateABranchConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateABranchConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateABranchConfigResponses, V1UpdateABranchConfigErrors, ThrowOnError>({
|
|
49
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
50
|
+
url: '/v1/branches/{branch_id_or_ref}',
|
|
51
|
+
...options,
|
|
52
|
+
headers: {
|
|
53
|
+
'Content-Type': 'application/json',
|
|
54
|
+
...options.headers
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Pushes a database branch
|
|
60
|
+
*
|
|
61
|
+
* Pushes the specified database branch
|
|
62
|
+
*/
|
|
63
|
+
export const v1PushABranch = <ThrowOnError extends boolean = false>(options: Options<V1PushABranchData, ThrowOnError>) => (options.client ?? client).post<V1PushABranchResponses, V1PushABranchErrors, ThrowOnError>({
|
|
64
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
65
|
+
url: '/v1/branches/{branch_id_or_ref}/push',
|
|
66
|
+
...options,
|
|
67
|
+
headers: {
|
|
68
|
+
'Content-Type': 'application/json',
|
|
69
|
+
...options.headers
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Merges a database branch
|
|
75
|
+
*
|
|
76
|
+
* Merges the specified database branch
|
|
77
|
+
*/
|
|
78
|
+
export const v1MergeABranch = <ThrowOnError extends boolean = false>(options: Options<V1MergeABranchData, ThrowOnError>) => (options.client ?? client).post<V1MergeABranchResponses, V1MergeABranchErrors, ThrowOnError>({
|
|
79
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
80
|
+
url: '/v1/branches/{branch_id_or_ref}/merge',
|
|
81
|
+
...options,
|
|
82
|
+
headers: {
|
|
83
|
+
'Content-Type': 'application/json',
|
|
84
|
+
...options.headers
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Resets a database branch
|
|
90
|
+
*
|
|
91
|
+
* Resets the specified database branch
|
|
92
|
+
*/
|
|
93
|
+
export const v1ResetABranch = <ThrowOnError extends boolean = false>(options: Options<V1ResetABranchData, ThrowOnError>) => (options.client ?? client).post<V1ResetABranchResponses, V1ResetABranchErrors, ThrowOnError>({
|
|
94
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
95
|
+
url: '/v1/branches/{branch_id_or_ref}/reset',
|
|
96
|
+
...options,
|
|
97
|
+
headers: {
|
|
98
|
+
'Content-Type': 'application/json',
|
|
99
|
+
...options.headers
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Restore a scheduled branch deletion
|
|
105
|
+
*
|
|
106
|
+
* Cancels scheduled deletion and restores the branch to active state
|
|
107
|
+
*/
|
|
108
|
+
export const v1RestoreABranch = <ThrowOnError extends boolean = false>(options: Options<V1RestoreABranchData, ThrowOnError>) => (options.client ?? client).post<V1RestoreABranchResponses, V1RestoreABranchErrors, ThrowOnError>({
|
|
109
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
110
|
+
url: '/v1/branches/{branch_id_or_ref}/restore',
|
|
111
|
+
...options
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* [Beta] Diffs a database branch
|
|
116
|
+
*
|
|
117
|
+
* Diffs the specified database branch
|
|
118
|
+
*/
|
|
119
|
+
export const v1DiffABranch = <ThrowOnError extends boolean = false>(options: Options<V1DiffABranchData, ThrowOnError>) => (options.client ?? client).get<V1DiffABranchResponses, V1DiffABranchErrors, ThrowOnError>({
|
|
120
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
121
|
+
url: '/v1/branches/{branch_id_or_ref}/diff',
|
|
122
|
+
...options
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* List all projects
|
|
127
|
+
*
|
|
128
|
+
* Returns a list of all projects you've previously created.
|
|
129
|
+
*
|
|
130
|
+
* Use `/v1/organizations/{slug}/projects` instead when possible to get more precise results and pagination support.
|
|
131
|
+
*/
|
|
132
|
+
export const v1ListAllProjects = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllProjectsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllProjectsResponses, unknown, ThrowOnError>({
|
|
133
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
134
|
+
url: '/v1/projects',
|
|
135
|
+
...options
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Create a project
|
|
140
|
+
*/
|
|
141
|
+
export const v1CreateAProject = <ThrowOnError extends boolean = false>(options: Options<V1CreateAProjectData, ThrowOnError>) => (options.client ?? client).post<V1CreateAProjectResponses, unknown, ThrowOnError>({
|
|
142
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
143
|
+
url: '/v1/projects',
|
|
144
|
+
...options,
|
|
145
|
+
headers: {
|
|
146
|
+
'Content-Type': 'application/json',
|
|
147
|
+
...options.headers
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* [Beta] Gets the list of available regions that can be used for a new project
|
|
153
|
+
*/
|
|
154
|
+
export const v1GetAvailableRegions = <ThrowOnError extends boolean = false>(options: Options<V1GetAvailableRegionsData, ThrowOnError>) => (options.client ?? client).get<V1GetAvailableRegionsResponses, unknown, ThrowOnError>({
|
|
155
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
156
|
+
url: '/v1/projects/available-regions',
|
|
157
|
+
...options
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* List all organizations
|
|
162
|
+
*
|
|
163
|
+
* Returns a list of organizations that you currently belong to.
|
|
164
|
+
*/
|
|
165
|
+
export const v1ListAllOrganizations = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllOrganizationsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllOrganizationsResponses, V1ListAllOrganizationsErrors, ThrowOnError>({
|
|
166
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
167
|
+
url: '/v1/organizations',
|
|
168
|
+
...options
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Create an organization
|
|
173
|
+
*/
|
|
174
|
+
export const v1CreateAnOrganization = <ThrowOnError extends boolean = false>(options: Options<V1CreateAnOrganizationData, ThrowOnError>) => (options.client ?? client).post<V1CreateAnOrganizationResponses, V1CreateAnOrganizationErrors, ThrowOnError>({
|
|
175
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
176
|
+
url: '/v1/organizations',
|
|
177
|
+
...options,
|
|
178
|
+
headers: {
|
|
179
|
+
'Content-Type': 'application/json',
|
|
180
|
+
...options.headers
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* [Beta] Authorize user through oauth
|
|
186
|
+
*/
|
|
187
|
+
export const v1AuthorizeUser = <ThrowOnError extends boolean = false>(options: Options<V1AuthorizeUserData, ThrowOnError>) => (options.client ?? client).get<V1AuthorizeUserResponses, unknown, ThrowOnError>({ url: '/v1/oauth/authorize', ...options });
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* [Beta] Exchange auth code for user's access and refresh token
|
|
191
|
+
*/
|
|
192
|
+
export const v1ExchangeOauthToken = <ThrowOnError extends boolean = false>(options: Options<V1ExchangeOauthTokenData, ThrowOnError>) => (options.client ?? client).post<V1ExchangeOauthTokenResponses, unknown, ThrowOnError>({
|
|
193
|
+
...urlSearchParamsBodySerializer,
|
|
194
|
+
url: '/v1/oauth/token',
|
|
195
|
+
...options,
|
|
196
|
+
headers: {
|
|
197
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
198
|
+
...options.headers
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* [Beta] Revoke oauth app authorization and it's corresponding tokens
|
|
204
|
+
*/
|
|
205
|
+
export const v1RevokeToken = <ThrowOnError extends boolean = false>(options: Options<V1RevokeTokenData, ThrowOnError>) => (options.client ?? client).post<V1RevokeTokenResponses, unknown, ThrowOnError>({
|
|
206
|
+
url: '/v1/oauth/revoke',
|
|
207
|
+
...options,
|
|
208
|
+
headers: {
|
|
209
|
+
'Content-Type': 'application/json',
|
|
210
|
+
...options.headers
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Authorize user through oauth and claim a project
|
|
216
|
+
*
|
|
217
|
+
* Initiates the OAuth authorization flow for the specified provider. After successful authentication, the user can claim ownership of the specified project.
|
|
218
|
+
*/
|
|
219
|
+
export const v1OauthAuthorizeProjectClaim = <ThrowOnError extends boolean = false>(options: Options<V1OauthAuthorizeProjectClaimData, ThrowOnError>) => (options.client ?? client).get<V1OauthAuthorizeProjectClaimResponses, unknown, ThrowOnError>({
|
|
220
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
221
|
+
url: '/v1/oauth/authorize/project-claim',
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Lists SQL snippets for the logged in user
|
|
227
|
+
*/
|
|
228
|
+
export const v1ListAllSnippets = <ThrowOnError extends boolean = false>(options?: Options<V1ListAllSnippetsData, ThrowOnError>) => (options?.client ?? client).get<V1ListAllSnippetsResponses, V1ListAllSnippetsErrors, ThrowOnError>({
|
|
229
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
230
|
+
url: '/v1/snippets',
|
|
231
|
+
...options
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Gets a specific SQL snippet
|
|
236
|
+
*/
|
|
237
|
+
export const v1GetASnippet = <ThrowOnError extends boolean = false>(options: Options<V1GetASnippetData, ThrowOnError>) => (options.client ?? client).get<V1GetASnippetResponses, V1GetASnippetErrors, ThrowOnError>({
|
|
238
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
239
|
+
url: '/v1/snippets/{id}',
|
|
240
|
+
...options
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* List all action runs
|
|
245
|
+
*
|
|
246
|
+
* Returns a paginated list of action runs of the specified project.
|
|
247
|
+
*/
|
|
248
|
+
export const v1ListActionRuns = <ThrowOnError extends boolean = false>(options: Options<V1ListActionRunsData, ThrowOnError>) => (options.client ?? client).get<V1ListActionRunsResponses, V1ListActionRunsErrors, ThrowOnError>({
|
|
249
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
250
|
+
url: '/v1/projects/{ref}/actions',
|
|
251
|
+
...options
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Count the number of action runs
|
|
256
|
+
*
|
|
257
|
+
* Returns the total number of action runs of the specified project.
|
|
258
|
+
*/
|
|
259
|
+
export const v1CountActionRuns = <ThrowOnError extends boolean = false>(options: Options<V1CountActionRunsData, ThrowOnError>) => (options.client ?? client).head<V1CountActionRunsResponses, V1CountActionRunsErrors, ThrowOnError>({
|
|
260
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
261
|
+
url: '/v1/projects/{ref}/actions',
|
|
262
|
+
...options
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Get the status of an action run
|
|
267
|
+
*
|
|
268
|
+
* Returns the current status of the specified action run.
|
|
269
|
+
*/
|
|
270
|
+
export const v1GetActionRun = <ThrowOnError extends boolean = false>(options: Options<V1GetActionRunData, ThrowOnError>) => (options.client ?? client).get<V1GetActionRunResponses, V1GetActionRunErrors, ThrowOnError>({
|
|
271
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
272
|
+
url: '/v1/projects/{ref}/actions/{run_id}',
|
|
273
|
+
...options
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Update the status of an action run
|
|
278
|
+
*
|
|
279
|
+
* Updates the status of an ongoing action run.
|
|
280
|
+
*/
|
|
281
|
+
export const v1UpdateActionRunStatus = <ThrowOnError extends boolean = false>(options: Options<V1UpdateActionRunStatusData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateActionRunStatusResponses, V1UpdateActionRunStatusErrors, ThrowOnError>({
|
|
282
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
283
|
+
url: '/v1/projects/{ref}/actions/{run_id}/status',
|
|
284
|
+
...options,
|
|
285
|
+
headers: {
|
|
286
|
+
'Content-Type': 'application/json',
|
|
287
|
+
...options.headers
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Get the logs of an action run
|
|
293
|
+
*
|
|
294
|
+
* Returns the logs from the specified action run.
|
|
295
|
+
*/
|
|
296
|
+
export const v1GetActionRunLogs = <ThrowOnError extends boolean = false>(options: Options<V1GetActionRunLogsData, ThrowOnError>) => (options.client ?? client).get<V1GetActionRunLogsResponses, V1GetActionRunLogsErrors, ThrowOnError>({
|
|
297
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
298
|
+
url: '/v1/projects/{ref}/actions/{run_id}/logs',
|
|
299
|
+
...options
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Get project api keys
|
|
304
|
+
*/
|
|
305
|
+
export const v1GetProjectApiKeys = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectApiKeysData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectApiKeysResponses, V1GetProjectApiKeysErrors, ThrowOnError>({
|
|
306
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
307
|
+
url: '/v1/projects/{ref}/api-keys',
|
|
308
|
+
...options
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Creates a new API key for the project
|
|
313
|
+
*/
|
|
314
|
+
export const v1CreateProjectApiKey = <ThrowOnError extends boolean = false>(options: Options<V1CreateProjectApiKeyData, ThrowOnError>) => (options.client ?? client).post<V1CreateProjectApiKeyResponses, V1CreateProjectApiKeyErrors, ThrowOnError>({
|
|
315
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
316
|
+
url: '/v1/projects/{ref}/api-keys',
|
|
317
|
+
...options,
|
|
318
|
+
headers: {
|
|
319
|
+
'Content-Type': 'application/json',
|
|
320
|
+
...options.headers
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Deletes an API key for the project
|
|
326
|
+
*/
|
|
327
|
+
export const v1DeleteProjectApiKey = <ThrowOnError extends boolean = false>(options: Options<V1DeleteProjectApiKeyData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteProjectApiKeyResponses, V1DeleteProjectApiKeyErrors, ThrowOnError>({
|
|
328
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
329
|
+
url: '/v1/projects/{ref}/api-keys/{id}',
|
|
330
|
+
...options
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Get API key
|
|
335
|
+
*/
|
|
336
|
+
export const v1GetProjectApiKey = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectApiKeyData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectApiKeyResponses, V1GetProjectApiKeyErrors, ThrowOnError>({
|
|
337
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
338
|
+
url: '/v1/projects/{ref}/api-keys/{id}',
|
|
339
|
+
...options
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Updates an API key for the project
|
|
344
|
+
*/
|
|
345
|
+
export const v1UpdateProjectApiKey = <ThrowOnError extends boolean = false>(options: Options<V1UpdateProjectApiKeyData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateProjectApiKeyResponses, V1UpdateProjectApiKeyErrors, ThrowOnError>({
|
|
346
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
347
|
+
url: '/v1/projects/{ref}/api-keys/{id}',
|
|
348
|
+
...options,
|
|
349
|
+
headers: {
|
|
350
|
+
'Content-Type': 'application/json',
|
|
351
|
+
...options.headers
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Disables preview branching
|
|
357
|
+
*
|
|
358
|
+
* Disables preview branching for the specified project
|
|
359
|
+
*/
|
|
360
|
+
export const v1DisablePreviewBranching = <ThrowOnError extends boolean = false>(options: Options<V1DisablePreviewBranchingData, ThrowOnError>) => (options.client ?? client).delete<V1DisablePreviewBranchingResponses, V1DisablePreviewBranchingErrors, ThrowOnError>({
|
|
361
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
362
|
+
url: '/v1/projects/{ref}/branches',
|
|
363
|
+
...options
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* List all database branches
|
|
368
|
+
*
|
|
369
|
+
* Returns all database branches of the specified project.
|
|
370
|
+
*/
|
|
371
|
+
export const v1ListAllBranches = <ThrowOnError extends boolean = false>(options: Options<V1ListAllBranchesData, ThrowOnError>) => (options.client ?? client).get<V1ListAllBranchesResponses, V1ListAllBranchesErrors, ThrowOnError>({
|
|
372
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
373
|
+
url: '/v1/projects/{ref}/branches',
|
|
374
|
+
...options
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Create a database branch
|
|
379
|
+
*
|
|
380
|
+
* Creates a database branch from the specified project.
|
|
381
|
+
*/
|
|
382
|
+
export const v1CreateABranch = <ThrowOnError extends boolean = false>(options: Options<V1CreateABranchData, ThrowOnError>) => (options.client ?? client).post<V1CreateABranchResponses, V1CreateABranchErrors, ThrowOnError>({
|
|
383
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
384
|
+
url: '/v1/projects/{ref}/branches',
|
|
385
|
+
...options,
|
|
386
|
+
headers: {
|
|
387
|
+
'Content-Type': 'application/json',
|
|
388
|
+
...options.headers
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Get a database branch
|
|
394
|
+
*
|
|
395
|
+
* Fetches the specified database branch by its name.
|
|
396
|
+
*/
|
|
397
|
+
export const v1GetABranch = <ThrowOnError extends boolean = false>(options: Options<V1GetABranchData, ThrowOnError>) => (options.client ?? client).get<V1GetABranchResponses, V1GetABranchErrors, ThrowOnError>({
|
|
398
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
399
|
+
url: '/v1/projects/{ref}/branches/{name}',
|
|
400
|
+
...options
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* [Beta] Deletes a project's custom hostname configuration
|
|
405
|
+
*/
|
|
406
|
+
export const v1DeleteHostnameConfig = <ThrowOnError extends boolean = false>(options: Options<V1DeleteHostnameConfigData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteHostnameConfigResponses, V1DeleteHostnameConfigErrors, ThrowOnError>({
|
|
407
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
408
|
+
url: '/v1/projects/{ref}/custom-hostname',
|
|
409
|
+
...options
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* [Beta] Gets project's custom hostname config
|
|
414
|
+
*/
|
|
415
|
+
export const v1GetHostnameConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetHostnameConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetHostnameConfigResponses, V1GetHostnameConfigErrors, ThrowOnError>({
|
|
416
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
417
|
+
url: '/v1/projects/{ref}/custom-hostname',
|
|
418
|
+
...options
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* [Beta] Updates project's custom hostname configuration
|
|
423
|
+
*/
|
|
424
|
+
export const v1UpdateHostnameConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateHostnameConfigData, ThrowOnError>) => (options.client ?? client).post<V1UpdateHostnameConfigResponses, V1UpdateHostnameConfigErrors, ThrowOnError>({
|
|
425
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
426
|
+
url: '/v1/projects/{ref}/custom-hostname/initialize',
|
|
427
|
+
...options,
|
|
428
|
+
headers: {
|
|
429
|
+
'Content-Type': 'application/json',
|
|
430
|
+
...options.headers
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* [Beta] Attempts to verify the DNS configuration for project's custom hostname configuration
|
|
436
|
+
*/
|
|
437
|
+
export const v1VerifyDnsConfig = <ThrowOnError extends boolean = false>(options: Options<V1VerifyDnsConfigData, ThrowOnError>) => (options.client ?? client).post<V1VerifyDnsConfigResponses, V1VerifyDnsConfigErrors, ThrowOnError>({
|
|
438
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
439
|
+
url: '/v1/projects/{ref}/custom-hostname/reverify',
|
|
440
|
+
...options
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* [Beta] Activates a custom hostname for a project.
|
|
445
|
+
*/
|
|
446
|
+
export const v1ActivateCustomHostname = <ThrowOnError extends boolean = false>(options: Options<V1ActivateCustomHostnameData, ThrowOnError>) => (options.client ?? client).post<V1ActivateCustomHostnameResponses, V1ActivateCustomHostnameErrors, ThrowOnError>({
|
|
447
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
448
|
+
url: '/v1/projects/{ref}/custom-hostname/activate',
|
|
449
|
+
...options
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* [Beta] Get project's just-in-time access configuration.
|
|
454
|
+
*/
|
|
455
|
+
export const v1GetJitAccessConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetJitAccessConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetJitAccessConfigResponses, V1GetJitAccessConfigErrors, ThrowOnError>({
|
|
456
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
457
|
+
url: '/v1/projects/{ref}/jit-access',
|
|
458
|
+
...options
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* [Beta] Update project's just-in-time access configuration.
|
|
463
|
+
*/
|
|
464
|
+
export const v1UpdateJitAccessConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateJitAccessConfigData, ThrowOnError>) => (options.client ?? client).put<V1UpdateJitAccessConfigResponses, V1UpdateJitAccessConfigErrors, ThrowOnError>({
|
|
465
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
466
|
+
url: '/v1/projects/{ref}/jit-access',
|
|
467
|
+
...options,
|
|
468
|
+
headers: {
|
|
469
|
+
'Content-Type': 'application/json',
|
|
470
|
+
...options.headers
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* [Beta] Gets project's network bans
|
|
476
|
+
*/
|
|
477
|
+
export const v1ListAllNetworkBans = <ThrowOnError extends boolean = false>(options: Options<V1ListAllNetworkBansData, ThrowOnError>) => (options.client ?? client).post<V1ListAllNetworkBansResponses, V1ListAllNetworkBansErrors, ThrowOnError>({
|
|
478
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
479
|
+
url: '/v1/projects/{ref}/network-bans/retrieve',
|
|
480
|
+
...options
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* [Beta] Gets project's network bans with additional information about which databases they affect
|
|
485
|
+
*/
|
|
486
|
+
export const v1ListAllNetworkBansEnriched = <ThrowOnError extends boolean = false>(options: Options<V1ListAllNetworkBansEnrichedData, ThrowOnError>) => (options.client ?? client).post<V1ListAllNetworkBansEnrichedResponses, V1ListAllNetworkBansEnrichedErrors, ThrowOnError>({
|
|
487
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
488
|
+
url: '/v1/projects/{ref}/network-bans/retrieve/enriched',
|
|
489
|
+
...options
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* [Beta] Remove network bans.
|
|
494
|
+
*/
|
|
495
|
+
export const v1DeleteNetworkBans = <ThrowOnError extends boolean = false>(options: Options<V1DeleteNetworkBansData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteNetworkBansResponses, V1DeleteNetworkBansErrors, ThrowOnError>({
|
|
496
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
497
|
+
url: '/v1/projects/{ref}/network-bans',
|
|
498
|
+
...options,
|
|
499
|
+
headers: {
|
|
500
|
+
'Content-Type': 'application/json',
|
|
501
|
+
...options.headers
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* [Beta] Gets project's network restrictions
|
|
507
|
+
*/
|
|
508
|
+
export const v1GetNetworkRestrictions = <ThrowOnError extends boolean = false>(options: Options<V1GetNetworkRestrictionsData, ThrowOnError>) => (options.client ?? client).get<V1GetNetworkRestrictionsResponses, V1GetNetworkRestrictionsErrors, ThrowOnError>({
|
|
509
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
510
|
+
url: '/v1/projects/{ref}/network-restrictions',
|
|
511
|
+
...options
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* [Alpha] Updates project's network restrictions by adding or removing CIDRs
|
|
516
|
+
*/
|
|
517
|
+
export const v1PatchNetworkRestrictions = <ThrowOnError extends boolean = false>(options: Options<V1PatchNetworkRestrictionsData, ThrowOnError>) => (options.client ?? client).patch<V1PatchNetworkRestrictionsResponses, V1PatchNetworkRestrictionsErrors, ThrowOnError>({
|
|
518
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
519
|
+
url: '/v1/projects/{ref}/network-restrictions',
|
|
520
|
+
...options,
|
|
521
|
+
headers: {
|
|
522
|
+
'Content-Type': 'application/json',
|
|
523
|
+
...options.headers
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* [Beta] Updates project's network restrictions
|
|
529
|
+
*/
|
|
530
|
+
export const v1UpdateNetworkRestrictions = <ThrowOnError extends boolean = false>(options: Options<V1UpdateNetworkRestrictionsData, ThrowOnError>) => (options.client ?? client).post<V1UpdateNetworkRestrictionsResponses, V1UpdateNetworkRestrictionsErrors, ThrowOnError>({
|
|
531
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
532
|
+
url: '/v1/projects/{ref}/network-restrictions/apply',
|
|
533
|
+
...options,
|
|
534
|
+
headers: {
|
|
535
|
+
'Content-Type': 'application/json',
|
|
536
|
+
...options.headers
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* [Beta] Gets project's pgsodium config
|
|
542
|
+
*/
|
|
543
|
+
export const v1GetPgsodiumConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetPgsodiumConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetPgsodiumConfigResponses, V1GetPgsodiumConfigErrors, ThrowOnError>({
|
|
544
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
545
|
+
url: '/v1/projects/{ref}/pgsodium',
|
|
546
|
+
...options
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* [Beta] Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.
|
|
551
|
+
*/
|
|
552
|
+
export const v1UpdatePgsodiumConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdatePgsodiumConfigData, ThrowOnError>) => (options.client ?? client).put<V1UpdatePgsodiumConfigResponses, V1UpdatePgsodiumConfigErrors, ThrowOnError>({
|
|
553
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
554
|
+
url: '/v1/projects/{ref}/pgsodium',
|
|
555
|
+
...options,
|
|
556
|
+
headers: {
|
|
557
|
+
'Content-Type': 'application/json',
|
|
558
|
+
...options.headers
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Gets project's postgrest config
|
|
564
|
+
*/
|
|
565
|
+
export const v1GetPostgrestServiceConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetPostgrestServiceConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetPostgrestServiceConfigResponses, V1GetPostgrestServiceConfigErrors, ThrowOnError>({
|
|
566
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
567
|
+
url: '/v1/projects/{ref}/postgrest',
|
|
568
|
+
...options
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Updates project's postgrest config
|
|
573
|
+
*/
|
|
574
|
+
export const v1UpdatePostgrestServiceConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdatePostgrestServiceConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdatePostgrestServiceConfigResponses, V1UpdatePostgrestServiceConfigErrors, ThrowOnError>({
|
|
575
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
576
|
+
url: '/v1/projects/{ref}/postgrest',
|
|
577
|
+
...options,
|
|
578
|
+
headers: {
|
|
579
|
+
'Content-Type': 'application/json',
|
|
580
|
+
...options.headers
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Deletes the given project
|
|
586
|
+
*/
|
|
587
|
+
export const v1DeleteAProject = <ThrowOnError extends boolean = false>(options: Options<V1DeleteAProjectData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteAProjectResponses, V1DeleteAProjectErrors, ThrowOnError>({
|
|
588
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
589
|
+
url: '/v1/projects/{ref}',
|
|
590
|
+
...options
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Gets a specific project that belongs to the authenticated user
|
|
595
|
+
*/
|
|
596
|
+
export const v1GetProject = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectResponses, V1GetProjectErrors, ThrowOnError>({
|
|
597
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
598
|
+
url: '/v1/projects/{ref}',
|
|
599
|
+
...options
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Updates the given project
|
|
604
|
+
*/
|
|
605
|
+
export const v1UpdateAProject = <ThrowOnError extends boolean = false>(options: Options<V1UpdateAProjectData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateAProjectResponses, V1UpdateAProjectErrors, ThrowOnError>({
|
|
606
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
607
|
+
url: '/v1/projects/{ref}',
|
|
608
|
+
...options,
|
|
609
|
+
headers: {
|
|
610
|
+
'Content-Type': 'application/json',
|
|
611
|
+
...options.headers
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Bulk delete secrets
|
|
617
|
+
*
|
|
618
|
+
* Deletes all secrets with the given names from the specified project
|
|
619
|
+
*/
|
|
620
|
+
export const v1BulkDeleteSecrets = <ThrowOnError extends boolean = false>(options: Options<V1BulkDeleteSecretsData, ThrowOnError>) => (options.client ?? client).delete<V1BulkDeleteSecretsResponses, V1BulkDeleteSecretsErrors, ThrowOnError>({
|
|
621
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
622
|
+
url: '/v1/projects/{ref}/secrets',
|
|
623
|
+
...options,
|
|
624
|
+
headers: {
|
|
625
|
+
'Content-Type': 'application/json',
|
|
626
|
+
...options.headers
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* List all secrets
|
|
632
|
+
*
|
|
633
|
+
* Returns all secrets you've previously added to the specified project.
|
|
634
|
+
*/
|
|
635
|
+
export const v1ListAllSecrets = <ThrowOnError extends boolean = false>(options: Options<V1ListAllSecretsData, ThrowOnError>) => (options.client ?? client).get<V1ListAllSecretsResponses, V1ListAllSecretsErrors, ThrowOnError>({
|
|
636
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
637
|
+
url: '/v1/projects/{ref}/secrets',
|
|
638
|
+
...options
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Bulk create secrets
|
|
643
|
+
*
|
|
644
|
+
* Creates multiple secrets and adds them to the specified project.
|
|
645
|
+
*/
|
|
646
|
+
export const v1BulkCreateSecrets = <ThrowOnError extends boolean = false>(options: Options<V1BulkCreateSecretsData, ThrowOnError>) => (options.client ?? client).post<V1BulkCreateSecretsResponses, V1BulkCreateSecretsErrors, ThrowOnError>({
|
|
647
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
648
|
+
url: '/v1/projects/{ref}/secrets',
|
|
649
|
+
...options,
|
|
650
|
+
headers: {
|
|
651
|
+
'Content-Type': 'application/json',
|
|
652
|
+
...options.headers
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* [Beta] Get project's SSL enforcement configuration.
|
|
658
|
+
*/
|
|
659
|
+
export const v1GetSslEnforcementConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetSslEnforcementConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetSslEnforcementConfigResponses, V1GetSslEnforcementConfigErrors, ThrowOnError>({
|
|
660
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
661
|
+
url: '/v1/projects/{ref}/ssl-enforcement',
|
|
662
|
+
...options
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* [Beta] Update project's SSL enforcement configuration.
|
|
667
|
+
*/
|
|
668
|
+
export const v1UpdateSslEnforcementConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateSslEnforcementConfigData, ThrowOnError>) => (options.client ?? client).put<V1UpdateSslEnforcementConfigResponses, V1UpdateSslEnforcementConfigErrors, ThrowOnError>({
|
|
669
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
670
|
+
url: '/v1/projects/{ref}/ssl-enforcement',
|
|
671
|
+
...options,
|
|
672
|
+
headers: {
|
|
673
|
+
'Content-Type': 'application/json',
|
|
674
|
+
...options.headers
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Generate TypeScript types
|
|
680
|
+
*
|
|
681
|
+
* Returns the TypeScript types of your schema for use with supabase-js.
|
|
682
|
+
*/
|
|
683
|
+
export const v1GenerateTypescriptTypes = <ThrowOnError extends boolean = false>(options: Options<V1GenerateTypescriptTypesData, ThrowOnError>) => (options.client ?? client).get<V1GenerateTypescriptTypesResponses, V1GenerateTypescriptTypesErrors, ThrowOnError>({
|
|
684
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
685
|
+
url: '/v1/projects/{ref}/types/typescript',
|
|
686
|
+
...options
|
|
687
|
+
});
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* [Beta] Deletes a project's vanity subdomain configuration
|
|
691
|
+
*/
|
|
692
|
+
export const v1DeactivateVanitySubdomainConfig = <ThrowOnError extends boolean = false>(options: Options<V1DeactivateVanitySubdomainConfigData, ThrowOnError>) => (options.client ?? client).delete<V1DeactivateVanitySubdomainConfigResponses, V1DeactivateVanitySubdomainConfigErrors, ThrowOnError>({
|
|
693
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
694
|
+
url: '/v1/projects/{ref}/vanity-subdomain',
|
|
695
|
+
...options
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* [Beta] Gets current vanity subdomain config
|
|
700
|
+
*/
|
|
701
|
+
export const v1GetVanitySubdomainConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetVanitySubdomainConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetVanitySubdomainConfigResponses, V1GetVanitySubdomainConfigErrors, ThrowOnError>({
|
|
702
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
703
|
+
url: '/v1/projects/{ref}/vanity-subdomain',
|
|
704
|
+
...options
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* [Beta] Checks vanity subdomain availability
|
|
709
|
+
*/
|
|
710
|
+
export const v1CheckVanitySubdomainAvailability = <ThrowOnError extends boolean = false>(options: Options<V1CheckVanitySubdomainAvailabilityData, ThrowOnError>) => (options.client ?? client).post<V1CheckVanitySubdomainAvailabilityResponses, V1CheckVanitySubdomainAvailabilityErrors, ThrowOnError>({
|
|
711
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
712
|
+
url: '/v1/projects/{ref}/vanity-subdomain/check-availability',
|
|
713
|
+
...options,
|
|
714
|
+
headers: {
|
|
715
|
+
'Content-Type': 'application/json',
|
|
716
|
+
...options.headers
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* [Beta] Activates a vanity subdomain for a project.
|
|
722
|
+
*/
|
|
723
|
+
export const v1ActivateVanitySubdomainConfig = <ThrowOnError extends boolean = false>(options: Options<V1ActivateVanitySubdomainConfigData, ThrowOnError>) => (options.client ?? client).post<V1ActivateVanitySubdomainConfigResponses, V1ActivateVanitySubdomainConfigErrors, ThrowOnError>({
|
|
724
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
725
|
+
url: '/v1/projects/{ref}/vanity-subdomain/activate',
|
|
726
|
+
...options,
|
|
727
|
+
headers: {
|
|
728
|
+
'Content-Type': 'application/json',
|
|
729
|
+
...options.headers
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* [Beta] Upgrades the project's Postgres version
|
|
735
|
+
*/
|
|
736
|
+
export const v1UpgradePostgresVersion = <ThrowOnError extends boolean = false>(options: Options<V1UpgradePostgresVersionData, ThrowOnError>) => (options.client ?? client).post<V1UpgradePostgresVersionResponses, V1UpgradePostgresVersionErrors, ThrowOnError>({
|
|
737
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
738
|
+
url: '/v1/projects/{ref}/upgrade',
|
|
739
|
+
...options,
|
|
740
|
+
headers: {
|
|
741
|
+
'Content-Type': 'application/json',
|
|
742
|
+
...options.headers
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* [Beta] Returns the project's eligibility for upgrades
|
|
748
|
+
*/
|
|
749
|
+
export const v1GetPostgresUpgradeEligibility = <ThrowOnError extends boolean = false>(options: Options<V1GetPostgresUpgradeEligibilityData, ThrowOnError>) => (options.client ?? client).get<V1GetPostgresUpgradeEligibilityResponses, V1GetPostgresUpgradeEligibilityErrors, ThrowOnError>({
|
|
750
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
751
|
+
url: '/v1/projects/{ref}/upgrade/eligibility',
|
|
752
|
+
...options
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* [Beta] Gets the latest status of the project's upgrade
|
|
757
|
+
*/
|
|
758
|
+
export const v1GetPostgresUpgradeStatus = <ThrowOnError extends boolean = false>(options: Options<V1GetPostgresUpgradeStatusData, ThrowOnError>) => (options.client ?? client).get<V1GetPostgresUpgradeStatusResponses, V1GetPostgresUpgradeStatusErrors, ThrowOnError>({
|
|
759
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
760
|
+
url: '/v1/projects/{ref}/upgrade/status',
|
|
761
|
+
...options
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Returns project's readonly mode status
|
|
766
|
+
*/
|
|
767
|
+
export const v1GetReadonlyModeStatus = <ThrowOnError extends boolean = false>(options: Options<V1GetReadonlyModeStatusData, ThrowOnError>) => (options.client ?? client).get<V1GetReadonlyModeStatusResponses, V1GetReadonlyModeStatusErrors, ThrowOnError>({
|
|
768
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
769
|
+
url: '/v1/projects/{ref}/readonly',
|
|
770
|
+
...options
|
|
771
|
+
});
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Disables project's readonly mode for the next 15 minutes
|
|
775
|
+
*/
|
|
776
|
+
export const v1DisableReadonlyModeTemporarily = <ThrowOnError extends boolean = false>(options: Options<V1DisableReadonlyModeTemporarilyData, ThrowOnError>) => (options.client ?? client).post<V1DisableReadonlyModeTemporarilyResponses, V1DisableReadonlyModeTemporarilyErrors, ThrowOnError>({
|
|
777
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
778
|
+
url: '/v1/projects/{ref}/readonly/temporary-disable',
|
|
779
|
+
...options
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* [Beta] Set up a read replica
|
|
784
|
+
*/
|
|
785
|
+
export const v1SetupAReadReplica = <ThrowOnError extends boolean = false>(options: Options<V1SetupAReadReplicaData, ThrowOnError>) => (options.client ?? client).post<V1SetupAReadReplicaResponses, V1SetupAReadReplicaErrors, ThrowOnError>({
|
|
786
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
787
|
+
url: '/v1/projects/{ref}/read-replicas/setup',
|
|
788
|
+
...options,
|
|
789
|
+
headers: {
|
|
790
|
+
'Content-Type': 'application/json',
|
|
791
|
+
...options.headers
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* [Beta] Remove a read replica
|
|
797
|
+
*/
|
|
798
|
+
export const v1RemoveAReadReplica = <ThrowOnError extends boolean = false>(options: Options<V1RemoveAReadReplicaData, ThrowOnError>) => (options.client ?? client).post<V1RemoveAReadReplicaResponses, V1RemoveAReadReplicaErrors, ThrowOnError>({
|
|
799
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
800
|
+
url: '/v1/projects/{ref}/read-replicas/remove',
|
|
801
|
+
...options,
|
|
802
|
+
headers: {
|
|
803
|
+
'Content-Type': 'application/json',
|
|
804
|
+
...options.headers
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Gets project's service health status
|
|
810
|
+
*/
|
|
811
|
+
export const v1GetServicesHealth = <ThrowOnError extends boolean = false>(options: Options<V1GetServicesHealthData, ThrowOnError>) => (options.client ?? client).get<V1GetServicesHealthResponses, V1GetServicesHealthErrors, ThrowOnError>({
|
|
812
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
813
|
+
url: '/v1/projects/{ref}/health',
|
|
814
|
+
...options
|
|
815
|
+
});
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* List all signing keys for the project
|
|
819
|
+
*/
|
|
820
|
+
export const v1GetProjectSigningKeys = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectSigningKeysData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectSigningKeysResponses, V1GetProjectSigningKeysErrors, ThrowOnError>({
|
|
821
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
822
|
+
url: '/v1/projects/{ref}/config/auth/signing-keys',
|
|
823
|
+
...options
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Create a new signing key for the project in standby status
|
|
828
|
+
*/
|
|
829
|
+
export const v1CreateProjectSigningKey = <ThrowOnError extends boolean = false>(options: Options<V1CreateProjectSigningKeyData, ThrowOnError>) => (options.client ?? client).post<V1CreateProjectSigningKeyResponses, V1CreateProjectSigningKeyErrors, ThrowOnError>({
|
|
830
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
831
|
+
url: '/v1/projects/{ref}/config/auth/signing-keys',
|
|
832
|
+
...options,
|
|
833
|
+
headers: {
|
|
834
|
+
'Content-Type': 'application/json',
|
|
835
|
+
...options.headers
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Remove a signing key from a project. Only possible if the key has been in revoked status for a while.
|
|
841
|
+
*/
|
|
842
|
+
export const v1RemoveProjectSigningKey = <ThrowOnError extends boolean = false>(options: Options<V1RemoveProjectSigningKeyData, ThrowOnError>) => (options.client ?? client).delete<V1RemoveProjectSigningKeyResponses, V1RemoveProjectSigningKeyErrors, ThrowOnError>({
|
|
843
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
844
|
+
url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
|
|
845
|
+
...options
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Get information about a signing key
|
|
850
|
+
*/
|
|
851
|
+
export const v1GetProjectSigningKey = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectSigningKeyData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectSigningKeyResponses, V1GetProjectSigningKeyErrors, ThrowOnError>({
|
|
852
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
853
|
+
url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
|
|
854
|
+
...options
|
|
855
|
+
});
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Update a signing key, mainly its status
|
|
859
|
+
*/
|
|
860
|
+
export const v1UpdateProjectSigningKey = <ThrowOnError extends boolean = false>(options: Options<V1UpdateProjectSigningKeyData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateProjectSigningKeyResponses, V1UpdateProjectSigningKeyErrors, ThrowOnError>({
|
|
861
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
862
|
+
url: '/v1/projects/{ref}/config/auth/signing-keys/{id}',
|
|
863
|
+
...options,
|
|
864
|
+
headers: {
|
|
865
|
+
'Content-Type': 'application/json',
|
|
866
|
+
...options.headers
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Gets project's auth config
|
|
872
|
+
*/
|
|
873
|
+
export const v1GetAuthServiceConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetAuthServiceConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetAuthServiceConfigResponses, V1GetAuthServiceConfigErrors, ThrowOnError>({
|
|
874
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
875
|
+
url: '/v1/projects/{ref}/config/auth',
|
|
876
|
+
...options
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Updates a project's auth config
|
|
881
|
+
*/
|
|
882
|
+
export const v1UpdateAuthServiceConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateAuthServiceConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateAuthServiceConfigResponses, V1UpdateAuthServiceConfigErrors, ThrowOnError>({
|
|
883
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
884
|
+
url: '/v1/projects/{ref}/config/auth',
|
|
885
|
+
...options,
|
|
886
|
+
headers: {
|
|
887
|
+
'Content-Type': 'application/json',
|
|
888
|
+
...options.headers
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Lists all third-party auth integrations
|
|
894
|
+
*/
|
|
895
|
+
export const v1ListProjectTpaIntegrations = <ThrowOnError extends boolean = false>(options: Options<V1ListProjectTpaIntegrationsData, ThrowOnError>) => (options.client ?? client).get<V1ListProjectTpaIntegrationsResponses, V1ListProjectTpaIntegrationsErrors, ThrowOnError>({
|
|
896
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
897
|
+
url: '/v1/projects/{ref}/config/auth/third-party-auth',
|
|
898
|
+
...options
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Creates a new third-party auth integration
|
|
903
|
+
*/
|
|
904
|
+
export const v1CreateProjectTpaIntegration = <ThrowOnError extends boolean = false>(options: Options<V1CreateProjectTpaIntegrationData, ThrowOnError>) => (options.client ?? client).post<V1CreateProjectTpaIntegrationResponses, V1CreateProjectTpaIntegrationErrors, ThrowOnError>({
|
|
905
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
906
|
+
url: '/v1/projects/{ref}/config/auth/third-party-auth',
|
|
907
|
+
...options,
|
|
908
|
+
headers: {
|
|
909
|
+
'Content-Type': 'application/json',
|
|
910
|
+
...options.headers
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Removes a third-party auth integration
|
|
916
|
+
*/
|
|
917
|
+
export const v1DeleteProjectTpaIntegration = <ThrowOnError extends boolean = false>(options: Options<V1DeleteProjectTpaIntegrationData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteProjectTpaIntegrationResponses, V1DeleteProjectTpaIntegrationErrors, ThrowOnError>({
|
|
918
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
919
|
+
url: '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}',
|
|
920
|
+
...options
|
|
921
|
+
});
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Get a third-party integration
|
|
925
|
+
*/
|
|
926
|
+
export const v1GetProjectTpaIntegration = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectTpaIntegrationData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectTpaIntegrationResponses, V1GetProjectTpaIntegrationErrors, ThrowOnError>({
|
|
927
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
928
|
+
url: '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}',
|
|
929
|
+
...options
|
|
930
|
+
});
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Pauses the given project
|
|
934
|
+
*/
|
|
935
|
+
export const v1PauseAProject = <ThrowOnError extends boolean = false>(options: Options<V1PauseAProjectData, ThrowOnError>) => (options.client ?? client).post<V1PauseAProjectResponses, V1PauseAProjectErrors, ThrowOnError>({
|
|
936
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
937
|
+
url: '/v1/projects/{ref}/pause',
|
|
938
|
+
...options
|
|
939
|
+
});
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Lists available restore versions for the given project
|
|
943
|
+
*/
|
|
944
|
+
export const v1ListAvailableRestoreVersions = <ThrowOnError extends boolean = false>(options: Options<V1ListAvailableRestoreVersionsData, ThrowOnError>) => (options.client ?? client).get<V1ListAvailableRestoreVersionsResponses, V1ListAvailableRestoreVersionsErrors, ThrowOnError>({
|
|
945
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
946
|
+
url: '/v1/projects/{ref}/restore',
|
|
947
|
+
...options
|
|
948
|
+
});
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Restores the given project
|
|
952
|
+
*/
|
|
953
|
+
export const v1RestoreAProject = <ThrowOnError extends boolean = false>(options: Options<V1RestoreAProjectData, ThrowOnError>) => (options.client ?? client).post<V1RestoreAProjectResponses, V1RestoreAProjectErrors, ThrowOnError>({
|
|
954
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
955
|
+
url: '/v1/projects/{ref}/restore',
|
|
956
|
+
...options
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Cancels the given project restoration
|
|
961
|
+
*/
|
|
962
|
+
export const v1CancelAProjectRestoration = <ThrowOnError extends boolean = false>(options: Options<V1CancelAProjectRestorationData, ThrowOnError>) => (options.client ?? client).post<V1CancelAProjectRestorationResponses, V1CancelAProjectRestorationErrors, ThrowOnError>({
|
|
963
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
964
|
+
url: '/v1/projects/{ref}/restore/cancel',
|
|
965
|
+
...options
|
|
966
|
+
});
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* List billing addons and compute instance selections
|
|
970
|
+
*
|
|
971
|
+
* Returns the billing addons that are currently applied, including the active compute instance size, and lists every addon option that can be provisioned with pricing metadata.
|
|
972
|
+
*/
|
|
973
|
+
export const v1ListProjectAddons = <ThrowOnError extends boolean = false>(options: Options<V1ListProjectAddonsData, ThrowOnError>) => (options.client ?? client).get<V1ListProjectAddonsResponses, V1ListProjectAddonsErrors, ThrowOnError>({
|
|
974
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
975
|
+
url: '/v1/projects/{ref}/billing/addons',
|
|
976
|
+
...options
|
|
977
|
+
});
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Apply or update billing addons, including compute instance size
|
|
981
|
+
*
|
|
982
|
+
* Selects an addon variant, for example scaling the project’s compute instance up or down, and applies it to the project.
|
|
983
|
+
*/
|
|
984
|
+
export const v1ApplyProjectAddon = <ThrowOnError extends boolean = false>(options: Options<V1ApplyProjectAddonData, ThrowOnError>) => (options.client ?? client).patch<V1ApplyProjectAddonResponses, V1ApplyProjectAddonErrors, ThrowOnError>({
|
|
985
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
986
|
+
url: '/v1/projects/{ref}/billing/addons',
|
|
987
|
+
...options,
|
|
988
|
+
headers: {
|
|
989
|
+
'Content-Type': 'application/json',
|
|
990
|
+
...options.headers
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Remove billing addons or revert compute instance sizing
|
|
996
|
+
*
|
|
997
|
+
* Disables the selected addon variant, including rolling the compute instance back to its previous size.
|
|
998
|
+
*/
|
|
999
|
+
export const v1RemoveProjectAddon = <ThrowOnError extends boolean = false>(options: Options<V1RemoveProjectAddonData, ThrowOnError>) => (options.client ?? client).delete<V1RemoveProjectAddonResponses, V1RemoveProjectAddonErrors, ThrowOnError>({
|
|
1000
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1001
|
+
url: '/v1/projects/{ref}/billing/addons/{addon_variant}',
|
|
1002
|
+
...options
|
|
1003
|
+
});
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Revokes project claim token
|
|
1007
|
+
*/
|
|
1008
|
+
export const v1DeleteProjectClaimToken = <ThrowOnError extends boolean = false>(options: Options<V1DeleteProjectClaimTokenData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteProjectClaimTokenResponses, V1DeleteProjectClaimTokenErrors, ThrowOnError>({
|
|
1009
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1010
|
+
url: '/v1/projects/{ref}/claim-token',
|
|
1011
|
+
...options
|
|
1012
|
+
});
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Gets project claim token
|
|
1016
|
+
*/
|
|
1017
|
+
export const v1GetProjectClaimToken = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectClaimTokenData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectClaimTokenResponses, V1GetProjectClaimTokenErrors, ThrowOnError>({
|
|
1018
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1019
|
+
url: '/v1/projects/{ref}/claim-token',
|
|
1020
|
+
...options
|
|
1021
|
+
});
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Creates project claim token
|
|
1025
|
+
*/
|
|
1026
|
+
export const v1CreateProjectClaimToken = <ThrowOnError extends boolean = false>(options: Options<V1CreateProjectClaimTokenData, ThrowOnError>) => (options.client ?? client).post<V1CreateProjectClaimTokenResponses, V1CreateProjectClaimTokenErrors, ThrowOnError>({
|
|
1027
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1028
|
+
url: '/v1/projects/{ref}/claim-token',
|
|
1029
|
+
...options
|
|
1030
|
+
});
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Gets project performance advisors.
|
|
1034
|
+
*
|
|
1035
|
+
* This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
|
|
1036
|
+
*
|
|
1037
|
+
* @deprecated
|
|
1038
|
+
*/
|
|
1039
|
+
export const v1GetPerformanceAdvisors = <ThrowOnError extends boolean = false>(options: Options<V1GetPerformanceAdvisorsData, ThrowOnError>) => (options.client ?? client).get<V1GetPerformanceAdvisorsResponses, V1GetPerformanceAdvisorsErrors, ThrowOnError>({
|
|
1040
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1041
|
+
url: '/v1/projects/{ref}/advisors/performance',
|
|
1042
|
+
...options
|
|
1043
|
+
});
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Gets project security advisors.
|
|
1047
|
+
*
|
|
1048
|
+
* This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
|
|
1049
|
+
*
|
|
1050
|
+
* @deprecated
|
|
1051
|
+
*/
|
|
1052
|
+
export const v1GetSecurityAdvisors = <ThrowOnError extends boolean = false>(options: Options<V1GetSecurityAdvisorsData, ThrowOnError>) => (options.client ?? client).get<V1GetSecurityAdvisorsResponses, V1GetSecurityAdvisorsErrors, ThrowOnError>({
|
|
1053
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1054
|
+
url: '/v1/projects/{ref}/advisors/security',
|
|
1055
|
+
...options
|
|
1056
|
+
});
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Gets project's logs
|
|
1060
|
+
*
|
|
1061
|
+
* Executes a SQL query on the project's logs.
|
|
1062
|
+
*
|
|
1063
|
+
* Either the `iso_timestamp_start` and `iso_timestamp_end` parameters must be provided.
|
|
1064
|
+
* If both are not provided, only the last 1 minute of logs will be queried.
|
|
1065
|
+
* The timestamp range must be no more than 24 hours and is rounded to the nearest minute. If the range is more than 24 hours, a validation error will be thrown.
|
|
1066
|
+
*
|
|
1067
|
+
* Note: Unless the `sql` parameter is provided, only edge_logs will be queried. See the [log query docs](/docs/guides/telemetry/logs?queryGroups=product&product=postgres&queryGroups=source&source=edge_logs#querying-with-the-logs-explorer:~:text=logs%20from%20the-,Sources,-drop%2Ddown%3A) for all available sources.
|
|
1068
|
+
*
|
|
1069
|
+
*/
|
|
1070
|
+
export const v1GetProjectLogs = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectLogsData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectLogsResponses, V1GetProjectLogsErrors, ThrowOnError>({
|
|
1071
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1072
|
+
url: '/v1/projects/{ref}/analytics/endpoints/logs.all',
|
|
1073
|
+
...options
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Gets project's usage api counts
|
|
1078
|
+
*/
|
|
1079
|
+
export const v1GetProjectUsageApiCount = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectUsageApiCountData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectUsageApiCountResponses, V1GetProjectUsageApiCountErrors, ThrowOnError>({
|
|
1080
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1081
|
+
url: '/v1/projects/{ref}/analytics/endpoints/usage.api-counts',
|
|
1082
|
+
...options
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Gets project's usage api requests count
|
|
1087
|
+
*/
|
|
1088
|
+
export const v1GetProjectUsageRequestCount = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectUsageRequestCountData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectUsageRequestCountResponses, V1GetProjectUsageRequestCountErrors, ThrowOnError>({
|
|
1089
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1090
|
+
url: '/v1/projects/{ref}/analytics/endpoints/usage.api-requests-count',
|
|
1091
|
+
...options
|
|
1092
|
+
});
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Gets a project's function combined statistics
|
|
1096
|
+
*/
|
|
1097
|
+
export const v1GetProjectFunctionCombinedStats = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectFunctionCombinedStatsData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectFunctionCombinedStatsResponses, V1GetProjectFunctionCombinedStatsErrors, ThrowOnError>({
|
|
1098
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1099
|
+
url: '/v1/projects/{ref}/analytics/endpoints/functions.combined-stats',
|
|
1100
|
+
...options
|
|
1101
|
+
});
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* [Beta] Delete existing login roles used by CLI
|
|
1105
|
+
*/
|
|
1106
|
+
export const v1DeleteLoginRoles = <ThrowOnError extends boolean = false>(options: Options<V1DeleteLoginRolesData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteLoginRolesResponses, V1DeleteLoginRolesErrors, ThrowOnError>({
|
|
1107
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1108
|
+
url: '/v1/projects/{ref}/cli/login-role',
|
|
1109
|
+
...options
|
|
1110
|
+
});
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* [Beta] Create a login role for CLI with temporary password
|
|
1114
|
+
*/
|
|
1115
|
+
export const v1CreateLoginRole = <ThrowOnError extends boolean = false>(options: Options<V1CreateLoginRoleData, ThrowOnError>) => (options.client ?? client).post<V1CreateLoginRoleResponses, V1CreateLoginRoleErrors, ThrowOnError>({
|
|
1116
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1117
|
+
url: '/v1/projects/{ref}/cli/login-role',
|
|
1118
|
+
...options,
|
|
1119
|
+
headers: {
|
|
1120
|
+
'Content-Type': 'application/json',
|
|
1121
|
+
...options.headers
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* [Beta] Rollback database migrations and remove them from history table
|
|
1127
|
+
*
|
|
1128
|
+
* Only available to selected partner OAuth apps
|
|
1129
|
+
*/
|
|
1130
|
+
export const v1RollbackMigrations = <ThrowOnError extends boolean = false>(options: Options<V1RollbackMigrationsData, ThrowOnError>) => (options.client ?? client).delete<V1RollbackMigrationsResponses, V1RollbackMigrationsErrors, ThrowOnError>({
|
|
1131
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1132
|
+
url: '/v1/projects/{ref}/database/migrations',
|
|
1133
|
+
...options
|
|
1134
|
+
});
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* [Beta] List applied migration versions
|
|
1138
|
+
*
|
|
1139
|
+
* Only available to selected partner OAuth apps
|
|
1140
|
+
*/
|
|
1141
|
+
export const v1ListMigrationHistory = <ThrowOnError extends boolean = false>(options: Options<V1ListMigrationHistoryData, ThrowOnError>) => (options.client ?? client).get<V1ListMigrationHistoryResponses, V1ListMigrationHistoryErrors, ThrowOnError>({
|
|
1142
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1143
|
+
url: '/v1/projects/{ref}/database/migrations',
|
|
1144
|
+
...options
|
|
1145
|
+
});
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* [Beta] Apply a database migration
|
|
1149
|
+
*
|
|
1150
|
+
* Only available to selected partner OAuth apps
|
|
1151
|
+
*/
|
|
1152
|
+
export const v1ApplyAMigration = <ThrowOnError extends boolean = false>(options: Options<V1ApplyAMigrationData, ThrowOnError>) => (options.client ?? client).post<V1ApplyAMigrationResponses, V1ApplyAMigrationErrors, ThrowOnError>({
|
|
1153
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1154
|
+
url: '/v1/projects/{ref}/database/migrations',
|
|
1155
|
+
...options,
|
|
1156
|
+
headers: {
|
|
1157
|
+
'Content-Type': 'application/json',
|
|
1158
|
+
...options.headers
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* [Beta] Upsert a database migration without applying
|
|
1164
|
+
*
|
|
1165
|
+
* Only available to selected partner OAuth apps
|
|
1166
|
+
*/
|
|
1167
|
+
export const v1UpsertAMigration = <ThrowOnError extends boolean = false>(options: Options<V1UpsertAMigrationData, ThrowOnError>) => (options.client ?? client).put<V1UpsertAMigrationResponses, V1UpsertAMigrationErrors, ThrowOnError>({
|
|
1168
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1169
|
+
url: '/v1/projects/{ref}/database/migrations',
|
|
1170
|
+
...options,
|
|
1171
|
+
headers: {
|
|
1172
|
+
'Content-Type': 'application/json',
|
|
1173
|
+
...options.headers
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* [Beta] Fetch an existing entry from migration history
|
|
1179
|
+
*
|
|
1180
|
+
* Only available to selected partner OAuth apps
|
|
1181
|
+
*/
|
|
1182
|
+
export const v1GetAMigration = <ThrowOnError extends boolean = false>(options: Options<V1GetAMigrationData, ThrowOnError>) => (options.client ?? client).get<V1GetAMigrationResponses, V1GetAMigrationErrors, ThrowOnError>({
|
|
1183
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1184
|
+
url: '/v1/projects/{ref}/database/migrations/{version}',
|
|
1185
|
+
...options
|
|
1186
|
+
});
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* [Beta] Patch an existing entry in migration history
|
|
1190
|
+
*
|
|
1191
|
+
* Only available to selected partner OAuth apps
|
|
1192
|
+
*/
|
|
1193
|
+
export const v1PatchAMigration = <ThrowOnError extends boolean = false>(options: Options<V1PatchAMigrationData, ThrowOnError>) => (options.client ?? client).patch<V1PatchAMigrationResponses, V1PatchAMigrationErrors, ThrowOnError>({
|
|
1194
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1195
|
+
url: '/v1/projects/{ref}/database/migrations/{version}',
|
|
1196
|
+
...options,
|
|
1197
|
+
headers: {
|
|
1198
|
+
'Content-Type': 'application/json',
|
|
1199
|
+
...options.headers
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* [Beta] Run sql query
|
|
1205
|
+
*/
|
|
1206
|
+
export const v1RunAQuery = <ThrowOnError extends boolean = false>(options: Options<V1RunAQueryData, ThrowOnError>) => (options.client ?? client).post<V1RunAQueryResponses, V1RunAQueryErrors, ThrowOnError>({
|
|
1207
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1208
|
+
url: '/v1/projects/{ref}/database/query',
|
|
1209
|
+
...options,
|
|
1210
|
+
headers: {
|
|
1211
|
+
'Content-Type': 'application/json',
|
|
1212
|
+
...options.headers
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* [Beta] Run a sql query as supabase_read_only_user
|
|
1218
|
+
*
|
|
1219
|
+
* All entity references must be schema qualified.
|
|
1220
|
+
*/
|
|
1221
|
+
export const v1ReadOnlyQuery = <ThrowOnError extends boolean = false>(options: Options<V1ReadOnlyQueryData, ThrowOnError>) => (options.client ?? client).post<V1ReadOnlyQueryResponses, V1ReadOnlyQueryErrors, ThrowOnError>({
|
|
1222
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1223
|
+
url: '/v1/projects/{ref}/database/query/read-only',
|
|
1224
|
+
...options,
|
|
1225
|
+
headers: {
|
|
1226
|
+
'Content-Type': 'application/json',
|
|
1227
|
+
...options.headers
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* [Beta] Enables Database Webhooks on the project
|
|
1233
|
+
*/
|
|
1234
|
+
export const v1EnableDatabaseWebhook = <ThrowOnError extends boolean = false>(options: Options<V1EnableDatabaseWebhookData, ThrowOnError>) => (options.client ?? client).post<V1EnableDatabaseWebhookResponses, V1EnableDatabaseWebhookErrors, ThrowOnError>({
|
|
1235
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1236
|
+
url: '/v1/projects/{ref}/database/webhooks/enable',
|
|
1237
|
+
...options
|
|
1238
|
+
});
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* Gets database metadata for the given project.
|
|
1242
|
+
*
|
|
1243
|
+
* This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.
|
|
1244
|
+
*
|
|
1245
|
+
* @deprecated
|
|
1246
|
+
*/
|
|
1247
|
+
export const v1GetDatabaseMetadata = <ThrowOnError extends boolean = false>(options: Options<V1GetDatabaseMetadataData, ThrowOnError>) => (options.client ?? client).get<V1GetDatabaseMetadataResponses, V1GetDatabaseMetadataErrors, ThrowOnError>({
|
|
1248
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1249
|
+
url: '/v1/projects/{ref}/database/context',
|
|
1250
|
+
...options
|
|
1251
|
+
});
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Updates the database password
|
|
1255
|
+
*/
|
|
1256
|
+
export const v1UpdateDatabasePassword = <ThrowOnError extends boolean = false>(options: Options<V1UpdateDatabasePasswordData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateDatabasePasswordResponses, V1UpdateDatabasePasswordErrors, ThrowOnError>({
|
|
1257
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1258
|
+
url: '/v1/projects/{ref}/database/password',
|
|
1259
|
+
...options,
|
|
1260
|
+
headers: {
|
|
1261
|
+
'Content-Type': 'application/json',
|
|
1262
|
+
...options.headers
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Get user-id to role mappings for JIT access
|
|
1268
|
+
*
|
|
1269
|
+
* Mappings of roles a user can assume in the project database
|
|
1270
|
+
*/
|
|
1271
|
+
export const v1GetJitAccess = <ThrowOnError extends boolean = false>(options: Options<V1GetJitAccessData, ThrowOnError>) => (options.client ?? client).get<V1GetJitAccessResponses, V1GetJitAccessErrors, ThrowOnError>({
|
|
1272
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1273
|
+
url: '/v1/projects/{ref}/database/jit',
|
|
1274
|
+
...options
|
|
1275
|
+
});
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Authorize user-id to role mappings for JIT access
|
|
1279
|
+
*
|
|
1280
|
+
* Authorizes the request to assume a role in the project database
|
|
1281
|
+
*/
|
|
1282
|
+
export const v1AuthorizeJitAccess = <ThrowOnError extends boolean = false>(options: Options<V1AuthorizeJitAccessData, ThrowOnError>) => (options.client ?? client).post<V1AuthorizeJitAccessResponses, V1AuthorizeJitAccessErrors, ThrowOnError>({
|
|
1283
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1284
|
+
url: '/v1/projects/{ref}/database/jit',
|
|
1285
|
+
...options,
|
|
1286
|
+
headers: {
|
|
1287
|
+
'Content-Type': 'application/json',
|
|
1288
|
+
...options.headers
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Updates a user mapping for JIT access
|
|
1294
|
+
*
|
|
1295
|
+
* Modifies the roles that can be assumed and for how long
|
|
1296
|
+
*/
|
|
1297
|
+
export const v1UpdateJitAccess = <ThrowOnError extends boolean = false>(options: Options<V1UpdateJitAccessData, ThrowOnError>) => (options.client ?? client).put<V1UpdateJitAccessResponses, V1UpdateJitAccessErrors, ThrowOnError>({
|
|
1298
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1299
|
+
url: '/v1/projects/{ref}/database/jit',
|
|
1300
|
+
...options,
|
|
1301
|
+
headers: {
|
|
1302
|
+
'Content-Type': 'application/json',
|
|
1303
|
+
...options.headers
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* List all user-id to role mappings for JIT access
|
|
1309
|
+
*
|
|
1310
|
+
* Mappings of roles a user can assume in the project database
|
|
1311
|
+
*/
|
|
1312
|
+
export const v1ListJitAccess = <ThrowOnError extends boolean = false>(options: Options<V1ListJitAccessData, ThrowOnError>) => (options.client ?? client).get<V1ListJitAccessResponses, V1ListJitAccessErrors, ThrowOnError>({
|
|
1313
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1314
|
+
url: '/v1/projects/{ref}/database/jit/list',
|
|
1315
|
+
...options
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Delete JIT access by user-id
|
|
1320
|
+
*
|
|
1321
|
+
* Remove JIT mappings of a user, revoking all JIT database access
|
|
1322
|
+
*/
|
|
1323
|
+
export const v1DeleteJitAccess = <ThrowOnError extends boolean = false>(options: Options<V1DeleteJitAccessData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteJitAccessResponses, V1DeleteJitAccessErrors, ThrowOnError>({
|
|
1324
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1325
|
+
url: '/v1/projects/{ref}/database/jit/{user_id}',
|
|
1326
|
+
...options
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Get PostgREST OpenAPI spec
|
|
1331
|
+
*
|
|
1332
|
+
* Returns the PostgREST OpenAPI specification for the project. This is the replacement for querying `/rest/v1/` directly with the anon key.
|
|
1333
|
+
*/
|
|
1334
|
+
export const v1GetDatabaseOpenapi = <ThrowOnError extends boolean = false>(options: Options<V1GetDatabaseOpenapiData, ThrowOnError>) => (options.client ?? client).get<V1GetDatabaseOpenapiResponses, V1GetDatabaseOpenapiErrors, ThrowOnError>({
|
|
1335
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1336
|
+
url: '/v1/projects/{ref}/database/openapi',
|
|
1337
|
+
...options
|
|
1338
|
+
});
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* List all functions
|
|
1342
|
+
*
|
|
1343
|
+
* Returns all functions you've previously added to the specified project.
|
|
1344
|
+
*/
|
|
1345
|
+
export const v1ListAllFunctions = <ThrowOnError extends boolean = false>(options: Options<V1ListAllFunctionsData, ThrowOnError>) => (options.client ?? client).get<V1ListAllFunctionsResponses, V1ListAllFunctionsErrors, ThrowOnError>({
|
|
1346
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1347
|
+
url: '/v1/projects/{ref}/functions',
|
|
1348
|
+
...options
|
|
1349
|
+
});
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Create a function
|
|
1353
|
+
*
|
|
1354
|
+
* This endpoint is deprecated - use the deploy endpoint. Creates a function and adds it to the specified project.
|
|
1355
|
+
*
|
|
1356
|
+
* @deprecated
|
|
1357
|
+
*/
|
|
1358
|
+
export const v1CreateAFunction = <ThrowOnError extends boolean = false>(options: Options<V1CreateAFunctionData, ThrowOnError>) => (options.client ?? client).post<V1CreateAFunctionResponses, V1CreateAFunctionErrors, ThrowOnError>({
|
|
1359
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1360
|
+
url: '/v1/projects/{ref}/functions',
|
|
1361
|
+
...options,
|
|
1362
|
+
headers: {
|
|
1363
|
+
'Content-Type': 'application/json',
|
|
1364
|
+
...options.headers
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Bulk update functions
|
|
1370
|
+
*
|
|
1371
|
+
* Bulk update functions. It will create a new function or replace existing. The operation is idempotent. NOTE: You will need to manually bump the version.
|
|
1372
|
+
*/
|
|
1373
|
+
export const v1BulkUpdateFunctions = <ThrowOnError extends boolean = false>(options: Options<V1BulkUpdateFunctionsData, ThrowOnError>) => (options.client ?? client).put<V1BulkUpdateFunctionsResponses, V1BulkUpdateFunctionsErrors, ThrowOnError>({
|
|
1374
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1375
|
+
url: '/v1/projects/{ref}/functions',
|
|
1376
|
+
...options,
|
|
1377
|
+
headers: {
|
|
1378
|
+
'Content-Type': 'application/json',
|
|
1379
|
+
...options.headers
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Deploy a function
|
|
1385
|
+
*
|
|
1386
|
+
* A new endpoint to deploy functions. It will create if function does not exist.
|
|
1387
|
+
*/
|
|
1388
|
+
export const v1DeployAFunction = <ThrowOnError extends boolean = false>(options: Options<V1DeployAFunctionData, ThrowOnError>) => (options.client ?? client).post<V1DeployAFunctionResponses, V1DeployAFunctionErrors, ThrowOnError>({
|
|
1389
|
+
...formDataBodySerializer,
|
|
1390
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1391
|
+
url: '/v1/projects/{ref}/functions/deploy',
|
|
1392
|
+
...options,
|
|
1393
|
+
headers: {
|
|
1394
|
+
'Content-Type': null,
|
|
1395
|
+
...options.headers
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Delete a function
|
|
1401
|
+
*
|
|
1402
|
+
* Deletes a function with the specified slug from the specified project.
|
|
1403
|
+
*/
|
|
1404
|
+
export const v1DeleteAFunction = <ThrowOnError extends boolean = false>(options: Options<V1DeleteAFunctionData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteAFunctionResponses, V1DeleteAFunctionErrors, ThrowOnError>({
|
|
1405
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1406
|
+
url: '/v1/projects/{ref}/functions/{function_slug}',
|
|
1407
|
+
...options
|
|
1408
|
+
});
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Retrieve a function
|
|
1412
|
+
*
|
|
1413
|
+
* Retrieves a function with the specified slug and project.
|
|
1414
|
+
*/
|
|
1415
|
+
export const v1GetAFunction = <ThrowOnError extends boolean = false>(options: Options<V1GetAFunctionData, ThrowOnError>) => (options.client ?? client).get<V1GetAFunctionResponses, V1GetAFunctionErrors, ThrowOnError>({
|
|
1416
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1417
|
+
url: '/v1/projects/{ref}/functions/{function_slug}',
|
|
1418
|
+
...options
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Update a function
|
|
1423
|
+
*
|
|
1424
|
+
* Updates a function with the specified slug and project.
|
|
1425
|
+
*/
|
|
1426
|
+
export const v1UpdateAFunction = <ThrowOnError extends boolean = false>(options: Options<V1UpdateAFunctionData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateAFunctionResponses, V1UpdateAFunctionErrors, ThrowOnError>({
|
|
1427
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1428
|
+
url: '/v1/projects/{ref}/functions/{function_slug}',
|
|
1429
|
+
...options,
|
|
1430
|
+
headers: {
|
|
1431
|
+
'Content-Type': 'application/json',
|
|
1432
|
+
...options.headers
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Retrieve a function body
|
|
1438
|
+
*
|
|
1439
|
+
* Retrieves a function body for the specified slug and project.
|
|
1440
|
+
*/
|
|
1441
|
+
export const v1GetAFunctionBody = <ThrowOnError extends boolean = false>(options: Options<V1GetAFunctionBodyData, ThrowOnError>) => (options.client ?? client).get<V1GetAFunctionBodyResponses, V1GetAFunctionBodyErrors, ThrowOnError>({
|
|
1442
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1443
|
+
url: '/v1/projects/{ref}/functions/{function_slug}/body',
|
|
1444
|
+
...options
|
|
1445
|
+
});
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Lists all buckets
|
|
1449
|
+
*/
|
|
1450
|
+
export const v1ListAllBuckets = <ThrowOnError extends boolean = false>(options: Options<V1ListAllBucketsData, ThrowOnError>) => (options.client ?? client).get<V1ListAllBucketsResponses, V1ListAllBucketsErrors, ThrowOnError>({
|
|
1451
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1452
|
+
url: '/v1/projects/{ref}/storage/buckets',
|
|
1453
|
+
...options
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Get database disk attributes
|
|
1458
|
+
*/
|
|
1459
|
+
export const v1GetDatabaseDisk = <ThrowOnError extends boolean = false>(options: Options<V1GetDatabaseDiskData, ThrowOnError>) => (options.client ?? client).get<V1GetDatabaseDiskResponses, V1GetDatabaseDiskErrors, ThrowOnError>({
|
|
1460
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1461
|
+
url: '/v1/projects/{ref}/config/disk',
|
|
1462
|
+
...options
|
|
1463
|
+
});
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Modify database disk
|
|
1467
|
+
*/
|
|
1468
|
+
export const v1ModifyDatabaseDisk = <ThrowOnError extends boolean = false>(options: Options<V1ModifyDatabaseDiskData, ThrowOnError>) => (options.client ?? client).post<V1ModifyDatabaseDiskResponses, V1ModifyDatabaseDiskErrors, ThrowOnError>({
|
|
1469
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1470
|
+
url: '/v1/projects/{ref}/config/disk',
|
|
1471
|
+
...options,
|
|
1472
|
+
headers: {
|
|
1473
|
+
'Content-Type': 'application/json',
|
|
1474
|
+
...options.headers
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Get disk utilization
|
|
1480
|
+
*/
|
|
1481
|
+
export const v1GetDiskUtilization = <ThrowOnError extends boolean = false>(options: Options<V1GetDiskUtilizationData, ThrowOnError>) => (options.client ?? client).get<V1GetDiskUtilizationResponses, V1GetDiskUtilizationErrors, ThrowOnError>({
|
|
1482
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1483
|
+
url: '/v1/projects/{ref}/config/disk/util',
|
|
1484
|
+
...options
|
|
1485
|
+
});
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Gets project disk autoscale config
|
|
1489
|
+
*/
|
|
1490
|
+
export const v1GetProjectDiskAutoscaleConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectDiskAutoscaleConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectDiskAutoscaleConfigResponses, V1GetProjectDiskAutoscaleConfigErrors, ThrowOnError>({
|
|
1491
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1492
|
+
url: '/v1/projects/{ref}/config/disk/autoscale',
|
|
1493
|
+
...options
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* Gets project's storage config
|
|
1498
|
+
*/
|
|
1499
|
+
export const v1GetStorageConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetStorageConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetStorageConfigResponses, V1GetStorageConfigErrors, ThrowOnError>({
|
|
1500
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1501
|
+
url: '/v1/projects/{ref}/config/storage',
|
|
1502
|
+
...options
|
|
1503
|
+
});
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Updates project's storage config
|
|
1507
|
+
*/
|
|
1508
|
+
export const v1UpdateStorageConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateStorageConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateStorageConfigResponses, V1UpdateStorageConfigErrors, ThrowOnError>({
|
|
1509
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1510
|
+
url: '/v1/projects/{ref}/config/storage',
|
|
1511
|
+
...options,
|
|
1512
|
+
headers: {
|
|
1513
|
+
'Content-Type': 'application/json',
|
|
1514
|
+
...options.headers
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Get project's pgbouncer config
|
|
1520
|
+
*/
|
|
1521
|
+
export const v1GetProjectPgbouncerConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetProjectPgbouncerConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetProjectPgbouncerConfigResponses, V1GetProjectPgbouncerConfigErrors, ThrowOnError>({ url: '/v1/projects/{ref}/config/database/pgbouncer', ...options });
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Gets project's supavisor config
|
|
1525
|
+
*/
|
|
1526
|
+
export const v1GetPoolerConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetPoolerConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetPoolerConfigResponses, V1GetPoolerConfigErrors, ThrowOnError>({
|
|
1527
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1528
|
+
url: '/v1/projects/{ref}/config/database/pooler',
|
|
1529
|
+
...options
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Updates project's supavisor config
|
|
1534
|
+
*/
|
|
1535
|
+
export const v1UpdatePoolerConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdatePoolerConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdatePoolerConfigResponses, V1UpdatePoolerConfigErrors, ThrowOnError>({
|
|
1536
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1537
|
+
url: '/v1/projects/{ref}/config/database/pooler',
|
|
1538
|
+
...options,
|
|
1539
|
+
headers: {
|
|
1540
|
+
'Content-Type': 'application/json',
|
|
1541
|
+
...options.headers
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Gets project's Postgres config
|
|
1547
|
+
*/
|
|
1548
|
+
export const v1GetPostgresConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetPostgresConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetPostgresConfigResponses, V1GetPostgresConfigErrors, ThrowOnError>({
|
|
1549
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1550
|
+
url: '/v1/projects/{ref}/config/database/postgres',
|
|
1551
|
+
...options
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Updates project's Postgres config
|
|
1556
|
+
*/
|
|
1557
|
+
export const v1UpdatePostgresConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdatePostgresConfigData, ThrowOnError>) => (options.client ?? client).put<V1UpdatePostgresConfigResponses, V1UpdatePostgresConfigErrors, ThrowOnError>({
|
|
1558
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1559
|
+
url: '/v1/projects/{ref}/config/database/postgres',
|
|
1560
|
+
...options,
|
|
1561
|
+
headers: {
|
|
1562
|
+
'Content-Type': 'application/json',
|
|
1563
|
+
...options.headers
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Gets realtime configuration
|
|
1569
|
+
*/
|
|
1570
|
+
export const v1GetRealtimeConfig = <ThrowOnError extends boolean = false>(options: Options<V1GetRealtimeConfigData, ThrowOnError>) => (options.client ?? client).get<V1GetRealtimeConfigResponses, V1GetRealtimeConfigErrors, ThrowOnError>({
|
|
1571
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1572
|
+
url: '/v1/projects/{ref}/config/realtime',
|
|
1573
|
+
...options
|
|
1574
|
+
});
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Updates realtime configuration
|
|
1578
|
+
*/
|
|
1579
|
+
export const v1UpdateRealtimeConfig = <ThrowOnError extends boolean = false>(options: Options<V1UpdateRealtimeConfigData, ThrowOnError>) => (options.client ?? client).patch<V1UpdateRealtimeConfigResponses, V1UpdateRealtimeConfigErrors, ThrowOnError>({
|
|
1580
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1581
|
+
url: '/v1/projects/{ref}/config/realtime',
|
|
1582
|
+
...options,
|
|
1583
|
+
headers: {
|
|
1584
|
+
'Content-Type': 'application/json',
|
|
1585
|
+
...options.headers
|
|
1586
|
+
}
|
|
1587
|
+
});
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Shutdowns realtime connections for a project
|
|
1591
|
+
*/
|
|
1592
|
+
export const v1ShutdownRealtime = <ThrowOnError extends boolean = false>(options: Options<V1ShutdownRealtimeData, ThrowOnError>) => (options.client ?? client).post<V1ShutdownRealtimeResponses, V1ShutdownRealtimeErrors, ThrowOnError>({
|
|
1593
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1594
|
+
url: '/v1/projects/{ref}/config/realtime/shutdown',
|
|
1595
|
+
...options
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Lists all SSO providers
|
|
1600
|
+
*/
|
|
1601
|
+
export const v1ListAllSsoProvider = <ThrowOnError extends boolean = false>(options: Options<V1ListAllSsoProviderData, ThrowOnError>) => (options.client ?? client).get<V1ListAllSsoProviderResponses, V1ListAllSsoProviderErrors, ThrowOnError>({
|
|
1602
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1603
|
+
url: '/v1/projects/{ref}/config/auth/sso/providers',
|
|
1604
|
+
...options
|
|
1605
|
+
});
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Creates a new SSO provider
|
|
1609
|
+
*/
|
|
1610
|
+
export const v1CreateASsoProvider = <ThrowOnError extends boolean = false>(options: Options<V1CreateAssoProviderData, ThrowOnError>) => (options.client ?? client).post<V1CreateAssoProviderResponses, V1CreateAssoProviderErrors, ThrowOnError>({
|
|
1611
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1612
|
+
url: '/v1/projects/{ref}/config/auth/sso/providers',
|
|
1613
|
+
...options,
|
|
1614
|
+
headers: {
|
|
1615
|
+
'Content-Type': 'application/json',
|
|
1616
|
+
...options.headers
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Removes a SSO provider by its UUID
|
|
1622
|
+
*/
|
|
1623
|
+
export const v1DeleteASsoProvider = <ThrowOnError extends boolean = false>(options: Options<V1DeleteAssoProviderData, ThrowOnError>) => (options.client ?? client).delete<V1DeleteAssoProviderResponses, V1DeleteAssoProviderErrors, ThrowOnError>({
|
|
1624
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1625
|
+
url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
|
|
1626
|
+
...options
|
|
1627
|
+
});
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Gets a SSO provider by its UUID
|
|
1631
|
+
*/
|
|
1632
|
+
export const v1GetASsoProvider = <ThrowOnError extends boolean = false>(options: Options<V1GetAssoProviderData, ThrowOnError>) => (options.client ?? client).get<V1GetAssoProviderResponses, V1GetAssoProviderErrors, ThrowOnError>({
|
|
1633
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1634
|
+
url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
|
|
1635
|
+
...options
|
|
1636
|
+
});
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Updates a SSO provider by its UUID
|
|
1640
|
+
*/
|
|
1641
|
+
export const v1UpdateASsoProvider = <ThrowOnError extends boolean = false>(options: Options<V1UpdateAssoProviderData, ThrowOnError>) => (options.client ?? client).put<V1UpdateAssoProviderResponses, V1UpdateAssoProviderErrors, ThrowOnError>({
|
|
1642
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1643
|
+
url: '/v1/projects/{ref}/config/auth/sso/providers/{provider_id}',
|
|
1644
|
+
...options,
|
|
1645
|
+
headers: {
|
|
1646
|
+
'Content-Type': 'application/json',
|
|
1647
|
+
...options.headers
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Lists all backups
|
|
1653
|
+
*/
|
|
1654
|
+
export const v1ListAllBackups = <ThrowOnError extends boolean = false>(options: Options<V1ListAllBackupsData, ThrowOnError>) => (options.client ?? client).get<V1ListAllBackupsResponses, V1ListAllBackupsErrors, ThrowOnError>({
|
|
1655
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1656
|
+
url: '/v1/projects/{ref}/database/backups',
|
|
1657
|
+
...options
|
|
1658
|
+
});
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Restores a PITR backup for a database
|
|
1662
|
+
*/
|
|
1663
|
+
export const v1RestorePitrBackup = <ThrowOnError extends boolean = false>(options: Options<V1RestorePitrBackupData, ThrowOnError>) => (options.client ?? client).post<V1RestorePitrBackupResponses, V1RestorePitrBackupErrors, ThrowOnError>({
|
|
1664
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1665
|
+
url: '/v1/projects/{ref}/database/backups/restore-pitr',
|
|
1666
|
+
...options,
|
|
1667
|
+
headers: {
|
|
1668
|
+
'Content-Type': 'application/json',
|
|
1669
|
+
...options.headers
|
|
1670
|
+
}
|
|
1671
|
+
});
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Get restore points for project
|
|
1675
|
+
*/
|
|
1676
|
+
export const v1GetRestorePoint = <ThrowOnError extends boolean = false>(options: Options<V1GetRestorePointData, ThrowOnError>) => (options.client ?? client).get<V1GetRestorePointResponses, V1GetRestorePointErrors, ThrowOnError>({
|
|
1677
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1678
|
+
url: '/v1/projects/{ref}/database/backups/restore-point',
|
|
1679
|
+
...options
|
|
1680
|
+
});
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Initiates a creation of a restore point for a database
|
|
1684
|
+
*/
|
|
1685
|
+
export const v1CreateRestorePoint = <ThrowOnError extends boolean = false>(options: Options<V1CreateRestorePointData, ThrowOnError>) => (options.client ?? client).post<V1CreateRestorePointResponses, V1CreateRestorePointErrors, ThrowOnError>({
|
|
1686
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1687
|
+
url: '/v1/projects/{ref}/database/backups/restore-point',
|
|
1688
|
+
...options,
|
|
1689
|
+
headers: {
|
|
1690
|
+
'Content-Type': 'application/json',
|
|
1691
|
+
...options.headers
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Initiates an undo to a given restore point
|
|
1697
|
+
*/
|
|
1698
|
+
export const v1Undo = <ThrowOnError extends boolean = false>(options: Options<V1UndoData, ThrowOnError>) => (options.client ?? client).post<V1UndoResponses, V1UndoErrors, ThrowOnError>({
|
|
1699
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1700
|
+
url: '/v1/projects/{ref}/database/backups/undo',
|
|
1701
|
+
...options,
|
|
1702
|
+
headers: {
|
|
1703
|
+
'Content-Type': 'application/json',
|
|
1704
|
+
...options.headers
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* List members of an organization
|
|
1710
|
+
*/
|
|
1711
|
+
export const v1ListOrganizationMembers = <ThrowOnError extends boolean = false>(options: Options<V1ListOrganizationMembersData, ThrowOnError>) => (options.client ?? client).get<V1ListOrganizationMembersResponses, unknown, ThrowOnError>({
|
|
1712
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1713
|
+
url: '/v1/organizations/{slug}/members',
|
|
1714
|
+
...options
|
|
1715
|
+
});
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Gets information about the organization
|
|
1719
|
+
*/
|
|
1720
|
+
export const v1GetAnOrganization = <ThrowOnError extends boolean = false>(options: Options<V1GetAnOrganizationData, ThrowOnError>) => (options.client ?? client).get<V1GetAnOrganizationResponses, V1GetAnOrganizationErrors, ThrowOnError>({
|
|
1721
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1722
|
+
url: '/v1/organizations/{slug}',
|
|
1723
|
+
...options
|
|
1724
|
+
});
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* Gets project details for the specified organization and claim token
|
|
1728
|
+
*/
|
|
1729
|
+
export const v1GetOrganizationProjectClaim = <ThrowOnError extends boolean = false>(options: Options<V1GetOrganizationProjectClaimData, ThrowOnError>) => (options.client ?? client).get<V1GetOrganizationProjectClaimResponses, V1GetOrganizationProjectClaimErrors, ThrowOnError>({
|
|
1730
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1731
|
+
url: '/v1/organizations/{slug}/project-claim/{token}',
|
|
1732
|
+
...options
|
|
1733
|
+
});
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Claims project for the specified organization
|
|
1737
|
+
*/
|
|
1738
|
+
export const v1ClaimProjectForOrganization = <ThrowOnError extends boolean = false>(options: Options<V1ClaimProjectForOrganizationData, ThrowOnError>) => (options.client ?? client).post<V1ClaimProjectForOrganizationResponses, V1ClaimProjectForOrganizationErrors, ThrowOnError>({
|
|
1739
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1740
|
+
url: '/v1/organizations/{slug}/project-claim/{token}',
|
|
1741
|
+
...options
|
|
1742
|
+
});
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Gets all projects for the given organization
|
|
1746
|
+
*
|
|
1747
|
+
* Returns a paginated list of projects for the specified organization.
|
|
1748
|
+
*
|
|
1749
|
+
* This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page.
|
|
1750
|
+
*/
|
|
1751
|
+
export const v1GetAllProjectsForOrganization = <ThrowOnError extends boolean = false>(options: Options<V1GetAllProjectsForOrganizationData, ThrowOnError>) => (options.client ?? client).get<V1GetAllProjectsForOrganizationResponses, V1GetAllProjectsForOrganizationErrors, ThrowOnError>({
|
|
1752
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1753
|
+
url: '/v1/organizations/{slug}/projects',
|
|
1754
|
+
...options
|
|
1755
|
+
});
|