@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.5
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/lib/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +453 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +124 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +126 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +508 -0
- package/lib/services/aliases.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +216 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +310 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +792 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +616 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +306 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +165 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1162 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1252 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +1034 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +993 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9111 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8664 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +282 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +539 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +464 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +968 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2406 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +140 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +842 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +3109 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +3074 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +716 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +39 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +40 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +2987 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2903 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +866 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +991 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1044 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3210 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3300 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/networking.d.ts +239 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +224 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +191 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +139 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +2026 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23449 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +23570 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +630 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2183 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +1756 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +3932 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4411 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +270 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1577 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1359 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +7972 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7093 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +793 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +882 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +694 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +695 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +207 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +171 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +272 -0
- package/src/services/aliases.ts +1323 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +829 -0
- package/src/services/billing.ts +1776 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +377 -0
- package/src/services/checks_v2.ts +3136 -0
- package/src/services/connect.ts +2607 -0
- package/src/services/deployments.ts +23682 -0
- package/src/services/dns.ts +718 -0
- package/src/services/domains.ts +1209 -0
- package/src/services/domains_registrar.ts +2290 -0
- package/src/services/drains.ts +5989 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2388 -0
- package/src/services/feature_flags.ts +8302 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +39 -0
- package/src/services/integrations.ts +8846 -0
- package/src/services/log_drains.ts +2413 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2626 -0
- package/src/services/microfrontends.ts +9650 -0
- package/src/services/networking.ts +530 -0
- package/src/services/observability.ts +436 -0
- package/src/services/project_members.ts +328 -0
- package/src/services/project_routes.ts +5259 -0
- package/src/services/projects.ts +67377 -0
- package/src/services/rolling_release.ts +1869 -0
- package/src/services/sandboxes.ts +5259 -0
- package/src/services/security.ts +12408 -0
- package/src/services/storage.ts +849 -0
- package/src/services/teams.ts +3995 -0
- package/src/services/user.ts +21687 -0
- package/src/services/vcr.ts +2165 -0
- package/src/services/web_analytics.ts +1570 -0
- package/src/services/webhooks.ts +1073 -0
- package/src/traits.ts +44 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { VercelProtocol, } from "../protocol.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
9
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
10
|
+
code: S.Number,
|
|
11
|
+
message: S.String,
|
|
12
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
13
|
+
}
|
|
14
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
15
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
16
|
+
code: S.Number,
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
19
|
+
}
|
|
20
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
21
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
22
|
+
code: S.Number,
|
|
23
|
+
message: S.String,
|
|
24
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
25
|
+
}
|
|
26
|
+
export class PaymentRequired extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError()("PaymentRequired", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withQuotaError), [{ status: 402 }]) {
|
|
31
|
+
}
|
|
32
|
+
export const BuyCreditsRequestItemType = /*@__PURE__*/ S.String;
|
|
33
|
+
export const BuyCreditsRequestItemCreditType = /*@__PURE__*/ S.String;
|
|
34
|
+
export const BuyCreditsRequestItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
+
type: BuyCreditsRequestItemType,
|
|
36
|
+
creditType: BuyCreditsRequestItemCreditType,
|
|
37
|
+
amount: S.Number,
|
|
38
|
+
})).annotate({
|
|
39
|
+
identifier: "BuyCreditsRequestItem",
|
|
40
|
+
});
|
|
41
|
+
export const BuyCreditsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
+
source: S.optional(S.String.pipe(T.Query())),
|
|
43
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
44
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
45
|
+
item: BuyCreditsRequestItem,
|
|
46
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/billing/buy", code: 200 }))).annotate({
|
|
47
|
+
identifier: "BuyCreditsRequest",
|
|
48
|
+
});
|
|
49
|
+
export const BuyCreditsResponseBodyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
+
checkoutSessionId: S.String,
|
|
51
|
+
checkoutSessionUrl: S.String,
|
|
52
|
+
})).annotate({
|
|
53
|
+
identifier: "BuyCreditsResponseBodyCase0",
|
|
54
|
+
});
|
|
55
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency =
|
|
56
|
+
/*@__PURE__*/ S.String;
|
|
57
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options =
|
|
58
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
+
amount: S.String,
|
|
60
|
+
currency: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency,
|
|
61
|
+
expirationDate: S.optional(S.String),
|
|
62
|
+
})).annotate({
|
|
63
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options",
|
|
64
|
+
});
|
|
65
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type =
|
|
66
|
+
/*@__PURE__*/ S.String;
|
|
67
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 =
|
|
68
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
+
options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options,
|
|
70
|
+
output: S.NullOr(S.Unknown),
|
|
71
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type,
|
|
72
|
+
})).annotate({
|
|
73
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0",
|
|
74
|
+
});
|
|
75
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType =
|
|
76
|
+
/*@__PURE__*/ S.String;
|
|
77
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem =
|
|
78
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
+
name: S.String,
|
|
80
|
+
subtotal: S.String,
|
|
81
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType,
|
|
82
|
+
years: S.Number,
|
|
83
|
+
})).annotate({
|
|
84
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem",
|
|
85
|
+
});
|
|
86
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList =
|
|
87
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem);
|
|
88
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options =
|
|
89
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
90
|
+
items: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList,
|
|
91
|
+
orderId: S.String,
|
|
92
|
+
})).annotate({
|
|
93
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options",
|
|
94
|
+
});
|
|
95
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type =
|
|
96
|
+
/*@__PURE__*/ S.String;
|
|
97
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 =
|
|
98
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
+
options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options,
|
|
100
|
+
output: S.NullOr(S.Unknown),
|
|
101
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type,
|
|
102
|
+
})).annotate({
|
|
103
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1",
|
|
104
|
+
});
|
|
105
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 =
|
|
106
|
+
/*@__PURE__*/ S.String;
|
|
107
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate =
|
|
108
|
+
/*@__PURE__*/ S.Unknown;
|
|
109
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem =
|
|
110
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
+
fixedPriceQuantity: S.Number,
|
|
112
|
+
replacesPriceId: S.String,
|
|
113
|
+
})).annotate({
|
|
114
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem",
|
|
115
|
+
});
|
|
116
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList =
|
|
117
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem);
|
|
118
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options =
|
|
119
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
+
effectiveDate: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate,
|
|
121
|
+
orbSubscriptionId: S.String,
|
|
122
|
+
alignBillingWithPlanChangeDate: S.optional(S.Boolean),
|
|
123
|
+
couponRedemptionCode: S.optional(S.String),
|
|
124
|
+
externalPlanId: S.optional(S.String),
|
|
125
|
+
replacePrices: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList),
|
|
126
|
+
})).annotate({
|
|
127
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options",
|
|
128
|
+
});
|
|
129
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output =
|
|
130
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
131
|
+
pendingSubscriptionChangeId: S.String,
|
|
132
|
+
})).annotate({
|
|
133
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output",
|
|
134
|
+
});
|
|
135
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type =
|
|
136
|
+
/*@__PURE__*/ S.String;
|
|
137
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2 =
|
|
138
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
139
|
+
options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options,
|
|
140
|
+
output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
|
|
141
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type,
|
|
142
|
+
})).annotate({
|
|
143
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2",
|
|
144
|
+
});
|
|
145
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
|
|
146
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type =
|
|
147
|
+
/*@__PURE__*/ S.String;
|
|
148
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3 =
|
|
149
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
+
options: S.Unknown,
|
|
151
|
+
output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
|
|
152
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type,
|
|
153
|
+
})).annotate({
|
|
154
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3",
|
|
155
|
+
});
|
|
156
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0 =
|
|
157
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
+
priceId: S.String,
|
|
159
|
+
})).annotate({
|
|
160
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0",
|
|
161
|
+
});
|
|
162
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem =
|
|
163
|
+
/*@__PURE__*/ S.Unknown;
|
|
164
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList =
|
|
165
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem);
|
|
166
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap =
|
|
167
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
168
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem =
|
|
169
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
+
priceId: S.String,
|
|
171
|
+
})).annotate({
|
|
172
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem",
|
|
173
|
+
});
|
|
174
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList =
|
|
175
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem);
|
|
176
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesItem = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem;
|
|
177
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList =
|
|
178
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem);
|
|
179
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options =
|
|
180
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
+
externalPlanId: S.String,
|
|
182
|
+
addPrices: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList),
|
|
183
|
+
alignBillingWithSubscriptionStartDate: S.optional(S.Boolean),
|
|
184
|
+
couponRedemptionCode: S.optional(S.String),
|
|
185
|
+
initialPhaseOrder: S.optional(S.Number),
|
|
186
|
+
metadata: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap),
|
|
187
|
+
removePrices: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList),
|
|
188
|
+
replacePrices: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList),
|
|
189
|
+
startDate: S.optional(S.String),
|
|
190
|
+
})).annotate({
|
|
191
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options",
|
|
192
|
+
});
|
|
193
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
|
|
194
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type =
|
|
195
|
+
/*@__PURE__*/ S.String;
|
|
196
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4 =
|
|
197
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options,
|
|
199
|
+
output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
|
|
200
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type,
|
|
201
|
+
})).annotate({
|
|
202
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4",
|
|
203
|
+
});
|
|
204
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap =
|
|
205
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
206
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem =
|
|
207
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
+
id: S.String,
|
|
209
|
+
description: S.String,
|
|
210
|
+
name: S.String,
|
|
211
|
+
productId: S.String,
|
|
212
|
+
quantity: S.String,
|
|
213
|
+
unitAmount: S.String,
|
|
214
|
+
metadata: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap),
|
|
215
|
+
productAlias: S.optional(S.String),
|
|
216
|
+
refund: S.optional(S.String),
|
|
217
|
+
})).annotate({
|
|
218
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem",
|
|
219
|
+
});
|
|
220
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList =
|
|
221
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem);
|
|
222
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options =
|
|
223
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
224
|
+
orbCustomerId: S.String,
|
|
225
|
+
orbExternalCustomerId: S.String,
|
|
226
|
+
orbExternalPlanId: S.String,
|
|
227
|
+
orbPendingSubscriptionChangeId: S.String,
|
|
228
|
+
orbPlanId: S.String,
|
|
229
|
+
orbSubscriptionId: S.String,
|
|
230
|
+
lineItems: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList),
|
|
231
|
+
})).annotate({
|
|
232
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options",
|
|
233
|
+
});
|
|
234
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
|
|
235
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type =
|
|
236
|
+
/*@__PURE__*/ S.String;
|
|
237
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 =
|
|
238
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
239
|
+
options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options,
|
|
240
|
+
output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
|
|
241
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type,
|
|
242
|
+
})).annotate({
|
|
243
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5",
|
|
244
|
+
});
|
|
245
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentConfiguration =
|
|
246
|
+
/*@__PURE__*/ S.Unknown;
|
|
247
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentCurrency =
|
|
248
|
+
/*@__PURE__*/ S.String;
|
|
249
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentProviderType =
|
|
250
|
+
/*@__PURE__*/ S.String;
|
|
251
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentProvider =
|
|
252
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
+
resourceId: S.String,
|
|
254
|
+
type: BuyCreditsResponseBodyCase1PurchaseIntentProviderType,
|
|
255
|
+
currencyConversionRate: S.optional(S.String),
|
|
256
|
+
stripeSharedPaymentTokenUsed: S.optional(S.Boolean),
|
|
257
|
+
})).annotate({
|
|
258
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentProvider",
|
|
259
|
+
});
|
|
260
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentStatus =
|
|
261
|
+
/*@__PURE__*/ S.String;
|
|
262
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentDispute =
|
|
263
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
264
|
+
id: S.String,
|
|
265
|
+
amount: S.String,
|
|
266
|
+
createdAt: S.String,
|
|
267
|
+
currency: S.String,
|
|
268
|
+
providerId: S.String,
|
|
269
|
+
reason: S.NullOr(S.String),
|
|
270
|
+
status: S.String,
|
|
271
|
+
updatedAt: S.String,
|
|
272
|
+
})).annotate({
|
|
273
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentDispute",
|
|
274
|
+
});
|
|
275
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap =
|
|
276
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
277
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem =
|
|
278
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
279
|
+
id: S.String,
|
|
280
|
+
description: S.String,
|
|
281
|
+
name: S.String,
|
|
282
|
+
productId: S.String,
|
|
283
|
+
quantity: S.String,
|
|
284
|
+
unitAmount: S.String,
|
|
285
|
+
metadata: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap),
|
|
286
|
+
productAlias: S.optional(S.String),
|
|
287
|
+
refund: S.optional(S.String),
|
|
288
|
+
})).annotate({
|
|
289
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem",
|
|
290
|
+
});
|
|
291
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList =
|
|
292
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem);
|
|
293
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap =
|
|
294
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
295
|
+
export const BuyCreditsResponseBodyCase1PurchaseIntent =
|
|
296
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
+
id: S.String,
|
|
298
|
+
configuration: BuyCreditsResponseBodyCase1PurchaseIntentConfiguration,
|
|
299
|
+
createdAt: S.String,
|
|
300
|
+
currency: BuyCreditsResponseBodyCase1PurchaseIntentCurrency,
|
|
301
|
+
ownerId: S.String,
|
|
302
|
+
provider: BuyCreditsResponseBodyCase1PurchaseIntentProvider,
|
|
303
|
+
status: BuyCreditsResponseBodyCase1PurchaseIntentStatus,
|
|
304
|
+
subtotal: S.String,
|
|
305
|
+
tax: S.String,
|
|
306
|
+
total: S.String,
|
|
307
|
+
updatedAt: S.String,
|
|
308
|
+
dispute: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentDispute),
|
|
309
|
+
lineItems: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList),
|
|
310
|
+
metadata: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap),
|
|
311
|
+
refund: S.optional(S.String),
|
|
312
|
+
returnUrl: S.optional(S.String),
|
|
313
|
+
})).annotate({
|
|
314
|
+
identifier: "BuyCreditsResponseBodyCase1PurchaseIntent",
|
|
315
|
+
});
|
|
316
|
+
export const BuyCreditsResponseBodyCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
317
|
+
purchaseIntent: BuyCreditsResponseBodyCase1PurchaseIntent,
|
|
318
|
+
})).annotate({
|
|
319
|
+
identifier: "BuyCreditsResponseBodyCase1",
|
|
320
|
+
});
|
|
321
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList =
|
|
322
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
323
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options =
|
|
324
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
325
|
+
productAlias: S.String,
|
|
326
|
+
quantity: S.Number,
|
|
327
|
+
resourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList),
|
|
328
|
+
})).annotate({
|
|
329
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options",
|
|
330
|
+
});
|
|
331
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior =
|
|
332
|
+
/*@__PURE__*/ S.String;
|
|
333
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList =
|
|
334
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
335
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList =
|
|
336
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
337
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList =
|
|
338
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
339
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem =
|
|
340
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
341
|
+
productAlias: S.String,
|
|
342
|
+
productId: S.String,
|
|
343
|
+
quantity: S.Number,
|
|
344
|
+
addedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList),
|
|
345
|
+
effectiveAt: S.optional(S.String),
|
|
346
|
+
removedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList),
|
|
347
|
+
resourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList),
|
|
348
|
+
})).annotate({
|
|
349
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem",
|
|
350
|
+
});
|
|
351
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList =
|
|
352
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem);
|
|
353
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap =
|
|
354
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
355
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output =
|
|
356
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
357
|
+
effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior,
|
|
358
|
+
orbPriceId: S.String,
|
|
359
|
+
productId: S.String,
|
|
360
|
+
changedResources: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList),
|
|
361
|
+
metadata: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap),
|
|
362
|
+
pendingSubscriptionChangeId: S.optional(S.String),
|
|
363
|
+
})).annotate({
|
|
364
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output",
|
|
365
|
+
});
|
|
366
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type =
|
|
367
|
+
/*@__PURE__*/ S.String;
|
|
368
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0 =
|
|
369
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
370
|
+
options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options,
|
|
371
|
+
output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output,
|
|
372
|
+
type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type,
|
|
373
|
+
})).annotate({
|
|
374
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0",
|
|
375
|
+
});
|
|
376
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList =
|
|
377
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
378
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options =
|
|
379
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
380
|
+
productAlias: S.String,
|
|
381
|
+
resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList,
|
|
382
|
+
})).annotate({
|
|
383
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options",
|
|
384
|
+
});
|
|
385
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior =
|
|
386
|
+
/*@__PURE__*/ S.String;
|
|
387
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList =
|
|
388
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
389
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList =
|
|
390
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
391
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList =
|
|
392
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
393
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem =
|
|
394
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
395
|
+
productAlias: S.String,
|
|
396
|
+
productId: S.String,
|
|
397
|
+
quantity: S.Number,
|
|
398
|
+
addedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList),
|
|
399
|
+
effectiveAt: S.optional(S.String),
|
|
400
|
+
removedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList),
|
|
401
|
+
resourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList),
|
|
402
|
+
})).annotate({
|
|
403
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem",
|
|
404
|
+
});
|
|
405
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList =
|
|
406
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem);
|
|
407
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap =
|
|
408
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
409
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output =
|
|
410
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
411
|
+
effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior,
|
|
412
|
+
orbPriceId: S.String,
|
|
413
|
+
productId: S.String,
|
|
414
|
+
changedResources: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList),
|
|
415
|
+
metadata: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap),
|
|
416
|
+
pendingSubscriptionChangeId: S.optional(S.String),
|
|
417
|
+
})).annotate({
|
|
418
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output",
|
|
419
|
+
});
|
|
420
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type =
|
|
421
|
+
/*@__PURE__*/ S.String;
|
|
422
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1 =
|
|
423
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
+
options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options,
|
|
425
|
+
output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output,
|
|
426
|
+
type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type,
|
|
427
|
+
})).annotate({
|
|
428
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1",
|
|
429
|
+
});
|
|
430
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList =
|
|
431
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
432
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options =
|
|
433
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
+
productAlias: S.String,
|
|
435
|
+
resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList,
|
|
436
|
+
})).annotate({
|
|
437
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options",
|
|
438
|
+
});
|
|
439
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior =
|
|
440
|
+
/*@__PURE__*/ S.String;
|
|
441
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList =
|
|
442
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
443
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList =
|
|
444
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
445
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList =
|
|
446
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
447
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem =
|
|
448
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
449
|
+
productAlias: S.String,
|
|
450
|
+
productId: S.String,
|
|
451
|
+
quantity: S.Number,
|
|
452
|
+
addedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList),
|
|
453
|
+
effectiveAt: S.optional(S.String),
|
|
454
|
+
removedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList),
|
|
455
|
+
resourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList),
|
|
456
|
+
})).annotate({
|
|
457
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem",
|
|
458
|
+
});
|
|
459
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList =
|
|
460
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem);
|
|
461
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap =
|
|
462
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
463
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output =
|
|
464
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
465
|
+
effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior,
|
|
466
|
+
orbPriceId: S.String,
|
|
467
|
+
productId: S.String,
|
|
468
|
+
changedResources: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList),
|
|
469
|
+
metadata: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap),
|
|
470
|
+
pendingSubscriptionChangeId: S.optional(S.String),
|
|
471
|
+
})).annotate({
|
|
472
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output",
|
|
473
|
+
});
|
|
474
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type =
|
|
475
|
+
/*@__PURE__*/ S.String;
|
|
476
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2 =
|
|
477
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
478
|
+
options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options,
|
|
479
|
+
output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output,
|
|
480
|
+
type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type,
|
|
481
|
+
})).annotate({
|
|
482
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2",
|
|
483
|
+
});
|
|
484
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList =
|
|
485
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
486
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList =
|
|
487
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
488
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options =
|
|
489
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
490
|
+
addedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList,
|
|
491
|
+
productAlias: S.String,
|
|
492
|
+
removedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList,
|
|
493
|
+
})).annotate({
|
|
494
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options",
|
|
495
|
+
});
|
|
496
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior =
|
|
497
|
+
/*@__PURE__*/ S.String;
|
|
498
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList =
|
|
499
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
500
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList =
|
|
501
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
502
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList =
|
|
503
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
504
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem =
|
|
505
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
506
|
+
productAlias: S.String,
|
|
507
|
+
productId: S.String,
|
|
508
|
+
quantity: S.Number,
|
|
509
|
+
addedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList),
|
|
510
|
+
effectiveAt: S.optional(S.String),
|
|
511
|
+
removedResourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList),
|
|
512
|
+
resourceIds: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList),
|
|
513
|
+
})).annotate({
|
|
514
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem",
|
|
515
|
+
});
|
|
516
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList =
|
|
517
|
+
/*@__PURE__*/ S.Array(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem);
|
|
518
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap =
|
|
519
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
520
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output =
|
|
521
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
522
|
+
effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior,
|
|
523
|
+
orbPriceId: S.String,
|
|
524
|
+
productId: S.String,
|
|
525
|
+
changedResources: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList),
|
|
526
|
+
metadata: S.optional(BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap),
|
|
527
|
+
pendingSubscriptionChangeId: S.optional(S.String),
|
|
528
|
+
})).annotate({
|
|
529
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output",
|
|
530
|
+
});
|
|
531
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type =
|
|
532
|
+
/*@__PURE__*/ S.String;
|
|
533
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3 =
|
|
534
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
|
+
options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options,
|
|
536
|
+
output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output,
|
|
537
|
+
type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type,
|
|
538
|
+
})).annotate({
|
|
539
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3",
|
|
540
|
+
});
|
|
541
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration =
|
|
542
|
+
/*@__PURE__*/ S.Unknown;
|
|
543
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus =
|
|
544
|
+
/*@__PURE__*/ S.String;
|
|
545
|
+
export const BuyCreditsResponseBodyCase2OrbSubscriptionIntent =
|
|
546
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
547
|
+
id: S.String,
|
|
548
|
+
configuration: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration,
|
|
549
|
+
createdAt: S.String,
|
|
550
|
+
orbSubscriptionId: S.String,
|
|
551
|
+
ownerId: S.String,
|
|
552
|
+
status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus,
|
|
553
|
+
updatedAt: S.String,
|
|
554
|
+
purchaseIntentId: S.optional(S.String),
|
|
555
|
+
})).annotate({
|
|
556
|
+
identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntent",
|
|
557
|
+
});
|
|
558
|
+
export const BuyCreditsResponseBodyCase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
559
|
+
orbSubscriptionIntent: BuyCreditsResponseBodyCase2OrbSubscriptionIntent,
|
|
560
|
+
})).annotate({
|
|
561
|
+
identifier: "BuyCreditsResponseBodyCase2",
|
|
562
|
+
});
|
|
563
|
+
export const BuyCreditsResponseBody =
|
|
564
|
+
/*@__PURE__*/ S.Unknown;
|
|
565
|
+
export const BuyCreditsResponse = /*@__PURE__*/ S.suspend(() => BuyCreditsResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
566
|
+
identifier: "BuyCreditsResponse",
|
|
567
|
+
});
|
|
568
|
+
export const ListBillingChargesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
569
|
+
from: S.String.pipe(T.Query()),
|
|
570
|
+
to: S.String.pipe(T.Query()),
|
|
571
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
572
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
573
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/billing/charges", code: 200 }))).annotate({
|
|
574
|
+
identifier: "ListBillingChargesRequest",
|
|
575
|
+
});
|
|
576
|
+
export const ListBillingChargesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
577
|
+
identifier: "ListBillingChargesResponse",
|
|
578
|
+
});
|
|
579
|
+
export const ListContractCommitmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
580
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
581
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
582
|
+
}).pipe(T.Http({
|
|
583
|
+
method: "GET",
|
|
584
|
+
uri: "/v1/billing/contract-commitments",
|
|
585
|
+
code: 200,
|
|
586
|
+
}))).annotate({
|
|
587
|
+
identifier: "ListContractCommitmentsRequest",
|
|
588
|
+
});
|
|
589
|
+
export const ListContractCommitmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
590
|
+
identifier: "ListContractCommitmentsResponse",
|
|
591
|
+
});
|
|
592
|
+
/** Purchase credits Purchases credits for a Vercel team using the default payment method on file. The purchase is charged immediately via Stripe invoice. Supported credit types are `v0`, `gateway`, and `agent`. The `amount` field specifies the number of credits to purchase and must be a positive integer. An optional `source` query parameter can be provided to identify the caller. Defaults to `api` if not specified. This is only available for Owner, Member, Developer, Security, and Billing roles for the supplied team. */
|
|
593
|
+
export const buyCredits = /*@__PURE__*/ API.make(() => ({
|
|
594
|
+
input: BuyCreditsRequest,
|
|
595
|
+
output: BuyCreditsResponse,
|
|
596
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
597
|
+
protocol: VercelProtocol,
|
|
598
|
+
retry: Retry.Retry,
|
|
599
|
+
}));
|
|
600
|
+
/** List FOCUS billing charges Returns the billing charge data in FOCUS v1.3 JSONL format for a specified Vercel team, within a date range specified by `from` and `to` query parameters. Supports 1-day granularity with a maximum date range of 1 year. The response is streamed as newline-delimited JSON (JSONL) and can be optionally compressed with gzip if the `Accept-Encoding: gzip` header is provided. This is only available for Owner, Member, Developer, Security, Billing, and Enterprise Viewer roles for the supplied team. */
|
|
601
|
+
export const listBillingCharges = /*@__PURE__*/ API.make(() => ({
|
|
602
|
+
input: ListBillingChargesRequest,
|
|
603
|
+
output: ListBillingChargesResponse,
|
|
604
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
605
|
+
protocol: VercelProtocol,
|
|
606
|
+
retry: Retry.Retry,
|
|
607
|
+
}));
|
|
608
|
+
/** List FOCUS contract commitments Returns commitment allocations per contract period in FOCUS v1.3 JSONL format for a specified Vercel team. The response is streamed as newline-delimited JSON (JSONL). This endpoint is only applicable to Enterprise Vercel customers. An empty response is returned for non-Enterprise (Pro/Flex) customers. */
|
|
609
|
+
export const listContractCommitments = /*@__PURE__*/ API.make(() => ({
|
|
610
|
+
input: ListContractCommitmentsRequest,
|
|
611
|
+
output: ListContractCommitmentsResponse,
|
|
612
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
613
|
+
protocol: VercelProtocol,
|
|
614
|
+
retry: Retry.Retry,
|
|
615
|
+
}));
|
|
616
|
+
//# sourceMappingURL=billing.js.map
|