casedev 0.51.0 → 0.53.0

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +0 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +0 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +1 -3
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +0 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/vault/vault.d.mts +4 -2
  20. package/resources/vault/vault.d.mts.map +1 -1
  21. package/resources/vault/vault.d.ts +4 -2
  22. package/resources/vault/vault.d.ts.map +1 -1
  23. package/resources/vault/vault.js.map +1 -1
  24. package/resources/vault/vault.mjs.map +1 -1
  25. package/src/client.ts +0 -5
  26. package/src/resources/index.ts +0 -1
  27. package/src/resources/vault/vault.ts +4 -1
  28. package/src/version.ts +1 -1
  29. package/version.d.mts +1 -1
  30. package/version.d.ts +1 -1
  31. package/version.js +1 -1
  32. package/version.mjs +1 -1
  33. package/resources/applications/applications.d.mts +0 -10
  34. package/resources/applications/applications.d.mts.map +0 -1
  35. package/resources/applications/applications.d.ts +0 -10
  36. package/resources/applications/applications.d.ts.map +0 -1
  37. package/resources/applications/applications.js +0 -17
  38. package/resources/applications/applications.js.map +0 -1
  39. package/resources/applications/applications.mjs +0 -12
  40. package/resources/applications/applications.mjs.map +0 -1
  41. package/resources/applications/index.d.mts +0 -3
  42. package/resources/applications/index.d.mts.map +0 -1
  43. package/resources/applications/index.d.ts +0 -3
  44. package/resources/applications/index.d.ts.map +0 -1
  45. package/resources/applications/index.js +0 -9
  46. package/resources/applications/index.js.map +0 -1
  47. package/resources/applications/index.mjs +0 -4
  48. package/resources/applications/index.mjs.map +0 -1
  49. package/resources/applications/v1/deployments.d.mts +0 -118
  50. package/resources/applications/v1/deployments.d.mts.map +0 -1
  51. package/resources/applications/v1/deployments.d.ts +0 -118
  52. package/resources/applications/v1/deployments.d.ts.map +0 -1
  53. package/resources/applications/v1/deployments.js +0 -102
  54. package/resources/applications/v1/deployments.js.map +0 -1
  55. package/resources/applications/v1/deployments.mjs +0 -98
  56. package/resources/applications/v1/deployments.mjs.map +0 -1
  57. package/resources/applications/v1/index.d.mts +0 -5
  58. package/resources/applications/v1/index.d.mts.map +0 -1
  59. package/resources/applications/v1/index.d.ts +0 -5
  60. package/resources/applications/v1/index.d.ts.map +0 -1
  61. package/resources/applications/v1/index.js +0 -13
  62. package/resources/applications/v1/index.js.map +0 -1
  63. package/resources/applications/v1/index.mjs +0 -6
  64. package/resources/applications/v1/index.mjs.map +0 -1
  65. package/resources/applications/v1/projects.d.mts +0 -313
  66. package/resources/applications/v1/projects.d.mts.map +0 -1
  67. package/resources/applications/v1/projects.d.ts +0 -313
  68. package/resources/applications/v1/projects.d.ts.map +0 -1
  69. package/resources/applications/v1/projects.js +0 -148
  70. package/resources/applications/v1/projects.js.map +0 -1
  71. package/resources/applications/v1/projects.mjs +0 -144
  72. package/resources/applications/v1/projects.mjs.map +0 -1
  73. package/resources/applications/v1/v1.d.mts +0 -18
  74. package/resources/applications/v1/v1.d.mts.map +0 -1
  75. package/resources/applications/v1/v1.d.ts +0 -18
  76. package/resources/applications/v1/v1.d.ts.map +0 -1
  77. package/resources/applications/v1/v1.js +0 -25
  78. package/resources/applications/v1/v1.js.map +0 -1
  79. package/resources/applications/v1/v1.mjs +0 -20
  80. package/resources/applications/v1/v1.mjs.map +0 -1
  81. package/resources/applications/v1/workflows.d.mts +0 -22
  82. package/resources/applications/v1/workflows.d.mts.map +0 -1
  83. package/resources/applications/v1/workflows.d.ts +0 -22
  84. package/resources/applications/v1/workflows.d.ts.map +0 -1
  85. package/resources/applications/v1/workflows.js +0 -24
  86. package/resources/applications/v1/workflows.js.map +0 -1
  87. package/resources/applications/v1/workflows.mjs +0 -20
  88. package/resources/applications/v1/workflows.mjs.map +0 -1
  89. package/resources/applications/v1.d.mts +0 -2
  90. package/resources/applications/v1.d.mts.map +0 -1
  91. package/resources/applications/v1.d.ts +0 -2
  92. package/resources/applications/v1.d.ts.map +0 -1
  93. package/resources/applications/v1.js +0 -6
  94. package/resources/applications/v1.js.map +0 -1
  95. package/resources/applications/v1.mjs +0 -3
  96. package/resources/applications/v1.mjs.map +0 -1
  97. package/resources/applications.d.mts +0 -2
  98. package/resources/applications.d.mts.map +0 -1
  99. package/resources/applications.d.ts +0 -2
  100. package/resources/applications.d.ts.map +0 -1
  101. package/resources/applications.js +0 -6
  102. package/resources/applications.js.map +0 -1
  103. package/resources/applications.mjs +0 -3
  104. package/resources/applications.mjs.map +0 -1
  105. package/src/resources/applications/applications.ts +0 -15
  106. package/src/resources/applications/index.ts +0 -4
  107. package/src/resources/applications/v1/deployments.ts +0 -196
  108. package/src/resources/applications/v1/index.ts +0 -28
  109. package/src/resources/applications/v1/projects.ts +0 -493
  110. package/src/resources/applications/v1/v1.ts +0 -71
  111. package/src/resources/applications/v1/workflows.ts +0 -34
  112. package/src/resources/applications/v1.ts +0 -3
  113. package/src/resources/applications.ts +0 -3
