@vercel/sdk 14.0.0-canary.5 → 14.0.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -11
- package/docs/sdks/projects/README.md +8 -12
- package/esm/funcs/projectsPauseProject.d.ts +2 -2
- package/esm/funcs/projectsPauseProject.d.ts.map +1 -1
- package/esm/funcs/projectsPauseProject.js +4 -3
- package/esm/funcs/projectsPauseProject.js.map +1 -1
- package/esm/funcs/projectsUnpauseProject.d.ts +2 -2
- package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -1
- package/esm/funcs/projectsUnpauseProject.js +4 -3
- package/esm/funcs/projectsUnpauseProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/operations/createproject.d.ts +91 -9
- package/esm/models/operations/createproject.d.ts.map +1 -1
- package/esm/models/operations/createproject.js +55 -3
- package/esm/models/operations/createproject.js.map +1 -1
- package/esm/models/operations/createprojectenv.d.ts +6 -6
- package/esm/models/operations/createprojectenv.js +2 -2
- package/esm/models/operations/createprojectenv.js.map +1 -1
- package/esm/models/operations/createwebhook.d.ts +12 -6
- package/esm/models/operations/createwebhook.d.ts.map +1 -1
- package/esm/models/operations/createwebhook.js +4 -2
- package/esm/models/operations/createwebhook.js.map +1 -1
- package/esm/models/operations/editprojectenv.d.ts +3 -3
- package/esm/models/operations/editprojectenv.js +1 -1
- package/esm/models/operations/editprojectenv.js.map +1 -1
- package/esm/models/operations/getprojects.d.ts +82 -0
- package/esm/models/operations/getprojects.d.ts.map +1 -1
- package/esm/models/operations/getprojects.js +52 -0
- package/esm/models/operations/getprojects.js.map +1 -1
- package/esm/models/operations/getwebhook.d.ts +6 -3
- package/esm/models/operations/getwebhook.d.ts.map +1 -1
- package/esm/models/operations/getwebhook.js +2 -1
- package/esm/models/operations/getwebhook.js.map +1 -1
- package/esm/models/operations/getwebhooks.d.ts +12 -6
- package/esm/models/operations/getwebhooks.d.ts.map +1 -1
- package/esm/models/operations/getwebhooks.js +4 -2
- package/esm/models/operations/getwebhooks.js.map +1 -1
- package/esm/models/operations/pauseproject.d.ts +0 -32
- package/esm/models/operations/pauseproject.d.ts.map +1 -1
- package/esm/models/operations/pauseproject.js +0 -25
- package/esm/models/operations/pauseproject.js.map +1 -1
- package/esm/models/operations/removeprojectenv.d.ts +9 -9
- package/esm/models/operations/removeprojectenv.js +3 -3
- package/esm/models/operations/removeprojectenv.js.map +1 -1
- package/esm/models/operations/unpauseproject.d.ts +0 -32
- package/esm/models/operations/unpauseproject.d.ts.map +1 -1
- package/esm/models/operations/unpauseproject.js +0 -25
- package/esm/models/operations/unpauseproject.js.map +1 -1
- package/esm/models/operations/updateproject.d.ts +91 -9
- package/esm/models/operations/updateproject.d.ts.map +1 -1
- package/esm/models/operations/updateproject.js +55 -3
- package/esm/models/operations/updateproject.js.map +1 -1
- package/esm/models/operations/updateprojectdatacache.d.ts +82 -0
- package/esm/models/operations/updateprojectdatacache.d.ts.map +1 -1
- package/esm/models/operations/updateprojectdatacache.js +51 -0
- package/esm/models/operations/updateprojectdatacache.js.map +1 -1
- package/esm/sdk/projects.d.ts +4 -4
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -5
- package/esm/sdk/sdk.js.map +1 -1
- package/package.json +9 -6
- package/src/funcs/projectsPauseProject.ts +5 -6
- package/src/funcs/projectsUnpauseProject.ts +5 -6
- package/src/lib/config.ts +3 -3
- package/src/models/operations/createproject.ts +133 -3
- package/src/models/operations/createprojectenv.ts +2 -2
- package/src/models/operations/createwebhook.ts +4 -2
- package/src/models/operations/editprojectenv.ts +1 -1
- package/src/models/operations/getprojects.ts +130 -0
- package/src/models/operations/getwebhook.ts +2 -1
- package/src/models/operations/getwebhooks.ts +4 -2
- package/src/models/operations/pauseproject.ts +0 -55
- package/src/models/operations/removeprojectenv.ts +3 -3
- package/src/models/operations/unpauseproject.ts +0 -55
- package/src/models/operations/updateproject.ts +133 -3
- package/src/models/operations/updateprojectdatacache.ts +125 -0
- package/src/sdk/projects.ts +4 -10
- package/src/sdk/sdk.ts +0 -6
- package/LICENSE +0 -202
- package/docs/sdks/secrets/README.md +0 -331
- package/esm/funcs/secretsCreateSecret.d.ts +0 -15
- package/esm/funcs/secretsCreateSecret.d.ts.map +0 -1
- package/esm/funcs/secretsCreateSecret.js +0 -74
- package/esm/funcs/secretsCreateSecret.js.map +0 -1
- package/esm/funcs/secretsDeleteSecret.d.ts +0 -15
- package/esm/funcs/secretsDeleteSecret.d.ts.map +0 -1
- package/esm/funcs/secretsDeleteSecret.js +0 -79
- package/esm/funcs/secretsDeleteSecret.js.map +0 -1
- package/esm/funcs/secretsGetSecret.d.ts +0 -15
- package/esm/funcs/secretsGetSecret.d.ts.map +0 -1
- package/esm/funcs/secretsGetSecret.js +0 -80
- package/esm/funcs/secretsGetSecret.js.map +0 -1
- package/esm/funcs/secretsRenameSecret.d.ts +0 -15
- package/esm/funcs/secretsRenameSecret.d.ts.map +0 -1
- package/esm/funcs/secretsRenameSecret.js +0 -80
- package/esm/funcs/secretsRenameSecret.js.map +0 -1
- package/esm/models/operations/createsecret.d.ts +0 -192
- package/esm/models/operations/createsecret.d.ts.map +0 -1
- package/esm/models/operations/createsecret.js +0 -136
- package/esm/models/operations/createsecret.js.map +0 -1
- package/esm/models/operations/deletesecret.d.ts +0 -74
- package/esm/models/operations/deletesecret.d.ts.map +0 -1
- package/esm/models/operations/deletesecret.js +0 -51
- package/esm/models/operations/deletesecret.js.map +0 -1
- package/esm/models/operations/getsecret.d.ts +0 -144
- package/esm/models/operations/getsecret.d.ts.map +0 -1
- package/esm/models/operations/getsecret.js +0 -87
- package/esm/models/operations/getsecret.js.map +0 -1
- package/esm/models/operations/renamesecret.d.ts +0 -95
- package/esm/models/operations/renamesecret.d.ts.map +0 -1
- package/esm/models/operations/renamesecret.js +0 -83
- package/esm/models/operations/renamesecret.js.map +0 -1
- package/esm/sdk/secrets.d.ts +0 -36
- package/esm/sdk/secrets.d.ts.map +0 -1
- package/esm/sdk/secrets.js +0 -48
- package/esm/sdk/secrets.js.map +0 -1
- package/src/funcs/secretsCreateSecret.ts +0 -134
- package/src/funcs/secretsDeleteSecret.ts +0 -140
- package/src/funcs/secretsGetSecret.ts +0 -141
- package/src/funcs/secretsRenameSecret.ts +0 -141
- package/src/models/operations/createsecret.ts +0 -304
- package/src/models/operations/deletesecret.ts +0 -119
- package/src/models/operations/getsecret.ts +0 -205
- package/src/models/operations/renamesecret.ts +0 -170
- package/src/sdk/secrets.ts +0 -96
|
@@ -730,6 +730,43 @@ export type Link1 = {
|
|
|
730
730
|
|
|
731
731
|
export type Link = Link1 | Link3 | Link2;
|
|
732
732
|
|
|
733
|
+
/**
|
|
734
|
+
* The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
|
|
735
|
+
*/
|
|
736
|
+
export type Group = {
|
|
737
|
+
/**
|
|
738
|
+
* A unique identifier for the group of microfrontends. All related microfrontend projects will share this group ID. Example: mfe_12HKQaOmR5t5Uy6vdcQsNIiZgHGB
|
|
739
|
+
*/
|
|
740
|
+
id: string;
|
|
741
|
+
/**
|
|
742
|
+
* A human readable name for the microfrontends group. This will be used to display the microfrontends group in the UI.
|
|
743
|
+
*/
|
|
744
|
+
slug: string;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
export type Microfrontends = {
|
|
748
|
+
/**
|
|
749
|
+
* Timestamp when the microfrontends settings were last updated.
|
|
750
|
+
*/
|
|
751
|
+
updatedAt: number;
|
|
752
|
+
/**
|
|
753
|
+
* The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
|
|
754
|
+
*/
|
|
755
|
+
group: Group;
|
|
756
|
+
/**
|
|
757
|
+
* Whether microfrontends are enabled for this project.
|
|
758
|
+
*/
|
|
759
|
+
enabled: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends.
|
|
762
|
+
*/
|
|
763
|
+
isDefaultApp?: boolean | undefined;
|
|
764
|
+
/**
|
|
765
|
+
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
|
|
766
|
+
*/
|
|
767
|
+
defaultRoute?: string | undefined;
|
|
768
|
+
};
|
|
769
|
+
|
|
733
770
|
export const UpdateProjectDataCacheNodeVersion = {
|
|
734
771
|
TwentyTwoX: "22.x",
|
|
735
772
|
TwentyX: "20.x",
|
|
@@ -1434,6 +1471,7 @@ export type UpdateProjectDataCacheResponseBody = {
|
|
|
1434
1471
|
ipBuckets?: Array<IpBuckets> | undefined;
|
|
1435
1472
|
latestDeployments?: Array<LatestDeployments> | undefined;
|
|
1436
1473
|
link?: Link1 | Link3 | Link2 | undefined;
|
|
1474
|
+
microfrontends?: Microfrontends | undefined;
|
|
1437
1475
|
name: string;
|
|
1438
1476
|
nodeVersion: UpdateProjectDataCacheNodeVersion;
|
|
1439
1477
|
optionsAllowlist?: UpdateProjectDataCacheOptionsAllowlist | null | undefined;
|
|
@@ -4404,6 +4442,90 @@ export namespace Link$ {
|
|
|
4404
4442
|
export type Outbound = Link$Outbound;
|
|
4405
4443
|
}
|
|
4406
4444
|
|
|
4445
|
+
/** @internal */
|
|
4446
|
+
export const Group$inboundSchema: z.ZodType<Group, z.ZodTypeDef, unknown> = z
|
|
4447
|
+
.object({
|
|
4448
|
+
id: z.string(),
|
|
4449
|
+
slug: z.string(),
|
|
4450
|
+
});
|
|
4451
|
+
|
|
4452
|
+
/** @internal */
|
|
4453
|
+
export type Group$Outbound = {
|
|
4454
|
+
id: string;
|
|
4455
|
+
slug: string;
|
|
4456
|
+
};
|
|
4457
|
+
|
|
4458
|
+
/** @internal */
|
|
4459
|
+
export const Group$outboundSchema: z.ZodType<
|
|
4460
|
+
Group$Outbound,
|
|
4461
|
+
z.ZodTypeDef,
|
|
4462
|
+
Group
|
|
4463
|
+
> = z.object({
|
|
4464
|
+
id: z.string(),
|
|
4465
|
+
slug: z.string(),
|
|
4466
|
+
});
|
|
4467
|
+
|
|
4468
|
+
/**
|
|
4469
|
+
* @internal
|
|
4470
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4471
|
+
*/
|
|
4472
|
+
export namespace Group$ {
|
|
4473
|
+
/** @deprecated use `Group$inboundSchema` instead. */
|
|
4474
|
+
export const inboundSchema = Group$inboundSchema;
|
|
4475
|
+
/** @deprecated use `Group$outboundSchema` instead. */
|
|
4476
|
+
export const outboundSchema = Group$outboundSchema;
|
|
4477
|
+
/** @deprecated use `Group$Outbound` instead. */
|
|
4478
|
+
export type Outbound = Group$Outbound;
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
/** @internal */
|
|
4482
|
+
export const Microfrontends$inboundSchema: z.ZodType<
|
|
4483
|
+
Microfrontends,
|
|
4484
|
+
z.ZodTypeDef,
|
|
4485
|
+
unknown
|
|
4486
|
+
> = z.object({
|
|
4487
|
+
updatedAt: z.number(),
|
|
4488
|
+
group: z.lazy(() => Group$inboundSchema),
|
|
4489
|
+
enabled: z.boolean(),
|
|
4490
|
+
isDefaultApp: z.boolean().optional(),
|
|
4491
|
+
defaultRoute: z.string().optional(),
|
|
4492
|
+
});
|
|
4493
|
+
|
|
4494
|
+
/** @internal */
|
|
4495
|
+
export type Microfrontends$Outbound = {
|
|
4496
|
+
updatedAt: number;
|
|
4497
|
+
group: Group$Outbound;
|
|
4498
|
+
enabled: boolean;
|
|
4499
|
+
isDefaultApp?: boolean | undefined;
|
|
4500
|
+
defaultRoute?: string | undefined;
|
|
4501
|
+
};
|
|
4502
|
+
|
|
4503
|
+
/** @internal */
|
|
4504
|
+
export const Microfrontends$outboundSchema: z.ZodType<
|
|
4505
|
+
Microfrontends$Outbound,
|
|
4506
|
+
z.ZodTypeDef,
|
|
4507
|
+
Microfrontends
|
|
4508
|
+
> = z.object({
|
|
4509
|
+
updatedAt: z.number(),
|
|
4510
|
+
group: z.lazy(() => Group$outboundSchema),
|
|
4511
|
+
enabled: z.boolean(),
|
|
4512
|
+
isDefaultApp: z.boolean().optional(),
|
|
4513
|
+
defaultRoute: z.string().optional(),
|
|
4514
|
+
});
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
* @internal
|
|
4518
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4519
|
+
*/
|
|
4520
|
+
export namespace Microfrontends$ {
|
|
4521
|
+
/** @deprecated use `Microfrontends$inboundSchema` instead. */
|
|
4522
|
+
export const inboundSchema = Microfrontends$inboundSchema;
|
|
4523
|
+
/** @deprecated use `Microfrontends$outboundSchema` instead. */
|
|
4524
|
+
export const outboundSchema = Microfrontends$outboundSchema;
|
|
4525
|
+
/** @deprecated use `Microfrontends$Outbound` instead. */
|
|
4526
|
+
export type Outbound = Microfrontends$Outbound;
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4407
4529
|
/** @internal */
|
|
4408
4530
|
export const UpdateProjectDataCacheNodeVersion$inboundSchema: z.ZodNativeEnum<
|
|
4409
4531
|
typeof UpdateProjectDataCacheNodeVersion
|
|
@@ -7182,6 +7304,7 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
|
|
|
7182
7304
|
z.lazy(() => Link3$inboundSchema),
|
|
7183
7305
|
z.lazy(() => Link2$inboundSchema),
|
|
7184
7306
|
]).optional(),
|
|
7307
|
+
microfrontends: z.lazy(() => Microfrontends$inboundSchema).optional(),
|
|
7185
7308
|
name: z.string(),
|
|
7186
7309
|
nodeVersion: UpdateProjectDataCacheNodeVersion$inboundSchema,
|
|
7187
7310
|
optionsAllowlist: z.nullable(
|
|
@@ -7270,6 +7393,7 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
|
|
|
7270
7393
|
ipBuckets?: Array<IpBuckets$Outbound> | undefined;
|
|
7271
7394
|
latestDeployments?: Array<LatestDeployments$Outbound> | undefined;
|
|
7272
7395
|
link?: Link1$Outbound | Link3$Outbound | Link2$Outbound | undefined;
|
|
7396
|
+
microfrontends?: Microfrontends$Outbound | undefined;
|
|
7273
7397
|
name: string;
|
|
7274
7398
|
nodeVersion: string;
|
|
7275
7399
|
optionsAllowlist?:
|
|
@@ -7364,6 +7488,7 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
|
|
|
7364
7488
|
z.lazy(() => Link3$outboundSchema),
|
|
7365
7489
|
z.lazy(() => Link2$outboundSchema),
|
|
7366
7490
|
]).optional(),
|
|
7491
|
+
microfrontends: z.lazy(() => Microfrontends$outboundSchema).optional(),
|
|
7367
7492
|
name: z.string(),
|
|
7368
7493
|
nodeVersion: UpdateProjectDataCacheNodeVersion$outboundSchema,
|
|
7369
7494
|
optionsAllowlist: z.nullable(
|
package/src/sdk/projects.ts
CHANGED
|
@@ -60,10 +60,7 @@ import {
|
|
|
60
60
|
ListPromoteAliasesRequest,
|
|
61
61
|
ListPromoteAliasesResponseBody,
|
|
62
62
|
} from "../models/operations/listpromotealiases.js";
|
|
63
|
-
import {
|
|
64
|
-
PauseProjectRequest,
|
|
65
|
-
PauseProjectResponseBody,
|
|
66
|
-
} from "../models/operations/pauseproject.js";
|
|
63
|
+
import { PauseProjectRequest } from "../models/operations/pauseproject.js";
|
|
67
64
|
import {
|
|
68
65
|
RemoveProjectDomainRequest,
|
|
69
66
|
RemoveProjectDomainResponseBody,
|
|
@@ -73,10 +70,7 @@ import {
|
|
|
73
70
|
RemoveProjectEnvResponseBody,
|
|
74
71
|
} from "../models/operations/removeprojectenv.js";
|
|
75
72
|
import { RequestPromoteRequest } from "../models/operations/requestpromote.js";
|
|
76
|
-
import {
|
|
77
|
-
UnpauseProjectRequest,
|
|
78
|
-
UnpauseProjectResponseBody,
|
|
79
|
-
} from "../models/operations/unpauseproject.js";
|
|
73
|
+
import { UnpauseProjectRequest } from "../models/operations/unpauseproject.js";
|
|
80
74
|
import {
|
|
81
75
|
UpdateProjectRequest,
|
|
82
76
|
UpdateProjectResponseBody,
|
|
@@ -415,7 +409,7 @@ export class Projects extends ClientSDK {
|
|
|
415
409
|
async pauseProject(
|
|
416
410
|
request: PauseProjectRequest,
|
|
417
411
|
options?: RequestOptions,
|
|
418
|
-
): Promise<
|
|
412
|
+
): Promise<void> {
|
|
419
413
|
return unwrapAsync(projectsPauseProject(
|
|
420
414
|
this,
|
|
421
415
|
request,
|
|
@@ -432,7 +426,7 @@ export class Projects extends ClientSDK {
|
|
|
432
426
|
async unpauseProject(
|
|
433
427
|
request: UnpauseProjectRequest,
|
|
434
428
|
options?: RequestOptions,
|
|
435
|
-
): Promise<
|
|
429
|
+
): Promise<void> {
|
|
436
430
|
return unwrapAsync(projectsUnpauseProject(
|
|
437
431
|
this,
|
|
438
432
|
request,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { Integrations } from "./integrations.js";
|
|
|
17
17
|
import { LogDrains } from "./logdrains.js";
|
|
18
18
|
import { ProjectMembers } from "./projectmembers.js";
|
|
19
19
|
import { Projects } from "./projects.js";
|
|
20
|
-
import { Secrets } from "./secrets.js";
|
|
21
20
|
import { Security } from "./security.js";
|
|
22
21
|
import { Teams } from "./teams.js";
|
|
23
22
|
import { User } from "./user.js";
|
|
@@ -113,9 +112,4 @@ export class Vercel extends ClientSDK {
|
|
|
113
112
|
get certs(): Certs {
|
|
114
113
|
return (this._certs ??= new Certs(this._options));
|
|
115
114
|
}
|
|
116
|
-
|
|
117
|
-
private _secrets?: Secrets;
|
|
118
|
-
get secrets(): Secrets {
|
|
119
|
-
return (this._secrets ??= new Secrets(this._options));
|
|
120
|
-
}
|
|
121
115
|
}
|
package/LICENSE
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright 2017 Vercel, Inc.
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|