@temps-sdk/node-sdk 0.0.5 → 0.0.8-beta.1
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/analytics/identify.d.ts +72 -0
- package/dist/analytics/identify.js +103 -0
- package/dist/analytics/index.d.ts +6 -0
- package/dist/analytics/index.js +6 -0
- package/dist/client/client/client.gen.js +2 -0
- package/dist/client/client/index.js +2 -1
- package/dist/client/client/types.gen.js +2 -1
- package/dist/client/client/utils.gen.js +2 -0
- package/dist/client/client.gen.js +2 -1
- package/dist/client/core/auth.gen.js +2 -1
- package/dist/client/core/bodySerializer.gen.js +2 -1
- package/dist/client/core/params.gen.js +2 -1
- package/dist/client/core/pathSerializer.gen.js +2 -1
- package/dist/client/core/serverSentEvents.gen.js +2 -1
- package/dist/client/core/types.gen.js +2 -1
- package/dist/client/core/utils.gen.js +2 -1
- package/dist/client/index.js +2 -0
- package/dist/client/sdk.gen.d.ts +20 -0
- package/dist/client/sdk.gen.js +80 -2
- package/dist/client/types.gen.d.ts +661 -8
- package/dist/client/types.gen.js +2 -1
- package/dist/errors/client.js +2 -0
- package/dist/errors/hub.js +2 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/scope.js +2 -0
- package/dist/errors/stacktrace.js +2 -0
- package/dist/errors/transaction.js +2 -0
- package/dist/errors/transport.js +2 -0
- package/dist/errors/types.js +2 -0
- package/dist/flags/client.d.ts +89 -0
- package/dist/flags/client.js +279 -0
- package/dist/flags/evaluate.d.ts +23 -0
- package/dist/flags/evaluate.js +307 -0
- package/dist/flags/index.d.ts +3 -0
- package/dist/flags/index.js +4 -0
- package/dist/flags/sha256.d.ts +4 -0
- package/dist/flags/sha256.js +81 -0
- package/dist/flags/types.d.ts +147 -0
- package/dist/flags/types.js +3 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +9201 -548
- package/package.json +8 -3
|
@@ -522,6 +522,12 @@ export type BlobStatusResponse = {
|
|
|
522
522
|
};
|
|
523
523
|
export type BranchInfo = {
|
|
524
524
|
commit_sha: string;
|
|
525
|
+
/**
|
|
526
|
+
* Whether this is the repository's default branch, as reported by the
|
|
527
|
+
* git provider (e.g. `main` or `master`). Clients should use this
|
|
528
|
+
* instead of guessing from the branch name.
|
|
529
|
+
*/
|
|
530
|
+
is_default: boolean;
|
|
525
531
|
name: string;
|
|
526
532
|
protected: boolean;
|
|
527
533
|
};
|
|
@@ -1326,17 +1332,53 @@ export type CreatePlanResponse = {
|
|
|
1326
1332
|
*/
|
|
1327
1333
|
export type CreateProjectFromTemplateRequest = {
|
|
1328
1334
|
/**
|
|
1329
|
-
* Enable automatic deployment on push (defaults to true)
|
|
1335
|
+
* Enable automatic deployment on push (defaults to true). Only honoured in
|
|
1336
|
+
* fork mode; public-repo deploys cannot receive push webhooks.
|
|
1330
1337
|
*/
|
|
1331
1338
|
automatic_deploy?: boolean;
|
|
1339
|
+
/**
|
|
1340
|
+
* Optional image entrypoint arguments. An empty list explicitly uses the
|
|
1341
|
+
* image's own default command instead of the template command.
|
|
1342
|
+
*/
|
|
1343
|
+
command?: Array<string> | null;
|
|
1344
|
+
/**
|
|
1345
|
+
* CPU limit override in microcores. Zero means uncapped.
|
|
1346
|
+
*/
|
|
1347
|
+
cpu_limit?: number | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* CPU request override in microcores (1_000_000 = one CPU core).
|
|
1350
|
+
*/
|
|
1351
|
+
cpu_request?: number | null;
|
|
1332
1352
|
/**
|
|
1333
1353
|
* Environment variables to set (key-value pairs)
|
|
1334
1354
|
*/
|
|
1335
1355
|
environment_variables?: Array<EnvVarInput>;
|
|
1336
1356
|
/**
|
|
1337
|
-
*
|
|
1357
|
+
* Public container port override.
|
|
1338
1358
|
*/
|
|
1339
|
-
|
|
1359
|
+
exposed_port?: number | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Git provider connection ID. When omitted, the project deploys directly
|
|
1362
|
+
* from the template's public source repository instead of forking it.
|
|
1363
|
+
*/
|
|
1364
|
+
git_provider_connection_id?: number | null;
|
|
1365
|
+
/**
|
|
1366
|
+
* Relative HTTP health-check path override.
|
|
1367
|
+
*/
|
|
1368
|
+
health_check_path?: string | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* Optional prebuilt-image override. Curated template values remain the
|
|
1371
|
+
* default when this is omitted. Accepted only for image templates.
|
|
1372
|
+
*/
|
|
1373
|
+
image?: string | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* Memory limit override in MiB. Zero means uncapped.
|
|
1376
|
+
*/
|
|
1377
|
+
memory_limit?: number | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Memory request override in MiB.
|
|
1380
|
+
*/
|
|
1381
|
+
memory_request?: number | null;
|
|
1340
1382
|
/**
|
|
1341
1383
|
* Whether to make the repository private (defaults to true)
|
|
1342
1384
|
*/
|
|
@@ -1346,9 +1388,10 @@ export type CreateProjectFromTemplateRequest = {
|
|
|
1346
1388
|
*/
|
|
1347
1389
|
project_name: string;
|
|
1348
1390
|
/**
|
|
1349
|
-
* Name for the new repository to create
|
|
1391
|
+
* Name for the new repository to create. Required in fork mode; ignored in
|
|
1392
|
+
* one-click public-repo mode.
|
|
1350
1393
|
*/
|
|
1351
|
-
repository_name
|
|
1394
|
+
repository_name?: string | null;
|
|
1352
1395
|
/**
|
|
1353
1396
|
* Owner/organization for the new repository (defaults to authenticated user)
|
|
1354
1397
|
*/
|
|
@@ -1366,6 +1409,14 @@ export type CreateProjectFromTemplateRequest = {
|
|
|
1366
1409
|
* Response after creating a project from template
|
|
1367
1410
|
*/
|
|
1368
1411
|
export type CreateProjectFromTemplateResponse = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Actionable retry guidance when project creation succeeded but deployment dispatch did not. Internal queue errors are never exposed.
|
|
1414
|
+
*/
|
|
1415
|
+
deployment_error?: string | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* Whether the initial deployment was successfully queued. This is set for native image service templates; Git-backed modes use their pipeline flow.
|
|
1418
|
+
*/
|
|
1419
|
+
deployment_queued?: boolean | null;
|
|
1369
1420
|
/**
|
|
1370
1421
|
* Message with additional info
|
|
1371
1422
|
*/
|
|
@@ -2667,6 +2718,12 @@ export type EmailDomainResponse = {
|
|
|
2667
2718
|
updated_at: string;
|
|
2668
2719
|
verification_error?: string | null;
|
|
2669
2720
|
};
|
|
2721
|
+
/** A project authorized to send email through a sender domain. */
|
|
2722
|
+
export type AuthorizedEmailDomainProjectResponse = {
|
|
2723
|
+
id: number;
|
|
2724
|
+
name: string;
|
|
2725
|
+
slug: string;
|
|
2726
|
+
};
|
|
2670
2727
|
export type EmailDomainWithDnsResponse = {
|
|
2671
2728
|
dns_records: Array<DnsRecordResponse>;
|
|
2672
2729
|
domain: EmailDomainResponse;
|
|
@@ -2950,6 +3007,11 @@ export type EnvVarTemplateResponse = {
|
|
|
2950
3007
|
* Default value if not provided by user
|
|
2951
3008
|
*/
|
|
2952
3009
|
default?: string | null;
|
|
3010
|
+
/**
|
|
3011
|
+
* Frontend-side generator hint for the default value
|
|
3012
|
+
* (e.g. `app_url`, `random_secret`, `random_hex_32`)
|
|
3013
|
+
*/
|
|
3014
|
+
default_generator?: string | null;
|
|
2953
3015
|
/**
|
|
2954
3016
|
* Description of what this variable is used for
|
|
2955
3017
|
*/
|
|
@@ -2966,6 +3028,10 @@ export type EnvVarTemplateResponse = {
|
|
|
2966
3028
|
* Whether this variable is required
|
|
2967
3029
|
*/
|
|
2968
3030
|
required: boolean;
|
|
3031
|
+
/**
|
|
3032
|
+
* Whether values must use the protected secret reveal path.
|
|
3033
|
+
*/
|
|
3034
|
+
secret: boolean;
|
|
2969
3035
|
};
|
|
2970
3036
|
/**
|
|
2971
3037
|
* Environment-level configuration
|
|
@@ -5100,6 +5166,7 @@ export type ListTemplatesQuery = {
|
|
|
5100
5166
|
* Only return featured templates
|
|
5101
5167
|
*/
|
|
5102
5168
|
featured?: boolean | null;
|
|
5169
|
+
kind?: null | TemplateKind;
|
|
5103
5170
|
/**
|
|
5104
5171
|
* Filter templates by tag
|
|
5105
5172
|
*/
|
|
@@ -6684,11 +6751,42 @@ export type ProjectQuery = {
|
|
|
6684
6751
|
project_id: number;
|
|
6685
6752
|
};
|
|
6686
6753
|
export type ProjectResponse = {
|
|
6754
|
+
/**
|
|
6755
|
+
* Opt-in to AI summarization of metric alert notifications (NULL/false = off).
|
|
6756
|
+
*/
|
|
6757
|
+
ai_alert_summaries_enabled?: boolean | null;
|
|
6758
|
+
/**
|
|
6759
|
+
* Opt-in to AI summarization of API traffic analytics (NULL/false = off).
|
|
6760
|
+
*/
|
|
6761
|
+
ai_api_traffic_summary_enabled?: boolean | null;
|
|
6762
|
+
/**
|
|
6763
|
+
* Opt-in to AI debugging chat, e.g. on deployment failures (NULL/false = off).
|
|
6764
|
+
*/
|
|
6765
|
+
ai_debug_chat_enabled?: boolean | null;
|
|
6766
|
+
/**
|
|
6767
|
+
* Opt-in to AI propose-then-confirm write capability (false = off).
|
|
6768
|
+
*/
|
|
6769
|
+
ai_write_actions_enabled: boolean;
|
|
6770
|
+
/**
|
|
6771
|
+
* Whether this project also accepts deployments from a source other than
|
|
6772
|
+
* `source_type` — chiefly, whether a Git-backed project will take an
|
|
6773
|
+
* uploaded source archive (`drop`). `null` or `false` means only the
|
|
6774
|
+
* configured `source_type` (plus Docker images and static bundles, which
|
|
6775
|
+
* every project accepts) may be deployed.
|
|
6776
|
+
*/
|
|
6777
|
+
allow_alternate_sources?: boolean | null;
|
|
6687
6778
|
/**
|
|
6688
6779
|
* Attack mode - when enabled, requires CAPTCHA verification for all project environments
|
|
6689
6780
|
*/
|
|
6690
6781
|
attack_mode: boolean;
|
|
6691
6782
|
created_at: number;
|
|
6783
|
+
/**
|
|
6784
|
+
* ADR-027 Phase 3 opt-out: when false, this project's traces are suppressed
|
|
6785
|
+
* from cross-project discovery results. Default true (consistent with the
|
|
6786
|
+
* OSS global-observability model where any OtelRead holder can query any
|
|
6787
|
+
* project's telemetry).
|
|
6788
|
+
*/
|
|
6789
|
+
cross_project_trace_sharing: boolean;
|
|
6692
6790
|
/**
|
|
6693
6791
|
* Deployment configuration (resources, autoscaling, features)
|
|
6694
6792
|
*/
|
|
@@ -6698,28 +6796,101 @@ export type ProjectResponse = {
|
|
|
6698
6796
|
* Enable automatic preview environment creation for each branch
|
|
6699
6797
|
*/
|
|
6700
6798
|
enable_preview_environments: boolean;
|
|
6799
|
+
/**
|
|
6800
|
+
* Opt-in to native error-tracking source context (false = off). When on,
|
|
6801
|
+
* Temps stores uploaded source files and shows source code in stack traces.
|
|
6802
|
+
*/
|
|
6803
|
+
error_source_context_enabled: boolean;
|
|
6804
|
+
/**
|
|
6805
|
+
* Where auto-capture reads source from (relative to the checkout). Null =
|
|
6806
|
+
* the deployment's Docker build context.
|
|
6807
|
+
*/
|
|
6808
|
+
error_source_root?: string | null;
|
|
6701
6809
|
git_provider_connection_id?: number | null;
|
|
6810
|
+
/**
|
|
6811
|
+
* Git provider behind `git_provider_connection_id`: `github`,
|
|
6812
|
+
* `github_app`, `gitlab`, `gitea`, `bitbucket` or `generic`. `null` when
|
|
6813
|
+
* the project has no connection (public repository, Docker image or
|
|
6814
|
+
* uploaded source).
|
|
6815
|
+
*
|
|
6816
|
+
* Clients must use this rather than guessing the host from `git_url`: a
|
|
6817
|
+
* self-hosted GitLab/Gitea/Bitbucket instance can live on any domain, and
|
|
6818
|
+
* a connected project may have no clone URL stored at all.
|
|
6819
|
+
*/
|
|
6820
|
+
git_provider_type?: string | null;
|
|
6702
6821
|
/**
|
|
6703
6822
|
* Git clone URL for the repository (used for public repos without a provider connection)
|
|
6704
6823
|
*/
|
|
6705
6824
|
git_url?: string | null;
|
|
6825
|
+
/**
|
|
6826
|
+
* GitLab webhook ID installed on the connected repository.
|
|
6827
|
+
* `null` when no GitLab webhook is installed (not connected to GitLab,
|
|
6828
|
+
* or webhook was removed / never created).
|
|
6829
|
+
*/
|
|
6830
|
+
gitlab_webhook_id?: number | null;
|
|
6706
6831
|
id: number;
|
|
6832
|
+
/**
|
|
6833
|
+
* Hours to retain built Docker images before nightly cleanup. Null = use the
|
|
6834
|
+
* system-wide default from settings.
|
|
6835
|
+
*/
|
|
6836
|
+
image_retention_hours?: number | null;
|
|
6837
|
+
/**
|
|
6838
|
+
* Authoritative repository visibility. A missing connection alone does
|
|
6839
|
+
* not imply that an incompletely configured repository is public.
|
|
6840
|
+
*/
|
|
6841
|
+
is_public_repo: boolean;
|
|
6707
6842
|
last_deployment?: number | null;
|
|
6708
6843
|
main_branch: string;
|
|
6709
6844
|
name: string;
|
|
6710
6845
|
preset?: string | null;
|
|
6846
|
+
preset_config?: null | PresetConfigSchema;
|
|
6711
6847
|
/**
|
|
6712
|
-
*
|
|
6848
|
+
* Idle timeout (seconds) for on-demand preview environments.
|
|
6713
6849
|
*/
|
|
6714
|
-
|
|
6850
|
+
preview_envs_idle_timeout_seconds: number;
|
|
6851
|
+
/**
|
|
6852
|
+
* When true, newly-created preview environments default to on-demand mode
|
|
6853
|
+
* (containers stop after the configured idle timeout to save resources).
|
|
6854
|
+
*/
|
|
6855
|
+
preview_envs_on_demand: boolean;
|
|
6856
|
+
/**
|
|
6857
|
+
* Wake timeout (seconds) for on-demand preview environments.
|
|
6858
|
+
*/
|
|
6859
|
+
preview_envs_wake_timeout_seconds: number;
|
|
6860
|
+
/**
|
|
6861
|
+
* Product lifecycle classification. `service` projects are tied to a
|
|
6862
|
+
* persisted, versioned template release; this is independent from the
|
|
6863
|
+
* deployment transport in `source_type`.
|
|
6864
|
+
*/
|
|
6865
|
+
project_type: string;
|
|
6715
6866
|
repo_name?: string | null;
|
|
6716
6867
|
repo_owner?: string | null;
|
|
6868
|
+
/**
|
|
6869
|
+
* Logo from the immutable service-template release applied to this
|
|
6870
|
+
* project. Clients should prefer it over a deployed site's favicon.
|
|
6871
|
+
*/
|
|
6872
|
+
service_template_image_url?: string | null;
|
|
6873
|
+
/**
|
|
6874
|
+
* Exact service-template version currently applied to the project.
|
|
6875
|
+
*/
|
|
6876
|
+
service_template_version?: string | null;
|
|
6717
6877
|
slug: string;
|
|
6718
6878
|
/**
|
|
6719
6879
|
* Source type for deployments (git, docker_image, or static_files)
|
|
6720
6880
|
*/
|
|
6721
6881
|
source_type: SourceType;
|
|
6882
|
+
/**
|
|
6883
|
+
* Bundled template slug that created this project. Clients use this to
|
|
6884
|
+
* present template-specific runtime configuration instead of generic
|
|
6885
|
+
* source-build controls.
|
|
6886
|
+
*/
|
|
6887
|
+
template_slug?: string | null;
|
|
6722
6888
|
updated_at: number;
|
|
6889
|
+
/**
|
|
6890
|
+
* Opt-in Trivy vulnerability scanning of this project's deployed Docker
|
|
6891
|
+
* images. Off by default — project owners explicitly enable it.
|
|
6892
|
+
*/
|
|
6893
|
+
vulnerability_scanning_enabled: boolean;
|
|
6723
6894
|
};
|
|
6724
6895
|
export type ProjectServiceInfo = {
|
|
6725
6896
|
id: number;
|
|
@@ -8699,6 +8870,10 @@ export type TailLogsRequest = {
|
|
|
8699
8870
|
* Response type for a single template
|
|
8700
8871
|
*/
|
|
8701
8872
|
export type TemplateResponse = {
|
|
8873
|
+
/**
|
|
8874
|
+
* Optional command passed to the image entrypoint.
|
|
8875
|
+
*/
|
|
8876
|
+
command?: Array<string> | null;
|
|
8702
8877
|
/**
|
|
8703
8878
|
* Short description
|
|
8704
8879
|
*/
|
|
@@ -8707,6 +8882,10 @@ export type TemplateResponse = {
|
|
|
8707
8882
|
* Environment variables template
|
|
8708
8883
|
*/
|
|
8709
8884
|
env_vars: Array<EnvVarTemplateResponse>;
|
|
8885
|
+
/**
|
|
8886
|
+
* Container port the prebuilt image listens on (image deploys only).
|
|
8887
|
+
*/
|
|
8888
|
+
exposed_port?: number | null;
|
|
8710
8889
|
/**
|
|
8711
8890
|
* Feature highlights
|
|
8712
8891
|
*/
|
|
@@ -8715,6 +8894,15 @@ export type TemplateResponse = {
|
|
|
8715
8894
|
* Git repository reference
|
|
8716
8895
|
*/
|
|
8717
8896
|
git: GitRefResponse;
|
|
8897
|
+
/**
|
|
8898
|
+
* HTTP health-check path probed after the container starts (image deploys).
|
|
8899
|
+
*/
|
|
8900
|
+
health_check_path?: string | null;
|
|
8901
|
+
/**
|
|
8902
|
+
* Prebuilt Docker image reference. When set, the one-click deploy pulls and
|
|
8903
|
+
* runs this image directly (no build); when absent it builds from `git`.
|
|
8904
|
+
*/
|
|
8905
|
+
image?: string | null;
|
|
8718
8906
|
/**
|
|
8719
8907
|
* URL to template image/icon
|
|
8720
8908
|
*/
|
|
@@ -8723,6 +8911,18 @@ export type TemplateResponse = {
|
|
|
8723
8911
|
* Whether the template is featured/promoted
|
|
8724
8912
|
*/
|
|
8725
8913
|
is_featured: boolean;
|
|
8914
|
+
/**
|
|
8915
|
+
* Gallery this template belongs to.
|
|
8916
|
+
*/
|
|
8917
|
+
kind: TemplateKind;
|
|
8918
|
+
/**
|
|
8919
|
+
* Managed-service environment aliases used at deployment time.
|
|
8920
|
+
*/
|
|
8921
|
+
managed_service_bindings: {
|
|
8922
|
+
[key: string]: {
|
|
8923
|
+
[key: string]: string;
|
|
8924
|
+
};
|
|
8925
|
+
};
|
|
8726
8926
|
/**
|
|
8727
8927
|
* Display name
|
|
8728
8928
|
*/
|
|
@@ -8731,6 +8931,12 @@ export type TemplateResponse = {
|
|
|
8731
8931
|
* Framework/preset to use
|
|
8732
8932
|
*/
|
|
8733
8933
|
preset: string;
|
|
8934
|
+
resources?: null | TemplateResources;
|
|
8935
|
+
/**
|
|
8936
|
+
* URL to a wide screenshot/banner preview of the deployed template.
|
|
8937
|
+
* Absent for templates that don't have one captured yet.
|
|
8938
|
+
*/
|
|
8939
|
+
screenshot_url?: string | null;
|
|
8734
8940
|
/**
|
|
8735
8941
|
* Required external services
|
|
8736
8942
|
*/
|
|
@@ -8743,6 +8949,10 @@ export type TemplateResponse = {
|
|
|
8743
8949
|
* Tags/categories for filtering
|
|
8744
8950
|
*/
|
|
8745
8951
|
tags: Array<string>;
|
|
8952
|
+
/**
|
|
8953
|
+
* Immutable release identifier for service templates.
|
|
8954
|
+
*/
|
|
8955
|
+
version: string;
|
|
8746
8956
|
};
|
|
8747
8957
|
/**
|
|
8748
8958
|
* Request body for testing an email provider
|
|
@@ -14395,6 +14605,74 @@ export type GetDomainDnsRecordsResponses = {
|
|
|
14395
14605
|
200: Array<DnsRecordResponse>;
|
|
14396
14606
|
};
|
|
14397
14607
|
export type GetDomainDnsRecordsResponse = GetDomainDnsRecordsResponses[keyof GetDomainDnsRecordsResponses];
|
|
14608
|
+
export type ListEmailDomainProjectsData = {
|
|
14609
|
+
body?: never;
|
|
14610
|
+
path: {
|
|
14611
|
+
id: number;
|
|
14612
|
+
};
|
|
14613
|
+
query?: never;
|
|
14614
|
+
url: '/email-domains/{id}/projects';
|
|
14615
|
+
};
|
|
14616
|
+
export type ListEmailDomainProjectsErrors = {
|
|
14617
|
+
/** Unauthorized */
|
|
14618
|
+
401: unknown;
|
|
14619
|
+
/** Insufficient permissions */
|
|
14620
|
+
403: unknown;
|
|
14621
|
+
/** Domain not found */
|
|
14622
|
+
404: unknown;
|
|
14623
|
+
/** Project visibility or database check failed */
|
|
14624
|
+
500: unknown;
|
|
14625
|
+
};
|
|
14626
|
+
export type ListEmailDomainProjectsResponses = {
|
|
14627
|
+
200: Array<AuthorizedEmailDomainProjectResponse>;
|
|
14628
|
+
};
|
|
14629
|
+
export type ListEmailDomainProjectsResponse = ListEmailDomainProjectsResponses[keyof ListEmailDomainProjectsResponses];
|
|
14630
|
+
export type RevokeEmailDomainProjectData = {
|
|
14631
|
+
body?: never;
|
|
14632
|
+
path: {
|
|
14633
|
+
id: number;
|
|
14634
|
+
project_id: number;
|
|
14635
|
+
};
|
|
14636
|
+
query?: never;
|
|
14637
|
+
url: '/email-domains/{id}/projects/{project_id}';
|
|
14638
|
+
};
|
|
14639
|
+
export type RevokeEmailDomainProjectErrors = {
|
|
14640
|
+
/** Unauthorized */
|
|
14641
|
+
401: unknown;
|
|
14642
|
+
/** Only an instance or platform administrator may change global sender-domain grants */
|
|
14643
|
+
403: unknown;
|
|
14644
|
+
/** Domain not found */
|
|
14645
|
+
404: unknown;
|
|
14646
|
+
/** Project access, audit, or database check failed */
|
|
14647
|
+
500: unknown;
|
|
14648
|
+
};
|
|
14649
|
+
export type RevokeEmailDomainProjectResponses = {
|
|
14650
|
+
204: void;
|
|
14651
|
+
};
|
|
14652
|
+
export type RevokeEmailDomainProjectResponse = RevokeEmailDomainProjectResponses[keyof RevokeEmailDomainProjectResponses];
|
|
14653
|
+
export type AuthorizeEmailDomainProjectData = {
|
|
14654
|
+
body?: never;
|
|
14655
|
+
path: {
|
|
14656
|
+
id: number;
|
|
14657
|
+
project_id: number;
|
|
14658
|
+
};
|
|
14659
|
+
query?: never;
|
|
14660
|
+
url: '/email-domains/{id}/projects/{project_id}';
|
|
14661
|
+
};
|
|
14662
|
+
export type AuthorizeEmailDomainProjectErrors = {
|
|
14663
|
+
/** Unauthorized */
|
|
14664
|
+
401: unknown;
|
|
14665
|
+
/** Only an instance or platform administrator may change global sender-domain grants */
|
|
14666
|
+
403: unknown;
|
|
14667
|
+
/** Domain or project not found */
|
|
14668
|
+
404: unknown;
|
|
14669
|
+
/** Project access, audit, or database check failed */
|
|
14670
|
+
500: unknown;
|
|
14671
|
+
};
|
|
14672
|
+
export type AuthorizeEmailDomainProjectResponses = {
|
|
14673
|
+
204: void;
|
|
14674
|
+
};
|
|
14675
|
+
export type AuthorizeEmailDomainProjectResponse = AuthorizeEmailDomainProjectResponses[keyof AuthorizeEmailDomainProjectResponses];
|
|
14398
14676
|
export type SetupDnsData = {
|
|
14399
14677
|
body: SetupDnsRequest;
|
|
14400
14678
|
path: {
|
|
@@ -14677,6 +14955,12 @@ export type ListEmailsResponses = {
|
|
|
14677
14955
|
export type ListEmailsResponse = ListEmailsResponses[keyof ListEmailsResponses];
|
|
14678
14956
|
export type SendEmailData = {
|
|
14679
14957
|
body: SendEmailRequestBody;
|
|
14958
|
+
headers?: {
|
|
14959
|
+
/**
|
|
14960
|
+
* Required for deployment-token requests. Reusing a key with the same payload returns the original delivery; reusing it with a different payload returns 409.
|
|
14961
|
+
*/
|
|
14962
|
+
'Idempotency-Key'?: string | null;
|
|
14963
|
+
};
|
|
14680
14964
|
path?: never;
|
|
14681
14965
|
query?: never;
|
|
14682
14966
|
url: '/emails';
|
|
@@ -14694,6 +14978,10 @@ export type SendEmailErrors = {
|
|
|
14694
14978
|
* Insufficient permissions
|
|
14695
14979
|
*/
|
|
14696
14980
|
403: unknown;
|
|
14981
|
+
/**
|
|
14982
|
+
* Idempotency key was already used with a different payload
|
|
14983
|
+
*/
|
|
14984
|
+
409: unknown;
|
|
14697
14985
|
/**
|
|
14698
14986
|
* Internal server error
|
|
14699
14987
|
*/
|
|
@@ -20013,13 +20301,21 @@ export type GetProjectsData = {
|
|
|
20013
20301
|
*/
|
|
20014
20302
|
page?: number;
|
|
20015
20303
|
/**
|
|
20016
|
-
* Number of items per page
|
|
20304
|
+
* Number of items per page (1-100)
|
|
20017
20305
|
*/
|
|
20018
20306
|
per_page?: number;
|
|
20307
|
+
/**
|
|
20308
|
+
* Case-insensitive project name or slug filter
|
|
20309
|
+
*/
|
|
20310
|
+
search?: string;
|
|
20019
20311
|
};
|
|
20020
20312
|
url: '/projects';
|
|
20021
20313
|
};
|
|
20022
20314
|
export type GetProjectsErrors = {
|
|
20315
|
+
/**
|
|
20316
|
+
* Invalid pagination parameters
|
|
20317
|
+
*/
|
|
20318
|
+
400: unknown;
|
|
20023
20319
|
/**
|
|
20024
20320
|
* Unauthorized
|
|
20025
20321
|
*/
|
|
@@ -27147,3 +27443,360 @@ export type CreateGenericProviderErrors = {
|
|
|
27147
27443
|
403: unknown;
|
|
27148
27444
|
500: unknown;
|
|
27149
27445
|
};
|
|
27446
|
+
export type EnvVarTemplate = {
|
|
27447
|
+
/**
|
|
27448
|
+
* Default value if not provided by user
|
|
27449
|
+
*/
|
|
27450
|
+
default?: string | null;
|
|
27451
|
+
/**
|
|
27452
|
+
* Frontend-side generator for the default value. Recognised values:
|
|
27453
|
+
* `app_url` (https://{repo}.{base_domain}), `random_secret` (32-byte base64),
|
|
27454
|
+
* `random_hex_32` (32-byte hex). Unknown values are ignored client-side.
|
|
27455
|
+
*/
|
|
27456
|
+
default_generator?: string | null;
|
|
27457
|
+
/**
|
|
27458
|
+
* Description of what this variable is used for
|
|
27459
|
+
*/
|
|
27460
|
+
description?: string | null;
|
|
27461
|
+
/**
|
|
27462
|
+
* Example value for documentation
|
|
27463
|
+
*/
|
|
27464
|
+
example?: string | null;
|
|
27465
|
+
/**
|
|
27466
|
+
* Name of the environment variable
|
|
27467
|
+
*/
|
|
27468
|
+
name: string;
|
|
27469
|
+
/**
|
|
27470
|
+
* Whether this variable is required
|
|
27471
|
+
*/
|
|
27472
|
+
required?: boolean;
|
|
27473
|
+
/**
|
|
27474
|
+
* Explicit sensitivity classification for credentials whose names do not
|
|
27475
|
+
* match the conservative built-in heuristic.
|
|
27476
|
+
*/
|
|
27477
|
+
secret?: boolean;
|
|
27478
|
+
};
|
|
27479
|
+
export type ProjectTemplate = {
|
|
27480
|
+
/**
|
|
27481
|
+
* Optional command passed to the container image. This is needed for
|
|
27482
|
+
* production images whose default command is intentionally a development
|
|
27483
|
+
* mode (for example Keycloak).
|
|
27484
|
+
*/
|
|
27485
|
+
command?: Array<string> | null;
|
|
27486
|
+
/**
|
|
27487
|
+
* Short description
|
|
27488
|
+
*/
|
|
27489
|
+
description?: string | null;
|
|
27490
|
+
/**
|
|
27491
|
+
* Environment variables template
|
|
27492
|
+
*/
|
|
27493
|
+
env_vars?: Array<EnvVarTemplate>;
|
|
27494
|
+
/**
|
|
27495
|
+
* Container port the prebuilt image listens on (used for routing when
|
|
27496
|
+
* deploying from `image`). Falls back to the image's EXPOSE / 3000 default.
|
|
27497
|
+
*/
|
|
27498
|
+
exposed_port?: number | null;
|
|
27499
|
+
/**
|
|
27500
|
+
* Feature highlights
|
|
27501
|
+
*/
|
|
27502
|
+
features?: Array<string>;
|
|
27503
|
+
/**
|
|
27504
|
+
* Git repository reference (supports any git provider). Always present as
|
|
27505
|
+
* the source-of-truth / build fallback, even for image-based templates.
|
|
27506
|
+
*/
|
|
27507
|
+
git: GitRef;
|
|
27508
|
+
/**
|
|
27509
|
+
* HTTP health-check path probed after the container starts (image deploys
|
|
27510
|
+
* can't read `.temps.yaml`). Must start with '/'. Defaults to "/".
|
|
27511
|
+
*/
|
|
27512
|
+
health_check_path?: string | null;
|
|
27513
|
+
/**
|
|
27514
|
+
* Prebuilt Docker image reference (e.g. "ghcr.io/org/app:latest"). When set,
|
|
27515
|
+
* the one-click deploy pulls and runs this image directly (source_type
|
|
27516
|
+
* docker_image) instead of building from `git` — instant, no BuildKit. When
|
|
27517
|
+
* absent, the template builds from source.
|
|
27518
|
+
*/
|
|
27519
|
+
image?: string | null;
|
|
27520
|
+
/**
|
|
27521
|
+
* URL to template image/icon
|
|
27522
|
+
*/
|
|
27523
|
+
image_url?: string | null;
|
|
27524
|
+
/**
|
|
27525
|
+
* Whether the template is featured/promoted
|
|
27526
|
+
*/
|
|
27527
|
+
is_featured?: boolean;
|
|
27528
|
+
/**
|
|
27529
|
+
* Whether the template is publicly visible
|
|
27530
|
+
*/
|
|
27531
|
+
is_public?: boolean;
|
|
27532
|
+
/**
|
|
27533
|
+
* Gallery this template belongs to. Older configurations default to a
|
|
27534
|
+
* source-code starter, preserving their existing behaviour.
|
|
27535
|
+
*/
|
|
27536
|
+
kind?: TemplateKind;
|
|
27537
|
+
/**
|
|
27538
|
+
* Environment aliases populated from a linked managed service. The outer
|
|
27539
|
+
* key is the Temps service type and each inner entry maps an application
|
|
27540
|
+
* variable to a variable supplied by that service.
|
|
27541
|
+
*
|
|
27542
|
+
* Example: `postgres.KC_DB_USERNAME: POSTGRES_USER`.
|
|
27543
|
+
*/
|
|
27544
|
+
managed_service_bindings?: {
|
|
27545
|
+
[key: string]: {
|
|
27546
|
+
[key: string]: string;
|
|
27547
|
+
};
|
|
27548
|
+
};
|
|
27549
|
+
/**
|
|
27550
|
+
* Display name
|
|
27551
|
+
*/
|
|
27552
|
+
name: string;
|
|
27553
|
+
/**
|
|
27554
|
+
* Framework/preset to use (e.g., "nextjs", "fastapi", "dockerfile")
|
|
27555
|
+
*/
|
|
27556
|
+
preset: string;
|
|
27557
|
+
/**
|
|
27558
|
+
* Preset-specific configuration
|
|
27559
|
+
*/
|
|
27560
|
+
preset_config?: unknown;
|
|
27561
|
+
resources?: null | TemplateResources;
|
|
27562
|
+
/**
|
|
27563
|
+
* URL to a full screenshot/banner preview of the deployed template (e.g.
|
|
27564
|
+
* `/templates/nextjs-saas-starter.png`). Rendered as a wide preview on the
|
|
27565
|
+
* template card; optional — templates without one show no banner.
|
|
27566
|
+
*/
|
|
27567
|
+
screenshot_url?: string | null;
|
|
27568
|
+
/**
|
|
27569
|
+
* Required external services (e.g., ["postgres", "redis"])
|
|
27570
|
+
*/
|
|
27571
|
+
services?: Array<string>;
|
|
27572
|
+
/**
|
|
27573
|
+
* Unique identifier for the template (used in URLs)
|
|
27574
|
+
*/
|
|
27575
|
+
slug: string;
|
|
27576
|
+
/**
|
|
27577
|
+
* Sort order for display (lower = first)
|
|
27578
|
+
*/
|
|
27579
|
+
sort_order?: number;
|
|
27580
|
+
/**
|
|
27581
|
+
* Tags/categories for filtering
|
|
27582
|
+
*/
|
|
27583
|
+
tags?: Array<string>;
|
|
27584
|
+
/**
|
|
27585
|
+
* Version of this template release. Service projects pin this value and
|
|
27586
|
+
* the complete resolved definition so catalog updates are always an
|
|
27587
|
+
* explicit, reviewable upgrade rather than a silent runtime mutation.
|
|
27588
|
+
*/
|
|
27589
|
+
version?: string;
|
|
27590
|
+
};
|
|
27591
|
+
export type ServiceTemplateChangeKind = 'added' | 'removed' | 'changed';
|
|
27592
|
+
export type ServiceTemplateInstance = {
|
|
27593
|
+
/**
|
|
27594
|
+
* Catalog schema used to deserialize `template`.
|
|
27595
|
+
*/
|
|
27596
|
+
schema_version: string;
|
|
27597
|
+
/**
|
|
27598
|
+
* Stable service family identifier.
|
|
27599
|
+
*/
|
|
27600
|
+
slug: string;
|
|
27601
|
+
/**
|
|
27602
|
+
* Exact resolved release from which this project was created/upgraded.
|
|
27603
|
+
*/
|
|
27604
|
+
template: ProjectTemplate;
|
|
27605
|
+
/**
|
|
27606
|
+
* Applied template release.
|
|
27607
|
+
*/
|
|
27608
|
+
version: string;
|
|
27609
|
+
};
|
|
27610
|
+
export type ServiceTemplateInstanceResponse = {
|
|
27611
|
+
applied: ServiceTemplateInstance;
|
|
27612
|
+
/**
|
|
27613
|
+
* The catalog definition changed without a version bump. Applying it is
|
|
27614
|
+
* intentionally blocked because mutable releases make upgrades and
|
|
27615
|
+
* rollbacks non-reproducible.
|
|
27616
|
+
*/
|
|
27617
|
+
catalog_drift: boolean;
|
|
27618
|
+
/**
|
|
27619
|
+
* User-safe explanation when the active catalog could not provide this
|
|
27620
|
+
* service family. The applied snapshot remains authoritative and editable.
|
|
27621
|
+
*/
|
|
27622
|
+
catalog_error?: string | null;
|
|
27623
|
+
changes: Array<ServiceTemplateUpgradeChange>;
|
|
27624
|
+
latest?: null | ServiceTemplateInstance;
|
|
27625
|
+
/**
|
|
27626
|
+
* Managed service families that must be linked before this release can be
|
|
27627
|
+
* applied. Existing links are never removed automatically.
|
|
27628
|
+
*/
|
|
27629
|
+
missing_services: Array<string>;
|
|
27630
|
+
project_id: number;
|
|
27631
|
+
/**
|
|
27632
|
+
* Required target inputs that are not currently configured and cannot be
|
|
27633
|
+
* filled from a template default or generator.
|
|
27634
|
+
*/
|
|
27635
|
+
required_configuration: Array<EnvVarTemplate>;
|
|
27636
|
+
upgrade_available: boolean;
|
|
27637
|
+
};
|
|
27638
|
+
export type ServiceTemplateUpgradeChange = {
|
|
27639
|
+
current?: string | null;
|
|
27640
|
+
field: string;
|
|
27641
|
+
kind: ServiceTemplateChangeKind;
|
|
27642
|
+
target?: string | null;
|
|
27643
|
+
};
|
|
27644
|
+
export type TemplateKind = 'starter' | 'service';
|
|
27645
|
+
export type TemplateResources = {
|
|
27646
|
+
cpu_limit?: number | null;
|
|
27647
|
+
cpu_request?: number | null;
|
|
27648
|
+
memory_limit?: number | null;
|
|
27649
|
+
memory_request?: number | null;
|
|
27650
|
+
};
|
|
27651
|
+
export type UpdateServiceTemplateRuntimeRequest = {
|
|
27652
|
+
/**
|
|
27653
|
+
* Empty means use the image's own default command.
|
|
27654
|
+
*/
|
|
27655
|
+
command?: Array<string>;
|
|
27656
|
+
cpuLimit?: number | null;
|
|
27657
|
+
cpuRequest?: number | null;
|
|
27658
|
+
exposedPort?: number | null;
|
|
27659
|
+
healthCheckPath: string;
|
|
27660
|
+
imageRef: string;
|
|
27661
|
+
memoryLimit?: number | null;
|
|
27662
|
+
memoryRequest?: number | null;
|
|
27663
|
+
};
|
|
27664
|
+
export type UpgradeServiceTemplateRequest = {
|
|
27665
|
+
/**
|
|
27666
|
+
* Values for inputs introduced by the target release. Existing project
|
|
27667
|
+
* values are preserved and cannot be overwritten through this endpoint.
|
|
27668
|
+
*/
|
|
27669
|
+
environment_variables?: Array<EnvVarInput>;
|
|
27670
|
+
/**
|
|
27671
|
+
* Optimistic target selected from the preview. The server rejects a stale
|
|
27672
|
+
* target if the catalog changes between preview and apply.
|
|
27673
|
+
*/
|
|
27674
|
+
target_version: string;
|
|
27675
|
+
};
|
|
27676
|
+
export type UpdateServiceTemplateRuntimeData = {
|
|
27677
|
+
body: UpdateServiceTemplateRuntimeRequest;
|
|
27678
|
+
path: {
|
|
27679
|
+
/**
|
|
27680
|
+
* Project ID
|
|
27681
|
+
*/
|
|
27682
|
+
project_id: number;
|
|
27683
|
+
};
|
|
27684
|
+
query?: never;
|
|
27685
|
+
url: '/projects/{project_id}/service-runtime';
|
|
27686
|
+
};
|
|
27687
|
+
export type UpdateServiceTemplateRuntimeErrors = {
|
|
27688
|
+
/**
|
|
27689
|
+
* Invalid service runtime
|
|
27690
|
+
*/
|
|
27691
|
+
400: unknown;
|
|
27692
|
+
/**
|
|
27693
|
+
* Unauthorized
|
|
27694
|
+
*/
|
|
27695
|
+
401: unknown;
|
|
27696
|
+
/**
|
|
27697
|
+
* Forbidden
|
|
27698
|
+
*/
|
|
27699
|
+
403: unknown;
|
|
27700
|
+
/**
|
|
27701
|
+
* Project not found
|
|
27702
|
+
*/
|
|
27703
|
+
404: unknown;
|
|
27704
|
+
/**
|
|
27705
|
+
* Internal server error
|
|
27706
|
+
*/
|
|
27707
|
+
500: unknown;
|
|
27708
|
+
};
|
|
27709
|
+
export type UpdateServiceTemplateRuntimeResponses = {
|
|
27710
|
+
/**
|
|
27711
|
+
* Service runtime updated successfully
|
|
27712
|
+
*/
|
|
27713
|
+
200: ProjectResponse;
|
|
27714
|
+
};
|
|
27715
|
+
export type UpdateServiceTemplateRuntimeResponse = UpdateServiceTemplateRuntimeResponses[keyof UpdateServiceTemplateRuntimeResponses];
|
|
27716
|
+
export type GetProjectServiceTemplateData = {
|
|
27717
|
+
body?: never;
|
|
27718
|
+
path: {
|
|
27719
|
+
/**
|
|
27720
|
+
* Project ID
|
|
27721
|
+
*/
|
|
27722
|
+
project_id: number;
|
|
27723
|
+
};
|
|
27724
|
+
query?: never;
|
|
27725
|
+
url: '/projects/{project_id}/service-template';
|
|
27726
|
+
};
|
|
27727
|
+
export type GetProjectServiceTemplateErrors = {
|
|
27728
|
+
/**
|
|
27729
|
+
* Project is not a service
|
|
27730
|
+
*/
|
|
27731
|
+
400: unknown;
|
|
27732
|
+
/**
|
|
27733
|
+
* Unauthorized
|
|
27734
|
+
*/
|
|
27735
|
+
401: unknown;
|
|
27736
|
+
/**
|
|
27737
|
+
* Forbidden
|
|
27738
|
+
*/
|
|
27739
|
+
403: unknown;
|
|
27740
|
+
/**
|
|
27741
|
+
* Project not found
|
|
27742
|
+
*/
|
|
27743
|
+
404: unknown;
|
|
27744
|
+
};
|
|
27745
|
+
export type GetProjectServiceTemplateResponses = {
|
|
27746
|
+
/**
|
|
27747
|
+
* Applied service release and upgrade preview
|
|
27748
|
+
*/
|
|
27749
|
+
200: ServiceTemplateInstanceResponse;
|
|
27750
|
+
};
|
|
27751
|
+
export type GetProjectServiceTemplateResponse = GetProjectServiceTemplateResponses[keyof GetProjectServiceTemplateResponses];
|
|
27752
|
+
export type UpgradeProjectServiceTemplateData = {
|
|
27753
|
+
body: UpgradeServiceTemplateRequest;
|
|
27754
|
+
path: {
|
|
27755
|
+
/**
|
|
27756
|
+
* Project ID
|
|
27757
|
+
*/
|
|
27758
|
+
project_id: number;
|
|
27759
|
+
};
|
|
27760
|
+
query?: never;
|
|
27761
|
+
url: '/projects/{project_id}/service-template/upgrade';
|
|
27762
|
+
};
|
|
27763
|
+
export type UpgradeProjectServiceTemplateErrors = {
|
|
27764
|
+
/**
|
|
27765
|
+
* Invalid or stale upgrade
|
|
27766
|
+
*/
|
|
27767
|
+
400: unknown;
|
|
27768
|
+
/**
|
|
27769
|
+
* Unauthorized
|
|
27770
|
+
*/
|
|
27771
|
+
401: unknown;
|
|
27772
|
+
/**
|
|
27773
|
+
* Forbidden
|
|
27774
|
+
*/
|
|
27775
|
+
403: unknown;
|
|
27776
|
+
/**
|
|
27777
|
+
* Project or template not found
|
|
27778
|
+
*/
|
|
27779
|
+
404: unknown;
|
|
27780
|
+
};
|
|
27781
|
+
export type UpgradeProjectServiceTemplateResponses = {
|
|
27782
|
+
/**
|
|
27783
|
+
* Service template upgraded
|
|
27784
|
+
*/
|
|
27785
|
+
200: ProjectResponse;
|
|
27786
|
+
};
|
|
27787
|
+
export type UpgradeProjectServiceTemplateResponse = UpgradeProjectServiceTemplateResponses[keyof UpgradeProjectServiceTemplateResponses];
|
|
27788
|
+
export type GitRef = {
|
|
27789
|
+
/**
|
|
27790
|
+
* Path within the repository (for monorepos)
|
|
27791
|
+
* Also accepts "subfolder" as an alias in YAML/JSON
|
|
27792
|
+
*/
|
|
27793
|
+
path?: string | null;
|
|
27794
|
+
/**
|
|
27795
|
+
* Git reference (branch, tag, or commit)
|
|
27796
|
+
*/
|
|
27797
|
+
ref?: string;
|
|
27798
|
+
/**
|
|
27799
|
+
* Git repository URL (e.g., "https://github.com/owner/repo.git" or "https://gitlab.com/owner/repo.git")
|
|
27800
|
+
*/
|
|
27801
|
+
url: string;
|
|
27802
|
+
};
|