@notionhq/workers 0.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +22 -0
  2. package/dist/block.d.ts +321 -0
  3. package/dist/block.d.ts.map +1 -0
  4. package/dist/block.js +0 -0
  5. package/dist/builder.d.ts +117 -0
  6. package/dist/builder.d.ts.map +1 -0
  7. package/dist/builder.js +168 -0
  8. package/dist/capabilities/automation.d.ts +91 -0
  9. package/dist/capabilities/automation.d.ts.map +1 -0
  10. package/dist/capabilities/automation.js +40 -0
  11. package/dist/capabilities/automation.test.d.ts +2 -0
  12. package/dist/capabilities/automation.test.d.ts.map +1 -0
  13. package/dist/capabilities/context.d.ts +7 -0
  14. package/dist/capabilities/context.d.ts.map +1 -0
  15. package/dist/capabilities/context.js +15 -0
  16. package/dist/capabilities/oauth.d.ts +120 -0
  17. package/dist/capabilities/oauth.d.ts.map +1 -0
  18. package/dist/capabilities/oauth.js +55 -0
  19. package/dist/capabilities/oauth.test.d.ts +2 -0
  20. package/dist/capabilities/oauth.test.d.ts.map +1 -0
  21. package/dist/capabilities/sync.d.ts +180 -0
  22. package/dist/capabilities/sync.d.ts.map +1 -0
  23. package/dist/capabilities/sync.js +84 -0
  24. package/dist/capabilities/sync.test.d.ts +2 -0
  25. package/dist/capabilities/sync.test.d.ts.map +1 -0
  26. package/dist/capabilities/tool.d.ts +68 -0
  27. package/dist/capabilities/tool.d.ts.map +1 -0
  28. package/dist/capabilities/tool.js +174 -0
  29. package/dist/capabilities/tool.test.d.ts +2 -0
  30. package/dist/capabilities/tool.test.d.ts.map +1 -0
  31. package/dist/error.d.ts +12 -0
  32. package/dist/error.d.ts.map +1 -0
  33. package/dist/error.js +15 -0
  34. package/dist/icon-names.d.ts +6 -0
  35. package/dist/icon-names.d.ts.map +1 -0
  36. package/dist/icon-names.js +0 -0
  37. package/dist/index.d.ts +10 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +9 -0
  40. package/dist/json-schema.d.ts +117 -0
  41. package/dist/json-schema.d.ts.map +1 -0
  42. package/dist/json-schema.js +0 -0
  43. package/dist/json-schema.test.d.ts +2 -0
  44. package/dist/json-schema.test.d.ts.map +1 -0
  45. package/dist/schema.d.ts +178 -0
  46. package/dist/schema.d.ts.map +1 -0
  47. package/dist/schema.js +66 -0
  48. package/dist/types.d.ts +206 -0
  49. package/dist/types.d.ts.map +1 -0
  50. package/dist/types.js +0 -0
  51. package/dist/worker.d.ts +177 -0
  52. package/dist/worker.d.ts.map +1 -0
  53. package/dist/worker.js +219 -0
  54. package/package.json +68 -0
  55. package/src/block.ts +529 -0
  56. package/src/builder.ts +299 -0
  57. package/src/capabilities/automation.test.ts +152 -0
  58. package/src/capabilities/automation.ts +130 -0
  59. package/src/capabilities/context.ts +23 -0
  60. package/src/capabilities/oauth.test.ts +52 -0
  61. package/src/capabilities/oauth.ts +157 -0
  62. package/src/capabilities/sync.test.ts +104 -0
  63. package/src/capabilities/sync.ts +311 -0
  64. package/src/capabilities/tool.test.ts +351 -0
  65. package/src/capabilities/tool.ts +279 -0
  66. package/src/error.ts +19 -0
  67. package/src/icon-names.ts +890 -0
  68. package/src/index.ts +34 -0
  69. package/src/json-schema.test.ts +719 -0
  70. package/src/json-schema.ts +179 -0
  71. package/src/schema.ts +241 -0
  72. package/src/types.ts +272 -0
  73. package/src/worker.ts +285 -0
