@keystrokehq/slite 0.1.0 → 0.1.3

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 (137) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/ask-question.cjs +7 -7
  4. package/dist/actions/ask-question.cjs.map +1 -1
  5. package/dist/actions/ask-question.d.cts +20 -3
  6. package/dist/actions/ask-question.d.cts.map +1 -1
  7. package/dist/actions/ask-question.d.mts +20 -3
  8. package/dist/actions/ask-question.d.mts.map +1 -1
  9. package/dist/actions/ask-question.mjs +7 -7
  10. package/dist/actions/ask-question.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +5 -5
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +24 -3
  14. package/dist/actions/create-note.d.cts.map +1 -1
  15. package/dist/actions/create-note.d.mts +24 -3
  16. package/dist/actions/create-note.d.mts.map +1 -1
  17. package/dist/actions/create-note.mjs +5 -5
  18. package/dist/actions/create-note.mjs.map +1 -1
  19. package/dist/actions/delete-note-by-id.cjs +2 -2
  20. package/dist/actions/delete-note-by-id.cjs.map +1 -1
  21. package/dist/actions/delete-note-by-id.d.cts +10 -3
  22. package/dist/actions/delete-note-by-id.d.cts.map +1 -1
  23. package/dist/actions/delete-note-by-id.d.mts +10 -3
  24. package/dist/actions/delete-note-by-id.d.mts.map +1 -1
  25. package/dist/actions/delete-note-by-id.mjs +2 -2
  26. package/dist/actions/delete-note-by-id.mjs.map +1 -1
  27. package/dist/actions/flag-note-as-outdated.cjs +6 -6
  28. package/dist/actions/flag-note-as-outdated.cjs.map +1 -1
  29. package/dist/actions/flag-note-as-outdated.d.cts +17 -3
  30. package/dist/actions/flag-note-as-outdated.d.cts.map +1 -1
  31. package/dist/actions/flag-note-as-outdated.d.mts +17 -3
  32. package/dist/actions/flag-note-as-outdated.d.mts.map +1 -1
  33. package/dist/actions/flag-note-as-outdated.mjs +6 -6
  34. package/dist/actions/flag-note-as-outdated.mjs.map +1 -1
  35. package/dist/actions/get-authenticated-user.cjs +5 -5
  36. package/dist/actions/get-authenticated-user.cjs.map +1 -1
  37. package/dist/actions/get-authenticated-user.d.cts +8 -3
  38. package/dist/actions/get-authenticated-user.d.cts.map +1 -1
  39. package/dist/actions/get-authenticated-user.d.mts +8 -3
  40. package/dist/actions/get-authenticated-user.d.mts.map +1 -1
  41. package/dist/actions/get-authenticated-user.mjs +5 -5
  42. package/dist/actions/get-authenticated-user.mjs.map +1 -1
  43. package/dist/actions/get-note-by-id.cjs +6 -6
  44. package/dist/actions/get-note-by-id.cjs.map +1 -1
  45. package/dist/actions/get-note-by-id.d.cts +27 -3
  46. package/dist/actions/get-note-by-id.d.cts.map +1 -1
  47. package/dist/actions/get-note-by-id.d.mts +27 -3
  48. package/dist/actions/get-note-by-id.d.mts.map +1 -1
  49. package/dist/actions/get-note-by-id.mjs +6 -6
  50. package/dist/actions/get-note-by-id.mjs.map +1 -1
  51. package/dist/actions/get-note-children.cjs +9 -9
  52. package/dist/actions/get-note-children.cjs.map +1 -1
  53. package/dist/actions/get-note-children.d.cts +24 -3
  54. package/dist/actions/get-note-children.d.cts.map +1 -1
  55. package/dist/actions/get-note-children.d.mts +24 -3
  56. package/dist/actions/get-note-children.d.mts.map +1 -1
  57. package/dist/actions/get-note-children.mjs +9 -9
  58. package/dist/actions/get-note-children.mjs.map +1 -1
  59. package/dist/actions/list-notes.cjs +8 -8
  60. package/dist/actions/list-notes.cjs.map +1 -1
  61. package/dist/actions/list-notes.d.cts +21 -3
  62. package/dist/actions/list-notes.d.cts.map +1 -1
  63. package/dist/actions/list-notes.d.mts +21 -3
  64. package/dist/actions/list-notes.d.mts.map +1 -1
  65. package/dist/actions/list-notes.mjs +8 -8
  66. package/dist/actions/list-notes.mjs.map +1 -1
  67. package/dist/actions/search-groups.cjs +7 -7
  68. package/dist/actions/search-groups.cjs.map +1 -1
  69. package/dist/actions/search-groups.d.cts +18 -3
  70. package/dist/actions/search-groups.d.cts.map +1 -1
  71. package/dist/actions/search-groups.d.mts +18 -3
  72. package/dist/actions/search-groups.d.mts.map +1 -1
  73. package/dist/actions/search-groups.mjs +7 -7
  74. package/dist/actions/search-groups.mjs.map +1 -1
  75. package/dist/actions/search-notes.cjs +13 -13
  76. package/dist/actions/search-notes.cjs.map +1 -1
  77. package/dist/actions/search-notes.d.cts +54 -3
  78. package/dist/actions/search-notes.d.cts.map +1 -1
  79. package/dist/actions/search-notes.d.mts +54 -3
  80. package/dist/actions/search-notes.d.mts.map +1 -1
  81. package/dist/actions/search-notes.mjs +13 -13
  82. package/dist/actions/search-notes.mjs.map +1 -1
  83. package/dist/actions/search-users.cjs +7 -7
  84. package/dist/actions/search-users.cjs.map +1 -1
  85. package/dist/actions/search-users.d.cts +23 -3
  86. package/dist/actions/search-users.d.cts.map +1 -1
  87. package/dist/actions/search-users.d.mts +23 -3
  88. package/dist/actions/search-users.d.mts.map +1 -1
  89. package/dist/actions/search-users.mjs +7 -7
  90. package/dist/actions/search-users.mjs.map +1 -1
  91. package/dist/actions/update-note-archived-state.cjs +5 -5
  92. package/dist/actions/update-note-archived-state.cjs.map +1 -1
  93. package/dist/actions/update-note-archived-state.d.cts +16 -3
  94. package/dist/actions/update-note-archived-state.d.cts.map +1 -1
  95. package/dist/actions/update-note-archived-state.d.mts +16 -3
  96. package/dist/actions/update-note-archived-state.d.mts.map +1 -1
  97. package/dist/actions/update-note-archived-state.mjs +5 -5
  98. package/dist/actions/update-note-archived-state.mjs.map +1 -1
  99. package/dist/actions/update-note-owner.cjs +5 -5
  100. package/dist/actions/update-note-owner.cjs.map +1 -1
  101. package/dist/actions/update-note-owner.d.cts +18 -3
  102. package/dist/actions/update-note-owner.d.cts.map +1 -1
  103. package/dist/actions/update-note-owner.d.mts +18 -3
  104. package/dist/actions/update-note-owner.d.mts.map +1 -1
  105. package/dist/actions/update-note-owner.mjs +5 -5
  106. package/dist/actions/update-note-owner.mjs.map +1 -1
  107. package/dist/actions/update-note.cjs +5 -5
  108. package/dist/actions/update-note.cjs.map +1 -1
  109. package/dist/actions/update-note.d.cts +25 -3
  110. package/dist/actions/update-note.d.cts.map +1 -1
  111. package/dist/actions/update-note.d.mts +25 -3
  112. package/dist/actions/update-note.d.mts.map +1 -1
  113. package/dist/actions/update-note.mjs +5 -5
  114. package/dist/actions/update-note.mjs.map +1 -1
  115. package/dist/actions/update-tile.cjs +1 -1
  116. package/dist/actions/update-tile.cjs.map +1 -1
  117. package/dist/actions/update-tile.d.cts +27 -3
  118. package/dist/actions/update-tile.d.cts.map +1 -1
  119. package/dist/actions/update-tile.d.mts +27 -3
  120. package/dist/actions/update-tile.d.mts.map +1 -1
  121. package/dist/actions/update-tile.mjs +1 -1
  122. package/dist/actions/update-tile.mjs.map +1 -1
  123. package/dist/actions/verify-note.cjs +5 -5
  124. package/dist/actions/verify-note.cjs.map +1 -1
  125. package/dist/actions/verify-note.d.cts +19 -3
  126. package/dist/actions/verify-note.d.cts.map +1 -1
  127. package/dist/actions/verify-note.d.mts +19 -3
  128. package/dist/actions/verify-note.d.mts.map +1 -1
  129. package/dist/actions/verify-note.mjs +5 -5
  130. package/dist/actions/verify-note.mjs.map +1 -1
  131. package/dist/catalog.cjs +7 -1
  132. package/dist/catalog.cjs.map +1 -1
  133. package/dist/catalog.d.cts +8 -0
  134. package/dist/catalog.d.mts +8 -0
  135. package/dist/catalog.mjs +7 -1
  136. package/dist/catalog.mjs.map +1 -1
  137. package/package.json +2 -2
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-notes.d.ts
4
- declare const SliteListNotesInput: z.ZodTypeAny;
5
- declare const SliteListNotesOutput: z.ZodTypeAny;
6
- declare const sliteListNotes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SliteListNotesInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ ownerId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const SliteListNotesOutput: z.ZodObject<{
9
+ notes: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ url: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ updatedAt: z.ZodNullable<z.ZodString>;
14
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ parentNoteId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>;
17
+ total: z.ZodNullable<z.ZodNumber>;
18
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
20
+ }, z.core.$loose>;
21
+ declare const sliteListNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ cursor?: string | undefined;
23
+ ownerId?: string | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { sliteListNotes };
9
27
  //# sourceMappingURL=list-notes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-notes.d.mts","names":[],"sources":["../../src/actions/list-notes.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAG4C;AAAA,cASnE,oBAAA,EAAsB,CAAA,CAAE,UAKuC;AAAA,cAE/D,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-notes.d.mts","names":[],"sources":["../../src/actions/list-notes.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
