@epilot/sdk 2.8.0-rc.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +744 -20
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +317 -26
- package/definitions/design.json +51 -1
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +168 -12
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +152 -4
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +782 -13
- package/definitions/notes-runtime.json +1 -1
- package/definitions/notes.json +123 -1
- package/definitions/pricing.json +224 -406
- package/definitions/targeting-runtime.json +1 -1
- package/definitions/targeting.json +257 -7
- package/definitions/webhooks.json +31 -0
- package/dist/README-46VYEGGW.js +7 -0
- package/dist/README-IVBISSWB.cjs +7 -0
- package/dist/{_index-YTOJUFGD.js → _index-5FB6F5YY.js} +0 -3
- package/dist/{_index-HTUXYSTD.cjs → _index-DB2VV4PQ.cjs} +1 -4
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +8 -8
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +2 -2
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +8 -8
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +2 -2
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +2 -2
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/blueprint-manifest-6DEYW5MW.js +7 -0
- package/dist/blueprint-manifest-GCV7H74X.cjs +7 -0
- package/dist/{blueprint-manifest-runtime-QN2IECSA.cjs → blueprint-manifest-runtime-EIDOROIQ.cjs} +2 -2
- package/dist/{blueprint-manifest-runtime-5UN52LW5.js → blueprint-manifest-runtime-FRLU3ZSF.js} +1 -1
- package/dist/{blueprint-manifest.d-BPyzoR0X.d.cts → blueprint-manifest.d-B8yDxagC.d.cts} +572 -6
- package/dist/{blueprint-manifest.d-BPyzoR0X.d.ts → blueprint-manifest.d-B8yDxagC.d.ts} +572 -6
- package/dist/chunk-4M5V6BIT.cjs +14 -0
- package/dist/chunk-4YBWMDFP.js +14 -0
- package/dist/{chunk-KJPOUJBU.cjs → chunk-5ZXGKLB6.cjs} +1 -1
- package/dist/{chunk-PTEJYAYJ.js → chunk-774ASAAH.js} +1 -1
- package/dist/{chunk-WM74R3BD.js → chunk-7V7ECXTZ.js} +1 -1
- package/dist/chunk-FDS727SL.cjs +14 -0
- package/dist/{chunk-4FFGRWLS.cjs → chunk-I53TWOTX.cjs} +1 -1
- package/dist/chunk-LSPXLT3A.js +14 -0
- package/dist/chunk-M4FO2MI4.js +14 -0
- package/dist/chunk-MCK2QUSD.cjs +14 -0
- package/dist/{chunk-F5Z6I7TF.cjs → chunk-N3P24HUW.cjs} +20 -22
- package/dist/chunk-NGHCQ2FA.cjs +14 -0
- package/dist/{chunk-54KWFSCM.js → chunk-OOERPBL3.js} +20 -22
- package/dist/chunk-RDVFQOCQ.js +14 -0
- package/dist/{chunk-RW5JOHG7.js → chunk-WIQXF7DD.js} +1 -1
- package/dist/{chunk-M2SSGV7K.cjs → chunk-ZOQUGWQL.cjs} +1 -1
- package/dist/customer-portal-4DXHY42V.js +7 -0
- package/dist/customer-portal-5OSGSYGF.cjs +7 -0
- package/dist/{customer-portal-runtime-IYHJ3RME.cjs → customer-portal-runtime-HA6CPWB4.cjs} +2 -2
- package/dist/{customer-portal-runtime-ZYU3WIXY.js → customer-portal-runtime-TDHV2YVY.js} +1 -1
- package/dist/{customer-portal.d-CTTCBAZI.d.cts → customer-portal.d-BRwiQehb.d.cts} +763 -31
- package/dist/{customer-portal.d-CTTCBAZI.d.ts → customer-portal.d-BRwiQehb.d.ts} +763 -31
- package/dist/data-governance-2U5UU4GM.cjs +7 -0
- package/dist/data-governance-36Y33JVG.js +7 -0
- package/dist/design-DUFBH5ZB.js +7 -0
- package/dist/design-W3D3UPGB.cjs +7 -0
- package/dist/{design.d-BRre8iLg.d.cts → design.d-DzSDu8cy.d.cts} +41 -3
- package/dist/{design.d-BRre8iLg.d.ts → design.d-DzSDu8cy.d.ts} +41 -3
- package/dist/event-catalog-3YOQ46ZW.js +7 -0
- package/dist/event-catalog-HLWUT7RM.cjs +7 -0
- package/dist/{event-catalog-runtime-N262TQ3Y.js → event-catalog-runtime-JUSLF3UR.js} +1 -1
- package/dist/{event-catalog-runtime-B2BPKQVG.cjs → event-catalog-runtime-RH7542GL.cjs} +2 -2
- package/dist/{event-catalog.d-mQJLSYUo.d.cts → event-catalog.d-CXbUn8T1.d.cts} +199 -36
- package/dist/{event-catalog.d-mQJLSYUo.d.ts → event-catalog.d-CXbUn8T1.d.ts} +199 -36
- package/dist/file-2MSILSPP.cjs +7 -0
- package/dist/file-JVFTT5RZ.js +7 -0
- package/dist/file-runtime-7AWKNQU6.cjs +5 -0
- package/dist/{file-runtime-BIRMXYRH.js → file-runtime-DKGFS44O.js} +1 -1
- package/dist/{file.d-DTlrbI40.d.cts → file.d-BjlMgTwj.d.cts} +218 -5
- package/dist/{file.d-DTlrbI40.d.ts → file.d-BjlMgTwj.d.ts} +218 -5
- package/dist/index.cjs +27 -35
- package/dist/index.d.cts +55 -57
- package/dist/index.d.ts +55 -57
- package/dist/index.js +16 -24
- package/dist/integration-toolkit-27Z3VZBZ.cjs +7 -0
- package/dist/integration-toolkit-NRLZZFVS.js +7 -0
- package/dist/{integration-toolkit-runtime-YHTU4X5J.cjs → integration-toolkit-runtime-FY7QVFL6.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-YR4CIMKH.js → integration-toolkit-runtime-HCJ5QLCR.js} +1 -1
- package/dist/{integration-toolkit.d-BstNqiJb.d.cts → integration-toolkit.d-BW9RK5G-.d.cts} +1672 -27
- package/dist/{integration-toolkit.d-BstNqiJb.d.ts → integration-toolkit.d-BW9RK5G-.d.ts} +1672 -27
- package/dist/notes-6JESMRLW.js +7 -0
- package/dist/notes-SLEUSNP4.cjs +7 -0
- package/dist/{notes-runtime-CVNAVKPP.js → notes-runtime-I4SWR3PZ.js} +1 -1
- package/dist/notes-runtime-YWTRRNH5.cjs +5 -0
- package/dist/{notes.d-BcV_m5fe.d.cts → notes.d-rbcyHfiB.d.cts} +101 -3
- package/dist/{notes.d-BcV_m5fe.d.ts → notes.d-rbcyHfiB.d.ts} +101 -3
- package/dist/pricing-5Y7TZHMR.js +7 -0
- package/dist/pricing-BJUABPHU.cjs +7 -0
- package/dist/{pricing.d-BHpMU4KU.d.cts → pricing.d-gPt5L7wp.d.cts} +151 -280
- package/dist/{pricing.d-BHpMU4KU.d.ts → pricing.d-gPt5L7wp.d.ts} +151 -280
- package/dist/targeting-DAFJBPIZ.cjs +7 -0
- package/dist/targeting-TGPCRRI6.js +7 -0
- package/dist/{targeting-runtime-M2VSTKFT.js → targeting-runtime-D5YUPZQM.js} +1 -1
- package/dist/{targeting-runtime-6JFMP262.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
- package/dist/{targeting.d-BNmcVsNS.d.cts → targeting.d-DxHQbn7-.d.cts} +197 -3
- package/dist/{targeting.d-BNmcVsNS.d.ts → targeting.d-DxHQbn7-.d.ts} +197 -3
- package/dist/webhooks-6CUXSTPH.cjs +7 -0
- package/dist/webhooks-DTNKNJEN.js +7 -0
- package/dist/{webhooks.d-ByePoUWs.d.cts → webhooks.d-DKZOMj1P.d.cts} +37 -0
- package/dist/{webhooks.d-ByePoUWs.d.ts → webhooks.d-DKZOMj1P.d.ts} +37 -0
- package/docs/blueprint-manifest.md +728 -68
- package/docs/customer-portal.md +465 -56
- package/docs/data-governance.md +17 -17
- package/docs/design.md +80 -3
- package/docs/event-catalog.md +126 -13
- package/docs/file.md +113 -0
- package/docs/integration-toolkit.md +488 -19
- package/docs/notes.md +47 -1
- package/docs/pricing.md +290 -219
- package/docs/targeting.md +158 -4
- package/docs/webhooks.md +11 -2
- package/package.json +1 -10
- package/dist/README-37TXN4EL.cjs +0 -7
- package/dist/README-Z2WITBOR.js +0 -7
- package/dist/apis/focus-pocus.cjs +0 -38
- package/dist/apis/focus-pocus.d.cts +0 -18
- package/dist/apis/focus-pocus.d.ts +0 -18
- package/dist/apis/focus-pocus.js +0 -38
- package/dist/blueprint-manifest-DBEY5PPI.js +0 -7
- package/dist/blueprint-manifest-IEQ6YBY7.cjs +0 -7
- package/dist/chunk-3APTSPY4.js +0 -14
- package/dist/chunk-5WNEYQII.cjs +0 -14
- package/dist/chunk-A6FYGWQ7.cjs +0 -14
- package/dist/chunk-BTTPWE2P.js +0 -14
- package/dist/chunk-CBDKPGO5.cjs +0 -14
- package/dist/chunk-L544VG3B.cjs +0 -14
- package/dist/chunk-O2YVXGPZ.js +0 -14
- package/dist/chunk-OCMIXJWC.js +0 -14
- package/dist/chunk-OPXGJKZR.cjs +0 -14
- package/dist/chunk-P42Q6HOW.js +0 -14
- package/dist/customer-portal-DR6XFCTQ.js +0 -7
- package/dist/customer-portal-PNFBVIAH.cjs +0 -7
- package/dist/data-governance-QYFHBCNB.cjs +0 -7
- package/dist/data-governance-YS2NA6W4.js +0 -7
- package/dist/design-EWZQZ5KX.js +0 -7
- package/dist/design-MUUYXB2J.cjs +0 -7
- package/dist/event-catalog-37B6JC7G.js +0 -7
- package/dist/event-catalog-5JBHJJ2I.cjs +0 -7
- package/dist/file-P2FUUER2.js +0 -7
- package/dist/file-XTY74SIX.cjs +0 -7
- package/dist/file-runtime-24S3QPA7.cjs +0 -5
- package/dist/focus-pocus-JGXH42OF.cjs +0 -7
- package/dist/focus-pocus-XVDVUYL6.js +0 -7
- package/dist/focus-pocus-runtime-QXBBYVX7.js +0 -5
- package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +0 -5
- package/dist/focus-pocus.d-BRFGe53G.d.cts +0 -489
- package/dist/focus-pocus.d-BRFGe53G.d.ts +0 -489
- package/dist/integration-toolkit-3I3IPVFN.cjs +0 -7
- package/dist/integration-toolkit-XAFQXNQY.js +0 -7
- package/dist/notes-K2IIFCX3.cjs +0 -7
- package/dist/notes-Q7JGS7O3.js +0 -7
- package/dist/notes-runtime-E3YYF74V.cjs +0 -5
- package/dist/pricing-R5ENSVPQ.cjs +0 -7
- package/dist/pricing-X27CCRI6.js +0 -7
- package/dist/targeting-74BV7F7H.cjs +0 -7
- package/dist/targeting-W5EKJYR2.js +0 -7
- package/dist/webhooks-NZHJBT64.js +0 -7
- package/dist/webhooks-SK2STDKR.cjs +0 -7
- package/docs/focus-pocus.md +0 -460
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/notes.json
|
|
4
|
+
var notes_default = '# Notes API\n\n- **Base URL:** `https://notes.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/notes](https://docs.epilot.io/api/notes)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.notes.createNote(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/notes\'\n\nconst notesClient = getClient()\nauthorize(notesClient, () => \'<token>\')\nconst { data } = await notesClient.createNote(...)\n```\n\n## Operations\n\n**Notes**\n- [`createNote`](#createnote)\n- [`getNote`](#getnote)\n- [`patchNote`](#patchnote)\n- [`updateNote`](#updatenote)\n- [`deleteNote`](#deletenote)\n- [`searchNotesByContext`](#searchnotesbycontext)\n- [`getNoteContexts`](#getnotecontexts)\n\n**Pinning**\n- [`pinNote`](#pinnote)\n\n**Archive**\n- [`archiveNote`](#archivenote)\n- [`unarchiveNote`](#unarchivenote)\n\n**Reactions**\n- [`addNoteReaction`](#addnotereaction)\n- [`removeNoteReaction`](#removenotereaction)\n- [`toggleNoteReactions`](#togglenotereactions)\n\n**Schemas**\n- [`NotePostRequestBody`](#notepostrequestbody)\n- [`ContextType`](#contexttype)\n- [`NoteEntity`](#noteentity)\n- [`Entity`](#entity)\n- [`CreatedByType`](#createdbytype)\n- [`NoteGetRequestResponse`](#notegetrequestresponse)\n- [`NotePatchRequestBody`](#notepatchrequestbody)\n- [`NonHydratedNoteEntity`](#nonhydratednoteentity)\n- [`NoteEntityParent`](#noteentityparent)\n- [`NotePutRequestBody`](#noteputrequestbody)\n- [`NoteSearchByContextRequestBody`](#notesearchbycontextrequestbody)\n- [`NotesListFilter`](#noteslistfilter)\n- [`NotesSearchRequestResponse`](#notessearchrequestresponse)\n- [`NoteContexts`](#notecontexts)\n- [`WorkflowExecution`](#workflowexecution)\n- [`ReactionRequest`](#reactionrequest)\n- [`ToggleReactionsRequest`](#togglereactionsrequest)\n\n### `createNote`\n\nCreates a new Note entry\n\n`POST /v1/note`\n\n```ts\nconst { data } = await client.createNote(\n null,\n {\n _tags: [\'string\'],\n type: \'string\',\n entity_id: \'string\',\n parent_id: \'string\',\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n additional_contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n content: \'string\',\n attachments: [\'string\'],\n read_by: [\'string\']\n },\n)\n```\n\n---\n\n### `getNote`\n\nRetrieves a single Note entry based on it\'s Entity ID\n\n`GET /v1/note/{id}`\n\n```ts\nconst { data } = await client.getNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n hydrate: true,\n})\n```\n\n---\n\n### `patchNote`\n\nUpdates an existing Note entry\n\n`PATCH /v1/note/{id}`\n\n```ts\nconst { data } = await client.patchNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `updateNote`\n\nUpdates an existing Note entry\n\n`PUT /v1/note/{id}`\n\n```ts\nconst { data } = await client.updateNote(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n _id: \'string\',\n _org: \'string\',\n _schema: \'string\',\n _created_at: \'1970-01-01T00:00:00.000Z\',\n _updated_at: \'1970-01-01T00:00:00.000Z\',\n _created_by: \'string\',\n _tags: [\'string\'],\n _acl: {},\n _owners: [\n {\n org_id: \'string\',\n user_id: \'string\'\n }\n ],\n type: \'string\',\n context_entities: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n parent: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n attachments: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n content: \'string\',\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n pinned_at: \'1970-01-01T00:00:00.000Z\',\n edited_at: \'1970-01-01T00:00:00.000Z\',\n created_by: [\n {\n type: \'user\',\n user_id: \'string\',\n display_name: \'string\',\n org_id: \'string\',\n email: \'string\',\n phone: \'string\'\n }\n ],\n read_by: [\'string\'],\n reactions: {},\n _archived_at: \'1970-01-01T00:00:00.000Z\'\n },\n)\n```\n\n---\n\n### `deleteNote`\n\nDeletes a single Note entry based on it\'s Entity ID\n\n`DELETE /v1/note/{id}`\n\n```ts\nconst { data } = await client.deleteNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `searchNotesByContext`\n\nSearch for a paginated list of Notes based on one or more contexts\n\n`POST /v1/notes:search`\n\n```ts\nconst { data } = await client.searchNotesByContext(\n null,\n {\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n include_related_schemas: [\'string\'],\n filter: \'active\',\n from: 0,\n size: 10\n },\n)\n```\n\n---\n\n### `pinNote`\n\nPins a single Note entry based on it\'s Entity ID\n\n`POST /v1/note/{id}/pin`\n\n```ts\nconst { data } = await client.pinNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `archiveNote`\n\nArchives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from defaul\n\n`POST /v1/note/{id}/archive`\n\n```ts\nconst { data } = await client.archiveNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `unarchiveNote`\n\nUnarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is\n\n`POST /v1/note/{id}/unarchive`\n\n```ts\nconst { data } = await client.unarchiveNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getNoteContexts`\n\nGets all the Entity and non-Entity records the Note is contextually attached to\n\n`GET /v1/note/{id}/context`\n\n```ts\nconst { data } = await client.getNoteContexts({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "type": "workflow_execution",\n "context": {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n }\n]\n```\n\n</details>\n\n---\n\n### `addNoteReaction`\n\nAdds an emoji reaction to a note\n\n`POST /v1/note/{id}/reaction`\n\n```ts\nconst { data } = await client.addNoteReaction(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n emoji: \'thumbs-up\'\n },\n)\n```\n\n---\n\n### `removeNoteReaction`\n\nRemoves an emoji reaction from a note\n\n`DELETE /v1/note/{id}/reaction/{emoji_shortcode}`\n\n```ts\nconst { data } = await client.removeNoteReaction({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n emoji_shortcode: \'example\',\n})\n```\n\n---\n\n### `toggleNoteReactions`\n\nToggles multiple emoji reactions on a note. If a user has already reacted with an emoji, it removes the reaction. If a user hasn\'t reacted with an emoji, it adds the reaction.\n\n`POST /v1/note/{id}/reactions/toggle`\n\n```ts\nconst { data } = await client.toggleNoteReactions(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n emojis: [\'thumbs-up\', \'heart\']\n },\n)\n```\n\n---\n\n## Schemas\n\n### `NotePostRequestBody`\n\n```ts\ntype NotePostRequestBody = {\n _tags?: string[]\n type?: string\n entity_id?: string\n parent_id?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n additional_contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n content?: string\n attachments?: string[]\n read_by?: string[]\n}\n```\n\n### `ContextType`\n\n```ts\ntype ContextType = "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n```\n\n### `NoteEntity`\n\nA note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place.\n\n```ts\ntype NoteEntity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `Entity`\n\nBase Entity schema\n\n```ts\ntype Entity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `CreatedByType`\n\n```ts\ntype CreatedByType = "user" | "group"\n```\n\n### `NoteGetRequestResponse`\n\n```ts\ntype NoteGetRequestResponse = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `NotePatchRequestBody`\n\n```ts\ntype NotePatchRequestBody = {\n _tags?: string[]\n type?: string\n attachments?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n comments?: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n content?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n pinned_at?: string // date-time\n edited_at?: string // date-time\n created_by?: Array<{\n type: "user" | "group"\n user_id?: string\n display_name?: string\n org_id?: string\n email?: string\n phone?: string\n }>\n read_by?: string[]\n reactions?: Record<string, string[]>\n _archived_at?: string // date-time\n}\n```\n\n### `NonHydratedNoteEntity`\n\nA note Entity object cotaining Entity metadata and content. Relational attributes are not hydrated in place.\n\n```ts\ntype NonHydratedNoteEntity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `NoteEntityParent`\n\nThe Note\'s parent Note\n\n```ts\ntype NoteEntityParent = {\n $relation?: Array<{\n entity_id: string\n }>\n}\n```\n\n### `NotePutRequestBody`\n\n```ts\ntype NotePutRequestBody = {\n _id?: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n context_entities?: {\n $relation: Array<{\n entity_id: { ... }\n }>\n }\n parent?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n attachments?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n content?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n pinned_at?: string // date-time\n edited_at?: string // date-time\n created_by?: Array<{\n type: "user" | "group"\n user_id?: string\n display_name?: string\n org_id?: string\n email?: string\n phone?: string\n }>\n read_by?: string[]\n reactions?: Record<string, string[]>\n _archived_at?: string // date-time\n}\n```\n\n### `NoteSearchByContextRequestBody`\n\n```ts\ntype NoteSearchByContextRequestBody = {\n contexts: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n include_related_schemas?: string[]\n filter?: "all" | "active" | "archived"\n from?: number\n size?: number\n}\n```\n\n### `NotesListFilter`\n\nArchive-state filter. \'active\' (default) returns non-archived notes only, \'archived\' returns only archived notes, \'all\' returns both.\n\n```ts\ntype NotesListFilter = "all" | "active" | "archived"\n```\n\n### `NotesSearchRequestResponse`\n\n```ts\ntype NotesSearchRequestResponse = {\n hits?: number\n results: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n}\n```\n\n### `NoteContexts`\n\nList of resolved Entity and non-Entity contexts attached to a given Note.\n\n```ts\ntype NoteContexts = {\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n context: {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n } | {\n id: string\n definitionId: string\n orgId: string\n name: string\n }\n}\n```\n\n### `WorkflowExecution`\n\nBase metadata for a Workflow Execution. This is a lightweight representation of a Workflow Execution, and does not contain all it\'s data\n\n```ts\ntype WorkflowExecution = {\n id: string\n definitionId: string\n orgId: string\n name: string\n}\n```\n\n### `ReactionRequest`\n\n```ts\ntype ReactionRequest = {\n emoji: string\n}\n```\n\n### `ToggleReactionsRequest`\n\n```ts\ntype ToggleReactionsRequest = {\n emojis: string[]\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
notes_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/notes.json
|
|
4
|
+
var notes_default = '# Notes API\n\n- **Base URL:** `https://notes.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/notes](https://docs.epilot.io/api/notes)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.notes.createNote(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/notes\'\n\nconst notesClient = getClient()\nauthorize(notesClient, () => \'<token>\')\nconst { data } = await notesClient.createNote(...)\n```\n\n## Operations\n\n**Notes**\n- [`createNote`](#createnote)\n- [`getNote`](#getnote)\n- [`patchNote`](#patchnote)\n- [`updateNote`](#updatenote)\n- [`deleteNote`](#deletenote)\n- [`searchNotesByContext`](#searchnotesbycontext)\n- [`getNoteContexts`](#getnotecontexts)\n\n**Pinning**\n- [`pinNote`](#pinnote)\n\n**Archive**\n- [`archiveNote`](#archivenote)\n- [`unarchiveNote`](#unarchivenote)\n\n**Reactions**\n- [`addNoteReaction`](#addnotereaction)\n- [`removeNoteReaction`](#removenotereaction)\n- [`toggleNoteReactions`](#togglenotereactions)\n\n**Schemas**\n- [`NotePostRequestBody`](#notepostrequestbody)\n- [`ContextType`](#contexttype)\n- [`NoteEntity`](#noteentity)\n- [`Entity`](#entity)\n- [`CreatedByType`](#createdbytype)\n- [`NoteGetRequestResponse`](#notegetrequestresponse)\n- [`NotePatchRequestBody`](#notepatchrequestbody)\n- [`NonHydratedNoteEntity`](#nonhydratednoteentity)\n- [`NoteEntityParent`](#noteentityparent)\n- [`NotePutRequestBody`](#noteputrequestbody)\n- [`NoteSearchByContextRequestBody`](#notesearchbycontextrequestbody)\n- [`NotesListFilter`](#noteslistfilter)\n- [`NotesSearchRequestResponse`](#notessearchrequestresponse)\n- [`NoteContexts`](#notecontexts)\n- [`WorkflowExecution`](#workflowexecution)\n- [`ReactionRequest`](#reactionrequest)\n- [`ToggleReactionsRequest`](#togglereactionsrequest)\n\n### `createNote`\n\nCreates a new Note entry\n\n`POST /v1/note`\n\n```ts\nconst { data } = await client.createNote(\n null,\n {\n _tags: [\'string\'],\n type: \'string\',\n entity_id: \'string\',\n parent_id: \'string\',\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n additional_contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n content: \'string\',\n attachments: [\'string\'],\n read_by: [\'string\']\n },\n)\n```\n\n---\n\n### `getNote`\n\nRetrieves a single Note entry based on it\'s Entity ID\n\n`GET /v1/note/{id}`\n\n```ts\nconst { data } = await client.getNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n hydrate: true,\n})\n```\n\n---\n\n### `patchNote`\n\nUpdates an existing Note entry\n\n`PATCH /v1/note/{id}`\n\n```ts\nconst { data } = await client.patchNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `updateNote`\n\nUpdates an existing Note entry\n\n`PUT /v1/note/{id}`\n\n```ts\nconst { data } = await client.updateNote(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n _id: \'string\',\n _org: \'string\',\n _schema: \'string\',\n _created_at: \'1970-01-01T00:00:00.000Z\',\n _updated_at: \'1970-01-01T00:00:00.000Z\',\n _created_by: \'string\',\n _tags: [\'string\'],\n _acl: {},\n _owners: [\n {\n org_id: \'string\',\n user_id: \'string\'\n }\n ],\n type: \'string\',\n context_entities: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n parent: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n attachments: {\n $relation: [\n {\n entity_id: \'string\'\n }\n ]\n },\n content: \'string\',\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n pinned_at: \'1970-01-01T00:00:00.000Z\',\n edited_at: \'1970-01-01T00:00:00.000Z\',\n created_by: [\n {\n type: \'user\',\n user_id: \'string\',\n display_name: \'string\',\n org_id: \'string\',\n email: \'string\',\n phone: \'string\'\n }\n ],\n read_by: [\'string\'],\n reactions: {},\n _archived_at: \'1970-01-01T00:00:00.000Z\'\n },\n)\n```\n\n---\n\n### `deleteNote`\n\nDeletes a single Note entry based on it\'s Entity ID\n\n`DELETE /v1/note/{id}`\n\n```ts\nconst { data } = await client.deleteNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `searchNotesByContext`\n\nSearch for a paginated list of Notes based on one or more contexts\n\n`POST /v1/notes:search`\n\n```ts\nconst { data } = await client.searchNotesByContext(\n null,\n {\n contexts: [\n {\n type: \'workflow_execution\',\n id: \'string\'\n }\n ],\n include_related_schemas: [\'string\'],\n filter: \'active\',\n from: 0,\n size: 10\n },\n)\n```\n\n---\n\n### `pinNote`\n\nPins a single Note entry based on it\'s Entity ID\n\n`POST /v1/note/{id}/pin`\n\n```ts\nconst { data } = await client.pinNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `archiveNote`\n\nArchives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from defaul\n\n`POST /v1/note/{id}/archive`\n\n```ts\nconst { data } = await client.archiveNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `unarchiveNote`\n\nUnarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is\n\n`POST /v1/note/{id}/unarchive`\n\n```ts\nconst { data } = await client.unarchiveNote({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getNoteContexts`\n\nGets all the Entity and non-Entity records the Note is contextually attached to\n\n`GET /v1/note/{id}/context`\n\n```ts\nconst { data } = await client.getNoteContexts({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "type": "workflow_execution",\n "context": {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n }\n]\n```\n\n</details>\n\n---\n\n### `addNoteReaction`\n\nAdds an emoji reaction to a note\n\n`POST /v1/note/{id}/reaction`\n\n```ts\nconst { data } = await client.addNoteReaction(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n emoji: \'thumbs-up\'\n },\n)\n```\n\n---\n\n### `removeNoteReaction`\n\nRemoves an emoji reaction from a note\n\n`DELETE /v1/note/{id}/reaction/{emoji_shortcode}`\n\n```ts\nconst { data } = await client.removeNoteReaction({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n emoji_shortcode: \'example\',\n})\n```\n\n---\n\n### `toggleNoteReactions`\n\nToggles multiple emoji reactions on a note. If a user has already reacted with an emoji, it removes the reaction. If a user hasn\'t reacted with an emoji, it adds the reaction.\n\n`POST /v1/note/{id}/reactions/toggle`\n\n```ts\nconst { data } = await client.toggleNoteReactions(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n emojis: [\'thumbs-up\', \'heart\']\n },\n)\n```\n\n---\n\n## Schemas\n\n### `NotePostRequestBody`\n\n```ts\ntype NotePostRequestBody = {\n _tags?: string[]\n type?: string\n entity_id?: string\n parent_id?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n additional_contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n content?: string\n attachments?: string[]\n read_by?: string[]\n}\n```\n\n### `ContextType`\n\n```ts\ntype ContextType = "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n```\n\n### `NoteEntity`\n\nA note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place.\n\n```ts\ntype NoteEntity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `Entity`\n\nBase Entity schema\n\n```ts\ntype Entity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `CreatedByType`\n\n```ts\ntype CreatedByType = "user" | "group"\n```\n\n### `NoteGetRequestResponse`\n\n```ts\ntype NoteGetRequestResponse = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `NotePatchRequestBody`\n\n```ts\ntype NotePatchRequestBody = {\n _tags?: string[]\n type?: string\n attachments?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n comments?: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n content?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n pinned_at?: string // date-time\n edited_at?: string // date-time\n created_by?: Array<{\n type: "user" | "group"\n user_id?: string\n display_name?: string\n org_id?: string\n email?: string\n phone?: string\n }>\n read_by?: string[]\n reactions?: Record<string, string[]>\n _archived_at?: string // date-time\n}\n```\n\n### `NonHydratedNoteEntity`\n\nA note Entity object cotaining Entity metadata and content. Relational attributes are not hydrated in place.\n\n```ts\ntype NonHydratedNoteEntity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `NoteEntityParent`\n\nThe Note\'s parent Note\n\n```ts\ntype NoteEntityParent = {\n $relation?: Array<{\n entity_id: string\n }>\n}\n```\n\n### `NotePutRequestBody`\n\n```ts\ntype NotePutRequestBody = {\n _id?: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n context_entities?: {\n $relation: Array<{\n entity_id: { ... }\n }>\n }\n parent?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n attachments?: {\n $relation?: Array<{\n entity_id: { ... }\n }>\n }\n content?: string\n contexts?: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n pinned_at?: string // date-time\n edited_at?: string // date-time\n created_by?: Array<{\n type: "user" | "group"\n user_id?: string\n display_name?: string\n org_id?: string\n email?: string\n phone?: string\n }>\n read_by?: string[]\n reactions?: Record<string, string[]>\n _archived_at?: string // date-time\n}\n```\n\n### `NoteSearchByContextRequestBody`\n\n```ts\ntype NoteSearchByContextRequestBody = {\n contexts: Array<{\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n id: string\n }>\n include_related_schemas?: string[]\n filter?: "all" | "active" | "archived"\n from?: number\n size?: number\n}\n```\n\n### `NotesListFilter`\n\nArchive-state filter. \'active\' (default) returns non-archived notes only, \'archived\' returns only archived notes, \'all\' returns both.\n\n```ts\ntype NotesListFilter = "all" | "active" | "archived"\n```\n\n### `NotesSearchRequestResponse`\n\n```ts\ntype NotesSearchRequestResponse = {\n hits?: number\n results: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n}\n```\n\n### `NoteContexts`\n\nList of resolved Entity and non-Entity contexts attached to a given Note.\n\n```ts\ntype NoteContexts = {\n type: "workflow_execution" | "workflow_task" | "workflow_configuration" | "journey_configuration" | "entity"\n context: {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n } | {\n id: string\n definitionId: string\n orgId: string\n name: string\n }\n}\n```\n\n### `WorkflowExecution`\n\nBase metadata for a Workflow Execution. This is a lightweight representation of a Workflow Execution, and does not contain all it\'s data\n\n```ts\ntype WorkflowExecution = {\n id: string\n definitionId: string\n orgId: string\n name: string\n}\n```\n\n### `ReactionRequest`\n\n```ts\ntype ReactionRequest = {\n emoji: string\n}\n```\n\n### `ToggleReactionsRequest`\n\n```ts\ntype ToggleReactionsRequest = {\n emojis: string[]\n}\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = notes_default;
|
|
@@ -149,6 +149,10 @@ declare namespace Components {
|
|
|
149
149
|
reactions?: {
|
|
150
150
|
[name: string]: string[];
|
|
151
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
154
|
+
*/
|
|
155
|
+
_archived_at?: string | null; // date-time
|
|
152
156
|
}
|
|
153
157
|
/**
|
|
154
158
|
* List of resolved Entity and non-Entity contexts attached to a given Note.
|
|
@@ -241,6 +245,10 @@ declare namespace Components {
|
|
|
241
245
|
reactions?: {
|
|
242
246
|
[name: string]: string[];
|
|
243
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
250
|
+
*/
|
|
251
|
+
_archived_at?: string | null; // date-time
|
|
244
252
|
}
|
|
245
253
|
/**
|
|
246
254
|
* The Note's parent Note
|
|
@@ -334,6 +342,10 @@ declare namespace Components {
|
|
|
334
342
|
reactions?: {
|
|
335
343
|
[name: string]: string[];
|
|
336
344
|
};
|
|
345
|
+
/**
|
|
346
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
347
|
+
*/
|
|
348
|
+
_archived_at?: string | null; // date-time
|
|
337
349
|
}
|
|
338
350
|
export interface NotePatchRequestBody {
|
|
339
351
|
/**
|
|
@@ -387,6 +399,10 @@ declare namespace Components {
|
|
|
387
399
|
reactions?: {
|
|
388
400
|
[name: string]: string[];
|
|
389
401
|
};
|
|
402
|
+
/**
|
|
403
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
404
|
+
*/
|
|
405
|
+
_archived_at?: string | null; // date-time
|
|
390
406
|
}
|
|
391
407
|
export interface NotePostRequestBody {
|
|
392
408
|
/**
|
|
@@ -523,6 +539,10 @@ declare namespace Components {
|
|
|
523
539
|
reactions?: {
|
|
524
540
|
[name: string]: string[];
|
|
525
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
544
|
+
*/
|
|
545
|
+
_archived_at?: string | null; // date-time
|
|
526
546
|
}
|
|
527
547
|
export interface NoteSearchByContextRequestBody {
|
|
528
548
|
contexts: [
|
|
@@ -539,6 +559,7 @@ declare namespace Components {
|
|
|
539
559
|
* When set, the API resolves related entities of these schemas for the primary entity context and includes their notes in the results.
|
|
540
560
|
*/
|
|
541
561
|
include_related_schemas?: string[];
|
|
562
|
+
filter?: /* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both. */ NotesListFilter;
|
|
542
563
|
/**
|
|
543
564
|
* The index of the first Note to return in this query
|
|
544
565
|
*/
|
|
@@ -548,6 +569,10 @@ declare namespace Components {
|
|
|
548
569
|
*/
|
|
549
570
|
size?: number;
|
|
550
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both.
|
|
574
|
+
*/
|
|
575
|
+
export type NotesListFilter = "all" | "active" | "archived";
|
|
551
576
|
export interface NotesSearchRequestResponse {
|
|
552
577
|
/**
|
|
553
578
|
* The number of Note entries returned in this query
|
|
@@ -604,6 +629,20 @@ declare namespace Paths {
|
|
|
604
629
|
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
605
630
|
}
|
|
606
631
|
}
|
|
632
|
+
namespace ArchiveNote {
|
|
633
|
+
namespace Parameters {
|
|
634
|
+
/**
|
|
635
|
+
* The Entity ID of the Note entry to archive
|
|
636
|
+
*/
|
|
637
|
+
export type Id = string;
|
|
638
|
+
}
|
|
639
|
+
export interface PathParameters {
|
|
640
|
+
id: /* The Entity ID of the Note entry to archive */ Parameters.Id;
|
|
641
|
+
}
|
|
642
|
+
namespace Responses {
|
|
643
|
+
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
607
646
|
namespace CreateNote {
|
|
608
647
|
export type RequestBody = Components.Schemas.NotePostRequestBody;
|
|
609
648
|
namespace Responses {
|
|
@@ -670,6 +709,7 @@ declare namespace Paths {
|
|
|
670
709
|
* The ID of the Contextual Entity from where to retrieve Notes
|
|
671
710
|
*/
|
|
672
711
|
export type EntityId = string;
|
|
712
|
+
export type Filter = /* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both. */ Components.Schemas.NotesListFilter;
|
|
673
713
|
/**
|
|
674
714
|
* The index of the first Note to return in this query
|
|
675
715
|
*/
|
|
@@ -684,6 +724,7 @@ declare namespace Paths {
|
|
|
684
724
|
}
|
|
685
725
|
export interface QueryParameters {
|
|
686
726
|
contexts?: Parameters.Contexts;
|
|
727
|
+
filter?: Parameters.Filter;
|
|
687
728
|
from?: /* The index of the first Note to return in this query */ Parameters.From;
|
|
688
729
|
size?: /* The number of Note entries to return in this query */ Parameters.Size;
|
|
689
730
|
}
|
|
@@ -761,6 +802,20 @@ declare namespace Paths {
|
|
|
761
802
|
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
762
803
|
}
|
|
763
804
|
}
|
|
805
|
+
namespace UnarchiveNote {
|
|
806
|
+
namespace Parameters {
|
|
807
|
+
/**
|
|
808
|
+
* The Entity ID of the Note entry to unarchive
|
|
809
|
+
*/
|
|
810
|
+
export type Id = string;
|
|
811
|
+
}
|
|
812
|
+
export interface PathParameters {
|
|
813
|
+
id: /* The Entity ID of the Note entry to unarchive */ Parameters.Id;
|
|
814
|
+
}
|
|
815
|
+
namespace Responses {
|
|
816
|
+
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
764
819
|
namespace UpdateNote {
|
|
765
820
|
namespace Parameters {
|
|
766
821
|
/**
|
|
@@ -778,7 +833,6 @@ declare namespace Paths {
|
|
|
778
833
|
}
|
|
779
834
|
}
|
|
780
835
|
|
|
781
|
-
|
|
782
836
|
interface OperationMethods {
|
|
783
837
|
/**
|
|
784
838
|
* createNote - createNote
|
|
@@ -861,6 +915,26 @@ interface OperationMethods {
|
|
|
861
915
|
data?: any,
|
|
862
916
|
config?: AxiosRequestConfig
|
|
863
917
|
): OperationResponse<Paths.PinNote.Responses.$200>
|
|
918
|
+
/**
|
|
919
|
+
* archiveNote - archiveNote
|
|
920
|
+
*
|
|
921
|
+
* Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.
|
|
922
|
+
*/
|
|
923
|
+
'archiveNote'(
|
|
924
|
+
parameters?: Parameters<Paths.ArchiveNote.PathParameters> | null,
|
|
925
|
+
data?: any,
|
|
926
|
+
config?: AxiosRequestConfig
|
|
927
|
+
): OperationResponse<Paths.ArchiveNote.Responses.$200>
|
|
928
|
+
/**
|
|
929
|
+
* unarchiveNote - unarchiveNote
|
|
930
|
+
*
|
|
931
|
+
* Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.
|
|
932
|
+
*/
|
|
933
|
+
'unarchiveNote'(
|
|
934
|
+
parameters?: Parameters<Paths.UnarchiveNote.PathParameters> | null,
|
|
935
|
+
data?: any,
|
|
936
|
+
config?: AxiosRequestConfig
|
|
937
|
+
): OperationResponse<Paths.UnarchiveNote.Responses.$200>
|
|
864
938
|
/**
|
|
865
939
|
* getNoteContexts - getNoteContexts
|
|
866
940
|
*
|
|
@@ -995,6 +1069,30 @@ interface PathsDictionary {
|
|
|
995
1069
|
config?: AxiosRequestConfig
|
|
996
1070
|
): OperationResponse<Paths.PinNote.Responses.$200>
|
|
997
1071
|
}
|
|
1072
|
+
['/v1/note/{id}/archive']: {
|
|
1073
|
+
/**
|
|
1074
|
+
* archiveNote - archiveNote
|
|
1075
|
+
*
|
|
1076
|
+
* Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.
|
|
1077
|
+
*/
|
|
1078
|
+
'post'(
|
|
1079
|
+
parameters?: Parameters<Paths.ArchiveNote.PathParameters> | null,
|
|
1080
|
+
data?: any,
|
|
1081
|
+
config?: AxiosRequestConfig
|
|
1082
|
+
): OperationResponse<Paths.ArchiveNote.Responses.$200>
|
|
1083
|
+
}
|
|
1084
|
+
['/v1/note/{id}/unarchive']: {
|
|
1085
|
+
/**
|
|
1086
|
+
* unarchiveNote - unarchiveNote
|
|
1087
|
+
*
|
|
1088
|
+
* Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.
|
|
1089
|
+
*/
|
|
1090
|
+
'post'(
|
|
1091
|
+
parameters?: Parameters<Paths.UnarchiveNote.PathParameters> | null,
|
|
1092
|
+
data?: any,
|
|
1093
|
+
config?: AxiosRequestConfig
|
|
1094
|
+
): OperationResponse<Paths.UnarchiveNote.Responses.$200>
|
|
1095
|
+
}
|
|
998
1096
|
['/v1/note/{id}/context']: {
|
|
999
1097
|
/**
|
|
1000
1098
|
* getNoteContexts - getNoteContexts
|
|
@@ -1047,7 +1145,6 @@ interface PathsDictionary {
|
|
|
1047
1145
|
|
|
1048
1146
|
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1049
1147
|
|
|
1050
|
-
|
|
1051
1148
|
type ContextType = Components.Schemas.ContextType;
|
|
1052
1149
|
type CreatedByType = Components.Schemas.CreatedByType;
|
|
1053
1150
|
type Entity = Components.Schemas.Entity;
|
|
@@ -1060,9 +1157,10 @@ type NotePatchRequestBody = Components.Schemas.NotePatchRequestBody;
|
|
|
1060
1157
|
type NotePostRequestBody = Components.Schemas.NotePostRequestBody;
|
|
1061
1158
|
type NotePutRequestBody = Components.Schemas.NotePutRequestBody;
|
|
1062
1159
|
type NoteSearchByContextRequestBody = Components.Schemas.NoteSearchByContextRequestBody;
|
|
1160
|
+
type NotesListFilter = Components.Schemas.NotesListFilter;
|
|
1063
1161
|
type NotesSearchRequestResponse = Components.Schemas.NotesSearchRequestResponse;
|
|
1064
1162
|
type ReactionRequest = Components.Schemas.ReactionRequest;
|
|
1065
1163
|
type ToggleReactionsRequest = Components.Schemas.ToggleReactionsRequest;
|
|
1066
1164
|
type WorkflowExecution = Components.Schemas.WorkflowExecution;
|
|
1067
1165
|
|
|
1068
|
-
export { type Client as C, type Entity as E, type NonHydratedNoteEntity as N, type OperationMethods as O, Paths as P, type ReactionRequest as R, type ToggleReactionsRequest as T, type WorkflowExecution as W, Components as a, type PathsDictionary as b, type ContextType as c, type CreatedByType as d, type NoteContexts as e, type NoteEntity as f, type NoteEntityParent as g, type NoteGetRequestResponse as h, type NotePatchRequestBody as i, type NotePostRequestBody as j, type NotePutRequestBody as k, type NoteSearchByContextRequestBody as l, type
|
|
1166
|
+
export { type Client as C, type Entity as E, type NonHydratedNoteEntity as N, type OperationMethods as O, Paths as P, type ReactionRequest as R, type ToggleReactionsRequest as T, type WorkflowExecution as W, Components as a, type PathsDictionary as b, type ContextType as c, type CreatedByType as d, type NoteContexts as e, type NoteEntity as f, type NoteEntityParent as g, type NoteGetRequestResponse as h, type NotePatchRequestBody as i, type NotePostRequestBody as j, type NotePutRequestBody as k, type NoteSearchByContextRequestBody as l, type NotesListFilter as m, type NotesSearchRequestResponse as n };
|
|
@@ -149,6 +149,10 @@ declare namespace Components {
|
|
|
149
149
|
reactions?: {
|
|
150
150
|
[name: string]: string[];
|
|
151
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
154
|
+
*/
|
|
155
|
+
_archived_at?: string | null; // date-time
|
|
152
156
|
}
|
|
153
157
|
/**
|
|
154
158
|
* List of resolved Entity and non-Entity contexts attached to a given Note.
|
|
@@ -241,6 +245,10 @@ declare namespace Components {
|
|
|
241
245
|
reactions?: {
|
|
242
246
|
[name: string]: string[];
|
|
243
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
250
|
+
*/
|
|
251
|
+
_archived_at?: string | null; // date-time
|
|
244
252
|
}
|
|
245
253
|
/**
|
|
246
254
|
* The Note's parent Note
|
|
@@ -334,6 +342,10 @@ declare namespace Components {
|
|
|
334
342
|
reactions?: {
|
|
335
343
|
[name: string]: string[];
|
|
336
344
|
};
|
|
345
|
+
/**
|
|
346
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
347
|
+
*/
|
|
348
|
+
_archived_at?: string | null; // date-time
|
|
337
349
|
}
|
|
338
350
|
export interface NotePatchRequestBody {
|
|
339
351
|
/**
|
|
@@ -387,6 +399,10 @@ declare namespace Components {
|
|
|
387
399
|
reactions?: {
|
|
388
400
|
[name: string]: string[];
|
|
389
401
|
};
|
|
402
|
+
/**
|
|
403
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
404
|
+
*/
|
|
405
|
+
_archived_at?: string | null; // date-time
|
|
390
406
|
}
|
|
391
407
|
export interface NotePostRequestBody {
|
|
392
408
|
/**
|
|
@@ -523,6 +539,10 @@ declare namespace Components {
|
|
|
523
539
|
reactions?: {
|
|
524
540
|
[name: string]: string[];
|
|
525
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* The timestamp of when this Note was archived. Absent or null means the Note is active.
|
|
544
|
+
*/
|
|
545
|
+
_archived_at?: string | null; // date-time
|
|
526
546
|
}
|
|
527
547
|
export interface NoteSearchByContextRequestBody {
|
|
528
548
|
contexts: [
|
|
@@ -539,6 +559,7 @@ declare namespace Components {
|
|
|
539
559
|
* When set, the API resolves related entities of these schemas for the primary entity context and includes their notes in the results.
|
|
540
560
|
*/
|
|
541
561
|
include_related_schemas?: string[];
|
|
562
|
+
filter?: /* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both. */ NotesListFilter;
|
|
542
563
|
/**
|
|
543
564
|
* The index of the first Note to return in this query
|
|
544
565
|
*/
|
|
@@ -548,6 +569,10 @@ declare namespace Components {
|
|
|
548
569
|
*/
|
|
549
570
|
size?: number;
|
|
550
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both.
|
|
574
|
+
*/
|
|
575
|
+
export type NotesListFilter = "all" | "active" | "archived";
|
|
551
576
|
export interface NotesSearchRequestResponse {
|
|
552
577
|
/**
|
|
553
578
|
* The number of Note entries returned in this query
|
|
@@ -604,6 +629,20 @@ declare namespace Paths {
|
|
|
604
629
|
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
605
630
|
}
|
|
606
631
|
}
|
|
632
|
+
namespace ArchiveNote {
|
|
633
|
+
namespace Parameters {
|
|
634
|
+
/**
|
|
635
|
+
* The Entity ID of the Note entry to archive
|
|
636
|
+
*/
|
|
637
|
+
export type Id = string;
|
|
638
|
+
}
|
|
639
|
+
export interface PathParameters {
|
|
640
|
+
id: /* The Entity ID of the Note entry to archive */ Parameters.Id;
|
|
641
|
+
}
|
|
642
|
+
namespace Responses {
|
|
643
|
+
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
607
646
|
namespace CreateNote {
|
|
608
647
|
export type RequestBody = Components.Schemas.NotePostRequestBody;
|
|
609
648
|
namespace Responses {
|
|
@@ -670,6 +709,7 @@ declare namespace Paths {
|
|
|
670
709
|
* The ID of the Contextual Entity from where to retrieve Notes
|
|
671
710
|
*/
|
|
672
711
|
export type EntityId = string;
|
|
712
|
+
export type Filter = /* Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both. */ Components.Schemas.NotesListFilter;
|
|
673
713
|
/**
|
|
674
714
|
* The index of the first Note to return in this query
|
|
675
715
|
*/
|
|
@@ -684,6 +724,7 @@ declare namespace Paths {
|
|
|
684
724
|
}
|
|
685
725
|
export interface QueryParameters {
|
|
686
726
|
contexts?: Parameters.Contexts;
|
|
727
|
+
filter?: Parameters.Filter;
|
|
687
728
|
from?: /* The index of the first Note to return in this query */ Parameters.From;
|
|
688
729
|
size?: /* The number of Note entries to return in this query */ Parameters.Size;
|
|
689
730
|
}
|
|
@@ -761,6 +802,20 @@ declare namespace Paths {
|
|
|
761
802
|
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
762
803
|
}
|
|
763
804
|
}
|
|
805
|
+
namespace UnarchiveNote {
|
|
806
|
+
namespace Parameters {
|
|
807
|
+
/**
|
|
808
|
+
* The Entity ID of the Note entry to unarchive
|
|
809
|
+
*/
|
|
810
|
+
export type Id = string;
|
|
811
|
+
}
|
|
812
|
+
export interface PathParameters {
|
|
813
|
+
id: /* The Entity ID of the Note entry to unarchive */ Parameters.Id;
|
|
814
|
+
}
|
|
815
|
+
namespace Responses {
|
|
816
|
+
export type $200 = /* A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place. */ Components.Schemas.NoteEntity;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
764
819
|
namespace UpdateNote {
|
|
765
820
|
namespace Parameters {
|
|
766
821
|
/**
|
|
@@ -778,7 +833,6 @@ declare namespace Paths {
|
|
|
778
833
|
}
|
|
779
834
|
}
|
|
780
835
|
|
|
781
|
-
|
|
782
836
|
interface OperationMethods {
|
|
783
837
|
/**
|
|
784
838
|
* createNote - createNote
|
|
@@ -861,6 +915,26 @@ interface OperationMethods {
|
|
|
861
915
|
data?: any,
|
|
862
916
|
config?: AxiosRequestConfig
|
|
863
917
|
): OperationResponse<Paths.PinNote.Responses.$200>
|
|
918
|
+
/**
|
|
919
|
+
* archiveNote - archiveNote
|
|
920
|
+
*
|
|
921
|
+
* Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.
|
|
922
|
+
*/
|
|
923
|
+
'archiveNote'(
|
|
924
|
+
parameters?: Parameters<Paths.ArchiveNote.PathParameters> | null,
|
|
925
|
+
data?: any,
|
|
926
|
+
config?: AxiosRequestConfig
|
|
927
|
+
): OperationResponse<Paths.ArchiveNote.Responses.$200>
|
|
928
|
+
/**
|
|
929
|
+
* unarchiveNote - unarchiveNote
|
|
930
|
+
*
|
|
931
|
+
* Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.
|
|
932
|
+
*/
|
|
933
|
+
'unarchiveNote'(
|
|
934
|
+
parameters?: Parameters<Paths.UnarchiveNote.PathParameters> | null,
|
|
935
|
+
data?: any,
|
|
936
|
+
config?: AxiosRequestConfig
|
|
937
|
+
): OperationResponse<Paths.UnarchiveNote.Responses.$200>
|
|
864
938
|
/**
|
|
865
939
|
* getNoteContexts - getNoteContexts
|
|
866
940
|
*
|
|
@@ -995,6 +1069,30 @@ interface PathsDictionary {
|
|
|
995
1069
|
config?: AxiosRequestConfig
|
|
996
1070
|
): OperationResponse<Paths.PinNote.Responses.$200>
|
|
997
1071
|
}
|
|
1072
|
+
['/v1/note/{id}/archive']: {
|
|
1073
|
+
/**
|
|
1074
|
+
* archiveNote - archiveNote
|
|
1075
|
+
*
|
|
1076
|
+
* Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.
|
|
1077
|
+
*/
|
|
1078
|
+
'post'(
|
|
1079
|
+
parameters?: Parameters<Paths.ArchiveNote.PathParameters> | null,
|
|
1080
|
+
data?: any,
|
|
1081
|
+
config?: AxiosRequestConfig
|
|
1082
|
+
): OperationResponse<Paths.ArchiveNote.Responses.$200>
|
|
1083
|
+
}
|
|
1084
|
+
['/v1/note/{id}/unarchive']: {
|
|
1085
|
+
/**
|
|
1086
|
+
* unarchiveNote - unarchiveNote
|
|
1087
|
+
*
|
|
1088
|
+
* Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.
|
|
1089
|
+
*/
|
|
1090
|
+
'post'(
|
|
1091
|
+
parameters?: Parameters<Paths.UnarchiveNote.PathParameters> | null,
|
|
1092
|
+
data?: any,
|
|
1093
|
+
config?: AxiosRequestConfig
|
|
1094
|
+
): OperationResponse<Paths.UnarchiveNote.Responses.$200>
|
|
1095
|
+
}
|
|
998
1096
|
['/v1/note/{id}/context']: {
|
|
999
1097
|
/**
|
|
1000
1098
|
* getNoteContexts - getNoteContexts
|
|
@@ -1047,7 +1145,6 @@ interface PathsDictionary {
|
|
|
1047
1145
|
|
|
1048
1146
|
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1049
1147
|
|
|
1050
|
-
|
|
1051
1148
|
type ContextType = Components.Schemas.ContextType;
|
|
1052
1149
|
type CreatedByType = Components.Schemas.CreatedByType;
|
|
1053
1150
|
type Entity = Components.Schemas.Entity;
|
|
@@ -1060,9 +1157,10 @@ type NotePatchRequestBody = Components.Schemas.NotePatchRequestBody;
|
|
|
1060
1157
|
type NotePostRequestBody = Components.Schemas.NotePostRequestBody;
|
|
1061
1158
|
type NotePutRequestBody = Components.Schemas.NotePutRequestBody;
|
|
1062
1159
|
type NoteSearchByContextRequestBody = Components.Schemas.NoteSearchByContextRequestBody;
|
|
1160
|
+
type NotesListFilter = Components.Schemas.NotesListFilter;
|
|
1063
1161
|
type NotesSearchRequestResponse = Components.Schemas.NotesSearchRequestResponse;
|
|
1064
1162
|
type ReactionRequest = Components.Schemas.ReactionRequest;
|
|
1065
1163
|
type ToggleReactionsRequest = Components.Schemas.ToggleReactionsRequest;
|
|
1066
1164
|
type WorkflowExecution = Components.Schemas.WorkflowExecution;
|
|
1067
1165
|
|
|
1068
|
-
export { type Client as C, type Entity as E, type NonHydratedNoteEntity as N, type OperationMethods as O, Paths as P, type ReactionRequest as R, type ToggleReactionsRequest as T, type WorkflowExecution as W, Components as a, type PathsDictionary as b, type ContextType as c, type CreatedByType as d, type NoteContexts as e, type NoteEntity as f, type NoteEntityParent as g, type NoteGetRequestResponse as h, type NotePatchRequestBody as i, type NotePostRequestBody as j, type NotePutRequestBody as k, type NoteSearchByContextRequestBody as l, type
|
|
1166
|
+
export { type Client as C, type Entity as E, type NonHydratedNoteEntity as N, type OperationMethods as O, Paths as P, type ReactionRequest as R, type ToggleReactionsRequest as T, type WorkflowExecution as W, Components as a, type PathsDictionary as b, type ContextType as c, type CreatedByType as d, type NoteContexts as e, type NoteEntity as f, type NoteEntityParent as g, type NoteGetRequestResponse as h, type NotePatchRequestBody as i, type NotePostRequestBody as j, type NotePutRequestBody as k, type NoteSearchByContextRequestBody as l, type NotesListFilter as m, type NotesSearchRequestResponse as n };
|