Skip to content

Commit 28c99f1

Browse files
committed
chore: include dist for git installs
1 parent 84c4308 commit 28c99f1

41 files changed

Lines changed: 107532 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
node_modules/
33

44
# Build directories
5-
dist/
65
build/
76

87
# Logs
@@ -37,4 +36,4 @@ coverage/
3736

3837
# Temporary files
3938
tmp/
40-
temp/
39+
temp/

dist/chunk-FAYFARPW.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
BootstrapInputSchema,
3+
BootstrapOutputSchema,
4+
PollDeviceAuthInputSchema,
5+
PollDeviceAuthOutputSchema,
6+
StartDeviceAuthInputSchema,
7+
StartDeviceAuthOutputSchema
8+
} from "./chunk-JAT3OD6J.js";
9+
10+
// src/contracts/onboarding.ts
11+
import { oc } from "@orpc/contract";
12+
var startDeviceAuthContract = oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema);
13+
var pollDeviceAuthContract = oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema);
14+
var bootstrapContract = oc.input(BootstrapInputSchema).output(BootstrapOutputSchema);
15+
var onboarding = {
16+
startDeviceAuth: startDeviceAuthContract,
17+
pollDeviceAuth: pollDeviceAuthContract,
18+
bootstrap: bootstrapContract
19+
};
20+
21+
export {
22+
startDeviceAuthContract,
23+
pollDeviceAuthContract,
24+
bootstrapContract,
25+
onboarding
26+
};

dist/chunk-GGIGJKUY.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
BootstrapInputSchema,
3+
BootstrapOutputSchema,
4+
PollDeviceAuthInputSchema,
5+
PollDeviceAuthOutputSchema,
6+
StartDeviceAuthInputSchema,
7+
StartDeviceAuthOutputSchema
8+
} from "./chunk-OEXFKRP3.js";
9+
10+
// src/contracts/onboarding.ts
11+
import { oc } from "@orpc/contract";
12+
var startDeviceAuthContract = oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema);
13+
var pollDeviceAuthContract = oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema);
14+
var bootstrapContract = oc.input(BootstrapInputSchema).output(BootstrapOutputSchema);
15+
var onboarding = {
16+
startDeviceAuth: startDeviceAuthContract,
17+
pollDeviceAuth: pollDeviceAuthContract,
18+
bootstrap: bootstrapContract
19+
};
20+
21+
export {
22+
startDeviceAuthContract,
23+
pollDeviceAuthContract,
24+
bootstrapContract,
25+
onboarding
26+
};

dist/chunk-I53W3C7Y.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// src/schemas/invoice.ts
2+
import { z } from "zod";
3+
var BaseInvoiceSchema = z.object({
4+
invoice: z.string(),
5+
expiresAt: z.date(),
6+
paymentHash: z.string(),
7+
amountSats: z.number().nullable(),
8+
amountSatsReceived: z.number().nullable(),
9+
currency: z.string(),
10+
fiatAmount: z.number().nullable(),
11+
btcPrice: z.number().nullable()
12+
});
13+
var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({
14+
amountSats: z.number(),
15+
fiatAmount: z.number(),
16+
btcPrice: z.number()
17+
});
18+
var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema;
19+
var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({
20+
amountSatsReceived: z.number()
21+
});
22+
23+
export {
24+
BaseInvoiceSchema,
25+
FixedAmountPendingInvoiceSchema,
26+
DynamicAmountPendingInvoiceSchema,
27+
PaidInvoiceSchema
28+
};

dist/chunk-JAT3OD6J.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// src/schemas/onboarding.ts
2+
import { z } from "zod";
3+
var StartDeviceAuthInputSchema = z.object({
4+
clientDisplayName: z.string().optional()
5+
});
6+
var StartDeviceAuthOutputSchema = z.object({
7+
deviceCode: z.string(),
8+
userCode: z.string(),
9+
verificationUri: z.string().url(),
10+
expiresIn: z.number().int().positive(),
11+
interval: z.number().int().positive()
12+
});
13+
var PollDeviceAuthInputSchema = z.object({
14+
deviceCode: z.string()
15+
});
16+
var PollDeviceAuthOutputSchema = z.discriminatedUnion("status", [
17+
z.object({
18+
status: z.literal("pending"),
19+
expiresIn: z.number().int().nonnegative()
20+
}),
21+
z.object({
22+
status: z.literal("authorized"),
23+
bootstrapToken: z.string(),
24+
expiresIn: z.number().int().nonnegative().optional()
25+
}),
26+
z.object({
27+
status: z.literal("expired")
28+
}),
29+
z.object({
30+
status: z.literal("denied")
31+
})
32+
]);
33+
var BootstrapInputSchema = z.object({
34+
bootstrapToken: z.string(),
35+
webhookUrl: z.string().url().optional(),
36+
projectName: z.string().optional(),
37+
forceNewWebhook: z.boolean().optional()
38+
});
39+
var BootstrapOutputSchema = z.object({
40+
apiKey: z.string(),
41+
apiKeyPreview: z.string(),
42+
apiKeyId: z.string(),
43+
webhookId: z.string(),
44+
webhookSecret: z.string(),
45+
organizationId: z.string(),
46+
webhookUrl: z.string().url()
47+
});
48+
49+
export {
50+
StartDeviceAuthInputSchema,
51+
StartDeviceAuthOutputSchema,
52+
PollDeviceAuthInputSchema,
53+
PollDeviceAuthOutputSchema,
54+
BootstrapInputSchema,
55+
BootstrapOutputSchema
56+
};