@@ -6,13 +6,13 @@ const SliteListNotesInput = z.object({
6
6
  ownerId: z.string().describe("User id to filter notes by owner. If not provided, returns all notes accessible to the authenticated user.").optional()
7
7
  }).describe("Request model for listing notes with optional filtering by owner.");
8
8
  const SliteListNotes_NoteSchema = z.object({
9
- id: z.string().describe("Note identifier."),
10
- url: z.string().describe("Note URL."),
11
- title: z.string().describe("Note title."),
12
- updatedAt: z.string().describe("Last update timestamp in ISO 8601 date-time format."),
9
+ id: z.string().describe("Note identifier.").nullable(),
10
+ url: z.string().describe("Note URL.").nullable(),
11
+ title: z.string().describe("Note title.").nullable(),
12
+ updatedAt: z.string().describe("Last update timestamp in ISO 8601 date-time format.").nullable(),
13
13
  archivedAt: z.string().describe("Archive timestamp in ISO 8601 date-time format, or null if not archived.").nullable().optional(),
14
14
  parentNoteId: z.string().describe("Parent note identifier.").nullable().optional()
15
- }).describe("Model representing a single note in the response.");
15
+ }).passthrough().describe("Model representing a single note in the response.");
16
16
  const sliteListNotes = action("SLITE_LIST_NOTES", {
17
17
  slug: "slite-list-notes",
18
18
  name: "List Notes",
@@ -20,10 +20,10 @@ const sliteListNotes = action("SLITE_LIST_NOTES", {
20
20
  input: SliteListNotesInput,
21
21
  output: z.object({
22
22
  notes: z.array(SliteListNotes_NoteSchema).describe("Array of Note objects matching the filter criteria."),
23
- total: z.number().describe("Total number of notes."),
23
+ total: z.number().describe("Total number of notes.").nullable(),
24
24
  nextCursor: z.string().describe("Cursor to continue fetching the next page of notes, or null if no more pages exist.").nullable().optional(),
25
- hasNextPage: z.boolean().describe("Indicates whether there is another page to fetch.")
26
- }).describe("Response model for listing notes with pagination information.")
25
+ hasNextPage: z.boolean().describe("Indicates whether there is another page to fetch.").nullable()
26
+ }).passthrough().describe("Response model for listing notes with pagination information.")
27
27
  });
28
28
  //#endregion
29
29
  export { sliteListNotes };