@@ -0,0 +1,68 @@
1
+ import type { JSONSchema } from "../json-schema.js";
2
+ import type { HandlerOptions, JSONValue } from "../types.js";
3
+ import type { CapabilityContext } from "./context.js";
4
+ export interface ToolConfiguration<I extends JSONValue, O extends JSONValue = JSONValue> {
5
+ title: string;
6
+ description: string;
7
+ schema: JSONSchema<I>;
8
+ outputSchema?: JSONSchema<O>;
9
+ execute: (input: I, context: CapabilityContext) => O | Promise<O>;
10
+ }
11
+ /**
12
+ * An error returned when the input to a tool doesn't match the input schema.
13
+ */
14
+ export declare class InvalidToolInputError extends Error {
15
+ constructor(message: string);
16
+ toJSON(): {
17
+ name: string;
18
+ message: string;
19
+ };
20
+ }
21
+ /**
22
+ * An error returned when the output from a tool doesn't match the output schema.
23
+ */
24
+ export declare class InvalidToolOutputError extends Error {
25
+ constructor(message: string);
26
+ toJSON(): {
27
+ name: string;
28
+ message: string;
29
+ };
30
+ }
31
+ /**
32
+ * An error returned when the tool execution fails.
33
+ */
34
+ export declare class ToolExecutionError extends Error {
35
+ constructor(message: string);
36
+ toJSON(): {
37
+ name: string;
38
+ message: string;
39
+ };
40
+ }
41
+ export type ToolCapability<I extends JSONValue, O extends JSONValue = JSONValue> = ReturnType<typeof createToolCapability<I, O>>;
42
+ /**
43
+ * Creates a capability definition for a tool to be used by an agent.
44
+ *
45
+ * @param config - The configuration for the tool.
46
+ * @returns A capability definition for the tool.
47
+ */
48
+ export declare function createToolCapability<I extends JSONValue, O extends JSONValue = JSONValue>(key: string, config: ToolConfiguration<I, O>): {
49
+ _tag: "tool";
50
+ key: string;
51
+ config: {
52
+ title: string;
53
+ description: string;
54
+ schema: JSONSchema<I>;
55
+ outputSchema: JSONSchema<O> | undefined;
56
+ };
57
+ handler: {
58
+ (input: JSONValue, options: HandlerOptions): Promise<O>;
59
+ (input: JSONValue): Promise<{
60
+ _tag: "success";
61
+ value: O;
62
+ } | {
63
+ _tag: "error";
64
+ error: InvalidToolInputError | InvalidToolOutputError | ToolExecutionError;
65
+ }>;
66
+ };
67
+ };
68
+ //# sourceMappingURL=tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/capabilities/tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAiEtD,MAAM,WAAW,iBAAiB,CACjC,CA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D"}
@@ -0,0 +1,174 @@
1
+ import { Ajv } from "ajv";
2
+ import { createCapabilityContext } from "./context.js";
3
+ function validateRequiredProperties(schema, path = "") {
4
+ if ("type" in schema && schema.type === "object" && "properties" in schema) {
5
+ const propKeys = Object.keys(schema.properties).sort();
6
+ const required = [...schema.required ?? []].sort();
7
+ const missing = propKeys.filter((k) => !required.includes(k));
8
+ if (missing.length > 0) {
9
+ throw new Error(
10
+ `Invalid schema${path ? ` at ${path}` : ""}: properties [${missing.join(", ")}] must be listed in "required". Both model providers require all properties to be required. Use anyOf with { type: "null" } for optional fields.`
11
+ );
12
+ }
13
+ for (const [key, propSchema] of Object.entries(schema.properties)) {
14
+ validateRequiredProperties(
15
+ propSchema,
16
+ path ? `${path}.properties.${key}` : `properties.${key}`
17
+ );
18
+ }
19
+ if ("$defs" in schema && schema.$defs) {
20
+ for (const [key, defSchema] of Object.entries(schema.$defs)) {
21
+ validateRequiredProperties(
22
+ defSchema,
23
+ path ? `${path}.$defs.${key}` : `$defs.${key}`
24
+ );
25
+ }
26
+ }
27
+ }
28
+ if ("type" in schema && schema.type === "array" && "items" in schema) {
29
+ validateRequiredProperties(
30
+ schema.items,
31
+ path ? `${path}.items` : "items"
32
+ );
33
+ }
34
+ if ("anyOf" in schema && Array.isArray(schema.anyOf)) {
35
+ for (let i = 0; i < schema.anyOf.length; i++) {
36
+ validateRequiredProperties(
37
+ schema.anyOf[i],
38
+ path ? `${path}.anyOf[${i}]` : `anyOf[${i}]`
39
+ );
40
+ }
41
+ }
42
+ }
43
+ class InvalidToolInputError extends Error {
44
+ constructor(message) {
45
+ super(message);
46
+ this.name = "InvalidToolInputError";
47
+ }
48
+ toJSON() {
49
+ return {
50
+ name: this.name,
51
+ message: this.message
52
+ };
53
+ }
54
+ }
55
+ class InvalidToolOutputError extends Error {
56
+ constructor(message) {
57
+ super(message);
58
+ this.name = "InvalidToolOutputError";
59
+ }
60
+ toJSON() {
61
+ return {
62
+ name: this.name,
63
+ message: this.message
64
+ };
65
+ }
66
+ }
67
+ class ToolExecutionError extends Error {
68
+ constructor(message) {
69
+ super(message);
70
+ this.name = "ToolExecutionError";
71
+ }
72
+ toJSON() {
73
+ return {
74
+ name: this.name,
75
+ message: this.message
76
+ };
77
+ }
78
+ }
79
+ function createToolCapability(key, config) {
80
+ validateRequiredProperties(config.schema);
81
+ if (config.outputSchema) {
82
+ validateRequiredProperties(config.outputSchema);
83
+ }
84
+ const ajv = new Ajv();
85
+ const validateInput = ajv.compile(config.schema);
86
+ const validateOutput = config.outputSchema ? ajv.compile(config.outputSchema) : null;
87
+ async function handler(input, options) {
88
+ if (!validateInput(input)) {
89
+ if (validateInput.errors == null) {
90
+ throw new Error(
91
+ "Unexpected: No validation errors after failed validation"
92
+ );
93
+ }
94
+ const error = new InvalidToolInputError(
95
+ JSON.stringify(validateInput.errors, null, 2)
96
+ );
97
+ if (options?.concreteOutput) {
98
+ throw error;
99
+ }
100
+ const result = {
101
+ _tag: "error",
102
+ error
103
+ };
104
+ process.stdout.write(`
105
+ <output>${JSON.stringify(result)}</output>
106
+ `);
107
+ return result;
108
+ }
109
+ try {
110
+ const capabilityContext = createCapabilityContext();
111
+ const result = await config.execute(input, capabilityContext);
112
+ if (validateOutput && !validateOutput(result)) {
113
+ const error = new InvalidToolOutputError(
114
+ JSON.stringify(validateOutput.errors, null, 2)
115
+ );
116
+ if (options?.concreteOutput) {
117
+ throw error;
118
+ }
119
+ const result2 = {
120
+ _tag: "error",
121
+ error: new InvalidToolOutputError(
122
+ JSON.stringify(validateOutput.errors, null, 2)
123
+ )
124
+ };
125
+ process.stdout.write(`
126
+ <output>${JSON.stringify(result2)}</output>
127
+ `);
128
+ return result2;
129
+ }
130
+ if (options?.concreteOutput) {
131
+ return result;
132
+ }
133
+ process.stdout.write(`
134
+ <output>${JSON.stringify(result)}</output>
135
+ `);
136
+ return {
137
+ _tag: "success",
138
+ value: result
139
+ };
140
+ } catch (err) {
141
+ const error = new ToolExecutionError(
142
+ err instanceof Error ? err.message : String(err)
143
+ );
144
+ if (options?.concreteOutput) {
145
+ throw error;
146
+ }
147
+ const result = {
148
+ _tag: "error",
149
+ error
150
+ };
151
+ process.stdout.write(`
152
+ <output>${JSON.stringify(result)}</output>
153
+ `);
154
+ return result;
155
+ }
156
+ }
157
+ return {
158
+ _tag: "tool",
159
+ key,
160
+ config: {
161
+ title: config.title,
162
+ description: config.description,
163
+ schema: config.schema,
164
+ outputSchema: config.outputSchema
165
+ },
166
+ handler
167
+ };
168
+ }
169
+ export {
170
+ InvalidToolInputError,
171
+ InvalidToolOutputError,
172
+ ToolExecutionError,
173
+ createToolCapability
174
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tool.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.test.d.ts","sourceRoot":"","sources":["../../src/capabilities/tool.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * An error that occurred during the execution of a worker capability.
3
+ */
4
+ export declare class ExecutionError extends Error {
5
+ readonly cause: unknown;
6
+ constructor(cause: unknown);
7
+ }
8
+ /**
9
+ * Helper for exhaustive switch statements. TypeScript will error if a case is not handled.
10
+ */
11
+ export declare function unreachable(value: never): never;
12
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACxC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;gBAEZ,KAAK,EAAE,OAAO;CAK1B;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAE/C"}
package/dist/error.js ADDED
@@ -0,0 +1,15 @@
1
+ class ExecutionError extends Error {
2
+ cause;
3
+ constructor(cause) {
4
+ super(`Error during worker execution: ${cause}`);
5
+ this.name = "ExecutionError";
6
+ this.cause = cause;
7
+ }
8
+ }
9
+ function unreachable(value) {
10
+ throw new Error(`Unreachable: ${value}`);
11
+ }
12
+ export {
13
+ ExecutionError,
14
+ unreachable
15
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Valid Notion icon names
3
+ * Complete list from https://www.notion.so/icons/
4
+ */
5
+ export type NoticonName = "123" | "accessibility" | "activity" | "add" | "airplane" | "alarm" | "alert" | "alien" | "alien-pixel" | "ambulance" | "anchor" | "apple" | "apron" | "aquarius" | "arch-bridge" | "archery" | "archive" | "aries" | "arrivals" | "arrow-circle-down" | "arrow-down" | "arrow-down-basic" | "arrow-down-line" | "arrow-left" | "arrow-left-basic" | "arrow-left-line" | "arrow-northeast" | "arrow-northwest" | "arrow-right" | "arrow-right-basic" | "arrow-right-line" | "arrow-southeast" | "arrow-southwest" | "arrow-turn-left" | "arrow-turn-right" | "arrow-up" | "arrow-up-basic" | "arrow-up-line" | "arrows-horizontal" | "arrows-swap-horizontally" | "arrows-swap-vertically" | "arrows-vertical" | "art" | "asterisk" | "atm" | "attachment" | "avocado" | "baby" | "baby-bottle" | "backpack" | "backward" | "badge" | "bag" | "baggage-claim" | "balloon" | "banana" | "barcode" | "barricade" | "baseball" | "baseball-cap" | "basketball" | "bathtub" | "bathtub-shower" | "battery" | "battery-charged" | "battery-charging" | "bed" | "bee" | "beer" | "beer-bottle" | "bell" | "bell-notification" | "bell-off" | "belt" | "bicycle" | "bikini" | "binoculars" | "blood-pressure" | "bluetooth" | "boarding-pass" | "boat" | "bomb" | "bone" | "book" | "book-closed" | "bookmark" | "bookmark-outline" | "boombox" | "boot" | "bounce" | "bowl" | "bowl-food" | "bowling" | "bra" | "brain" | "branch" | "branch-create" | "branch-fork" | "branch-merge" | "bread" | "briefcase" | "brightness-high" | "broccoli" | "broom" | "broom-and-dustpan" | "browser-stop" | "bug" | "bugle" | "bullseye" | "bunk-bed" | "burger" | "burst" | "bus" | "bus-double-decker" | "bus-metro" | "butterfly" | "button" | "cactus" | "cafe" | "cake" | "calculator" | "calendar" | "calendar-day" | "calendar-month" | "calendar-week" | "camera" | "camera-off" | "camera-roll" | "camera-roll-portrait" | "camping-tent" | "camping-trailer" | "cancer" | "candy" | "capricorn" | "car" | "card" | "card-club" | "card-diamond" | "card-heart" | "card-spade" | "cards" | "carrot" | "cash" | "cash-register" | "cassette" | "castle" | "castle-japanese" | "cat" | "categories" | "cd" | "cellular" | "chair" | "champagne" | "champagne-bottle" | "chart" | "chart-alternate" | "chart-area" | "chart-donut" | "chart-line" | "chart-mixed" | "chart-pie" | "chat" | "chat-user" | "check" | "checklist" | "checkmark" | "checkmark-line" | "checkmark-square" | "chemistry" | "cherries" | "chess-bishop" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevrons-vertical" | "chicken" | "child" | "chili-pepper" | "christmas-tree" | "church" | "cigarette" | "circle" | "circle-alternate" | "circle-arrows-horizontal" | "circle-arrows-vertical" | "circle-dashed" | "circle-dot" | "circle-five-eighths" | "circle-four-eighths" | "circle-one-eighth" | "circle-remove" | "circle-seven-eighths" | "circle-six-eighths" | "circle-three-eighths" | "circle-two-eighths" | "city" | "clarinet" | "clear" | "clipping" | "clock" | "clock-alternate" | "close" | "clothes-button" | "clothes-iron" | "cloud" | "cloud-no" | "cloud-off" | "cloud-yes" | "cloudy" | "clover" | "clover-four-leaf" | "coaster" | "coat" | "cocktail" | "code" | "code-scan" | "coffee" | "coffee-maker" | "color-palette" | "color-picker" | "color-swatch" | "column" | "comb" | "command-line" | "comment" | "compass" | "compose" | "compressed-document" | "computer" | "computer-chip" | "conceal" | "condense" | "confetti-ball" | "confetti-party-popper" | "conifer-tree" | "connecting-flight" | "construction-crane" | "contrast" | "conversation" | "copy" | "corn" | "couch" | "cow" | "crab" | "crayon" | "create" | "credit-card" | "crop" | "crutch" | "cupcake" | "currency" | "currency-coin" | "cursor" | "cursor-button" | "cursor-click" | "customs" | "cut" | "dairy" | "daisy" | "dance" | "darks" | "dashboard" | "database" | "defibrillator" | "delete" | "delivery-truck" | "dental" | "departures" | "dependency" | "description" | "dialogue" | "die1" | "die2" | "die3" | "die4" | "die5" | "die6" | "dining" | "directional-sign" | "directional-sign-left" | "directional-sign-right" | "directions" | "dish-soap" | "dna" | "do-not-disturb" | "document" | "dog" | "donkey" | "download" | "downward" | "drafts" | "dress" | "drink" | "duck" | "duster" | "ear" | "ear-hearing-aid" | "earthquake" | "egg" | "eject" | "electric-guitar" | "electric-plug" | "elephant" | "elevator" | "emoji" | "emoji-angry" | "emoji-big-sad" | "emoji-disappointed" | "emoji-grinning" | "emoji-grinning-smiling-eyes" | "emoji-heart-eyes" | "emoji-neutral" | "emoji-sad" | "emoji-smiling-eyes" | "emoji-sunglasses" | "emoji-surprised" | "emoji-winking" | "error" | "escalator" | "exclamation-mark" | "exclamation-mark-double" | "exit" | "expand" | "extension" | "fabric-swatch" | "facial-tissues" | "factory" | "fan-deck" | "feather" | "feed" | "filtered" | "fire" | "fire-extinguisher" | "fire-truck" | "fireworks" | "first-aid" | "first-aid-kit" | "fish" | "flag" | "flag-checkered" | "flag-pennant" | "flag-swallowtail" | "flash" | "flashlight" | "flatware" | "fleur-de-lis" | "flood" | "fog" | "folder" | "follow" | "following" | "font" | "food-and-drink" | "football" | "forest-fire" | "fork" | "fork-and-knife" | "formula" | "forward" | "fragile" | "friends" | "frying-pan" | "fuel" | "game-pawn" | "garlic" | "gavel" | "gear" | "gears" | "gem" | "gemini" | "geography" | "ghost" | "gift" | "git" | "glasses" | "globe" | "golf" | "government" | "gradebook" | "graduate" | "grapes" | "grave" | "grid" | "grid-dense" | "grid-wide" | "grid-wide-six" | "grocery" | "groups" | "guitar" | "gym" | "hail" | "hair-care" | "hairdryer" | "hammer" | "hanafuda" | "hand" | "handbag" | "hanger" | "hare" | "hashtag" | "headphones" | "headset" | "heart" | "heart-box-bow" | "heart-outline" | "heart-rate" | "heart-rate-monitor" | "heartbroken" | "helicopter" | "helm" | "help-alternate" | "hexagon" | "hexagon-alternate" | "hexagon-dashed" | "hexagon-five-sixths" | "hexagon-four-sixths" | "hexagon-one-sixth" | "hexagon-three-sixths" | "hexagon-two-sixths" | "highball" | "history" | "home" | "hot-air-balloon" | "hourglass" | "hurricane" | "ice-skate" | "immigration" | "inbox" | "infinity" | "info-alternate" | "inline-skate" | "invitation" | "iterate" | "jack-o-lantern" | "jar" | "judicial-scales" | "junk" | "key" | "key-antique" | "keyboard" | "keyboard-alternate" | "keypad" | "kind" | "kite" | "knife" | "knife-kitchen" | "language" | "laptop" | "laundry-basket" | "laundry-detergent" | "laundry-dryer" | "laundry-washer" | "layers" | "leaf" | "leaf-monstera" | "lemon" | "leo" | "libra" | "library" | "light-bulb" | "lights" | "link" | "lipstick" | "list" | "list-indent" | "litter-disposal" | "location" | "lock" | "lock-keyhole" | "log-in" | "log-out" | "long-bone" | "long-sleeve-shirt" | "looped-square" | "lost-and-found" | "lounge" | "luggage" | "luggage-cart" | "lungs" | "magic-wand" | "magnet" | "mahjong" | "mail" | "makeup-brush" | "mandir" | "map" | "map-pin" | "map-pin-alternate" | "mathematics" | "meat" | "medication" | "meeting" | "megaphone" | "menorah" | "menstrual-pad" | "merge" | "metronome" | "microphone" | "microphone-off" | "microscope" | "microwave" | "midtones" | "mirror" | "mobile" | "monorail" | "moon" | "mop" | "mop-and-bucket" | "more" | "mosque" | "motorcycle" | "mountains" | "mouth" | "move" | "move-document" | "movie" | "movie-camera" | "movie-clapboard" | "movie-clapboard-play" | "mushroom" | "music" | "music-album" | "music-artist" | "navigation" | "necktie" | "network" | "new-alert" | "new-badge" | "new-document" | "new-folder" | "news" | "no" | "no-entry" | "note-eighth" | "note-half" | "note-quarter" | "note-sixteenth" | "note-sixteenth-beamed" | "note-whole" | "notification" | "notion" | "numero" | "nut" | "octagon" | "official-document" | "onion" | "orange" | "orbit" | "ornament" | "oven" | "package" | "paifang" | "paint-brush" | "paint-brush-wide" | "paint-bucket" | "paint-roller" | "palm-tree" | "pants" | "paper-towels" | "parking" | "parking-no" | "partly-cloudy-day" | "partly-cloudy-night" | "passport" | "paste" | "peace" | "peanut" | "pear" | "pen" | "pencil" | "pentagon" | "pentagon-alternate" | "pentagon-dashed" | "pentagon-four-fifths" | "pentagon-one-fifth" | "pentagon-three-fifths" | "pentagon-two-fifths" | "people" | "perfume" | "person-feminine" | "person-masculine" | "phone" | "phone-call" | "phone-end-call" | "phone-speaker" | "photo-landscape" | "piano" | "pig" | "pill" | "pin" | "pisces" | "pitcher" | "pizza" | "plate-food" | "playback-fast-forward" | "playback-next" | "playback-pause" | "playback-play" | "playback-play-button" | "playback-previous" | "playback-rewind" | "playback-stop" | "playlist" | "plus" | "poo" | "postage-stamp" | "postcard" | "pot" | "potted-plant" | "poultry" | "power" | "pram" | "pregnancy-test" | "pretzel" | "preview" | "print" | "priority-high" | "priority-low" | "priority-mid" | "private" | "profile" | "promoted" | "public" | "pull-request" | "pump" | "pump-bottle" | "push-pin" | "puzzle" | "question-mark" | "radio" | "rain" | "rainbow" | "receipt" | "redirect" | "redo" | "reference" | "refresh" | "refresh-reverse" | "refrigerator" | "remove" | "rename" | "reorder" | "repeat" | "reply" | "reply-all" | "report" | "ringed-planet" | "robot" | "rocket" | "roller-skate" | "row" | "rubber-stamp" | "ruler" | "run" | "safety-pin" | "sagittarius" | "sailboat" | "sandwich" | "save" | "scarf" | "school" | "science" | "scooter" | "scorpio" | "screwdriver" | "script" | "scrub-brush" | "search" | "seed" | "send" | "send-to" | "server" | "service-counter" | "set-square" | "share" | "sharing" | "sheep" | "shell" | "shield" | "shirt" | "shoe" | "shogi" | "shop" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shorts" | "shovel-and-pail" | "shower" | "shuffle" | "sign-in" | "sign-out" | "signature-document" | "sink" | "skateboard" | "skip-backward" | "skip-forward" | "skirt" | "skull" | "skull-profile" | "sleet" | "slide" | "sliders-horizontal" | "sliders-vertical" | "slideshow" | "slideshow-play" | "smoking" | "smoking-no" | "snake" | "snare-drum" | "snippet" | "snorkel" | "snowflake" | "soap" | "soccer" | "sock" | "soda-bottle" | "soft-serve" | "soy" | "spider" | "sponge" | "spoon" | "spray-bottle" | "square" | "square-alternate" | "square-circle" | "square-dashed" | "square-one-fourth" | "square-three-fourths" | "square-two-fourths" | "squeeze-tube" | "stairs" | "star" | "star-half" | "star-of-life" | "star-outline" | "stars" | "steering-wheel" | "stethoscope" | "sticker" | "stomach" | "stopwatch" | "storm" | "stovetop" | "strawberry" | "stroller" | "subtask" | "subtitles" | "suit" | "suit-club" | "suit-diamond" | "suit-heart" | "suit-spade" | "suitcase" | "sun" | "sunglasses" | "sunrise" | "sunscreen" | "sunset" | "suspension-bridge" | "swap-horizontally" | "swap-vertically" | "sword" | "symbol" | "synagogue" | "sync" | "sync-reverse" | "syringe" | "t-square" | "table" | "tablet" | "tabs" | "tabs-user" | "tag" | "takeout-box" | "tampon" | "target" | "taurus" | "taxi" | "teapot" | "telephone" | "telescope" | "temperature-cool" | "temperature-warm" | "temple" | "theatre" | "thinking" | "thought" | "thought-alert" | "thought-dialogue" | "throat" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-admission" | "timeline" | "toaster" | "toilet" | "toilet-paper" | "token" | "tooth" | "torii" | "tornado" | "tortoise" | "towel" | "traffic-cone" | "traffic-light" | "train" | "train-high-speed" | "train-light-rail" | "train-magnetic-levitation" | "train-metro" | "transfers" | "translate" | "tree" | "triangle" | "triangle-alternate" | "triangle-dashed" | "triangle-one-third" | "triangle-two-thirds" | "trophy" | "tropical-cocktail" | "truck" | "trumpet" | "tshirt" | "tulip" | "tulip-name-tag" | "tumbler" | "tv" | "umbrella" | "underwear" | "undo" | "unfollow" | "unlock" | "unlock-keyhole" | "upload" | "upload-document" | "upload-folder" | "upward" | "user" | "user-circle" | "user-circle-dashed" | "user-circle-filled" | "username" | "vacuum-cleaner" | "verified" | "video-camera" | "video-camera-off" | "video-game" | "video-game-classic" | "video-game-joystick" | "videotape" | "view" | "view-off" | "vinyl-record" | "violin" | "virgo" | "vitruvian-man" | "voicemail" | "volcano" | "volume-high" | "volume-off" | "walk" | "wall" | "warning" | "watch-analog" | "water" | "whale" | "wheat" | "wheelchair" | "wheelchair-access" | "wheelchair-motorized" | "whistle" | "wifi" | "wind" | "window" | "wine" | "wine-bottle" | "wrapping-paper" | "wrench" | "yin-yang" | "zoom-in" | "zoom-out";
6
+ //# sourceMappingURL=icon-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-names.d.ts","sourceRoot":"","sources":["../src/icon-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GACpB,KAAK,GACL,eAAe,GACf,UAAU,GACV,KAAK,GACL,UAAU,GACV,OAAO,GACP,OAAO,GACP,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,GACV,aAAa,GACb,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,0BAA0B,GAC1B,wBAAwB,GACxB,iBAAiB,GACjB,KAAK,GACL,UAAU,GACV,KAAK,GACL,YAAY,GACZ,SAAS,GACT,MAAM,GACN,aAAa,GACb,UAAU,GACV,UAAU,GACV,OAAO,GACP,KAAK,GACL,eAAe,GACf,SAAS,GACT,QAAQ,GACR,SAAS,GACT,WAAW,GACX,UAAU,GACV,cAAc,GACd,YAAY,GACZ,SAAS,GACT,gBAAgB,GAChB,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,KAAK,GACL,KAAK,GACL,MAAM,GACN,aAAa,GACb,MAAM,GACN,mBAAmB,GACnB,UAAU,GACV,MA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Aa,GACb,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,oBAAoB,GACpB,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,QAAQ,GACR,mBAAmB,GACnB,OAAO,GACP,SAAS,GACT,QAAQ,GACR,OAAO,GACP,gBAAgB,GAChB,SAAS,GACT,IAAI,GACJ,UAAU,GACV,WAAW,GACX,MAAM,GACN,UAAU,GACV,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,iBAAiB,GACjB,eAAe,GACf,QAAQ,GACR,MAAM,GACN,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,UAAU,GACV,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX,MAAM,GACN,UAAU,GACV,cAAc,GACd,QAAQ,GACR,OAAO,GACP,eAAe,GACf,WAAW,GACX,SAAS,GACT,aAAa,GACb,YAAY,GACZ,MAAM,GACN,MAAM,GACN,SAAS,GACT,cAAc,GACd,OAAO,GACP,OAAO,GACP,OAAO,GACP,YAAY,GACZ,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,aAAa,GACb,gBAAgB,GAChB,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,CAAC"}
File without changes
@@ -0,0 +1,10 @@
1
+ export { emojiIcon, imageIcon, notionIcon, place } from "./builder.js";
2
+ export type { AutomationCapability, AutomationConfiguration, AutomationEvent, PageObjectResponse, } from "./capabilities/automation.js";
3
+ export type { CapabilityContext } from "./capabilities/context.js";
4
+ export type { NotionManagedOAuthConfiguration, OAuthCapability, OAuthConfiguration, UserManagedOAuthConfiguration, } from "./capabilities/oauth.js";
5
+ export type { SyncCapability, SyncChange, SyncChangeDelete, SyncChangeUpsert, SyncConfiguration, SyncExecutionResult, SyncMode, } from "./capabilities/sync.js";
6
+ export type { ToolCapability, ToolConfiguration } from "./capabilities/tool.js";
7
+ export type { AnyJSONSchema, JSONSchema } from "./json-schema.js";
8
+ export type { Icon, ImageIcon, NoticonColor, NoticonName, PlaceValue, Schedule, } from "./types.js";
9
+ export { Worker } from "./worker.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvE,YAAY,EACX,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,GAClB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,YAAY,EACX,+BAA+B,EAC/B,eAAe,EACf,kBAAkB,EAClB,6BAA6B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACX,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,GACR,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAClE,YAAY,EACX,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,UAAU,EACV,QAAQ,GACR,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { emojiIcon, imageIcon, notionIcon, place } from "./builder.js";
2
+ import { Worker } from "./worker.js";
3
+ export {
4
+ Worker,
5
+ emojiIcon,
6
+ imageIcon,
7
+ notionIcon,
8
+ place
9
+ };
@@ -0,0 +1,117 @@
1
+ /**
2
+ * JSON Schema types compatible with both Anthropic and OpenAI structured
3
+ * output APIs.
4
+ *
5
+ * Constraints enforced by this type (intersection of both providers):
6
+ * - Objects must have `additionalProperties: false`
7
+ * - All object properties should be listed in `required`
8
+ * (use `anyOf` with `null` for optional fields)
9
+ * - No recursive schemas
10
+ * - No `allOf`, `not`, `if/then/else`
11
+ * - No string constraints (`minLength`, `maxLength`, `pattern`)
12
+ * - No number constraints (`minimum`, `maximum`, `multipleOf`)
13
+ * - Array `minItems` limited to 0 or 1; no `maxItems`
14
+ * - String `format` limited to: date-time, time, date, duration,
15
+ * email, hostname, ipv4, ipv6, uuid
16
+ * - `$ref` and `$defs` supported (no external refs)
17
+ */
18
+ /**
19
+ * String formats supported by both Anthropic and OpenAI structured outputs.
20
+ */
21
+ export type JSONSchemaStringFormat = "date-time" | "time" | "date" | "duration" | "email" | "hostname" | "ipv4" | "ipv6" | "uuid";
22
+ interface ForbiddenCompositionKeywords {
23
+ anyOf?: never;
24
+ allOf?: never;
25
+ not?: never;
26
+ if?: never;
27
+ then?: never;
28
+ else?: never;
29
+ }
30
+ export interface JSONSchemaStringDef<T extends string = string> extends ForbiddenCompositionKeywords {
31
+ type: "string";
32
+ description?: string;
33
+ format?: JSONSchemaStringFormat;
34
+ enum?: readonly T[];
35
+ }
36
+ export interface JSONSchemaNumberDef<T extends number = number> extends ForbiddenCompositionKeywords {
37
+ type: "number" | "integer";
38
+ description?: string;
39
+ enum?: readonly T[];
40
+ }
41
+ export interface JSONSchemaBooleanDef extends ForbiddenCompositionKeywords {
42
+ type: "boolean";
43
+ description?: string;
44
+ }
45
+ export interface JSONSchemaNullDef extends ForbiddenCompositionKeywords {
46
+ type: "null";
47
+ description?: string;
48
+ }
49
+ export interface JSONSchemaArrayDef<E = unknown> extends ForbiddenCompositionKeywords {
50
+ type: "array";
51
+ description?: string;
52
+ items: JSONSchema<E>;
53
+ minItems?: 0 | 1;
54
+ }
55
+ export interface JSONSchemaObjectDef<T extends Record<string, unknown> = Record<string, unknown>> extends ForbiddenCompositionKeywords {
56
+ type: "object";
57
+ description?: string;
58
+ properties: {
59
+ [K in keyof T]-?: JSONSchema<T[K]>;
60
+ };
61
+ required: readonly (keyof T & string)[];
62
+ additionalProperties: false;
63
+ $defs?: Record<string, AnyJSONSchema>;
64
+ }
65
+ export interface JSONSchemaRefDef extends ForbiddenCompositionKeywords {
66
+ $ref: string;
67
+ description?: string;
68
+ }
69
+ export interface JSONSchemaAnyOfDef<T = unknown> {
70
+ anyOf: readonly JSONSchema<T>[];
71
+ description?: string;
72
+ }
73
+ export type AnyJSONSchema = JSONSchemaStringDef | JSONSchemaNumberDef | JSONSchemaBooleanDef | JSONSchemaNullDef | JSONSchemaArrayDef | JSONSchemaObjectDef | JSONSchemaRefDef | JSONSchemaAnyOfDef;
74
+ /**
75
+ * Maps a TypeScript type T to its corresponding JSON Schema definition.
76
+ *
77
+ * Uses `[T] extends [X]` (non-distributing) so that union types like
78
+ * `string | number` fall through to `AnyJSONSchema` instead of distributing
79
+ * into `JSONSchemaStringDef | JSONSchemaNumberDef`.
80
+ *
81
+ * The `T & X` intersections (e.g. `T & string`) satisfy the generic
82
+ * constraints on each def without widening T.
83
+ *
84
+ * A `$ref` is always valid in any schema position, so `JSONSchemaRefDef`
85
+ * is unioned in at the end.
86
+ */
87
+ type JSONSchemaFor<T> = JSONSchemaRefDef | ([T] extends [string] ? JSONSchemaStringDef<T & string> : [T] extends [number] ? JSONSchemaNumberDef<T & number> : [T] extends [boolean] ? JSONSchemaBooleanDef : [T] extends [readonly (infer E)[]] ? JSONSchemaArrayDef<E> : [T] extends [Record<string, unknown>] ? JSONSchemaObjectDef<T & Record<string, unknown>> : AnyJSONSchema);
88
+ /**
89
+ * Wraps a non-null schema in an `anyOf` with `{ type: "null" }` for
90
+ * nullable types (e.g. `string | null`).
91
+ */
92
+ type JSONSchemaNullable<T> = {
93
+ anyOf: readonly [JSONSchemaFor<T>, JSONSchemaNullDef];
94
+ description?: string;
95
+ };
96
+ /**
97
+ * A JSON Schema definition compatible with both Anthropic and OpenAI
98
+ * structured output APIs.
99
+ *
100
+ * When the generic parameter `T` is provided, the schema structure is
101
+ * constrained at compile time to match `T`:
102
+ *
103
+ * ```ts
104
+ * // Schema is checked against the type:
105
+ * const schema: JSONSchema<{ name: string }> = {
106
+ * type: "object",
107
+ * properties: { name: { type: "string" } },
108
+ * required: ["name"],
109
+ * additionalProperties: false,
110
+ * };
111
+ * ```
112
+ *
113
+ * @template T - The TypeScript type the schema should describe.
114
+ */
115
+ export type JSONSchema<T = unknown> = unknown extends T ? AnyJSONSchema : null extends T ? JSONSchemaNullable<NonNullable<T>> : JSONSchemaFor<T>;
116
+ export {};
117
+ //# sourceMappingURL=json-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC/B,WAAW,GACX,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAMV,UAAU,4BAA4B;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,EAAE,CAAC,EAAE,KAAK,CAAC;IACX,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;CACb;AAID,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAC7D,SAAQ,4BAA4B;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CA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AS,CAAC,GACb,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAClC,aAAa,CAAC,CAAC,CAAC,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=json-schema.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-schema.test.d.ts","sourceRoot":"","sources":["../src/json-schema.test.ts"],"names":[],"mappings":""}