dist/chunk-M7JBG5VE.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// src/schemas/product.ts
2+
import { z } from "zod";
3+
var CheckoutProductPriceSchema = z.object({
4+
id: z.string(),
5+
amountType: z.enum(["FIXED", "CUSTOM", "FREE", "METERED"]),
6+
priceAmount: z.number().nullable(),
7+
minimumAmount: z.number().nullable(),
8+
maximumAmount: z.number().nullable(),
9+
presetAmount: z.number().nullable(),
10+
unitAmount: z.number().nullable(),
11+
capAmount: z.number().nullable(),
12+
meterId: z.string().nullable()
13+
});
14+
var CheckoutProductSchema = z.object({
15+
id: z.string(),
16+
name: z.string(),
17+
description: z.string().nullable(),
18+
recurringInterval: z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(),
19+
prices: z.array(CheckoutProductPriceSchema)
20+
});
21+
22+
export {
23+
CheckoutProductPriceSchema,
24+
CheckoutProductSchema
25+
};

dist/chunk-OEXFKRP3.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// src/schemas/onboarding.ts
2+
import { z } from "zod";
3+
var StartDeviceAuthInputSchema = z.object({
4+
clientDisplayName: z.string().optional(),
5+
webhookUrl: z.string().url().optional()
6+
});
7+
var StartDeviceAuthOutputSchema = z.object({
8+
deviceCode: z.string(),
9+
userCode: z.string(),
10+
verificationUri: z.string().url(),
11+
expiresIn: z.number().int().positive(),
12+
interval: z.number().int().positive()
13+
});
14+
var PollDeviceAuthInputSchema = z.object({
15+
deviceCode: z.string()
16+
});
17+
var PollDeviceAuthOutputSchema = z.discriminatedUnion("status", [
18+
z.object({
19+
status: z.literal("pending"),
20+
expiresIn: z.number().int().nonnegative()
21+
}),
22+
z.object({
23+
status: z.literal("authorized"),
24+
bootstrapToken: z.string(),
25+
expiresIn: z.number().int().nonnegative().optional()
26+
}),
27+
z.object({
28+
status: z.literal("expired")
29+
}),
30+
z.object({
31+
status: z.literal("denied")
32+
})
33+
]);
34+
var BootstrapInputSchema = z.object({
35+
bootstrapToken: z.string(),
36+
webhookUrl: z.string().url().optional(),
37+
projectName: z.string().optional(),
38+
forceNewWebhook: z.boolean().optional()
39+
});
40+
var BootstrapOutputSchema = z.object({
41+
apiKey: z.string(),
42+
apiKeyPreview: z.string(),
43+
apiKeyId: z.string(),
44+
webhookId: z.string(),
45+
webhookSecret: z.string(),
46+
organizationId: z.string(),
47+
webhookUrl: z.string().url()
48+
});
49+
50+
export {
51+
StartDeviceAuthInputSchema,
52+
StartDeviceAuthOutputSchema,
53+
PollDeviceAuthInputSchema,
54+
PollDeviceAuthOutputSchema,
55+
BootstrapInputSchema,
56+
BootstrapOutputSchema
57+
};

dist/chunk-RZPQSVO3.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
BootstrapInputSchema,
3+
BootstrapOutputSchema,
4+
PollDeviceAuthInputSchema,
5+
PollDeviceAuthOutputSchema,
6+
StartDeviceAuthInputSchema,
7+
StartDeviceAuthOutputSchema
8+
} from "./chunk-WJ6HHWDE.js";
9+
10+
// src/contracts/onboarding.ts
11+
import { oc } from "@orpc/contract";
12+
var startDeviceAuthContract = oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema);
13+
var pollDeviceAuthContract = oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema);
14+
var bootstrapContract = oc.input(BootstrapInputSchema).output(BootstrapOutputSchema);
15+
var onboarding = {
16+
startDeviceAuth: startDeviceAuthContract,
17+
pollDeviceAuth: pollDeviceAuthContract,
18+
bootstrap: bootstrapContract
19+
};
20+
21+
export {
22+
startDeviceAuthContract,
23+
pollDeviceAuthContract,
24+
bootstrapContract,
25+
onboarding
26+
};

0 commit comments

Comments
 (0)