@@ -1,98 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import { buildHeaders } from "../../../internal/headers.mjs";
4
- import { path } from "../../../internal/utils/path.mjs";
5
- /**
6
- * Web application deployment management
7
- */
8
- export class Deployments extends APIResource {
9
- /**
10
- * Creates a deployment for an existing project by fetching repository files from
11
- * GitHub and uploading them to the hosting provider. Use ref to deploy a branch,
12
- * tag, or commit other than the project default branch.
13
- */
14
- create(body, options) {
15
- return this._client.post('/applications/v1/deployments', {
16
- body,
17
- ...options,
18
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
- });
20
- }
21
- /**
22
- * Returns deployment details for one project in the authenticated organization.
23
- * Set includeLogs=true to include recent build output in the response.
24
- */
25
- retrieve(id, query, options) {
26
- return this._client.get(path `/applications/v1/deployments/${id}`, {
27
- query,
28
- ...options,
29
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
30
- });
31
- }
32
- /**
33
- * Lists recent deployments for one project in the authenticated organization. Use
34
- * the optional filters to narrow results by target or deployment state.
35
- */
36
- list(query, options) {
37
- return this._client.get('/applications/v1/deployments', {
38
- query,
39
- ...options,
40
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
41
- });
42
- }
43
- /**
44
- * Cancels a running deployment after verifying that the referenced project belongs
45
- * to the authenticated organization. Use this when a build is stuck,
46
- * misconfigured, or no longer needed.
47
- */
48
- cancel(id, body, options) {
49
- return this._client.post(path `/applications/v1/deployments/${id}/cancel`, {
50
- body,
51
- ...options,
52
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
53
- });
54
- }
55
- /**
56
- * Create a deployment from raw file contents for application deployments
57
- */
58
- createFromFiles(options) {
59
- return this._client.post('/applications/v1/deployments/from-files', {
60
- ...options,
61
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
62
- });
63
- }
64
- /**
65
- * Returns build and runtime log events for a deployment after verifying access to
66
- * the owning project. Use this when you need detailed output for a failed or
67
- * in-progress build.
68
- */
69
- getLogs(id, query, options) {
70
- return this._client.get(path `/applications/v1/deployments/${id}/logs`, {
71
- query,
72
- ...options,
73
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
74
- });
75
- }
76
- /**
77
- * Returns the current status of a deployment without fetching full build logs. Use
78
- * this endpoint for lightweight polling while a deployment is building or waiting
79
- * to become ready.
80
- */
81
- getStatus(id, options) {
82
- return this._client.get(path `/applications/v1/deployments/${id}/status`, {
83
- ...options,
84
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
85
- });
86
- }
87
- /**
88
- * Stream real-time deployment progress events via Server-Sent Events
89
- */
90
- stream(id, query, options) {
91
- return this._client.get(path `/applications/v1/deployments/${id}/stream`, {
92
- query,
93
- ...options,
94
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
95
- });
96
- }
97
- }
98
- //# sourceMappingURL=deployments.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../../src/resources/applications/v1/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACvD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,KAA+B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,EAAE,EAAE;YAChE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,KAA2B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE;YACtD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MA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AC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,KAA6B,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,SAAS,EAAE;YACvE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- export { Deployments, type DeploymentCreateParams, type DeploymentRetrieveParams, type DeploymentListParams, type DeploymentCancelParams, type DeploymentGetLogsParams, type DeploymentStreamParams, } from "./deployments.mjs";
2
- export { Projects, type ProjectListResponse, type ProjectCreateParams, type ProjectListParams, type ProjectDeleteParams, type ProjectCreateDeploymentParams, type ProjectCreateDomainParams, type ProjectCreateEnvParams, type ProjectDeleteDomainParams, type ProjectDeleteEnvParams, type ProjectGetRuntimeLogsParams, type ProjectListDeploymentsParams, type ProjectListEnvParams, } from "./projects.mjs";
3
- export { V1 } from "./v1.mjs";
4
- export { Workflows, type WorkflowGetStatusParams } from "./workflows.mjs";
5
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/applications/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B;OACM,EAAE,EAAE,EAAE;OACN,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE"}
@@ -1,5 +0,0 @@
1
- export { Deployments, type DeploymentCreateParams, type DeploymentRetrieveParams, type DeploymentListParams, type DeploymentCancelParams, type DeploymentGetLogsParams, type DeploymentStreamParams, } from "./deployments.js";
2
- export { Projects, type ProjectListResponse, type ProjectCreateParams, type ProjectListParams, type ProjectDeleteParams, type ProjectCreateDeploymentParams, type ProjectCreateDomainParams, type ProjectCreateEnvParams, type ProjectDeleteDomainParams, type ProjectDeleteEnvParams, type ProjectGetRuntimeLogsParams, type ProjectListDeploymentsParams, type ProjectListEnvParams, } from "./projects.js";
3
- export { V1 } from "./v1.js";
4
- export { Workflows, type WorkflowGetStatusParams } from "./workflows.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/applications/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B;OACM,EAAE,EAAE,EAAE;OACN,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Workflows = exports.V1 = exports.Projects = exports.Deployments = void 0;
5
- var deployments_1 = require("./deployments.js");
6
- Object.defineProperty(exports, "Deployments", { enumerable: true, get: function () { return deployments_1.Deployments; } });
7
- var projects_1 = require("./projects.js");
8
- Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
9
- var v1_1 = require("./v1.js");
10
- Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
11
- var workflows_1 = require("./workflows.js");
12
- Object.defineProperty(exports, "Workflows", { enumerable: true, get: function () { return workflows_1.Workflows; } });
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/applications/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,0CAcoB;AAblB,oGAAA,QAAQ,OAAA;AAcV,8BAA0B;AAAjB,wFAAA,EAAE,OAAA;AACX,4CAAsE;AAA7D,sGAAA,SAAS,OAAA"}
@@ -1,6 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Deployments, } from "./deployments.mjs";
3
- export { Projects, } from "./projects.mjs";
4
- export { V1 } from "./v1.mjs";
5
- export { Workflows } from "./workflows.mjs";
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/applications/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAOZ;OACM,EACL,QAAQ,GAaT;OACM,EAAE,EAAE,EAAE;OACN,EAAE,SAAS,EAAgC"}
@@ -1,313 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- export declare class Projects extends APIResource {
5
- /**
6
- * Creates a new application project, validates GitHub access, provisions a default
7
- * case.dev domain, and starts the deployment workflow. The initial response
8
- * returns as soon as the workflow is queued so clients can poll for progress.
9
- */
10
- create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<void>;
11
- /**
12
- * Returns project details, domains, and recent deployment information for one
13
- * application project. Use this endpoint when you need a single record with
14
- * hosting metadata for a details view.
15
- */
16
- retrieve(id: string, options?: RequestOptions): APIPromise<void>;
17
- /**
18
- * Lists application projects for the authenticated organization. Use enrich=true
19
- * to include additional hosting metadata for projects linked to Vercel.
20
- */
21
- list(query?: ProjectListParams | null | undefined, options?: RequestOptions): APIPromise<ProjectListResponse>;
22
- /**
23
- * Soft-deletes an application project from Case.dev. By default it also removes
24
- * the linked hosting project; set deleteFromHosting=false to keep the external
25
- * hosting resources intact.
26
- */
27
- delete(id: string, params?: ProjectDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
28
- /**
29
- * Starts a new deployment for an existing project using its saved repository and
30
- * hosting configuration. Any environment variables passed in the request are
31
- * merged into the deployment workflow before the build starts.
32
- */
33
- createDeployment(id: string, body?: ProjectCreateDeploymentParams | null | undefined, options?: RequestOptions): APIPromise<void>;
34
- /**
35
- * Add a custom domain to a project
36
- */
37
- createDomain(id: string, body: ProjectCreateDomainParams, options?: RequestOptions): APIPromise<void>;
38
- /**
39
- * Create a new environment variable for a project
40
- */
41
- createEnv(id: string, body: ProjectCreateEnvParams, options?: RequestOptions): APIPromise<void>;
42
- /**
43
- * Remove a domain from a project
44
- */
45
- deleteDomain(domain: string, params: ProjectDeleteDomainParams, options?: RequestOptions): APIPromise<void>;
46
- /**
47
- * Delete an environment variable from a project
48
- */
49
- deleteEnv(envID: string, params: ProjectDeleteEnvParams, options?: RequestOptions): APIPromise<void>;
50
- /**
51
- * Get runtime/function logs for a project
52
- */
53
- getRuntimeLogs(id: string, query?: ProjectGetRuntimeLogsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
54
- /**
55
- * Lists deployments for one project in the authenticated organization. If the
56
- * hosting project has not been created yet, this endpoint returns an empty list
57
- * with a progress message instead of failing.
58
- */
59
- listDeployments(id: string, query?: ProjectListDeploymentsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
60
- /**
61
- * List all domains configured for a project
62
- */
63
- listDomains(id: string, options?: RequestOptions): APIPromise<void>;
64
- /**
65
- * List all environment variables for a project (values are hidden unless
66
- * decrypt=true)
67
- */
68
- listEnv(id: string, query?: ProjectListEnvParams | null | undefined, options?: RequestOptions): APIPromise<void>;
69
- }
70
- export interface ProjectListResponse {
71
- /**
72
- * Projects and deployed apps visible to the organization
73
- */
74
- projects?: Array<ProjectListResponse.Project>;
75
- }
76
- export declare namespace ProjectListResponse {
77
- interface Project {
78
- /**
79
- * Project identifier
80
- */
81
- id?: string;
82
- /**
83
- * When the project record was created
84
- */
85
- createdAt?: string;
86
- /**
87
- * Custom or generated domains assigned to the project
88
- */
89
- domains?: Array<Project.Domain>;
90
- /**
91
- * Detected or configured application framework
92
- */
93
- framework?: string;
94
- /**
95
- * Default Git branch used for deployments
96
- */
97
- gitBranch?: string;
98
- /**
99
- * Connected Git repository in owner/repo format
100
- */
101
- gitRepo?: string;
102
- /**
103
- * Project display name
104
- */
105
- name?: string;
106
- /**
107
- * Current project deployment status
108
- */
109
- status?: string;
110
- /**
111
- * When the project record was last updated
112
- */
113
- updatedAt?: string;
114
- /**
115
- * Hosting provider project ID, when linked
116
- */
117
- vercelProjectId?: string;
118
- }
119
- namespace Project {
120
- interface Domain {
121
- /**
122
- * Domain record identifier
123
- */
124
- id?: string;
125
- /**
126
- * Hostname assigned to the project
127
- */
128
- domain?: string;
129
- /**
130
- * Whether this is the primary project domain
131
- */
132
- isPrimary?: boolean;
133
- /**
134
- * Whether the domain has been verified by the hosting provider
135
- */
136
- isVerified?: boolean;
137
- }
138
- }
139
- }
140
- export interface ProjectCreateParams {
141
- /**
142
- * GitHub repository URL or owner/repo identifier
143
- */
144
- gitRepo: string;
145
- /**
146
- * Human-readable project name
147
- */
148
- name: string;
149
- /**
150
- * Custom build command to override the framework default
151
- */
152
- buildCommand?: string;
153
- /**
154
- * Environment variables to create before the first deployment
155
- */
156
- environmentVariables?: Array<ProjectCreateParams.EnvironmentVariable>;
157
- /**
158
- * Framework preset for the hosting project, such as nextjs or remix
159
- */
160
- framework?: string;
161
- /**
162
- * Git branch to deploy. Defaults to main.
163
- */
164
- gitBranch?: string;
165
- /**
166
- * Custom install command to override the framework default
167
- */
168
- installCommand?: string;
169
- /**
170
- * Build output directory relative to the project root
171
- */
172
- outputDirectory?: string;
173
- /**
174
- * Repository subdirectory that contains the app to deploy
175
- */
176
- rootDirectory?: string;
177
- }
178
- export declare namespace ProjectCreateParams {
179
- interface EnvironmentVariable {
180
- /**
181
- * Environment variable name
182
- */
183
- key: string;
184
- /**
185
- * Deployment targets that should receive this variable
186
- */
187
- target: Array<'production' | 'preview' | 'development'>;
188
- /**
189
- * Environment variable value
190
- */
191
- value: string;
192
- /**
193
- * Storage mode for the environment variable value
194
- */
195
- type?: 'plain' | 'encrypted' | 'secret';
196
- }
197
- }
198
- export interface ProjectListParams {
199
- /**
200
- * Whether to include additional hosting metadata from Vercel
201
- */
202
- enrich?: boolean;
203
- /**
204
- * Maximum number of projects to return from each backing source
205
- */
206
- limit?: number;
207
- }
208
- export interface ProjectDeleteParams {
209
- /**
210
- * Whether to also delete the linked hosting project. Defaults to true.
211
- */
212
- deleteFromHosting?: boolean;
213
- }
214
- export interface ProjectCreateDeploymentParams {
215
- /**
216
- * Additional environment variables to set or update before deployment
217
- */
218
- environmentVariables?: Array<ProjectCreateDeploymentParams.EnvironmentVariable>;
219
- }
220
- export declare namespace ProjectCreateDeploymentParams {
221
- interface EnvironmentVariable {
222
- /**
223
- * Environment variable name
224
- */
225
- key: string;
226
- /**
227
- * Deployment targets that should receive this variable
228
- */
229
- target: Array<'production' | 'preview' | 'development'>;
230
- /**
231
- * Environment variable value
232
- */
233
- value: string;
234
- /**
235
- * Storage mode for the environment variable value
236
- */
237
- type?: 'plain' | 'encrypted' | 'secret';
238
- }
239
- }
240
- export interface ProjectCreateDomainParams {
241
- /**
242
- * Domain name to add
243
- */
244
- domain: string;
245
- /**
246
- * Git branch to associate with this domain
247
- */
248
- gitBranch?: string;
249
- }
250
- export interface ProjectCreateEnvParams {
251
- /**
252
- * Environment variable name
253
- */
254
- key: string;
255
- /**
256
- * Deployment targets for this variable
257
- */
258
- target: Array<'production' | 'preview' | 'development'>;
259
- /**
260
- * Environment variable value
261
- */
262
- value: string;
263
- /**
264
- * Specific git branch (for preview deployments)
265
- */
266
- gitBranch?: string;
267
- /**
268
- * Variable type
269
- */
270
- type?: 'plain' | 'encrypted' | 'secret';
271
- }
272
- export interface ProjectDeleteDomainParams {
273
- /**
274
- * Project ID
275
- */
276
- id: string;
277
- }
278
- export interface ProjectDeleteEnvParams {
279
- /**
280
- * Project ID
281
- */
282
- id: string;
283
- }
284
- export interface ProjectGetRuntimeLogsParams {
285
- /**
286
- * Maximum number of logs to return
287
- */
288
- limit?: number;
289
- }
290
- export interface ProjectListDeploymentsParams {
291
- /**
292
- * Maximum number of deployments to return
293
- */
294
- limit?: number;
295
- /**
296
- * Deployment state to filter by
297
- */
298
- state?: string;
299
- /**
300
- * Deployment target to filter by
301
- */
302
- target?: 'production' | 'staging';
303
- }
304
- export interface ProjectListEnvParams {
305
- /**
306
- * Whether to decrypt and return values (requires appropriate permissions)
307
- */
308
- decrypt?: boolean;
309
- }
310
- export declare namespace Projects {
311
- export { type ProjectListResponse as ProjectListResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, type ProjectDeleteParams as ProjectDeleteParams, type ProjectCreateDeploymentParams as ProjectCreateDeploymentParams, type ProjectCreateDomainParams as ProjectCreateDomainParams, type ProjectCreateEnvParams as ProjectCreateEnvParams, type ProjectDeleteDomainParams as ProjectDeleteDomainParams, type ProjectDeleteEnvParams as ProjectDeleteEnvParams, type ProjectGetRuntimeLogsParams as ProjectGetRuntimeLogsParams, type ProjectListDeploymentsParams as ProjectListDeploymentsParams, type ProjectListEnvParams as ProjectListEnvParams, };
312
- }
313
- //# sourceMappingURL=projects.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projects.d.mts","sourceRoot":"","sources":["../../../src/resources/applications/v1/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;OAIG;IACH,gBAAgB,CACd,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQrG;;OAEG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,C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