@@ -1 +1 @@
1
- {"version":3,"file":"list-notes.mjs","names":[],"sources":["../../src/actions/list-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteListNotesInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor to use to continue fetching notes for pagination. Use the nextCursor value from a previous response.\").optional(),\n ownerId: z.string().describe(\"User id to filter notes by owner. If not provided, returns all notes accessible to the authenticated user.\").optional(),\n}).describe(\"Request model for listing notes with optional filtering by owner.\");\nconst SliteListNotes_NoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Note identifier.\"),\n url: z.string().describe(\"Note URL.\"),\n title: z.string().describe(\"Note title.\"),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 date-time format.\"),\n archivedAt: z.string().describe(\"Archive timestamp in ISO 8601 date-time format, or null if not archived.\").nullable().optional(),\n parentNoteId: z.string().describe(\"Parent note identifier.\").nullable().optional(),\n}).describe(\"Model representing a single note in the response.\");\nexport const SliteListNotesOutput: z.ZodTypeAny = z.object({\n notes: z.array(SliteListNotes_NoteSchema).describe(\"Array of Note objects matching the filter criteria.\"),\n total: z.number().describe(\"Total number of notes.\"),\n nextCursor: z.string().describe(\"Cursor to continue fetching the next page of notes, or null if no more pages exist.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Indicates whether there is another page to fetch.\"),\n}).describe(\"Response model for listing notes with pagination information.\");\n\nexport const sliteListNotes = action(\"SLITE_LIST_NOTES\", {\n slug: \"slite-list-notes\",\n name: \"List Notes\",\n description: \"Tool to list notes from Slite with optional filtering by owner. Use when you need to retrieve notes, optionally filtered by a specific user. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteListNotesInput,\n output: SliteListNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACpJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,4BAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACpC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACxC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAQ/D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,qDAAqD;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACvF,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-notes.mjs","names":[],"sources":["../../src/actions/list-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteListNotesInput = z.object({\n cursor: z.string().describe(\"Cursor to use to continue fetching notes for pagination. Use the nextCursor value from a previous response.\").optional(),\n ownerId: z.string().describe(\"User id to filter notes by owner. If not provided, returns all notes accessible to the authenticated user.\").optional(),\n}).describe(\"Request model for listing notes with optional filtering by owner.\");\nconst SliteListNotes_NoteSchema = z.object({\n id: z.string().describe(\"Note identifier.\").nullable(),\n url: z.string().describe(\"Note URL.\").nullable(),\n title: z.string().describe(\"Note title.\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 date-time format.\").nullable(),\n archivedAt: z.string().describe(\"Archive timestamp in ISO 8601 date-time format, or null if not archived.\").nullable().optional(),\n parentNoteId: z.string().describe(\"Parent note identifier.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a single note in the response.\");\nexport const SliteListNotesOutput = z.object({\n notes: z.array(SliteListNotes_NoteSchema).describe(\"Array of Note objects matching the filter criteria.\"),\n total: z.number().describe(\"Total number of notes.\").nullable(),\n nextCursor: z.string().describe(\"Cursor to continue fetching the next page of notes, or null if no more pages exist.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Indicates whether there is another page to fetch.\").nullable(),\n}).passthrough().describe(\"Response model for listing notes with pagination information.\");\n\nexport const sliteListNotes = action(\"SLITE_LIST_NOTES\", {\n slug: \"slite-list-notes\",\n name: \"List Notes\",\n description: \"Tool to list notes from Slite with optional filtering by owner. Use when you need to retrieve notes, optionally filtered by a specific user. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteListNotesInput,\n output: SliteListNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACpJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,4BAA4B,EAAE,OAAO;CACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAQ7E,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkC,EAAE,OAAO;EAC3C,OAAO,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,qDAAqD;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -6,16 +6,16 @@ const SliteSearchGroupsInput = zod.z.object({
6
6
  cursor: zod.z.string().describe("Cursor to use to continue fetching groups for pagination").optional()
7
7
  }).describe("Request model for searching groups by name.");
8
8
  const SliteSearchGroups_GroupSchema = zod.z.object({
9
- id: zod.z.string().describe("Unique identifier for the group"),
10
- name: zod.z.string().describe("Name of the group"),
11
- description: zod.z.string().describe("Description of the group")
12
- }).describe("A group object containing group details.");
9
+ id: zod.z.string().describe("Unique identifier for the group").nullable(),
10
+ name: zod.z.string().describe("Name of the group").nullable(),
11
+ description: zod.z.string().describe("Description of the group").nullable()
12
+ }).passthrough().describe("A group object containing group details.");
13
13
  const SliteSearchGroupsOutput = zod.z.object({
14
- total: zod.z.number().describe("Total count of groups matching the query"),
14
+ total: zod.z.number().describe("Total count of groups matching the query").nullable(),
15
15
  groups: zod.z.array(SliteSearchGroups_GroupSchema).describe("List of groups matching the search query"),
16
16
  nextCursor: zod.z.string().describe("Cursor for the next page, null if no more pages").nullable().optional(),
17
- hasNextPage: zod.z.boolean().describe("Whether there are more results available")
18
- }).describe("Response model for searching groups.");
17
+ hasNextPage: zod.z.boolean().describe("Whether there are more results available").nullable()
18
+ }).passthrough().describe("Response model for searching groups.");
19
19
  const sliteSearchGroups = require_action.action("SLITE_SEARCH_GROUPS", {
20
20
  slug: "slite-search-groups",
21
21
  name: "Search Groups",
@@ -1 +1 @@
1
- {"version":3,"file":"search-groups.cjs","names":["z","action"],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchGroupsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"Search query to match against group names\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching groups for pagination\").optional(),\n}).describe(\"Request model for searching groups by name.\");\nconst SliteSearchGroups_GroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the group\"),\n name: z.string().describe(\"Name of the group\"),\n description: z.string().describe(\"Description of the group\"),\n}).describe(\"A group object containing group details.\");\nexport const SliteSearchGroupsOutput: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total count of groups matching the query\"),\n groups: z.array(SliteSearchGroups_GroupSchema).describe(\"List of groups matching the search query\"),\n nextCursor: z.string().describe(\"Cursor for the next page, null if no more pages\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\"),\n}).describe(\"Response model for searching groups.\");\n\nexport const sliteSearchGroups = action(\"SLITE_SEARCH_GROUPS\", {\n slug: \"slite-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups by name in Slite. Use when you need to find groups matching a search query. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteSearchGroupsInput,\n output: SliteSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC7D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,QAAQA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AAC9E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-groups.cjs","names":["z","action"],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchGroupsInput = z.object({\n query: z.string().describe(\"Search query to match against group names\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching groups for pagination\").optional(),\n}).describe(\"Request model for searching groups by name.\");\nconst SliteSearchGroups_GroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Name of the group\").nullable(),\n description: z.string().describe(\"Description of the group\").nullable(),\n}).passthrough().describe(\"A group object containing group details.\");\nexport const SliteSearchGroupsOutput = z.object({\n total: z.number().describe(\"Total count of groups matching the query\").nullable(),\n groups: z.array(SliteSearchGroups_GroupSchema).describe(\"List of groups matching the search query\"),\n nextCursor: z.string().describe(\"Cursor for the next page, null if no more pages\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough().describe(\"Response model for searching groups.\");\n\nexport const sliteSearchGroups = action(\"SLITE_SEARCH_GROUPS\", {\n slug: \"slite-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups by name in Slite. Use when you need to find groups matching a search query. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteSearchGroupsInput,\n output: SliteSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-groups.d.ts
4
- declare const SliteSearchGroupsInput: z.ZodTypeAny;
5
- declare const SliteSearchGroupsOutput: z.ZodTypeAny;
6
- declare const sliteSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SliteSearchGroupsInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const SliteSearchGroupsOutput: z.ZodObject<{
9
+ total: z.ZodNullable<z.ZodNumber>;
10
+ groups: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ description: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$loose>>;
15
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>;
18
+ declare const sliteSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ query: string;
20
+ cursor?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { sliteSearchGroups };
9
24
  //# sourceMappingURL=search-groups.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-groups.d.cts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGmB;AAAA,cAM7C,uBAAA,EAAyB,CAAA,CAAE,UAKW;AAAA,cAEtC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-groups.d.cts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAStB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-groups.d.ts
4
- declare const SliteSearchGroupsInput: z.ZodTypeAny;
5
- declare const SliteSearchGroupsOutput: z.ZodTypeAny;
6
- declare const sliteSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SliteSearchGroupsInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const SliteSearchGroupsOutput: z.ZodObject<{
9
+ total: z.ZodNullable<z.ZodNumber>;
10
+ groups: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ description: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$loose>>;
15
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>;
18
+ declare const sliteSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ query: string;
20
+ cursor?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { sliteSearchGroups };
9
24
  //# sourceMappingURL=search-groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-groups.d.mts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGmB;AAAA,cAM7C,uBAAA,EAAyB,CAAA,CAAE,UAKW;AAAA,cAEtC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-groups.d.mts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAStB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA"}
@@ -6,21 +6,21 @@ const SliteSearchGroupsInput = z.object({
6
6
  cursor: z.string().describe("Cursor to use to continue fetching groups for pagination").optional()
7
7
  }).describe("Request model for searching groups by name.");
8
8
  const SliteSearchGroups_GroupSchema = z.object({
9
- id: z.string().describe("Unique identifier for the group"),
10
- name: z.string().describe("Name of the group"),
11
- description: z.string().describe("Description of the group")
12
- }).describe("A group object containing group details.");
9
+ id: z.string().describe("Unique identifier for the group").nullable(),
10
+ name: z.string().describe("Name of the group").nullable(),
11
+ description: z.string().describe("Description of the group").nullable()
12
+ }).passthrough().describe("A group object containing group details.");
13
13
  const sliteSearchGroups = action("SLITE_SEARCH_GROUPS", {
14
14
  slug: "slite-search-groups",
15
15
  name: "Search Groups",
16
16
  description: "Tool to search for groups by name in Slite. Use when you need to find groups matching a search query. Supports cursor-based pagination via the cursor parameter.",
17
17
  input: SliteSearchGroupsInput,
18
18
  output: z.object({
19
- total: z.number().describe("Total count of groups matching the query"),
19
+ total: z.number().describe("Total count of groups matching the query").nullable(),
20
20
  groups: z.array(SliteSearchGroups_GroupSchema).describe("List of groups matching the search query"),
21
21
  nextCursor: z.string().describe("Cursor for the next page, null if no more pages").nullable().optional(),
22
- hasNextPage: z.boolean().describe("Whether there are more results available")
23
- }).describe("Response model for searching groups.")
22
+ hasNextPage: z.boolean().describe("Whether there are more results available").nullable()
23
+ }).passthrough().describe("Response model for searching groups.")
24
24
  });
25
25
  //#endregion
26
26
  export { sliteSearchGroups };
@@ -1 +1 @@
1
- {"version":3,"file":"search-groups.mjs","names":[],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchGroupsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"Search query to match against group names\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching groups for pagination\").optional(),\n}).describe(\"Request model for searching groups by name.\");\nconst SliteSearchGroups_GroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the group\"),\n name: z.string().describe(\"Name of the group\"),\n description: z.string().describe(\"Description of the group\"),\n}).describe(\"A group object containing group details.\");\nexport const SliteSearchGroupsOutput: z.ZodTypeAny = z.object({\n total: z.number().describe(\"Total count of groups matching the query\"),\n groups: z.array(SliteSearchGroups_GroupSchema).describe(\"List of groups matching the search query\"),\n nextCursor: z.string().describe(\"Cursor for the next page, null if no more pages\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\"),\n}).describe(\"Response model for searching groups.\");\n\nexport const sliteSearchGroups = action(\"SLITE_SEARCH_GROUPS\", {\n slug: \"slite-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups by name in Slite. Use when you need to find groups matching a search query. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteSearchGroupsInput,\n output: SliteSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,gCAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC7D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAQtD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZmD,EAAE,OAAO;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACrE,QAAQ,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC9E,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-groups.mjs","names":[],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchGroupsInput = z.object({\n query: z.string().describe(\"Search query to match against group names\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching groups for pagination\").optional(),\n}).describe(\"Request model for searching groups by name.\");\nconst SliteSearchGroups_GroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Name of the group\").nullable(),\n description: z.string().describe(\"Description of the group\").nullable(),\n}).passthrough().describe(\"A group object containing group details.\");\nexport const SliteSearchGroupsOutput = z.object({\n total: z.number().describe(\"Total count of groups matching the query\").nullable(),\n groups: z.array(SliteSearchGroups_GroupSchema).describe(\"List of groups matching the search query\"),\n nextCursor: z.string().describe(\"Cursor for the next page, null if no more pages\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough().describe(\"Response model for searching groups.\");\n\nexport const sliteSearchGroups = action(\"SLITE_SEARCH_GROUPS\", {\n slug: \"slite-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups by name in Slite. Use when you need to find groups matching a search query. Supports cursor-based pagination via the cursor parameter.\",\n input: SliteSearchGroupsInput,\n output: SliteSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAQpE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZqC,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,0CAA0C;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
@@ -18,19 +18,19 @@ const SliteSearchNotesInput = zod.z.object({
18
18
  highlightPostTag: zod.z.string().describe("Closing HTML/text tag for highlighting query matches in results.").optional()
19
19
  }).describe("Request model for searching notes.");
20
20
  const SliteSearchNotes_ParentNoteSchema = zod.z.object({
21
- id: zod.z.string().describe("Parent note ID"),
22
- title: zod.z.string().describe("Parent note title")
23
- }).describe("Parent note in the breadcrumb hierarchy.");
21
+ id: zod.z.string().describe("Parent note ID").nullable(),
22
+ title: zod.z.string().describe("Parent note title").nullable()
23
+ }).passthrough().describe("Parent note in the breadcrumb hierarchy.");
24
24
  const SliteSearchNotes_SearchNoteHitSchema = zod.z.object({
25
- id: zod.z.string().describe("Unique note identifier"),
25
+ id: zod.z.string().describe("Unique note identifier").nullable(),
26
26
  type: zod.z.enum([
27
27
  "rich_text",
28
28
  "discussion",
29
29
  "collection"
30
- ]).describe("Note type"),
31
- title: zod.z.string().describe("Note title"),
32
- highlight: zod.z.string().describe("Part of the note content that matched the query (empty string when only title matches)"),
33
- updatedAt: zod.z.string().describe("Last update timestamp"),
30
+ ]).describe("Note type").nullable(),
31
+ title: zod.z.string().describe("Note title").nullable(),
32
+ highlight: zod.z.string().describe("Part of the note content that matched the query (empty string when only title matches)").nullable(),
33
+ updatedAt: zod.z.string().describe("Last update timestamp").nullable(),
34
34
  archivedAt: zod.z.string().describe("Archive timestamp if note is archived").nullable().optional(),
35
35
  parentNotes: zod.z.array(SliteSearchNotes_ParentNoteSchema).describe("Breadcrumb hierarchy of parent notes").nullable().optional(),
36
36
  reviewState: zod.z.enum([
@@ -38,13 +38,13 @@ const SliteSearchNotes_SearchNoteHitSchema = zod.z.object({
38
38
  "Outdated",
39
39
  "VerificationRequested"
40
40
  ]).describe("Review status of the note").nullable().optional(),
41
- lastEditedAt: zod.z.string().describe("Last edit timestamp")
42
- }).describe("A single search result hit.");
41
+ lastEditedAt: zod.z.string().describe("Last edit timestamp").nullable()
42
+ }).passthrough().describe("A single search result hit.");
43
43
  const SliteSearchNotesOutput = zod.z.object({
44
44
  hits: zod.z.array(SliteSearchNotes_SearchNoteHitSchema).describe("Array of matching notes").nullable().optional(),
45
- page: zod.z.number().describe("Current page number"),
46
- nbPages: zod.z.number().describe("Total number of pages available for the current query")
47
- }).describe("Response model for search notes action.");
45
+ page: zod.z.number().describe("Current page number").nullable(),
46
+ nbPages: zod.z.number().describe("Total number of pages available for the current query").nullable()
47
+ }).passthrough().describe("Response model for search notes action.");
48
48
  const sliteSearchNotes = require_action.action("SLITE_SEARCH_NOTES", {
49
49
  slug: "slite-search-notes",
50
50
  name: "Search Notes",
@@ -1 +1 @@
1
- {"version":3,"file":"search-notes.cjs","names":["z","action"],"sources":["../../src/actions/search-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchNotesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Pagination control for results. Minimum value: 0.\").optional(),\n depth: z.number().int().describe(\"Filters results by note hierarchy level.\").optional(),\n query: z.string().describe(\"Search term for note lookup. Defaults to empty string if not provided.\").optional(),\n hitsPerPage: z.number().int().describe(\"Number of results per page. Range: 1-100.\").optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Filters by review status.\").optional(),\n parentNoteId: z.string().describe(\"Filters results to notes under a specific parent note.\").optional(),\n highlightPreTag: z.string().describe(\"Opening HTML/text tag for highlighting query matches in results.\").optional(),\n includeArchived: z.boolean().describe(\"When true, includes archived notes in results. Defaults to false.\").optional(),\n lastEditedAfter: z.string().describe(\"Returns only notes modified after the specified date (ISO 8601 date-time format).\").optional(),\n highlightPostTag: z.string().describe(\"Closing HTML/text tag for highlighting query matches in results.\").optional(),\n}).describe(\"Request model for searching notes.\");\nconst SliteSearchNotes_ParentNoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Parent note ID\"),\n title: z.string().describe(\"Parent note title\"),\n}).describe(\"Parent note in the breadcrumb hierarchy.\");\nconst SliteSearchNotes_SearchNoteHitSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique note identifier\"),\n type: z.enum([\"rich_text\", \"discussion\", \"collection\"]).describe(\"Note type\"),\n title: z.string().describe(\"Note title\"),\n highlight: z.string().describe(\"Part of the note content that matched the query (empty string when only title matches)\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n archivedAt: z.string().describe(\"Archive timestamp if note is archived\").nullable().optional(),\n parentNotes: z.array(SliteSearchNotes_ParentNoteSchema).describe(\"Breadcrumb hierarchy of parent notes\").nullable().optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Review status of the note\").nullable().optional(),\n lastEditedAt: z.string().describe(\"Last edit timestamp\"),\n}).describe(\"A single search result hit.\");\nexport const SliteSearchNotesOutput: z.ZodTypeAny = z.object({\n hits: z.array(SliteSearchNotes_SearchNoteHitSchema).describe(\"Array of matching notes\").nullable().optional(),\n page: z.number().describe(\"Current page number\"),\n nbPages: z.number().describe(\"Total number of pages available for the current query\"),\n}).describe(\"Response model for search notes action.\");\n\nexport const sliteSearchNotes = action(\"SLITE_SEARCH_NOTES\", {\n slug: \"slite-search-notes\",\n name: \"Search Notes\",\n description: \"Tool to search notes based on a query with optional filters. Use when you need to find notes by search term, parent note, review state, or other criteria. Supports pagination and archived note inclusion.\",\n input: SliteSearchNotesInput,\n output: SliteSearchNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC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uBAAuB;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;CAAuB,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AACzD,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACtF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-notes.cjs","names":["z","action"],"sources":["../../src/actions/search-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchNotesInput = z.object({\n page: z.number().int().describe(\"Pagination control for results. Minimum value: 0.\").optional(),\n depth: z.number().int().describe(\"Filters results by note hierarchy level.\").optional(),\n query: z.string().describe(\"Search term for note lookup. Defaults to empty string if not provided.\").optional(),\n hitsPerPage: z.number().int().describe(\"Number of results per page. Range: 1-100.\").optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Filters by review status.\").optional(),\n parentNoteId: z.string().describe(\"Filters results to notes under a specific parent note.\").optional(),\n highlightPreTag: z.string().describe(\"Opening HTML/text tag for highlighting query matches in results.\").optional(),\n includeArchived: z.boolean().describe(\"When true, includes archived notes in results. Defaults to false.\").optional(),\n lastEditedAfter: z.string().describe(\"Returns only notes modified after the specified date (ISO 8601 date-time format).\").optional(),\n highlightPostTag: z.string().describe(\"Closing HTML/text tag for highlighting query matches in results.\").optional(),\n}).describe(\"Request model for searching notes.\");\nconst SliteSearchNotes_ParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID\").nullable(),\n title: z.string().describe(\"Parent note title\").nullable(),\n}).passthrough().describe(\"Parent note in the breadcrumb hierarchy.\");\nconst SliteSearchNotes_SearchNoteHitSchema = z.object({\n id: z.string().describe(\"Unique note identifier\").nullable(),\n type: z.enum([\"rich_text\", \"discussion\", \"collection\"]).describe(\"Note type\").nullable(),\n title: z.string().describe(\"Note title\").nullable(),\n highlight: z.string().describe(\"Part of the note content that matched the query (empty string when only title matches)\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n archivedAt: z.string().describe(\"Archive timestamp if note is archived\").nullable().optional(),\n parentNotes: z.array(SliteSearchNotes_ParentNoteSchema).describe(\"Breadcrumb hierarchy of parent notes\").nullable().optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Review status of the note\").nullable().optional(),\n lastEditedAt: z.string().describe(\"Last edit timestamp\").nullable(),\n}).passthrough().describe(\"A single search result hit.\");\nexport const SliteSearchNotesOutput = z.object({\n hits: z.array(SliteSearchNotes_SearchNoteHitSchema).describe(\"Array of matching notes\").nullable().optional(),\n page: z.number().describe(\"Current page number\").nullable(),\n nbPages: z.number().describe(\"Total number of pages available for the current query\").nullable(),\n}).passthrough().describe(\"Response model for search notes action.\");\n\nexport const sliteSearchNotes = action(\"SLITE_SEARCH_NOTES\", {\n slug: \"slite-search-notes\",\n name: \"Search Notes\",\n description: \"Tool to search notes based on a query with optional filters. Use when you need to find notes by search term, parent note, review state, or other criteria. Supports pagination and archived note inclusion.\",\n input: SliteSearchNotesInput,\n output: SliteSearchNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;CAAuB,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACpH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACnI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAA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AS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-notes.d.ts
4
- declare const SliteSearchNotesInput: z.ZodTypeAny;
5
- declare const SliteSearchNotesOutput: z.ZodTypeAny;
6
- declare const sliteSearchNotes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SliteSearchNotesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ depth: z.ZodOptional<z.ZodNumber>;
7
+ query: z.ZodOptional<z.ZodString>;
8
+ hitsPerPage: z.ZodOptional<z.ZodNumber>;
9
+ reviewState: z.ZodOptional<z.ZodEnum<{
10
+ Verified: "Verified";
11
+ Outdated: "Outdated";
12
+ VerificationRequested: "VerificationRequested";
13
+ }>>;
14
+ parentNoteId: z.ZodOptional<z.ZodString>;
15
+ highlightPreTag: z.ZodOptional<z.ZodString>;
16
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
17
+ lastEditedAfter: z.ZodOptional<z.ZodString>;
18
+ highlightPostTag: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const SliteSearchNotesOutput: z.ZodObject<{
21
+ hits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ id: z.ZodNullable<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodEnum<{
24
+ rich_text: "rich_text";
25
+ discussion: "discussion";
26
+ collection: "collection";
27
+ }>>;
28
+ title: z.ZodNullable<z.ZodString>;
29
+ highlight: z.ZodNullable<z.ZodString>;
30
+ updatedAt: z.ZodNullable<z.ZodString>;
31
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ parentNotes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
33
+ id: z.ZodNullable<z.ZodString>;
34
+ title: z.ZodNullable<z.ZodString>;
35
+ }, z.core.$loose>>>>;
36
+ reviewState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
37
+ Verified: "Verified";
38
+ Outdated: "Outdated";
39
+ VerificationRequested: "VerificationRequested";
40
+ }>>>;
41
+ lastEditedAt: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>>>;
43
+ page: z.ZodNullable<z.ZodNumber>;
44
+ nbPages: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$loose>;
46
+ declare const sliteSearchNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ page?: number | undefined;
48
+ depth?: number | undefined;
49
+ query?: string | undefined;
50
+ hitsPerPage?: number | undefined;
51
+ reviewState?: "Verified" | "Outdated" | "VerificationRequested" | undefined;
52
+ parentNoteId?: string | undefined;
53
+ highlightPreTag?: string | undefined;
54
+ includeArchived?: boolean | undefined;
55
+ lastEditedAfter?: string | undefined;
56
+ highlightPostTag?: string | undefined;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { sliteSearchNotes };
9
60
  //# sourceMappingURL=search-notes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-notes.d.cts","names":[],"sources":["../../src/actions/search-notes.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAWW;AAAA,cAgBpC,sBAAA,EAAwB,CAAA,CAAE,UAIe;AAAA,cAEzC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-notes.d.cts","names":[],"sources":["../../src/actions/search-notes.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA2BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAMtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,60 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-notes.d.ts
4
- declare const SliteSearchNotesInput: z.ZodTypeAny;
5
- declare const SliteSearchNotesOutput: z.ZodTypeAny;
6
- declare const sliteSearchNotes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SliteSearchNotesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ depth: z.ZodOptional<z.ZodNumber>;
7
+ query: z.ZodOptional<z.ZodString>;
8
+ hitsPerPage: z.ZodOptional<z.ZodNumber>;
9
+ reviewState: z.ZodOptional<z.ZodEnum<{
10
+ Verified: "Verified";
11
+ Outdated: "Outdated";
12
+ VerificationRequested: "VerificationRequested";
13
+ }>>;
14
+ parentNoteId: z.ZodOptional<z.ZodString>;
15
+ highlightPreTag: z.ZodOptional<z.ZodString>;
16
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
17
+ lastEditedAfter: z.ZodOptional<z.ZodString>;
18
+ highlightPostTag: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const SliteSearchNotesOutput: z.ZodObject<{
21
+ hits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ id: z.ZodNullable<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodEnum<{
24
+ rich_text: "rich_text";
25
+ discussion: "discussion";
26
+ collection: "collection";
27
+ }>>;
28
+ title: z.ZodNullable<z.ZodString>;
29
+ highlight: z.ZodNullable<z.ZodString>;
30
+ updatedAt: z.ZodNullable<z.ZodString>;
31
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ parentNotes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
33
+ id: z.ZodNullable<z.ZodString>;
34
+ title: z.ZodNullable<z.ZodString>;
35
+ }, z.core.$loose>>>>;
36
+ reviewState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
37
+ Verified: "Verified";
38
+ Outdated: "Outdated";
39
+ VerificationRequested: "VerificationRequested";
40
+ }>>>;
41
+ lastEditedAt: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>>>;
43
+ page: z.ZodNullable<z.ZodNumber>;
44
+ nbPages: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$loose>;
46
+ declare const sliteSearchNotes: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ page?: number | undefined;
48
+ depth?: number | undefined;
49
+ query?: string | undefined;
50
+ hitsPerPage?: number | undefined;
51
+ reviewState?: "Verified" | "Outdated" | "VerificationRequested" | undefined;
52
+ parentNoteId?: string | undefined;
53
+ highlightPreTag?: string | undefined;
54
+ includeArchived?: boolean | undefined;
55
+ lastEditedAfter?: string | undefined;
56
+ highlightPostTag?: string | undefined;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
58
  //#endregion
8
59
  export { sliteSearchNotes };
9
60
  //# sourceMappingURL=search-notes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-notes.d.mts","names":[],"sources":["../../src/actions/search-notes.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAWW;AAAA,cAgBpC,sBAAA,EAAwB,CAAA,CAAE,UAIe;AAAA,cAEzC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-notes.d.mts","names":[],"sources":["../../src/actions/search-notes.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA2BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAMtB,gBAAA,gCAAgB,wBAAA"}
@@ -18,19 +18,19 @@ const SliteSearchNotesInput = z.object({
18
18
  highlightPostTag: z.string().describe("Closing HTML/text tag for highlighting query matches in results.").optional()
19
19
  }).describe("Request model for searching notes.");
20
20
  const SliteSearchNotes_ParentNoteSchema = z.object({
21
- id: z.string().describe("Parent note ID"),
22
- title: z.string().describe("Parent note title")
23
- }).describe("Parent note in the breadcrumb hierarchy.");
21
+ id: z.string().describe("Parent note ID").nullable(),
22
+ title: z.string().describe("Parent note title").nullable()
23
+ }).passthrough().describe("Parent note in the breadcrumb hierarchy.");
24
24
  const SliteSearchNotes_SearchNoteHitSchema = z.object({
25
- id: z.string().describe("Unique note identifier"),
25
+ id: z.string().describe("Unique note identifier").nullable(),
26
26
  type: z.enum([
27
27
  "rich_text",
28
28
  "discussion",
29
29
  "collection"
30
- ]).describe("Note type"),
31
- title: z.string().describe("Note title"),
32
- highlight: z.string().describe("Part of the note content that matched the query (empty string when only title matches)"),
33
- updatedAt: z.string().describe("Last update timestamp"),
30
+ ]).describe("Note type").nullable(),
31
+ title: z.string().describe("Note title").nullable(),
32
+ highlight: z.string().describe("Part of the note content that matched the query (empty string when only title matches)").nullable(),
33
+ updatedAt: z.string().describe("Last update timestamp").nullable(),
34
34
  archivedAt: z.string().describe("Archive timestamp if note is archived").nullable().optional(),
35
35
  parentNotes: z.array(SliteSearchNotes_ParentNoteSchema).describe("Breadcrumb hierarchy of parent notes").nullable().optional(),
36
36
  reviewState: z.enum([
@@ -38,8 +38,8 @@ const SliteSearchNotes_SearchNoteHitSchema = z.object({
38
38
  "Outdated",
39
39
  "VerificationRequested"
40
40
  ]).describe("Review status of the note").nullable().optional(),
41
- lastEditedAt: z.string().describe("Last edit timestamp")
42
- }).describe("A single search result hit.");
41
+ lastEditedAt: z.string().describe("Last edit timestamp").nullable()
42
+ }).passthrough().describe("A single search result hit.");
43
43
  const sliteSearchNotes = action("SLITE_SEARCH_NOTES", {
44
44
  slug: "slite-search-notes",
45
45
  name: "Search Notes",
@@ -47,9 +47,9 @@ const sliteSearchNotes = action("SLITE_SEARCH_NOTES", {
47
47
  input: SliteSearchNotesInput,
48
48
  output: z.object({
49
49
  hits: z.array(SliteSearchNotes_SearchNoteHitSchema).describe("Array of matching notes").nullable().optional(),
50
- page: z.number().describe("Current page number"),
51
- nbPages: z.number().describe("Total number of pages available for the current query")
52
- }).describe("Response model for search notes action.")
50
+ page: z.number().describe("Current page number").nullable(),
51
+ nbPages: z.number().describe("Total number of pages available for the current query").nullable()
52
+ }).passthrough().describe("Response model for search notes action.")
53
53
  });
54
54
  //#endregion
55
55
  export { sliteSearchNotes };
@@ -1 +1 @@
1
- {"version":3,"file":"search-notes.mjs","names":[],"sources":["../../src/actions/search-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchNotesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Pagination control for results. Minimum value: 0.\").optional(),\n depth: z.number().int().describe(\"Filters results by note hierarchy level.\").optional(),\n query: z.string().describe(\"Search term for note lookup. Defaults to empty string if not provided.\").optional(),\n hitsPerPage: z.number().int().describe(\"Number of results per page. Range: 1-100.\").optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Filters by review status.\").optional(),\n parentNoteId: z.string().describe(\"Filters results to notes under a specific parent note.\").optional(),\n highlightPreTag: z.string().describe(\"Opening HTML/text tag for highlighting query matches in results.\").optional(),\n includeArchived: z.boolean().describe(\"When true, includes archived notes in results. Defaults to false.\").optional(),\n lastEditedAfter: z.string().describe(\"Returns only notes modified after the specified date (ISO 8601 date-time format).\").optional(),\n highlightPostTag: z.string().describe(\"Closing HTML/text tag for highlighting query matches in results.\").optional(),\n}).describe(\"Request model for searching notes.\");\nconst SliteSearchNotes_ParentNoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Parent note ID\"),\n title: z.string().describe(\"Parent note title\"),\n}).describe(\"Parent note in the breadcrumb hierarchy.\");\nconst SliteSearchNotes_SearchNoteHitSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique note identifier\"),\n type: z.enum([\"rich_text\", \"discussion\", \"collection\"]).describe(\"Note type\"),\n title: z.string().describe(\"Note title\"),\n highlight: z.string().describe(\"Part of the note content that matched the query (empty string when only title matches)\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n archivedAt: z.string().describe(\"Archive timestamp if note is archived\").nullable().optional(),\n parentNotes: z.array(SliteSearchNotes_ParentNoteSchema).describe(\"Breadcrumb hierarchy of parent notes\").nullable().optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Review status of the note\").nullable().optional(),\n lastEditedAt: z.string().describe(\"Last edit timestamp\"),\n}).describe(\"A single search result hit.\");\nexport const SliteSearchNotesOutput: z.ZodTypeAny = z.object({\n hits: z.array(SliteSearchNotes_SearchNoteHitSchema).describe(\"Array of matching notes\").nullable().optional(),\n page: z.number().describe(\"Current page number\"),\n nbPages: z.number().describe(\"Total number of pages available for the current query\"),\n}).describe(\"Response model for search notes action.\");\n\nexport const sliteSearchNotes = action(\"SLITE_SEARCH_NOTES\", {\n slug: \"slite-search-notes\",\n name: \"Search Notes\",\n description: \"Tool to search notes based on a query with optional filters. Use when you need to find notes by search term, parent note, review state, or other criteria. Supports pagination and archived note inclusion.\",\n input: SliteSearchNotesInput,\n output: SliteSearchNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,O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CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAa,EAAE,KAAK;EAAC;EAAY;EAAY;CAAuB,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AACzD,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAOzC,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXkD,EAAE,OAAO;EAC3D,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACtF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-notes.mjs","names":[],"sources":["../../src/actions/search-notes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchNotesInput = z.object({\n page: z.number().int().describe(\"Pagination control for results. Minimum value: 0.\").optional(),\n depth: z.number().int().describe(\"Filters results by note hierarchy level.\").optional(),\n query: z.string().describe(\"Search term for note lookup. Defaults to empty string if not provided.\").optional(),\n hitsPerPage: z.number().int().describe(\"Number of results per page. Range: 1-100.\").optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Filters by review status.\").optional(),\n parentNoteId: z.string().describe(\"Filters results to notes under a specific parent note.\").optional(),\n highlightPreTag: z.string().describe(\"Opening HTML/text tag for highlighting query matches in results.\").optional(),\n includeArchived: z.boolean().describe(\"When true, includes archived notes in results. Defaults to false.\").optional(),\n lastEditedAfter: z.string().describe(\"Returns only notes modified after the specified date (ISO 8601 date-time format).\").optional(),\n highlightPostTag: z.string().describe(\"Closing HTML/text tag for highlighting query matches in results.\").optional(),\n}).describe(\"Request model for searching notes.\");\nconst SliteSearchNotes_ParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID\").nullable(),\n title: z.string().describe(\"Parent note title\").nullable(),\n}).passthrough().describe(\"Parent note in the breadcrumb hierarchy.\");\nconst SliteSearchNotes_SearchNoteHitSchema = z.object({\n id: z.string().describe(\"Unique note identifier\").nullable(),\n type: z.enum([\"rich_text\", \"discussion\", \"collection\"]).describe(\"Note type\").nullable(),\n title: z.string().describe(\"Note title\").nullable(),\n highlight: z.string().describe(\"Part of the note content that matched the query (empty string when only title matches)\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n archivedAt: z.string().describe(\"Archive timestamp if note is archived\").nullable().optional(),\n parentNotes: z.array(SliteSearchNotes_ParentNoteSchema).describe(\"Breadcrumb hierarchy of parent notes\").nullable().optional(),\n reviewState: z.enum([\"Verified\", \"Outdated\", \"VerificationRequested\"]).describe(\"Review status of the note\").nullable().optional(),\n lastEditedAt: z.string().describe(\"Last edit timestamp\").nullable(),\n}).passthrough().describe(\"A single search result hit.\");\nexport const SliteSearchNotesOutput = z.object({\n hits: z.array(SliteSearchNotes_SearchNoteHitSchema).describe(\"Array of matching notes\").nullable().optional(),\n page: z.number().describe(\"Current page number\").nullable(),\n nbPages: z.number().describe(\"Total number of pages available for the current query\").nullable(),\n}).passthrough().describe(\"Response model for search notes action.\");\n\nexport const sliteSearchNotes = action(\"SLITE_SEARCH_NOTES\", {\n slug: \"slite-search-notes\",\n name: \"Search Notes\",\n description: \"Tool to search notes based on a query with optional filters. Use when you need to find notes by search term, parent note, review state, or other criteria. Supports pagination and archived note inclusion.\",\n input: SliteSearchNotesInput,\n output: SliteSearchNotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa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AAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAa,EAAE,KAAK;EAAC;EAAY;EAAY;CAAuB,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AAOvD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -7,19 +7,19 @@ const SliteSearchUsersInput = zod.z.object({
7
7
  includeArchived: zod.z.boolean().describe("Include archived users in the search results. Defaults to false if not specified.").optional()
8
8
  }).describe("Request model for searching users by email, name, or username.");
9
9
  const SliteSearchUsers_UserSchema = zod.z.object({
10
- id: zod.z.string().describe("Unique user identifier"),
11
- email: zod.z.string().describe("User's email address"),
10
+ id: zod.z.string().describe("Unique user identifier").nullable(),
11
+ email: zod.z.string().describe("User's email address").nullable(),
12
12
  isGuest: zod.z.boolean().describe("Whether the user is a guest").nullable().optional(),
13
13
  archivedAt: zod.z.string().describe("Timestamp when user was archived, null if not archived").nullable().optional(),
14
- displayName: zod.z.string().describe("User's display name"),
14
+ displayName: zod.z.string().describe("User's display name").nullable(),
15
15
  organizationRole: zod.z.string().describe("User's role in the organization").nullable().optional()
16
- }).describe("Individual user object in the search results.");
16
+ }).passthrough().describe("Individual user object in the search results.");
17
17
  const SliteSearchUsersOutput = zod.z.object({
18
- total: zod.z.number().int().describe("Total count of users matching the query"),
18
+ total: zod.z.number().int().describe("Total count of users matching the query").nullable(),
19
19
  users: zod.z.array(SliteSearchUsers_UserSchema).describe("List of users matching the query"),
20
20
  nextCursor: zod.z.string().describe("Cursor for retrieving the next page of results").nullable().optional(),
21
- hasNextPage: zod.z.boolean().describe("Whether there are more results available")
22
- }).describe("Response model for user search results with pagination.");
21
+ hasNextPage: zod.z.boolean().describe("Whether there are more results available").nullable()
22
+ }).passthrough().describe("Response model for user search results with pagination.");
23
23
  const sliteSearchUsers = require_action.action("SLITE_SEARCH_USERS", {
24
24
  slug: "slite-search-users",
25
25
  name: "Search Users",
@@ -1 +1 @@
1
- {"version":3,"file":"search-users.cjs","names":["z","action"],"sources":["../../src/actions/search-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchUsersInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"Search query to match against user email and display name\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching users for pagination. Used to retrieve the next page of results.\").optional(),\n includeArchived: z.boolean().describe(\"Include archived users in the search results. Defaults to false if not specified.\").optional(),\n}).describe(\"Request model for searching users by email, name, or username.\");\nconst SliteSearchUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier\"),\n email: z.string().describe(\"User's email address\"),\n isGuest: z.boolean().describe(\"Whether the user is a guest\").nullable().optional(),\n archivedAt: z.string().describe(\"Timestamp when user was archived, null if not archived\").nullable().optional(),\n displayName: z.string().describe(\"User's display name\"),\n organizationRole: z.string().describe(\"User's role in the organization\").nullable().optional(),\n}).describe(\"Individual user object in the search results.\");\nexport const SliteSearchUsersOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total count of users matching the query\"),\n users: z.array(SliteSearchUsers_UserSchema).describe(\"List of users matching the query\"),\n nextCursor: z.string().describe(\"Cursor for retrieving the next page of results\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\"),\n}).describe(\"Response model for user search results with pagination.\");\n\nexport const sliteSearchUsers = action(\"SLITE_SEARCH_USERS\", {\n slug: \"slite-search-users\",\n name: \"Search Users\",\n description: \"Tool to search for users in Slite by email, name, or username. Use when you need to find users in the organization.\",\n input: SliteSearchUsersInput,\n output: SliteSearchUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC5I,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACtD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC1E,OAAOA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,kCAAkC;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AAC9E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-users.cjs","names":["z","action"],"sources":["../../src/actions/search-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SliteSearchUsersInput = z.object({\n query: z.string().describe(\"Search query to match against user email and display name\"),\n cursor: z.string().describe(\"Cursor to use to continue fetching users for pagination. Used to retrieve the next page of results.\").optional(),\n includeArchived: z.boolean().describe(\"Include archived users in the search results. Defaults to false if not specified.\").optional(),\n}).describe(\"Request model for searching users by email, name, or username.\");\nconst SliteSearchUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique user identifier\").nullable(),\n email: z.string().describe(\"User's email address\").nullable(),\n isGuest: z.boolean().describe(\"Whether the user is a guest\").nullable().optional(),\n archivedAt: z.string().describe(\"Timestamp when user was archived, null if not archived\").nullable().optional(),\n displayName: z.string().describe(\"User's display name\").nullable(),\n organizationRole: z.string().describe(\"User's role in the organization\").nullable().optional(),\n}).passthrough().describe(\"Individual user object in the search results.\");\nexport const SliteSearchUsersOutput = z.object({\n total: z.number().int().describe(\"Total count of users matching the query\").nullable(),\n users: z.array(SliteSearchUsers_UserSchema).describe(\"List of users matching the query\"),\n nextCursor: z.string().describe(\"Cursor for retrieving the next page of results\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough().describe(\"Response model for user search results with pagination.\");\n\nexport const sliteSearchUsers = action(\"SLITE_SEARCH_USERS\", {\n slug: \"slite-search-users\",\n name: \"Search Users\",\n description: \"Tool to search for users in Slite by email, name, or username. Use when you need to find users in the organization.\",\n input: SliteSearchUsersInput,\n output: SliteSearchUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC5I,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC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