@inixiative/infra 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +27 -2
- package/dist/chunk-55HNIEAS.js +2 -0
- package/dist/chunk-55HNIEAS.js.map +1 -0
- package/dist/chunk-57XPSHXO.js +3 -0
- package/dist/chunk-57XPSHXO.js.map +1 -0
- package/dist/chunk-CNAFA6FE.cjs +2 -0
- package/dist/chunk-CNAFA6FE.cjs.map +1 -0
- package/dist/chunk-I3A224H4.js +3 -0
- package/dist/chunk-I3A224H4.js.map +1 -0
- package/dist/chunk-IKFDAKTH.cjs +3 -0
- package/dist/chunk-IKFDAKTH.cjs.map +1 -0
- package/dist/chunk-MO2YI2GE.cjs +2 -0
- package/dist/chunk-MO2YI2GE.cjs.map +1 -0
- package/dist/chunk-NGWNYW3U.js +3 -0
- package/dist/chunk-NGWNYW3U.js.map +1 -0
- package/dist/chunk-OHRGTWGZ.cjs +3 -0
- package/dist/chunk-OHRGTWGZ.cjs.map +1 -0
- package/dist/chunk-QREJ73ZG.cjs +2 -0
- package/dist/chunk-QREJ73ZG.cjs.map +1 -0
- package/dist/chunk-S47XOR4G.js +2 -0
- package/dist/chunk-S47XOR4G.js.map +1 -0
- package/dist/chunk-SLMYHBFB.cjs +3 -0
- package/dist/chunk-SLMYHBFB.cjs.map +1 -0
- package/dist/chunk-SLTGCMZB.cjs +2 -0
- package/dist/chunk-SLTGCMZB.cjs.map +1 -0
- package/dist/chunk-U37YUCGZ.js +3 -0
- package/dist/chunk-U37YUCGZ.js.map +1 -0
- package/dist/chunk-UBIV4YMZ.js +2 -0
- package/dist/chunk-UBIV4YMZ.js.map +1 -0
- package/dist/chunk-UDYDMV6Z.cjs +3 -0
- package/dist/chunk-UDYDMV6Z.cjs.map +1 -0
- package/dist/chunk-UYNHLDGH.cjs +3 -0
- package/dist/chunk-UYNHLDGH.cjs.map +1 -0
- package/dist/chunk-W5SAM2DK.js +2 -0
- package/dist/chunk-W5SAM2DK.js.map +1 -0
- package/dist/chunk-WYJ7UHT3.js +3 -0
- package/dist/chunk-WYJ7UHT3.js.map +1 -0
- package/dist/contracts-BxHKiOwj.d.cts +169 -0
- package/dist/contracts-BxHKiOwj.d.ts +169 -0
- package/dist/firecracker/index.cjs +2 -0
- package/dist/firecracker/index.cjs.map +1 -0
- package/dist/firecracker/index.d.cts +18 -0
- package/dist/firecracker/index.d.ts +18 -0
- package/dist/firecracker/index.js +2 -0
- package/dist/firecracker/index.js.map +1 -0
- package/dist/fly/index.cjs +2 -0
- package/dist/fly/index.cjs.map +1 -0
- package/dist/fly/index.d.cts +14 -0
- package/dist/fly/index.d.ts +14 -0
- package/dist/fly/index.js +2 -0
- package/dist/fly/index.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +58 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lifecycle/index.cjs +2 -0
- package/dist/lifecycle/index.cjs.map +1 -0
- package/dist/lifecycle/index.d.cts +145 -0
- package/dist/lifecycle/index.d.ts +145 -0
- package/dist/lifecycle/index.js +2 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/railway/index.cjs +2 -0
- package/dist/railway/index.cjs.map +1 -0
- package/dist/railway/index.d.cts +87 -0
- package/dist/railway/index.d.ts +87 -0
- package/dist/railway/index.js +2 -0
- package/dist/railway/index.js.map +1 -0
- package/dist/render/index.cjs +2 -0
- package/dist/render/index.cjs.map +1 -0
- package/dist/render/index.d.cts +30 -0
- package/dist/render/index.d.ts +30 -0
- package/dist/render/index.js +2 -0
- package/dist/render/index.js.map +1 -0
- package/package.json +83 -4
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { n as InfraProviderId, p as WorkloadCpuKind } from '../contracts-BxHKiOwj.cjs';
|
|
2
|
+
|
|
3
|
+
type HostingCostProjectionInput = {
|
|
4
|
+
readonly provider: InfraProviderId;
|
|
5
|
+
readonly memoryMb: number;
|
|
6
|
+
readonly vcpus: number;
|
|
7
|
+
readonly activeHoursPerMonth: number;
|
|
8
|
+
readonly suspendedHoursPerMonth: number;
|
|
9
|
+
readonly rootfsGb: number;
|
|
10
|
+
readonly markupMultiplier?: number;
|
|
11
|
+
readonly averageMemoryUtilization?: number;
|
|
12
|
+
readonly averageCpuUtilization?: number;
|
|
13
|
+
readonly cpuKind?: WorkloadCpuKind;
|
|
14
|
+
};
|
|
15
|
+
type HostingCostProjection = {
|
|
16
|
+
readonly provider: InfraProviderId;
|
|
17
|
+
readonly activeComputeUsd: number;
|
|
18
|
+
readonly suspendedStorageUsd: number;
|
|
19
|
+
readonly rawMonthlyCostUsd: number;
|
|
20
|
+
readonly markupMultiplier: number;
|
|
21
|
+
readonly markedUpMonthlyCostUsd: number;
|
|
22
|
+
readonly marginUsd: number;
|
|
23
|
+
readonly pricingBasis: string;
|
|
24
|
+
};
|
|
25
|
+
declare const HOSTING_PRICING_RATES: {
|
|
26
|
+
readonly railway: {
|
|
27
|
+
readonly memoryUsdPerGbHour: 0.0139;
|
|
28
|
+
readonly vcpuUsdPerHour: 0.0278;
|
|
29
|
+
readonly storageUsdPerGbMonth: 0.15;
|
|
30
|
+
};
|
|
31
|
+
readonly fly: {
|
|
32
|
+
readonly sharedVcpuUsdPerMonth: 0.7;
|
|
33
|
+
readonly performanceVcpuUsdPerMonth: 21;
|
|
34
|
+
readonly memoryUsdPerGbMonth: 6;
|
|
35
|
+
readonly suspendedRootfsUsdPerGbMonth: 0.15;
|
|
36
|
+
};
|
|
37
|
+
readonly render: {
|
|
38
|
+
readonly diskUsdPerGbMonth: 0.25;
|
|
39
|
+
};
|
|
40
|
+
readonly firecracker: {
|
|
41
|
+
readonly amortizedMemoryUsdPerGbMonth: 3.5;
|
|
42
|
+
readonly amortizedVcpuUsdPerMonth: 4;
|
|
43
|
+
readonly snapshotStorageUsdPerGbMonth: 0.05;
|
|
44
|
+
};
|
|
45
|
+
readonly aws: {
|
|
46
|
+
readonly fargateArmVcpuUsdPerHour: 0.0324;
|
|
47
|
+
readonly fargateArmMemoryUsdPerGbHour: 0.0036;
|
|
48
|
+
readonly storageUsdPerGbMonth: 0.08;
|
|
49
|
+
};
|
|
50
|
+
readonly gcp: {
|
|
51
|
+
readonly vcpuUsdPerHour: 0.0432;
|
|
52
|
+
readonly memoryUsdPerGbHour: 0.0048;
|
|
53
|
+
readonly storageUsdPerGbMonth: 0.1;
|
|
54
|
+
};
|
|
55
|
+
readonly azure: {
|
|
56
|
+
readonly vcpuUsdPerHour: 0.0432;
|
|
57
|
+
readonly memoryUsdPerGbHour: 0.0048;
|
|
58
|
+
readonly storageUsdPerGbMonth: 0.1;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare const projectHostingMonthlyCost: (input: HostingCostProjectionInput) => HostingCostProjection;
|
|
62
|
+
|
|
63
|
+
declare const WORKLOAD_LIFECYCLE_STATES: readonly ["provisioning", "booting", "warm", "active", "draining", "suspending", "suspended", "terminating", "destroyed", "failed", "orphaned"];
|
|
64
|
+
type WorkloadLifecycleState = (typeof WORKLOAD_LIFECYCLE_STATES)[number];
|
|
65
|
+
declare const WORKLOAD_CLASSES: readonly ["warm-interactive", "warm-pool", "batch-worker", "ephemeral-session", "always-on"];
|
|
66
|
+
type WorkloadClass = (typeof WORKLOAD_CLASSES)[number];
|
|
67
|
+
type WarmRetentionMode = 'short' | 'extended';
|
|
68
|
+
type WorkingHoursSchedule = {
|
|
69
|
+
readonly timezoneOffsetMinutes: number;
|
|
70
|
+
readonly startHour: number;
|
|
71
|
+
readonly endHour: number;
|
|
72
|
+
readonly weekdaysOnly: boolean;
|
|
73
|
+
readonly prewarmLeadMs: number;
|
|
74
|
+
};
|
|
75
|
+
type WorkloadIdleAction = 'suspend' | 'terminate' | 'keep_warm';
|
|
76
|
+
type WorkloadLifecyclePolicy = {
|
|
77
|
+
readonly workloadClass: WorkloadClass;
|
|
78
|
+
readonly idleSuspendMs: number | null;
|
|
79
|
+
readonly idleStopMs: number | null;
|
|
80
|
+
readonly drainGraceMs: number;
|
|
81
|
+
readonly pendingApprovalGraceMs: number;
|
|
82
|
+
readonly maxLifetimeMs: number | null;
|
|
83
|
+
readonly maxSuspendedMs: number | null;
|
|
84
|
+
readonly softMemoryRecycleMb: number | null;
|
|
85
|
+
readonly hardMemoryCapMb: number | null;
|
|
86
|
+
readonly requireArchiveFlushBeforeWindDown: boolean;
|
|
87
|
+
readonly workingHoursPrewarm?: WorkingHoursSchedule;
|
|
88
|
+
readonly idleAction: WorkloadIdleAction;
|
|
89
|
+
};
|
|
90
|
+
type WorkloadLifecycleSnapshot = {
|
|
91
|
+
readonly workloadId: string;
|
|
92
|
+
readonly workloadClass: WorkloadClass;
|
|
93
|
+
readonly provider: InfraProviderId;
|
|
94
|
+
readonly state: WorkloadLifecycleState;
|
|
95
|
+
readonly createdAtMs: number;
|
|
96
|
+
readonly lastActivityAtMs: number;
|
|
97
|
+
readonly stateEnteredAtMs: number;
|
|
98
|
+
readonly inFlightTurns: number;
|
|
99
|
+
readonly activeBackgroundShells: number;
|
|
100
|
+
readonly pendingApprovals?: number;
|
|
101
|
+
readonly archiveFlushed: boolean;
|
|
102
|
+
readonly provisionedMemoryMb?: number;
|
|
103
|
+
readonly rssMemoryMb?: number;
|
|
104
|
+
readonly pinnedWarm?: boolean;
|
|
105
|
+
readonly warmRetentionMode?: WarmRetentionMode;
|
|
106
|
+
};
|
|
107
|
+
type WorkloadLifecycleAction = 'none' | 'prewarm' | 'drain' | 'suspend' | 'terminate' | 'recycle';
|
|
108
|
+
type WorkloadLifecycleDecision = {
|
|
109
|
+
readonly action: WorkloadLifecycleAction;
|
|
110
|
+
readonly reason: string;
|
|
111
|
+
readonly nextCheckAtMs: number | null;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare const evaluateWorkloadLifecycle: (snapshot: WorkloadLifecycleSnapshot, nowMs: number, policy?: WorkloadLifecyclePolicy) => WorkloadLifecycleDecision;
|
|
115
|
+
|
|
116
|
+
type WorkloadLifecyclePolicyOptions = {
|
|
117
|
+
readonly warmRetentionMode?: WarmRetentionMode;
|
|
118
|
+
readonly workingHoursPrewarm?: WorkingHoursSchedule;
|
|
119
|
+
};
|
|
120
|
+
declare const defaultWorkloadLifecyclePolicy: (workloadClass: WorkloadClass, options?: WorkloadLifecyclePolicyOptions) => WorkloadLifecyclePolicy;
|
|
121
|
+
|
|
122
|
+
type StaggeredWakeRequest = {
|
|
123
|
+
readonly workloadId: string;
|
|
124
|
+
readonly priority?: number;
|
|
125
|
+
readonly requestedAtMs: number;
|
|
126
|
+
};
|
|
127
|
+
type StaggeredWakeOptions = {
|
|
128
|
+
readonly maxConcurrentWakes: number;
|
|
129
|
+
readonly minSpacingMs: number;
|
|
130
|
+
readonly inFlightWakeCount?: number;
|
|
131
|
+
readonly lastWakeLaunchedAtMs?: number | null;
|
|
132
|
+
};
|
|
133
|
+
type DeferredWakeReason = 'concurrency_limit' | 'spacing_interval';
|
|
134
|
+
type DeferredWake = {
|
|
135
|
+
readonly request: StaggeredWakeRequest;
|
|
136
|
+
readonly earliestLaunchAtMs: number;
|
|
137
|
+
readonly reason: DeferredWakeReason;
|
|
138
|
+
};
|
|
139
|
+
type StaggeredWakePlan = {
|
|
140
|
+
readonly launchNow: readonly StaggeredWakeRequest[];
|
|
141
|
+
readonly defer: readonly DeferredWake[];
|
|
142
|
+
};
|
|
143
|
+
declare const planStaggeredWakes: (requests: readonly StaggeredWakeRequest[], nowMs: number, options: StaggeredWakeOptions) => StaggeredWakePlan;
|
|
144
|
+
|
|
145
|
+
export { type DeferredWake, type DeferredWakeReason, HOSTING_PRICING_RATES, type HostingCostProjection, type HostingCostProjectionInput, type StaggeredWakeOptions, type StaggeredWakePlan, type StaggeredWakeRequest, WORKLOAD_CLASSES, WORKLOAD_LIFECYCLE_STATES, type WarmRetentionMode, type WorkingHoursSchedule, type WorkloadClass, type WorkloadIdleAction, type WorkloadLifecycleAction, type WorkloadLifecycleDecision, type WorkloadLifecyclePolicy, type WorkloadLifecyclePolicyOptions, type WorkloadLifecycleSnapshot, type WorkloadLifecycleState, defaultWorkloadLifecyclePolicy, evaluateWorkloadLifecycle, planStaggeredWakes, projectHostingMonthlyCost };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { n as InfraProviderId, p as WorkloadCpuKind } from '../contracts-BxHKiOwj.js';
|
|
2
|
+
|
|
3
|
+
type HostingCostProjectionInput = {
|
|
4
|
+
readonly provider: InfraProviderId;
|
|
5
|
+
readonly memoryMb: number;
|
|
6
|
+
readonly vcpus: number;
|
|
7
|
+
readonly activeHoursPerMonth: number;
|
|
8
|
+
readonly suspendedHoursPerMonth: number;
|
|
9
|
+
readonly rootfsGb: number;
|
|
10
|
+
readonly markupMultiplier?: number;
|
|
11
|
+
readonly averageMemoryUtilization?: number;
|
|
12
|
+
readonly averageCpuUtilization?: number;
|
|
13
|
+
readonly cpuKind?: WorkloadCpuKind;
|
|
14
|
+
};
|
|
15
|
+
type HostingCostProjection = {
|
|
16
|
+
readonly provider: InfraProviderId;
|
|
17
|
+
readonly activeComputeUsd: number;
|
|
18
|
+
readonly suspendedStorageUsd: number;
|
|
19
|
+
readonly rawMonthlyCostUsd: number;
|
|
20
|
+
readonly markupMultiplier: number;
|
|
21
|
+
readonly markedUpMonthlyCostUsd: number;
|
|
22
|
+
readonly marginUsd: number;
|
|
23
|
+
readonly pricingBasis: string;
|
|
24
|
+
};
|
|
25
|
+
declare const HOSTING_PRICING_RATES: {
|
|
26
|
+
readonly railway: {
|
|
27
|
+
readonly memoryUsdPerGbHour: 0.0139;
|
|
28
|
+
readonly vcpuUsdPerHour: 0.0278;
|
|
29
|
+
readonly storageUsdPerGbMonth: 0.15;
|
|
30
|
+
};
|
|
31
|
+
readonly fly: {
|
|
32
|
+
readonly sharedVcpuUsdPerMonth: 0.7;
|
|
33
|
+
readonly performanceVcpuUsdPerMonth: 21;
|
|
34
|
+
readonly memoryUsdPerGbMonth: 6;
|
|
35
|
+
readonly suspendedRootfsUsdPerGbMonth: 0.15;
|
|
36
|
+
};
|
|
37
|
+
readonly render: {
|
|
38
|
+
readonly diskUsdPerGbMonth: 0.25;
|
|
39
|
+
};
|
|
40
|
+
readonly firecracker: {
|
|
41
|
+
readonly amortizedMemoryUsdPerGbMonth: 3.5;
|
|
42
|
+
readonly amortizedVcpuUsdPerMonth: 4;
|
|
43
|
+
readonly snapshotStorageUsdPerGbMonth: 0.05;
|
|
44
|
+
};
|
|
45
|
+
readonly aws: {
|
|
46
|
+
readonly fargateArmVcpuUsdPerHour: 0.0324;
|
|
47
|
+
readonly fargateArmMemoryUsdPerGbHour: 0.0036;
|
|
48
|
+
readonly storageUsdPerGbMonth: 0.08;
|
|
49
|
+
};
|
|
50
|
+
readonly gcp: {
|
|
51
|
+
readonly vcpuUsdPerHour: 0.0432;
|
|
52
|
+
readonly memoryUsdPerGbHour: 0.0048;
|
|
53
|
+
readonly storageUsdPerGbMonth: 0.1;
|
|
54
|
+
};
|
|
55
|
+
readonly azure: {
|
|
56
|
+
readonly vcpuUsdPerHour: 0.0432;
|
|
57
|
+
readonly memoryUsdPerGbHour: 0.0048;
|
|
58
|
+
readonly storageUsdPerGbMonth: 0.1;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare const projectHostingMonthlyCost: (input: HostingCostProjectionInput) => HostingCostProjection;
|
|
62
|
+
|
|
63
|
+
declare const WORKLOAD_LIFECYCLE_STATES: readonly ["provisioning", "booting", "warm", "active", "draining", "suspending", "suspended", "terminating", "destroyed", "failed", "orphaned"];
|
|
64
|
+
type WorkloadLifecycleState = (typeof WORKLOAD_LIFECYCLE_STATES)[number];
|
|
65
|
+
declare const WORKLOAD_CLASSES: readonly ["warm-interactive", "warm-pool", "batch-worker", "ephemeral-session", "always-on"];
|
|
66
|
+
type WorkloadClass = (typeof WORKLOAD_CLASSES)[number];
|
|
67
|
+
type WarmRetentionMode = 'short' | 'extended';
|
|
68
|
+
type WorkingHoursSchedule = {
|
|
69
|
+
readonly timezoneOffsetMinutes: number;
|
|
70
|
+
readonly startHour: number;
|
|
71
|
+
readonly endHour: number;
|
|
72
|
+
readonly weekdaysOnly: boolean;
|
|
73
|
+
readonly prewarmLeadMs: number;
|
|
74
|
+
};
|
|
75
|
+
type WorkloadIdleAction = 'suspend' | 'terminate' | 'keep_warm';
|
|
76
|
+
type WorkloadLifecyclePolicy = {
|
|
77
|
+
readonly workloadClass: WorkloadClass;
|
|
78
|
+
readonly idleSuspendMs: number | null;
|
|
79
|
+
readonly idleStopMs: number | null;
|
|
80
|
+
readonly drainGraceMs: number;
|
|
81
|
+
readonly pendingApprovalGraceMs: number;
|
|
82
|
+
readonly maxLifetimeMs: number | null;
|
|
83
|
+
readonly maxSuspendedMs: number | null;
|
|
84
|
+
readonly softMemoryRecycleMb: number | null;
|
|
85
|
+
readonly hardMemoryCapMb: number | null;
|
|
86
|
+
readonly requireArchiveFlushBeforeWindDown: boolean;
|
|
87
|
+
readonly workingHoursPrewarm?: WorkingHoursSchedule;
|
|
88
|
+
readonly idleAction: WorkloadIdleAction;
|
|
89
|
+
};
|
|
90
|
+
type WorkloadLifecycleSnapshot = {
|
|
91
|
+
readonly workloadId: string;
|
|
92
|
+
readonly workloadClass: WorkloadClass;
|
|
93
|
+
readonly provider: InfraProviderId;
|
|
94
|
+
readonly state: WorkloadLifecycleState;
|
|
95
|
+
readonly createdAtMs: number;
|
|
96
|
+
readonly lastActivityAtMs: number;
|
|
97
|
+
readonly stateEnteredAtMs: number;
|
|
98
|
+
readonly inFlightTurns: number;
|
|
99
|
+
readonly activeBackgroundShells: number;
|
|
100
|
+
readonly pendingApprovals?: number;
|
|
101
|
+
readonly archiveFlushed: boolean;
|
|
102
|
+
readonly provisionedMemoryMb?: number;
|
|
103
|
+
readonly rssMemoryMb?: number;
|
|
104
|
+
readonly pinnedWarm?: boolean;
|
|
105
|
+
readonly warmRetentionMode?: WarmRetentionMode;
|
|
106
|
+
};
|
|
107
|
+
type WorkloadLifecycleAction = 'none' | 'prewarm' | 'drain' | 'suspend' | 'terminate' | 'recycle';
|
|
108
|
+
type WorkloadLifecycleDecision = {
|
|
109
|
+
readonly action: WorkloadLifecycleAction;
|
|
110
|
+
readonly reason: string;
|
|
111
|
+
readonly nextCheckAtMs: number | null;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare const evaluateWorkloadLifecycle: (snapshot: WorkloadLifecycleSnapshot, nowMs: number, policy?: WorkloadLifecyclePolicy) => WorkloadLifecycleDecision;
|
|
115
|
+
|
|
116
|
+
type WorkloadLifecyclePolicyOptions = {
|
|
117
|
+
readonly warmRetentionMode?: WarmRetentionMode;
|
|
118
|
+
readonly workingHoursPrewarm?: WorkingHoursSchedule;
|
|
119
|
+
};
|
|
120
|
+
declare const defaultWorkloadLifecyclePolicy: (workloadClass: WorkloadClass, options?: WorkloadLifecyclePolicyOptions) => WorkloadLifecyclePolicy;
|
|
121
|
+
|
|
122
|
+
type StaggeredWakeRequest = {
|
|
123
|
+
readonly workloadId: string;
|
|
124
|
+
readonly priority?: number;
|
|
125
|
+
readonly requestedAtMs: number;
|
|
126
|
+
};
|
|
127
|
+
type StaggeredWakeOptions = {
|
|
128
|
+
readonly maxConcurrentWakes: number;
|
|
129
|
+
readonly minSpacingMs: number;
|
|
130
|
+
readonly inFlightWakeCount?: number;
|
|
131
|
+
readonly lastWakeLaunchedAtMs?: number | null;
|
|
132
|
+
};
|
|
133
|
+
type DeferredWakeReason = 'concurrency_limit' | 'spacing_interval';
|
|
134
|
+
type DeferredWake = {
|
|
135
|
+
readonly request: StaggeredWakeRequest;
|
|
136
|
+
readonly earliestLaunchAtMs: number;
|
|
137
|
+
readonly reason: DeferredWakeReason;
|
|
138
|
+
};
|
|
139
|
+
type StaggeredWakePlan = {
|
|
140
|
+
readonly launchNow: readonly StaggeredWakeRequest[];
|
|
141
|
+
readonly defer: readonly DeferredWake[];
|
|
142
|
+
};
|
|
143
|
+
declare const planStaggeredWakes: (requests: readonly StaggeredWakeRequest[], nowMs: number, options: StaggeredWakeOptions) => StaggeredWakePlan;
|
|
144
|
+
|
|
145
|
+
export { type DeferredWake, type DeferredWakeReason, HOSTING_PRICING_RATES, type HostingCostProjection, type HostingCostProjectionInput, type StaggeredWakeOptions, type StaggeredWakePlan, type StaggeredWakeRequest, WORKLOAD_CLASSES, WORKLOAD_LIFECYCLE_STATES, type WarmRetentionMode, type WorkingHoursSchedule, type WorkloadClass, type WorkloadIdleAction, type WorkloadLifecycleAction, type WorkloadLifecycleDecision, type WorkloadLifecyclePolicy, type WorkloadLifecyclePolicyOptions, type WorkloadLifecycleSnapshot, type WorkloadLifecycleState, defaultWorkloadLifecyclePolicy, evaluateWorkloadLifecycle, planStaggeredWakes, projectHostingMonthlyCost };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{i as HOSTING_PRICING_RATES,n as WORKLOAD_CLASSES,m as WORKLOAD_LIFECYCLE_STATES,k as defaultWorkloadLifecyclePolicy,l as evaluateWorkloadLifecycle,o as planStaggeredWakes,j as projectHostingMonthlyCost}from'../chunk-W5SAM2DK.js';import'../chunk-55HNIEAS.js';import'../chunk-S47XOR4G.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkUYNHLDGH_cjs=require('../chunk-UYNHLDGH.cjs');require('../chunk-SLTGCMZB.cjs'),require('../chunk-OHRGTWGZ.cjs'),require('../chunk-QREJ73ZG.cjs');Object.defineProperty(exports,"RAILWAY_API_URL",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.a}});Object.defineProperty(exports,"RAILWAY_ARCHIVE_SERVICE",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.F}});Object.defineProperty(exports,"RAILWAY_DATABASE_SERVICE",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.E}});Object.defineProperty(exports,"connectRailwayServiceToGitHub",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.m}});Object.defineProperty(exports,"createRailwayBucket",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.z}});Object.defineProperty(exports,"createRailwayProject",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.e}});Object.defineProperty(exports,"deleteRailwayService",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.C}});Object.defineProperty(exports,"deployRailwayServiceInstance",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.t}});Object.defineProperty(exports,"deployRailwayServiceLatestCommit",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.u}});Object.defineProperty(exports,"ensureRailwayBucket",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.A}});Object.defineProperty(exports,"ensureRailwayProject",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.g}});Object.defineProperty(exports,"ensureRailwayService",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.i}});Object.defineProperty(exports,"ensureRailwayServiceDomain",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.x}});Object.defineProperty(exports,"ensureRailwayVolume",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.o}});Object.defineProperty(exports,"fetchRailwayBucketCredentials",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.B}});Object.defineProperty(exports,"fetchRailwayDeploymentStatus",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.v}});Object.defineProperty(exports,"fetchRailwayProjectBuckets",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.y}});Object.defineProperty(exports,"fetchRailwayProjectByName",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.d}});Object.defineProperty(exports,"fetchRailwayProjectEnvironments",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.f}});Object.defineProperty(exports,"fetchRailwayProjectVolumes",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.n}});Object.defineProperty(exports,"fetchRailwayServiceGitHubConnectionStatus",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.l}});Object.defineProperty(exports,"fetchRailwayServiceInstance",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.s}});Object.defineProperty(exports,"fetchRailwayServiceVariables",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.q}});Object.defineProperty(exports,"fetchRailwayWorkspaces",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.c}});Object.defineProperty(exports,"railwayArchiveDriver",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.G}});Object.defineProperty(exports,"railwayWorkloadDriver",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.H}});Object.defineProperty(exports,"renameRailwayEnvironment",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.h}});Object.defineProperty(exports,"renameRailwayService",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.j}});Object.defineProperty(exports,"renameRailwayVolume",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.p}});Object.defineProperty(exports,"scheduleRailwayProjectDelete",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.D}});Object.defineProperty(exports,"sendRailwayGraphql",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.b}});Object.defineProperty(exports,"stopRailwayDeployment",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.w}});Object.defineProperty(exports,"updateRailwayServiceInstance",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.k}});Object.defineProperty(exports,"upsertRailwayServiceVariables",{enumerable:true,get:function(){return chunkUYNHLDGH_cjs.r}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { a as ArchiveHostingDriver, H as HostingWorkspace, W as WorkloadDriver } from '../contracts-BxHKiOwj.cjs';
|
|
2
|
+
|
|
3
|
+
declare const RAILWAY_DATABASE_SERVICE = "archive-postgres";
|
|
4
|
+
declare const RAILWAY_ARCHIVE_SERVICE = "archive";
|
|
5
|
+
declare const railwayArchiveDriver: ArchiveHostingDriver;
|
|
6
|
+
|
|
7
|
+
declare const RAILWAY_API_URL = "https://backboard.railway.com/graphql/v2";
|
|
8
|
+
declare const sendRailwayGraphql: <T>(token: string, query: string, variables?: Record<string, unknown>, apiUrl?: string) => Promise<T>;
|
|
9
|
+
|
|
10
|
+
type RailwayNamedResource = {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
};
|
|
14
|
+
type RailwayProjectSummary = RailwayNamedResource & {
|
|
15
|
+
readonly environments: readonly RailwayNamedResource[];
|
|
16
|
+
};
|
|
17
|
+
type RailwayServiceInstanceInfo = {
|
|
18
|
+
readonly latestDeployment: {
|
|
19
|
+
readonly id?: string;
|
|
20
|
+
readonly status: string;
|
|
21
|
+
} | null;
|
|
22
|
+
readonly domains: readonly string[];
|
|
23
|
+
readonly sourceRepo?: string | null;
|
|
24
|
+
};
|
|
25
|
+
type RailwayServiceInstanceUpdateInput = {
|
|
26
|
+
readonly source?: {
|
|
27
|
+
readonly image?: string;
|
|
28
|
+
readonly repo?: string;
|
|
29
|
+
};
|
|
30
|
+
readonly healthcheckPath?: string;
|
|
31
|
+
readonly rootDirectory?: string;
|
|
32
|
+
readonly buildCommand?: string;
|
|
33
|
+
readonly startCommand?: string;
|
|
34
|
+
readonly sleepApplication?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type RailwayBucketCredentials = {
|
|
37
|
+
readonly bucket: string;
|
|
38
|
+
readonly accessKeyId: string;
|
|
39
|
+
readonly secretAccessKey: string;
|
|
40
|
+
readonly region: string;
|
|
41
|
+
readonly endpoint: string;
|
|
42
|
+
readonly urlStyle: string;
|
|
43
|
+
};
|
|
44
|
+
declare const fetchRailwayWorkspaces: (token: string, apiUrl?: string) => Promise<HostingWorkspace[]>;
|
|
45
|
+
declare const fetchRailwayProjectByName: (token: string, workspaceId: string, name: string, apiUrl?: string) => Promise<RailwayProjectSummary | undefined>;
|
|
46
|
+
declare const createRailwayProject: (token: string, workspaceId: string, name: string, defaultEnvironmentName?: string, apiUrl?: string) => Promise<RailwayProjectSummary>;
|
|
47
|
+
declare const fetchRailwayProjectEnvironments: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
48
|
+
declare const ensureRailwayProject: (token: string, workspaceId: string, name: string, existingIds?: {
|
|
49
|
+
readonly projectId?: string;
|
|
50
|
+
readonly environmentId?: string;
|
|
51
|
+
}, apiUrl?: string) => Promise<{
|
|
52
|
+
readonly projectId: string;
|
|
53
|
+
readonly environmentId: string;
|
|
54
|
+
}>;
|
|
55
|
+
declare const renameRailwayEnvironment: (token: string, environmentId: string, name: string, apiUrl?: string) => Promise<boolean>;
|
|
56
|
+
declare const ensureRailwayService: (token: string, projectId: string, environmentId: string, name: string, apiUrl?: string) => Promise<string>;
|
|
57
|
+
declare const renameRailwayService: (token: string, serviceId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
58
|
+
declare const updateRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, input: RailwayServiceInstanceUpdateInput, apiUrl?: string) => Promise<void>;
|
|
59
|
+
declare const fetchRailwayServiceGitHubConnectionStatus: (token: string, serviceId: string, environmentId: string, apiUrl?: string) => Promise<boolean>;
|
|
60
|
+
declare const connectRailwayServiceToGitHub: (token: string, serviceId: string, environmentId: string, repo: string, branch?: string, apiUrl?: string) => Promise<void>;
|
|
61
|
+
declare const fetchRailwayProjectVolumes: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
62
|
+
declare const ensureRailwayVolume: (token: string, projectId: string, environmentId: string, serviceId: string, mountPath: string, apiUrl?: string) => Promise<void>;
|
|
63
|
+
declare const renameRailwayVolume: (token: string, volumeId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
64
|
+
declare const fetchRailwayServiceVariables: (token: string, projectId: string, environmentId: string, serviceId: string, apiUrl?: string) => Promise<Record<string, string>>;
|
|
65
|
+
declare const upsertRailwayServiceVariables: (token: string, projectId: string, environmentId: string, serviceId: string, variables: Readonly<Record<string, string>>, options?: {
|
|
66
|
+
readonly skipDeploys?: boolean;
|
|
67
|
+
}, apiUrl?: string) => Promise<void>;
|
|
68
|
+
declare const fetchRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, apiUrl?: string) => Promise<RailwayServiceInstanceInfo>;
|
|
69
|
+
declare const deployRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, options?: {
|
|
70
|
+
readonly commitSha?: string;
|
|
71
|
+
}, apiUrl?: string) => Promise<string>;
|
|
72
|
+
declare const deployRailwayServiceLatestCommit: (token: string, serviceId: string, environmentId: string, options?: {
|
|
73
|
+
readonly latestCommit?: boolean;
|
|
74
|
+
}, apiUrl?: string) => Promise<void>;
|
|
75
|
+
declare const fetchRailwayDeploymentStatus: (token: string, deploymentId: string, apiUrl?: string) => Promise<string>;
|
|
76
|
+
declare const stopRailwayDeployment: (token: string, deploymentId: string, apiUrl?: string) => Promise<boolean>;
|
|
77
|
+
declare const ensureRailwayServiceDomain: (token: string, serviceId: string, environmentId: string, targetPort?: number, apiUrl?: string) => Promise<string>;
|
|
78
|
+
declare const fetchRailwayProjectBuckets: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
79
|
+
declare const createRailwayBucket: (token: string, projectId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
80
|
+
declare const ensureRailwayBucket: (token: string, projectId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
81
|
+
declare const fetchRailwayBucketCredentials: (token: string, bucketId: string, environmentId: string, projectId: string, apiUrl?: string) => Promise<RailwayBucketCredentials>;
|
|
82
|
+
declare const deleteRailwayService: (token: string, serviceId: string, apiUrl?: string) => Promise<void>;
|
|
83
|
+
declare const scheduleRailwayProjectDelete: (token: string, projectId: string, apiUrl?: string) => Promise<void>;
|
|
84
|
+
|
|
85
|
+
declare const railwayWorkloadDriver: WorkloadDriver;
|
|
86
|
+
|
|
87
|
+
export { RAILWAY_API_URL, RAILWAY_ARCHIVE_SERVICE, RAILWAY_DATABASE_SERVICE, type RailwayBucketCredentials, type RailwayNamedResource, type RailwayProjectSummary, type RailwayServiceInstanceInfo, type RailwayServiceInstanceUpdateInput, connectRailwayServiceToGitHub, createRailwayBucket, createRailwayProject, deleteRailwayService, deployRailwayServiceInstance, deployRailwayServiceLatestCommit, ensureRailwayBucket, ensureRailwayProject, ensureRailwayService, ensureRailwayServiceDomain, ensureRailwayVolume, fetchRailwayBucketCredentials, fetchRailwayDeploymentStatus, fetchRailwayProjectBuckets, fetchRailwayProjectByName, fetchRailwayProjectEnvironments, fetchRailwayProjectVolumes, fetchRailwayServiceGitHubConnectionStatus, fetchRailwayServiceInstance, fetchRailwayServiceVariables, fetchRailwayWorkspaces, railwayArchiveDriver, railwayWorkloadDriver, renameRailwayEnvironment, renameRailwayService, renameRailwayVolume, scheduleRailwayProjectDelete, sendRailwayGraphql, stopRailwayDeployment, updateRailwayServiceInstance, upsertRailwayServiceVariables };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { a as ArchiveHostingDriver, H as HostingWorkspace, W as WorkloadDriver } from '../contracts-BxHKiOwj.js';
|
|
2
|
+
|
|
3
|
+
declare const RAILWAY_DATABASE_SERVICE = "archive-postgres";
|
|
4
|
+
declare const RAILWAY_ARCHIVE_SERVICE = "archive";
|
|
5
|
+
declare const railwayArchiveDriver: ArchiveHostingDriver;
|
|
6
|
+
|
|
7
|
+
declare const RAILWAY_API_URL = "https://backboard.railway.com/graphql/v2";
|
|
8
|
+
declare const sendRailwayGraphql: <T>(token: string, query: string, variables?: Record<string, unknown>, apiUrl?: string) => Promise<T>;
|
|
9
|
+
|
|
10
|
+
type RailwayNamedResource = {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
};
|
|
14
|
+
type RailwayProjectSummary = RailwayNamedResource & {
|
|
15
|
+
readonly environments: readonly RailwayNamedResource[];
|
|
16
|
+
};
|
|
17
|
+
type RailwayServiceInstanceInfo = {
|
|
18
|
+
readonly latestDeployment: {
|
|
19
|
+
readonly id?: string;
|
|
20
|
+
readonly status: string;
|
|
21
|
+
} | null;
|
|
22
|
+
readonly domains: readonly string[];
|
|
23
|
+
readonly sourceRepo?: string | null;
|
|
24
|
+
};
|
|
25
|
+
type RailwayServiceInstanceUpdateInput = {
|
|
26
|
+
readonly source?: {
|
|
27
|
+
readonly image?: string;
|
|
28
|
+
readonly repo?: string;
|
|
29
|
+
};
|
|
30
|
+
readonly healthcheckPath?: string;
|
|
31
|
+
readonly rootDirectory?: string;
|
|
32
|
+
readonly buildCommand?: string;
|
|
33
|
+
readonly startCommand?: string;
|
|
34
|
+
readonly sleepApplication?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type RailwayBucketCredentials = {
|
|
37
|
+
readonly bucket: string;
|
|
38
|
+
readonly accessKeyId: string;
|
|
39
|
+
readonly secretAccessKey: string;
|
|
40
|
+
readonly region: string;
|
|
41
|
+
readonly endpoint: string;
|
|
42
|
+
readonly urlStyle: string;
|
|
43
|
+
};
|
|
44
|
+
declare const fetchRailwayWorkspaces: (token: string, apiUrl?: string) => Promise<HostingWorkspace[]>;
|
|
45
|
+
declare const fetchRailwayProjectByName: (token: string, workspaceId: string, name: string, apiUrl?: string) => Promise<RailwayProjectSummary | undefined>;
|
|
46
|
+
declare const createRailwayProject: (token: string, workspaceId: string, name: string, defaultEnvironmentName?: string, apiUrl?: string) => Promise<RailwayProjectSummary>;
|
|
47
|
+
declare const fetchRailwayProjectEnvironments: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
48
|
+
declare const ensureRailwayProject: (token: string, workspaceId: string, name: string, existingIds?: {
|
|
49
|
+
readonly projectId?: string;
|
|
50
|
+
readonly environmentId?: string;
|
|
51
|
+
}, apiUrl?: string) => Promise<{
|
|
52
|
+
readonly projectId: string;
|
|
53
|
+
readonly environmentId: string;
|
|
54
|
+
}>;
|
|
55
|
+
declare const renameRailwayEnvironment: (token: string, environmentId: string, name: string, apiUrl?: string) => Promise<boolean>;
|
|
56
|
+
declare const ensureRailwayService: (token: string, projectId: string, environmentId: string, name: string, apiUrl?: string) => Promise<string>;
|
|
57
|
+
declare const renameRailwayService: (token: string, serviceId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
58
|
+
declare const updateRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, input: RailwayServiceInstanceUpdateInput, apiUrl?: string) => Promise<void>;
|
|
59
|
+
declare const fetchRailwayServiceGitHubConnectionStatus: (token: string, serviceId: string, environmentId: string, apiUrl?: string) => Promise<boolean>;
|
|
60
|
+
declare const connectRailwayServiceToGitHub: (token: string, serviceId: string, environmentId: string, repo: string, branch?: string, apiUrl?: string) => Promise<void>;
|
|
61
|
+
declare const fetchRailwayProjectVolumes: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
62
|
+
declare const ensureRailwayVolume: (token: string, projectId: string, environmentId: string, serviceId: string, mountPath: string, apiUrl?: string) => Promise<void>;
|
|
63
|
+
declare const renameRailwayVolume: (token: string, volumeId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
64
|
+
declare const fetchRailwayServiceVariables: (token: string, projectId: string, environmentId: string, serviceId: string, apiUrl?: string) => Promise<Record<string, string>>;
|
|
65
|
+
declare const upsertRailwayServiceVariables: (token: string, projectId: string, environmentId: string, serviceId: string, variables: Readonly<Record<string, string>>, options?: {
|
|
66
|
+
readonly skipDeploys?: boolean;
|
|
67
|
+
}, apiUrl?: string) => Promise<void>;
|
|
68
|
+
declare const fetchRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, apiUrl?: string) => Promise<RailwayServiceInstanceInfo>;
|
|
69
|
+
declare const deployRailwayServiceInstance: (token: string, serviceId: string, environmentId: string, options?: {
|
|
70
|
+
readonly commitSha?: string;
|
|
71
|
+
}, apiUrl?: string) => Promise<string>;
|
|
72
|
+
declare const deployRailwayServiceLatestCommit: (token: string, serviceId: string, environmentId: string, options?: {
|
|
73
|
+
readonly latestCommit?: boolean;
|
|
74
|
+
}, apiUrl?: string) => Promise<void>;
|
|
75
|
+
declare const fetchRailwayDeploymentStatus: (token: string, deploymentId: string, apiUrl?: string) => Promise<string>;
|
|
76
|
+
declare const stopRailwayDeployment: (token: string, deploymentId: string, apiUrl?: string) => Promise<boolean>;
|
|
77
|
+
declare const ensureRailwayServiceDomain: (token: string, serviceId: string, environmentId: string, targetPort?: number, apiUrl?: string) => Promise<string>;
|
|
78
|
+
declare const fetchRailwayProjectBuckets: (token: string, projectId: string, apiUrl?: string) => Promise<RailwayNamedResource[]>;
|
|
79
|
+
declare const createRailwayBucket: (token: string, projectId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
80
|
+
declare const ensureRailwayBucket: (token: string, projectId: string, name: string, apiUrl?: string) => Promise<RailwayNamedResource>;
|
|
81
|
+
declare const fetchRailwayBucketCredentials: (token: string, bucketId: string, environmentId: string, projectId: string, apiUrl?: string) => Promise<RailwayBucketCredentials>;
|
|
82
|
+
declare const deleteRailwayService: (token: string, serviceId: string, apiUrl?: string) => Promise<void>;
|
|
83
|
+
declare const scheduleRailwayProjectDelete: (token: string, projectId: string, apiUrl?: string) => Promise<void>;
|
|
84
|
+
|
|
85
|
+
declare const railwayWorkloadDriver: WorkloadDriver;
|
|
86
|
+
|
|
87
|
+
export { RAILWAY_API_URL, RAILWAY_ARCHIVE_SERVICE, RAILWAY_DATABASE_SERVICE, type RailwayBucketCredentials, type RailwayNamedResource, type RailwayProjectSummary, type RailwayServiceInstanceInfo, type RailwayServiceInstanceUpdateInput, connectRailwayServiceToGitHub, createRailwayBucket, createRailwayProject, deleteRailwayService, deployRailwayServiceInstance, deployRailwayServiceLatestCommit, ensureRailwayBucket, ensureRailwayProject, ensureRailwayService, ensureRailwayServiceDomain, ensureRailwayVolume, fetchRailwayBucketCredentials, fetchRailwayDeploymentStatus, fetchRailwayProjectBuckets, fetchRailwayProjectByName, fetchRailwayProjectEnvironments, fetchRailwayProjectVolumes, fetchRailwayServiceGitHubConnectionStatus, fetchRailwayServiceInstance, fetchRailwayServiceVariables, fetchRailwayWorkspaces, railwayArchiveDriver, railwayWorkloadDriver, renameRailwayEnvironment, renameRailwayService, renameRailwayVolume, scheduleRailwayProjectDelete, sendRailwayGraphql, stopRailwayDeployment, updateRailwayServiceInstance, upsertRailwayServiceVariables };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as RAILWAY_API_URL,F as RAILWAY_ARCHIVE_SERVICE,E as RAILWAY_DATABASE_SERVICE,m as connectRailwayServiceToGitHub,z as createRailwayBucket,e as createRailwayProject,C as deleteRailwayService,t as deployRailwayServiceInstance,u as deployRailwayServiceLatestCommit,A as ensureRailwayBucket,g as ensureRailwayProject,i as ensureRailwayService,x as ensureRailwayServiceDomain,o as ensureRailwayVolume,B as fetchRailwayBucketCredentials,v as fetchRailwayDeploymentStatus,y as fetchRailwayProjectBuckets,d as fetchRailwayProjectByName,f as fetchRailwayProjectEnvironments,n as fetchRailwayProjectVolumes,l as fetchRailwayServiceGitHubConnectionStatus,s as fetchRailwayServiceInstance,q as fetchRailwayServiceVariables,c as fetchRailwayWorkspaces,G as railwayArchiveDriver,H as railwayWorkloadDriver,h as renameRailwayEnvironment,j as renameRailwayService,p as renameRailwayVolume,D as scheduleRailwayProjectDelete,b as sendRailwayGraphql,w as stopRailwayDeployment,k as updateRailwayServiceInstance,r as upsertRailwayServiceVariables}from'../chunk-U37YUCGZ.js';import'../chunk-UBIV4YMZ.js';import'../chunk-NGWNYW3U.js';import'../chunk-S47XOR4G.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkIKFDAKTH_cjs=require('../chunk-IKFDAKTH.cjs'),chunkCNAFA6FE_cjs=require('../chunk-CNAFA6FE.cjs');require('../chunk-SLTGCMZB.cjs'),require('../chunk-OHRGTWGZ.cjs'),require('../chunk-QREJ73ZG.cjs');Object.defineProperty(exports,"RENDER_API_URL",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.a}});Object.defineProperty(exports,"RENDER_DATABASE_PLAN",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.e}});Object.defineProperty(exports,"RENDER_REGION",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.d}});Object.defineProperty(exports,"RENDER_SERVICE_PLAN",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.f}});Object.defineProperty(exports,"deleteRenderResource",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.c}});Object.defineProperty(exports,"fetchRenderOwners",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.g}});Object.defineProperty(exports,"renderArchiveDriver",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.h}});Object.defineProperty(exports,"renderWorkloadDriver",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.i}});Object.defineProperty(exports,"sendRenderRequest",{enumerable:true,get:function(){return chunkIKFDAKTH_cjs.b}});Object.defineProperty(exports,"RENDER_ENDED_DEPLOY_STATUSES",{enumerable:true,get:function(){return chunkCNAFA6FE_cjs.d}});Object.defineProperty(exports,"RENDER_FAILED_DEPLOY_STATUSES",{enumerable:true,get:function(){return chunkCNAFA6FE_cjs.c}});Object.defineProperty(exports,"RENDER_PLAN_TIERS",{enumerable:true,get:function(){return chunkCNAFA6FE_cjs.a}});Object.defineProperty(exports,"renderPlanForMemoryMb",{enumerable:true,get:function(){return chunkCNAFA6FE_cjs.b}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { H as HostingWorkspace, a as ArchiveHostingDriver, W as WorkloadDriver } from '../contracts-BxHKiOwj.cjs';
|
|
2
|
+
|
|
3
|
+
declare const RENDER_REGION = "oregon";
|
|
4
|
+
declare const RENDER_DATABASE_PLAN = "basic_256mb";
|
|
5
|
+
declare const RENDER_SERVICE_PLAN = "starter";
|
|
6
|
+
declare const fetchRenderOwners: (token: string, apiUrl?: string) => Promise<HostingWorkspace[]>;
|
|
7
|
+
declare const renderArchiveDriver: ArchiveHostingDriver;
|
|
8
|
+
|
|
9
|
+
type RenderPlanId = 'starter' | 'standard' | 'pro' | 'pro_plus' | 'pro_max' | 'pro_ultra';
|
|
10
|
+
type RenderPlanTier = {
|
|
11
|
+
readonly id: RenderPlanId;
|
|
12
|
+
readonly maxMemoryMb: number;
|
|
13
|
+
readonly monthlyUsd: number;
|
|
14
|
+
};
|
|
15
|
+
declare const RENDER_PLAN_TIERS: readonly RenderPlanTier[];
|
|
16
|
+
declare const renderPlanForMemoryMb: (memoryMb: number) => RenderPlanTier;
|
|
17
|
+
declare const RENDER_FAILED_DEPLOY_STATUSES: ReadonlySet<string>;
|
|
18
|
+
declare const RENDER_ENDED_DEPLOY_STATUSES: ReadonlySet<string>;
|
|
19
|
+
|
|
20
|
+
declare const RENDER_API_URL = "https://api.render.com/v1";
|
|
21
|
+
type RenderRequestInit = {
|
|
22
|
+
readonly method?: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
23
|
+
readonly body?: unknown;
|
|
24
|
+
};
|
|
25
|
+
declare const sendRenderRequest: <T>(token: string, path: string, init?: RenderRequestInit, apiUrl?: string) => Promise<T>;
|
|
26
|
+
declare const deleteRenderResource: (token: string, path: string, apiUrl?: string) => Promise<void>;
|
|
27
|
+
|
|
28
|
+
declare const renderWorkloadDriver: WorkloadDriver;
|
|
29
|
+
|
|
30
|
+
export { RENDER_API_URL, RENDER_DATABASE_PLAN, RENDER_ENDED_DEPLOY_STATUSES, RENDER_FAILED_DEPLOY_STATUSES, RENDER_PLAN_TIERS, RENDER_REGION, RENDER_SERVICE_PLAN, type RenderPlanId, type RenderPlanTier, type RenderRequestInit, deleteRenderResource, fetchRenderOwners, renderArchiveDriver, renderPlanForMemoryMb, renderWorkloadDriver, sendRenderRequest };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { H as HostingWorkspace, a as ArchiveHostingDriver, W as WorkloadDriver } from '../contracts-BxHKiOwj.js';
|
|
2
|
+
|
|
3
|
+
declare const RENDER_REGION = "oregon";
|
|
4
|
+
declare const RENDER_DATABASE_PLAN = "basic_256mb";
|
|
5
|
+
declare const RENDER_SERVICE_PLAN = "starter";
|
|
6
|
+
declare const fetchRenderOwners: (token: string, apiUrl?: string) => Promise<HostingWorkspace[]>;
|
|
7
|
+
declare const renderArchiveDriver: ArchiveHostingDriver;
|
|
8
|
+
|
|
9
|
+
type RenderPlanId = 'starter' | 'standard' | 'pro' | 'pro_plus' | 'pro_max' | 'pro_ultra';
|
|
10
|
+
type RenderPlanTier = {
|
|
11
|
+
readonly id: RenderPlanId;
|
|
12
|
+
readonly maxMemoryMb: number;
|
|
13
|
+
readonly monthlyUsd: number;
|
|
14
|
+
};
|
|
15
|
+
declare const RENDER_PLAN_TIERS: readonly RenderPlanTier[];
|
|
16
|
+
declare const renderPlanForMemoryMb: (memoryMb: number) => RenderPlanTier;
|
|
17
|
+
declare const RENDER_FAILED_DEPLOY_STATUSES: ReadonlySet<string>;
|
|
18
|
+
declare const RENDER_ENDED_DEPLOY_STATUSES: ReadonlySet<string>;
|
|
19
|
+
|
|
20
|
+
declare const RENDER_API_URL = "https://api.render.com/v1";
|
|
21
|
+
type RenderRequestInit = {
|
|
22
|
+
readonly method?: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
23
|
+
readonly body?: unknown;
|
|
24
|
+
};
|
|
25
|
+
declare const sendRenderRequest: <T>(token: string, path: string, init?: RenderRequestInit, apiUrl?: string) => Promise<T>;
|
|
26
|
+
declare const deleteRenderResource: (token: string, path: string, apiUrl?: string) => Promise<void>;
|
|
27
|
+
|
|
28
|
+
declare const renderWorkloadDriver: WorkloadDriver;
|
|
29
|
+
|
|
30
|
+
export { RENDER_API_URL, RENDER_DATABASE_PLAN, RENDER_ENDED_DEPLOY_STATUSES, RENDER_FAILED_DEPLOY_STATUSES, RENDER_PLAN_TIERS, RENDER_REGION, RENDER_SERVICE_PLAN, type RenderPlanId, type RenderPlanTier, type RenderRequestInit, deleteRenderResource, fetchRenderOwners, renderArchiveDriver, renderPlanForMemoryMb, renderWorkloadDriver, sendRenderRequest };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as RENDER_API_URL,e as RENDER_DATABASE_PLAN,d as RENDER_REGION,f as RENDER_SERVICE_PLAN,c as deleteRenderResource,g as fetchRenderOwners,h as renderArchiveDriver,i as renderWorkloadDriver,b as sendRenderRequest}from'../chunk-WYJ7UHT3.js';export{d as RENDER_ENDED_DEPLOY_STATUSES,c as RENDER_FAILED_DEPLOY_STATUSES,a as RENDER_PLAN_TIERS,b as renderPlanForMemoryMb}from'../chunk-55HNIEAS.js';import'../chunk-UBIV4YMZ.js';import'../chunk-NGWNYW3U.js';import'../chunk-S47XOR4G.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|