@temps-sdk/api 0.1.0-beta.1 → 0.1.0-beta.64

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/sdk.gen.js CHANGED
@@ -447,6 +447,14 @@ export const deleteOidcProvider = (options) => (options.client ?? client).delete
447
447
  url: "/admin/oidc/providers/{provider_id}",
448
448
  ...options,
449
449
  });
450
+ /**
451
+ * One OIDC provider, as listed; the client secret is masked.
452
+ */
453
+ export const getOidcProvider = (options) => (options.client ?? client).get({
454
+ security: [{ scheme: "bearer", type: "http" }],
455
+ url: "/admin/oidc/providers/{provider_id}",
456
+ ...options,
457
+ });
450
458
  export const updateOidcProvider = (options) => (options.client ?? client).patch({
451
459
  security: [{ scheme: "bearer", type: "http" }],
452
460
  url: "/admin/oidc/providers/{provider_id}",
@@ -848,7 +856,7 @@ export const rejectBlueprintVersion = (options) => (options.client ?? client).po
848
856
  /**
849
857
  * Start a chat with the Temps assistant.
850
858
  *
851
- * The assistant runs on the AI gateway (an OpenRouter key is enough), has no
859
+ * The assistant runs on the AI gateway (one provider key is enough), has no
852
860
  * sandbox, and acts with the calling user's own permissions: every tool call
853
861
  * is replayed through the real router with their auth, and every change is a
854
862
  * proposal the user confirms in the UI. When no provider is configured this
@@ -4201,9 +4209,6 @@ export const promoteClusterMember = (options) => (options.client ?? client).post
4201
4209
  });
4202
4210
  /**
4203
4211
  * Fetch a time-series range for a single metric on an external service.
4204
- *
4205
- * Pass `percentile` to compute a histogram quantile instead of a plain
4206
- * gauge/counter average.
4207
4212
  */
4208
4213
  export const externalServiceMetricsGetRange = (options) => (options.client ?? client).get({
4209
4214
  security: [{ scheme: "bearer", type: "http" }],
@@ -4351,6 +4356,18 @@ export const linkServiceToProject = (options) => (options.client ?? client).post
4351
4356
  * Unlink service from project
4352
4357
  */
4353
4358
  export const unlinkServiceFromProject = (options) => (options.client ?? client).delete({ url: "/external-services/{id}/projects/{project_id}", ...options });
4359
+ /**
4360
+ * Change the database a project's apps read from a service
4361
+ */
4362
+ export const updateLinkDatabase = (options) => (options.client ?? client).put({
4363
+ security: [{ scheme: "bearer", type: "http" }],
4364
+ url: "/external-services/{id}/projects/{project_id}/database",
4365
+ ...options,
4366
+ headers: {
4367
+ "Content-Type": "application/json",
4368
+ ...options.headers,
4369
+ },
4370
+ });
4354
4371
  /**
4355
4372
  * Get all environment variables for a service-project pair
4356
4373
  *
@@ -4445,6 +4462,19 @@ export const listRestoreRunsForService = (options) => (options.client ?? client)
4445
4462
  url: "/external-services/{id}/restore-runs",
4446
4463
  ...options,
4447
4464
  });
4465
+ /**
4466
+ * What the latest restore of a PostgreSQL service brought back
4467
+ *
4468
+ * The databases and login roles the restore recorded, each restored database
4469
+ * with the linked projects that read it, and each linked database the backup
4470
+ * does not have while restored data sits unused, with a restored database the
4471
+ * link could read instead.
4472
+ */
4473
+ export const getRestoredDatabases = (options) => (options.client ?? client).get({
4474
+ security: [{ scheme: "bearer", type: "http" }],
4475
+ url: "/external-services/{id}/restored-databases",
4476
+ ...options,
4477
+ });
4448
4478
  /**
4449
4479
  * Retry a failed cluster service initialization.
4450
4480
  *
@@ -5147,8 +5177,12 @@ export const getProviderConnections = (options) => (options.client ?? client).ge
5147
5177
  });
5148
5178
  /**
5149
5179
  * Partially update credentials for an existing git provider. Only the fields
5150
- * you send are replaced; omitted fields keep their stored values. Fields that
5151
- * don't apply to the provider's auth method are ignored on the service side.
5180
+ * you send are replaced; omitted fields keep their stored values. Basic-auth
5181
+ * providers rotate `username`/`password`, SSH-key providers `private_key` and
5182
+ * `public_key` together; both refuse fields of another auth method. For the
5183
+ * other auth methods, fields that don't apply are ignored. A new token or
5184
+ * password is also written to the provider's connections. The response names
5185
+ * the replaced fields, never their values.
5152
5186
  */
5153
5187
  export const updateGitProviderCredentials = (options) => (options.client ?? client).patch({
5154
5188
  security: [{ scheme: "bearer", type: "http" }],
@@ -5206,6 +5240,15 @@ export const deleteProviderSafely = (options) => (options.client ?? client).dele
5206
5240
  * Get information about a public repository (supports GitHub and GitLab)
5207
5241
  */
5208
5242
  export const getPublicRepository = (options) => (options.client ?? client).get({ url: "/git/public/{provider}/{owner}/{repo}", ...options });
5243
+ /**
5244
+ * Look up one branch of a public repository by exact name
5245
+ *
5246
+ * Reads the branch by name (after the visibility check every public route
5247
+ * makes), so it is exact for repositories with more branches than
5248
+ * `.../branches` returns. A 404 here is the only sound basis for telling a
5249
+ * user a branch does not exist.
5250
+ */
5251
+ export const getPublicBranch = (options) => (options.client ?? client).get({ url: "/git/public/{provider}/{owner}/{repo}/branch", ...options });
5209
5252
  /**
5210
5253
  * Get branches for a public repository (supports GitHub and GitLab)
5211
5254
  */
@@ -5836,6 +5879,16 @@ export const adminGetNode = (options) => (options.client ?? client).get({
5836
5879
  url: "/internal/nodes/{node_id}",
5837
5880
  ...options,
5838
5881
  });
5882
+ /**
5883
+ * Read a worker node's effective build limits, and whether they are the
5884
+ * defaults. The control plane (node 0) has no per-node build limits and is
5885
+ * answered with a 400 that says so.
5886
+ */
5887
+ export const adminGetNodeBuildLimits = (options) => (options.client ?? client).get({
5888
+ security: [{ scheme: "bearer", type: "http" }],
5889
+ url: "/internal/nodes/{node_id}/build-limits",
5890
+ ...options,
5891
+ });
5839
5892
  export const adminSetNodeBuildLimits = (options) => (options.client ?? client).put({
5840
5893
  security: [{ scheme: "bearer", type: "http" }],
5841
5894
  url: "/internal/nodes/{node_id}/build-limits",
@@ -6581,6 +6634,21 @@ export const nodeSshHostKey = (options) => (options.client ?? client).post({
6581
6634
  ...options.headers,
6582
6635
  },
6583
6636
  });
6637
+ /**
6638
+ * Turn the cluster's WireGuard mesh off (idempotent: an off mesh answers
6639
+ * with its status). Refused with 409 and the reason while anything depends
6640
+ * on it: nodes on the mesh, pairings in progress, or the control plane's
6641
+ * overlay running on its mesh address (`can_disable` / `disable_blocker` in
6642
+ * `GET /nodes/wireguard` say so in advance). This changes the cluster
6643
+ * setting: new joins and pairings over the mesh are refused and the control
6644
+ * plane stops tending its end; the control plane's kernel interface is left
6645
+ * in place until the host removes it or Temps restarts.
6646
+ */
6647
+ export const wireguardMeshDisable = (options) => (options?.client ?? client).delete({
6648
+ security: [{ scheme: "bearer", type: "http" }],
6649
+ url: "/nodes/wireguard",
6650
+ ...options,
6651
+ });
6584
6652
  /**
6585
6653
  * Mesh state, per-node connection and join onboarding for the Worker Nodes
6586
6654
  * page.
@@ -6592,8 +6660,8 @@ export const wireguardMeshStatusGet = (options) => (options?.client ?? client).g
6592
6660
  });
6593
6661
  /**
6594
6662
  * Turn on the cluster's WireGuard mesh (idempotent). The running control
6595
- * plane brings its end up within a minute and nodes follow; it cannot be
6596
- * turned off again from the API.
6663
+ * plane brings its end up within a minute and nodes follow.
6664
+ * `DELETE /nodes/wireguard` turns it off while nothing depends on it.
6597
6665
  */
6598
6666
  export const wireguardMeshEnable = (options) => (options.client ?? client).post({
6599
6667
  security: [{ scheme: "bearer", type: "http" }],
@@ -6667,6 +6735,14 @@ export const nodeMetricsDeleteAlertRule = (options) => (options.client ?? client
6667
6735
  url: "/nodes/{id}/metrics/alert-rules/{rule_id}",
6668
6736
  ...options,
6669
6737
  });
6738
+ /**
6739
+ * One monitoring alert rule of a node, as listed.
6740
+ */
6741
+ export const nodeMetricsGetAlertRule = (options) => (options.client ?? client).get({
6742
+ security: [{ scheme: "bearer", type: "http" }],
6743
+ url: "/nodes/{id}/metrics/alert-rules/{rule_id}",
6744
+ ...options,
6745
+ });
6670
6746
  /**
6671
6747
  * Update a node-scoped monitoring alert rule.
6672
6748
  *
@@ -7860,6 +7936,15 @@ export const deleteGroupEnvVar = (options) => (options.client ?? client).delete(
7860
7936
  url: "/project-groups/{group_id}/env-vars/{var_id}",
7861
7937
  ...options,
7862
7938
  });
7939
+ /**
7940
+ * One variable every project in the group inherits, as listed: a plain
7941
+ * value is masked and a secret's value is never returned.
7942
+ */
7943
+ export const getGroupEnvVar = (options) => (options.client ?? client).get({
7944
+ security: [{ scheme: "bearer", type: "http" }],
7945
+ url: "/project-groups/{group_id}/env-vars/{var_id}",
7946
+ ...options,
7947
+ });
7863
7948
  export const updateGroupEnvVar = (options) => (options.client ?? client).patch({
7864
7949
  security: [{ scheme: "bearer", type: "http" }],
7865
7950
  url: "/project-groups/{group_id}/env-vars/{var_id}",
@@ -8790,6 +8875,17 @@ export const createAnalyticsIngestKey = (options) => (options.client ?? client).
8790
8875
  ...options.headers,
8791
8876
  },
8792
8877
  });
8878
+ /**
8879
+ * One of a project's analytics ingest keys, active or revoked.
8880
+ *
8881
+ * The same shape as in the list; `public_key` is not a secret and is
8882
+ * returned unmasked, see [`create_analytics_ingest_key`].
8883
+ */
8884
+ export const getAnalyticsIngestKey = (options) => (options.client ?? client).get({
8885
+ security: [{ scheme: "bearer", type: "http" }],
8886
+ url: "/projects/{project_id}/analytics/ingest-keys/{key_id}",
8887
+ ...options,
8888
+ });
8793
8889
  /**
8794
8890
  * Update an ingest key's label, origin allowlist, or rate limit.
8795
8891
  *
@@ -9711,11 +9807,16 @@ export const updateEdgeRule = (options) => (options.client ?? client).patch({
9711
9807
  /**
9712
9808
  * Get environment variables for a project, optionally filtered by environment
9713
9809
  */
9714
- export const getEnvironmentVariables = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/env-vars", ...options });
9810
+ export const getEnvironmentVariables = (options) => (options.client ?? client).get({
9811
+ security: [{ scheme: "bearer", type: "http" }],
9812
+ url: "/projects/{project_id}/env-vars",
9813
+ ...options,
9814
+ });
9715
9815
  /**
9716
9816
  * Create a new environment variable
9717
9817
  */
9718
9818
  export const createEnvironmentVariable = (options) => (options.client ?? client).post({
9819
+ security: [{ scheme: "bearer", type: "http" }],
9719
9820
  url: "/projects/{project_id}/env-vars",
9720
9821
  ...options,
9721
9822
  headers: {
@@ -9736,7 +9837,11 @@ export const createEnvironmentVariable = (options) => (options.client ?? client)
9736
9837
  * endpoint for regular plaintext values (audit-logged). Marked secrets
9737
9838
  * cannot be revealed.
9738
9839
  */
9739
- export const getResolvedEnvironmentVariables = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/env-vars/resolved", ...options });
9840
+ export const getResolvedEnvironmentVariables = (options) => (options.client ?? client).get({
9841
+ security: [{ scheme: "bearer", type: "http" }],
9842
+ url: "/projects/{project_id}/env-vars/resolved",
9843
+ ...options,
9844
+ });
9740
9845
  /**
9741
9846
  * Reveal the plaintext value of a resolved environment variable.
9742
9847
  *
@@ -9753,6 +9858,7 @@ export const getResolvedEnvironmentVariables = (options) => (options.client ?? c
9753
9858
  * manual var nor an integration produces the key.
9754
9859
  */
9755
9860
  export const getResolvedEnvironmentVariableValue = (options) => (options.client ?? client).get({
9861
+ security: [{ scheme: "bearer", type: "http" }],
9756
9862
  url: "/projects/{project_id}/env-vars/resolved/{key}/value",
9757
9863
  ...options,
9758
9864
  });
@@ -9769,11 +9875,19 @@ export const listVariableHistory = (options) => (options.client ?? client).get({
9769
9875
  /**
9770
9876
  * Get a regular environment variable value by key. Marked secrets return 403.
9771
9877
  */
9772
- export const getEnvironmentVariableValue = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/env-vars/{key}/value", ...options });
9878
+ export const getEnvironmentVariableValue = (options) => (options.client ?? client).get({
9879
+ security: [{ scheme: "bearer", type: "http" }],
9880
+ url: "/projects/{project_id}/env-vars/{key}/value",
9881
+ ...options,
9882
+ });
9773
9883
  /**
9774
9884
  * Delete an environment variable
9775
9885
  */
9776
- export const deleteEnvironmentVariable = (options) => (options.client ?? client).delete({ url: "/projects/{project_id}/env-vars/{var_id}", ...options });
9886
+ export const deleteEnvironmentVariable = (options) => (options.client ?? client).delete({
9887
+ security: [{ scheme: "bearer", type: "http" }],
9888
+ url: "/projects/{project_id}/env-vars/{var_id}",
9889
+ ...options,
9890
+ });
9777
9891
  /**
9778
9892
  * Get one environment variable of a project by its ID
9779
9893
  *
@@ -9791,6 +9905,7 @@ export const getEnvironmentVariable = (options) => (options.client ?? client).ge
9791
9905
  * Update an environment variable
9792
9906
  */
9793
9907
  export const updateEnvironmentVariable = (options) => (options.client ?? client).put({
9908
+ security: [{ scheme: "bearer", type: "http" }],
9794
9909
  url: "/projects/{project_id}/env-vars/{var_id}",
9795
9910
  ...options,
9796
9911
  headers: {
@@ -9812,11 +9927,16 @@ export const dismissEnvironmentVariableSecretSuggestion = (options) => (options.
9812
9927
  /**
9813
9928
  * Get all environments for a project
9814
9929
  */
9815
- export const getEnvironments = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/environments", ...options });
9930
+ export const getEnvironments = (options) => (options.client ?? client).get({
9931
+ security: [{ scheme: "bearer", type: "http" }],
9932
+ url: "/projects/{project_id}/environments",
9933
+ ...options,
9934
+ });
9816
9935
  /**
9817
9936
  * Create a new environment for a project
9818
9937
  */
9819
9938
  export const createEnvironment = (options) => (options.client ?? client).post({
9939
+ security: [{ scheme: "bearer", type: "http" }],
9820
9940
  url: "/projects/{project_id}/environments",
9821
9941
  ...options,
9822
9942
  headers: {
@@ -9833,11 +9953,19 @@ export const createEnvironment = (options) => (options.client ?? client).post({
9833
9953
  * Warning: This action is permanent and cannot be undone.
9834
9954
  * Active deployments are automatically cancelled before deletion.
9835
9955
  */
9836
- export const deleteEnvironment = (options) => (options.client ?? client).delete({ url: "/projects/{project_id}/environments/{env_id}", ...options });
9956
+ export const deleteEnvironment = (options) => (options.client ?? client).delete({
9957
+ security: [{ scheme: "bearer", type: "http" }],
9958
+ url: "/projects/{project_id}/environments/{env_id}",
9959
+ ...options,
9960
+ });
9837
9961
  /**
9838
9962
  * Get a specific environment by ID or slug
9839
9963
  */
9840
- export const getEnvironment = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/environments/{env_id}", ...options });
9964
+ export const getEnvironment = (options) => (options.client ?? client).get({
9965
+ security: [{ scheme: "bearer", type: "http" }],
9966
+ url: "/projects/{project_id}/environments/{env_id}",
9967
+ ...options,
9968
+ });
9841
9969
  export const getEnvironmentCrons = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/environments/{env_id}/crons", ...options });
9842
9970
  export const getCronById = (options) => (options.client ?? client).get({
9843
9971
  url: "/projects/{project_id}/environments/{env_id}/crons/{cron_id}",
@@ -9851,6 +9979,7 @@ export const getCronExecutions = (options) => (options.client ?? client).get({
9851
9979
  * Get all environment domains for a specific environment
9852
9980
  */
9853
9981
  export const getEnvironmentDomains = (options) => (options.client ?? client).get({
9982
+ security: [{ scheme: "bearer", type: "http" }],
9854
9983
  url: "/projects/{project_id}/environments/{env_id}/domains",
9855
9984
  ...options,
9856
9985
  });
@@ -9858,6 +9987,7 @@ export const getEnvironmentDomains = (options) => (options.client ?? client).get
9858
9987
  * Add a new environment domain
9859
9988
  */
9860
9989
  export const addEnvironmentDomain = (options) => (options.client ?? client).post({
9990
+ security: [{ scheme: "bearer", type: "http" }],
9861
9991
  url: "/projects/{project_id}/environments/{env_id}/domains",
9862
9992
  ...options,
9863
9993
  headers: {
@@ -9869,6 +9999,7 @@ export const addEnvironmentDomain = (options) => (options.client ?? client).post
9869
9999
  * Delete an environment domain
9870
10000
  */
9871
10001
  export const deleteEnvironmentDomain = (options) => (options.client ?? client).delete({
10002
+ security: [{ scheme: "bearer", type: "http" }],
9872
10003
  url: "/projects/{project_id}/environments/{env_id}/domains/{domain_id}",
9873
10004
  ...options,
9874
10005
  });
@@ -9887,6 +10018,7 @@ export const updateIngressSettings = (options) => (options.client ?? client).put
9887
10018
  },
9888
10019
  });
9889
10020
  export const updateEnvironmentSettings = (options) => (options.client ?? client).put({
10021
+ security: [{ scheme: "bearer", type: "http" }],
9890
10022
  url: "/projects/{project_id}/environments/{env_id}/settings",
9891
10023
  ...options,
9892
10024
  headers: {
@@ -9900,7 +10032,11 @@ export const updateEnvironmentSettings = (options) => (options.client ?? client)
9900
10032
  * Manually put an on-demand environment to sleep. Stops containers and sets
9901
10033
  * `sleeping = true`. If no OnDemandWaker is available, falls back to DB flag only.
9902
10034
  */
9903
- export const sleepEnvironment = (options) => (options.client ?? client).post({ url: "/projects/{project_id}/environments/{env_id}/sleep", ...options });
10035
+ export const sleepEnvironment = (options) => (options.client ?? client).post({
10036
+ security: [{ scheme: "bearer", type: "http" }],
10037
+ url: "/projects/{project_id}/environments/{env_id}/sleep",
10038
+ ...options,
10039
+ });
9904
10040
  /**
9905
10041
  * Rename the auto-managed subdomain for an environment.
9906
10042
  *
@@ -9909,6 +10045,7 @@ export const sleepEnvironment = (options) => (options.client ?? client).post({ u
9909
10045
  * Custom domains attached to the environment are unaffected.
9910
10046
  */
9911
10047
  export const updateEnvironmentSubdomain = (options) => (options.client ?? client).patch({
10048
+ security: [{ scheme: "bearer", type: "http" }],
9912
10049
  url: "/projects/{project_id}/environments/{env_id}/subdomain",
9913
10050
  ...options,
9914
10051
  headers: {
@@ -9931,7 +10068,11 @@ export const teardownEnvironment = (options) => (options.client ?? client).delet
9931
10068
  * `sleeping = false`. If no OnDemandWaker is available (proxy not running
9932
10069
  * in same process), falls back to setting the DB flag only.
9933
10070
  */
9934
- export const wakeEnvironment = (options) => (options.client ?? client).post({ url: "/projects/{project_id}/environments/{env_id}/wake", ...options });
10071
+ export const wakeEnvironment = (options) => (options.client ?? client).post({
10072
+ security: [{ scheme: "bearer", type: "http" }],
10073
+ url: "/projects/{project_id}/environments/{env_id}/wake",
10074
+ ...options,
10075
+ });
9935
10076
  /**
9936
10077
  * Purge cached static assets for a specific environment.
9937
10078
  */
@@ -10364,7 +10505,8 @@ export const getShieldSummary = (options) => (options.client ?? client).get({
10364
10505
  * List bypass tokens for an environment
10365
10506
  *
10366
10507
  * The active tokens valid here: the environment's own and the project-wide
10367
- * ones. Secrets are never returned.
10508
+ * ones. Secrets are never returned. Not paginated: bounded by design, a
10509
+ * project holds at most 100 active tokens (minting more answers 409).
10368
10510
  */
10369
10511
  export const listShieldTokens = (options) => (options.client ?? client).get({
10370
10512
  security: [{ scheme: "bearer", type: "http" }],
@@ -10889,6 +11031,14 @@ export const deleteErrorInboundFilter = (options) => (options.client ?? client).
10889
11031
  url: "/projects/{project_id}/error-inbound-filters/{filter_id}",
10890
11032
  ...options,
10891
11033
  });
11034
+ /**
11035
+ * Get one inbound filter and how many events it dropped.
11036
+ */
11037
+ export const getErrorInboundFilter = (options) => (options.client ?? client).get({
11038
+ security: [{ scheme: "bearer", type: "http" }],
11039
+ url: "/projects/{project_id}/error-inbound-filters/{filter_id}",
11040
+ ...options,
11041
+ });
10892
11042
  /**
10893
11043
  * Change an inbound filter's pattern or switch it on or off.
10894
11044
  */
@@ -11213,7 +11363,7 @@ export const restoreFlag = (options) => (options.client ?? client).post({
11213
11363
  ...options,
11214
11364
  });
11215
11365
  /**
11216
- * List all funnels for a project
11366
+ * List a project's active funnels, newest first, with their steps
11217
11367
  */
11218
11368
  export const listFunnels = (options) => (options.client ?? client).get({
11219
11369
  security: [{ scheme: "bearer", type: "http" }],
@@ -11259,8 +11409,18 @@ export const deleteFunnel = (options) => (options.client ?? client).delete({
11259
11409
  url: "/projects/{project_id}/funnels/{funnel_id}",
11260
11410
  ...options,
11261
11411
  });
11412
+ /**
11413
+ * Get one funnel with its steps
11414
+ */
11415
+ export const getFunnel = (options) => (options.client ?? client).get({
11416
+ security: [{ scheme: "bearer", type: "http" }],
11417
+ url: "/projects/{project_id}/funnels/{funnel_id}",
11418
+ ...options,
11419
+ });
11262
11420
  /**
11263
11421
  * Update a funnel
11422
+ *
11423
+ * Replaces the funnel's name, description and steps.
11264
11424
  */
11265
11425
  export const updateFunnel = (options) => (options.client ?? client).put({
11266
11426
  security: [{ scheme: "bearer", type: "http" }],
@@ -11382,6 +11542,11 @@ export const deleteHttpCheck = (options) => (options.client ?? client).delete({
11382
11542
  url: "/projects/{project_id}/http-checks/{check_id}",
11383
11543
  ...options,
11384
11544
  });
11545
+ export const getHttpCheck = (options) => (options.client ?? client).get({
11546
+ security: [{ scheme: "bearer", type: "http" }],
11547
+ url: "/projects/{project_id}/http-checks/{check_id}",
11548
+ ...options,
11549
+ });
11385
11550
  export const setHttpCheckEnabled = (options) => (options.client ?? client).patch({
11386
11551
  security: [{ scheme: "bearer", type: "http" }],
11387
11552
  url: "/projects/{project_id}/http-checks/{check_id}",
@@ -11736,7 +11901,22 @@ export const getMcp = (options) => (options.client ?? client).get({
11736
11901
  url: "/projects/{project_id}/mcp-servers/{slug}",
11737
11902
  ...options,
11738
11903
  });
11739
- export const updateMcp = (options) => (options.client ?? client).put({
11904
+ export const updateMcp = (options) => (options.client ?? client).patch({
11905
+ security: [{ scheme: "bearer", type: "http" }],
11906
+ url: "/projects/{project_id}/mcp-servers/{slug}",
11907
+ ...options,
11908
+ headers: {
11909
+ "Content-Type": "application/json",
11910
+ ...options.headers,
11911
+ },
11912
+ });
11913
+ /**
11914
+ * Deprecated alias of `PATCH /projects/{project_id}/mcp-servers/{slug}`: a partial update, where omitted
11915
+ * or `null` fields keep their current value.
11916
+ *
11917
+ * @deprecated
11918
+ */
11919
+ export const updateMcpPut = (options) => (options.client ?? client).put({
11740
11920
  security: [{ scheme: "bearer", type: "http" }],
11741
11921
  url: "/projects/{project_id}/mcp-servers/{slug}",
11742
11922
  ...options,
@@ -12123,15 +12303,20 @@ export const revokeSandboxService = (options) => (options.client ?? client).post
12123
12303
  },
12124
12304
  });
12125
12305
  /**
12126
- * List project secrets (metadata only — values never returned).
12306
+ * List project secrets (metadata only — values never returned), newest first.
12127
12307
  */
12128
- export const listProjectSecrets = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/secrets", ...options });
12308
+ export const listProjectSecrets = (options) => (options.client ?? client).get({
12309
+ security: [{ scheme: "bearer", type: "http" }],
12310
+ url: "/projects/{project_id}/secrets",
12311
+ ...options,
12312
+ });
12129
12313
  /**
12130
12314
  * Create a new secret. The value is encrypted before storage and will be
12131
12315
  * mounted as a file at `/run/secrets/<KEY>` on the next deployment.
12132
12316
  * The plaintext value is NOT returned — the response carries only metadata.
12133
12317
  */
12134
12318
  export const createProjectSecret = (options) => (options.client ?? client).post({
12319
+ security: [{ scheme: "bearer", type: "http" }],
12135
12320
  url: "/projects/{project_id}/secrets",
12136
12321
  ...options,
12137
12322
  headers: {
@@ -12143,13 +12328,28 @@ export const createProjectSecret = (options) => (options.client ?? client).post(
12143
12328
  * Delete a project secret. Running containers keep their mounted secret files
12144
12329
  * until they are redeployed.
12145
12330
  */
12146
- export const deleteProjectSecret = (options) => (options.client ?? client).delete({ url: "/projects/{project_id}/secrets/{secret_id}", ...options });
12331
+ export const deleteProjectSecret = (options) => (options.client ?? client).delete({
12332
+ security: [{ scheme: "bearer", type: "http" }],
12333
+ url: "/projects/{project_id}/secrets/{secret_id}",
12334
+ ...options,
12335
+ });
12336
+ /**
12337
+ * Get one project secret (metadata only — the value is never returned).
12338
+ */
12339
+ export const getProjectSecret = (options) => (options.client ?? client).get({
12340
+ security: [{ scheme: "bearer", type: "http" }],
12341
+ url: "/projects/{project_id}/secrets/{secret_id}",
12342
+ ...options,
12343
+ });
12147
12344
  /**
12148
- * Update a project secret. Value rotation requires a redeploy to take effect —
12149
- * running containers keep their currently-mounted values until the next
12150
- * deployment.
12345
+ * Update a project secret. Only the fields in the body change: a field left
12346
+ * out keeps its stored value, so rotating the value alone keeps the secret's
12347
+ * environments, preview flag and compose services. Value rotation requires a
12348
+ * redeploy to take effect — running containers keep their currently-mounted
12349
+ * values until the next deployment.
12151
12350
  */
12152
12351
  export const updateProjectSecret = (options) => (options.client ?? client).put({
12352
+ security: [{ scheme: "bearer", type: "http" }],
12153
12353
  url: "/projects/{project_id}/secrets/{secret_id}",
12154
12354
  ...options,
12155
12355
  headers: {
@@ -12215,7 +12415,8 @@ export const updateProjectSettings = (options) => (options.client ?? client).pos
12215
12415
  * List a project's Shield entries
12216
12416
  *
12217
12417
  * Address ranges and fingerprints this project allows, logs, challenges or
12218
- * blocks, whatever the lists say.
12418
+ * blocks, whatever the lists say. Not paginated: bounded by design, a project
12419
+ * holds at most 500 entries (creating more answers 409), all returned here.
12219
12420
  */
12220
12421
  export const listProjectShieldEntries = (options) => (options.client ?? client).get({
12221
12422
  security: [{ scheme: "bearer", type: "http" }],
@@ -12245,6 +12446,14 @@ export const deleteProjectShieldEntry = (options) => (options.client ?? client).
12245
12446
  url: "/projects/{project_id}/shield/entries/{entry_id}",
12246
12447
  ...options,
12247
12448
  });
12449
+ /**
12450
+ * Get one of a project's Shield entries
12451
+ */
12452
+ export const getProjectShieldEntry = (options) => (options.client ?? client).get({
12453
+ security: [{ scheme: "bearer", type: "http" }],
12454
+ url: "/projects/{project_id}/shield/entries/{entry_id}",
12455
+ ...options,
12456
+ });
12248
12457
  /**
12249
12458
  * Change a project's Shield entry
12250
12459
  */
@@ -12294,7 +12503,22 @@ export const getSkill = (options) => (options.client ?? client).get({
12294
12503
  url: "/projects/{project_id}/skills/{slug}",
12295
12504
  ...options,
12296
12505
  });
12297
- export const updateSkill = (options) => (options.client ?? client).put({
12506
+ export const updateSkill = (options) => (options.client ?? client).patch({
12507
+ security: [{ scheme: "bearer", type: "http" }],
12508
+ url: "/projects/{project_id}/skills/{slug}",
12509
+ ...options,
12510
+ headers: {
12511
+ "Content-Type": "application/json",
12512
+ ...options.headers,
12513
+ },
12514
+ });
12515
+ /**
12516
+ * Deprecated alias of `PATCH /projects/{project_id}/skills/{slug}`: a partial update, where omitted
12517
+ * or `null` fields keep their current value.
12518
+ *
12519
+ * @deprecated
12520
+ */
12521
+ export const updateSkillPut = (options) => (options.client ?? client).put({
12298
12522
  security: [{ scheme: "bearer", type: "http" }],
12299
12523
  url: "/projects/{project_id}/skills/{slug}",
12300
12524
  ...options,
@@ -12706,6 +12930,22 @@ export const getRepositoryPresetByName = (options) => (options.client ?? client)
12706
12930
  url: "/repositories/{owner}/{name}/preset",
12707
12931
  ...options,
12708
12932
  });
12933
+ /**
12934
+ * Look up one branch of a repository by exact name
12935
+ *
12936
+ * Reads the branch by name, so it is exact for repositories with more
12937
+ * branches than `GET repositories/{owner}/{repo}/branches` returns. A 404
12938
+ * is only returned once the repository itself has been read through the
12939
+ * same connection: a provider answers 404 for every branch of a private
12940
+ * repository the credential can no longer see, and that is reported as a
12941
+ * failed lookup, not a missing branch. A 404 here is the only sound basis
12942
+ * for telling a user a branch does not exist.
12943
+ */
12944
+ export const getRepositoryBranch = (options) => (options.client ?? client).get({
12945
+ security: [{ scheme: "bearer", type: "http" }],
12946
+ url: "/repositories/{owner}/{repo}/branch",
12947
+ ...options,
12948
+ });
12709
12949
  /**
12710
12950
  * Get repository branches
12711
12951
  */
@@ -13245,7 +13485,22 @@ export const getGlobalMcp = (options) => (options.client ?? client).get({
13245
13485
  url: "/settings/mcp-servers/{slug}",
13246
13486
  ...options,
13247
13487
  });
13248
- export const updateGlobalMcp = (options) => (options.client ?? client).put({
13488
+ export const updateGlobalMcp = (options) => (options.client ?? client).patch({
13489
+ security: [{ scheme: "bearer", type: "http" }],
13490
+ url: "/settings/mcp-servers/{slug}",
13491
+ ...options,
13492
+ headers: {
13493
+ "Content-Type": "application/json",
13494
+ ...options.headers,
13495
+ },
13496
+ });
13497
+ /**
13498
+ * Deprecated alias of `PATCH /settings/mcp-servers/{slug}`: a partial update, where omitted
13499
+ * or `null` fields keep their current value.
13500
+ *
13501
+ * @deprecated
13502
+ */
13503
+ export const updateGlobalMcpPut = (options) => (options.client ?? client).put({
13249
13504
  security: [{ scheme: "bearer", type: "http" }],
13250
13505
  url: "/settings/mcp-servers/{slug}",
13251
13506
  ...options,
@@ -13351,7 +13606,9 @@ export const updateShieldSettings = (options) => (options.client ?? client).put(
13351
13606
  /**
13352
13607
  * List platform Shield entries
13353
13608
  *
13354
- * Entries that apply to every project.
13609
+ * Entries that apply to every project. Not paginated: bounded by design, the
13610
+ * platform holds at most 500 entries (creating more answers 409), all
13611
+ * returned here.
13355
13612
  */
13356
13613
  export const listPlatformShieldEntries = (options) => (options?.client ?? client).get({
13357
13614
  security: [{ scheme: "bearer", type: "http" }],
@@ -13378,6 +13635,14 @@ export const deletePlatformShieldEntry = (options) => (options.client ?? client)
13378
13635
  url: "/settings/shield/entries/{entry_id}",
13379
13636
  ...options,
13380
13637
  });
13638
+ /**
13639
+ * Get one platform Shield entry
13640
+ */
13641
+ export const getPlatformShieldEntry = (options) => (options.client ?? client).get({
13642
+ security: [{ scheme: "bearer", type: "http" }],
13643
+ url: "/settings/shield/entries/{entry_id}",
13644
+ ...options,
13645
+ });
13381
13646
  /**
13382
13647
  * Change a platform Shield entry
13383
13648
  */
@@ -13460,7 +13725,22 @@ export const getGlobalSkill = (options) => (options.client ?? client).get({
13460
13725
  url: "/settings/skills/{slug}",
13461
13726
  ...options,
13462
13727
  });
13463
- export const updateGlobalSkill = (options) => (options.client ?? client).put({
13728
+ export const updateGlobalSkill = (options) => (options.client ?? client).patch({
13729
+ security: [{ scheme: "bearer", type: "http" }],
13730
+ url: "/settings/skills/{slug}",
13731
+ ...options,
13732
+ headers: {
13733
+ "Content-Type": "application/json",
13734
+ ...options.headers,
13735
+ },
13736
+ });
13737
+ /**
13738
+ * Deprecated alias of `PATCH /settings/skills/{slug}`: a partial update, where omitted
13739
+ * or `null` fields keep their current value.
13740
+ *
13741
+ * @deprecated
13742
+ */
13743
+ export const updateGlobalSkillPut = (options) => (options.client ?? client).put({
13464
13744
  security: [{ scheme: "bearer", type: "http" }],
13465
13745
  url: "/settings/skills/{slug}",
13466
13746
  ...options,
@@ -13847,7 +14127,7 @@ export const listStatusPageWebhooks = (options) => (options.client ?? client).ge
13847
14127
  * Each new public event of the page (an incident update or resolution, a
13848
14128
  * scheduled maintenance window) is posted to the URL as JSON, signed in
13849
14129
  * `X-Temps-Signature` with the secret returned here, once. The URL must be
13850
- * `https://` and resolve to a public address.
14130
+ * `https://` and resolve to a public address. `enabled` defaults to `true`.
13851
14131
  */
13852
14132
  export const createStatusPageWebhook = (options) => (options.client ?? client).post({
13853
14133
  security: [{ scheme: "bearer", type: "http" }],
@@ -13868,6 +14148,17 @@ export const deleteStatusPageWebhook = (options) => (options.client ?? client).d
13868
14148
  url: "/status-pages/{status_page_id}/webhooks/{webhook_id}",
13869
14149
  ...options,
13870
14150
  });
14151
+ /**
14152
+ * One webhook of a status page
14153
+ *
14154
+ * The same shape as in the list, with the outcome of its last delivery.
14155
+ * The signing secret is never returned again.
14156
+ */
14157
+ export const getStatusPageWebhook = (options) => (options.client ?? client).get({
14158
+ security: [{ scheme: "bearer", type: "http" }],
14159
+ url: "/status-pages/{status_page_id}/webhooks/{webhook_id}",
14160
+ ...options,
14161
+ });
13871
14162
  /**
13872
14163
  * Change a webhook's URL or switch it on or off
13873
14164
  */
@@ -14058,6 +14349,14 @@ export const removeTeamMember = (options) => (options.client ?? client).delete({
14058
14349
  url: "/teams/{team_id}/members/{user_id}",
14059
14350
  ...options,
14060
14351
  });
14352
+ /**
14353
+ * One member of a team, as listed.
14354
+ */
14355
+ export const getTeamMember = (options) => (options.client ?? client).get({
14356
+ security: [{ scheme: "bearer", type: "http" }],
14357
+ url: "/teams/{team_id}/members/{user_id}",
14358
+ ...options,
14359
+ });
14061
14360
  export const updateTeamMemberRole = (options) => (options.client ?? client).patch({
14062
14361
  security: [{ scheme: "bearer", type: "http" }],
14063
14362
  url: "/teams/{team_id}/members/{user_id}",
@@ -14285,6 +14584,15 @@ export const deleteUser = (options) => (options.client ?? client).delete({
14285
14584
  url: "/users/{user_id}",
14286
14585
  ...options,
14287
14586
  });
14587
+ /**
14588
+ * One user with their roles, as listed (deleted users included, with
14589
+ * `deleted_at` set).
14590
+ */
14591
+ export const getUser = (options) => (options.client ?? client).get({
14592
+ security: [{ scheme: "bearer", type: "http" }],
14593
+ url: "/users/{user_id}",
14594
+ ...options,
14595
+ });
14288
14596
  /**
14289
14597
  * Update user information (admin only)
14290
14598
  */