@pxlabz/tasq-sdk 0.1.28 → 0.1.29

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 (2) hide show
  1. package/dist/index.d.ts +42 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1180,7 +1180,7 @@ type DispatchResponse<TName extends ActionName> = {
1180
1180
  result: ActionWireOutputMap[TName];
1181
1181
  invalidates: Array<Array<string>>;
1182
1182
  };
1183
- type ActionName = "task.create" | "task.assign" | "task.bulkSetCycle" | "task.move" | "task.setPriority" | "task.setEstimate" | "task.setDates" | "task.update" | "task.setProject" | "task.setCycle" | "task.setMilestone" | "task.setParent" | "task.requestApproval" | "task.decide" | "task.addLabel" | "task.removeLabel" | "task.archive" | "task.unarchive" | "task.setField" | "task.bulkSetField" | "time.log" | "time.update" | "time.delete" | "billingPeriod.close" | "billingPeriod.markInvoiced" | "billingPeriod.reopen" | "timeDraft.request" | "timeDraft.save" | "timeDraft.confirm" | "timeDraft.dismiss" | "timeDraft.reply" | "comment.add" | "notification.markRead" | "project.create" | "project.update" | "project.archive" | "project.unarchive" | "project.addTeam" | "project.removeTeam" | "project.addMember" | "project.removeMember" | "project.setLead" | "project.grantGuest" | "project.setGuestAccess" | "project.revokeGuest" | "project.star" | "project.unstar" | "project.setField" | "initiative.create" | "initiative.update" | "initiative.delete" | "initiative.linkProject" | "initiative.unlinkProject" | "projectUpdate.create" | "projectUpdate.update" | "projectUpdate.send" | "projectUpdate.delete" | "doc.create" | "doc.update" | "doc.link" | "doc.unlink" | "doc.archive" | "doc.unarchive" | "milestone.create" | "milestone.update" | "milestone.delete" | "milestone.reorder" | "milestone.promote" | "cycle.create" | "cycle.update" | "cycle.delete" | "status.create" | "status.update" | "status.reorder" | "status.delete" | "label.create" | "label.update" | "label.delete" | "field.create" | "field.update" | "field.archive" | "field.restore" | "field.addOption" | "field.updateOption" | "field.reorderOptions" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "team.setFields" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
1183
+ type ActionName = "task.create" | "task.assign" | "task.bulkSetCycle" | "task.move" | "task.setPriority" | "task.setEstimate" | "task.setDates" | "task.update" | "task.setProject" | "task.setCycle" | "task.setMilestone" | "task.setParent" | "task.requestApproval" | "task.decide" | "task.addLabel" | "task.removeLabel" | "task.archive" | "task.unarchive" | "task.setField" | "task.bulkSetField" | "time.log" | "time.update" | "time.delete" | "billingPeriod.close" | "billingPeriod.markInvoiced" | "billingPeriod.reopen" | "timeDraft.request" | "timeDraft.save" | "timeDraft.confirm" | "timeDraft.dismiss" | "timeDraft.reply" | "comment.add" | "notification.markRead" | "project.create" | "project.update" | "project.archive" | "project.unarchive" | "project.addTeam" | "project.removeTeam" | "project.addMember" | "project.removeMember" | "project.setLead" | "project.grantGuest" | "project.setGuestAccess" | "project.revokeGuest" | "project.star" | "project.unstar" | "project.setField" | "initiative.create" | "initiative.update" | "initiative.delete" | "initiative.linkProject" | "initiative.unlinkProject" | "projectUpdate.create" | "projectUpdate.update" | "projectUpdate.send" | "projectUpdate.delete" | "doc.create" | "doc.update" | "doc.link" | "doc.unlink" | "doc.archive" | "doc.unarchive" | "doc.restore" | "milestone.create" | "milestone.update" | "milestone.delete" | "milestone.reorder" | "milestone.promote" | "cycle.create" | "cycle.update" | "cycle.delete" | "status.create" | "status.update" | "status.reorder" | "status.delete" | "label.create" | "label.update" | "label.delete" | "field.create" | "field.update" | "field.archive" | "field.restore" | "field.addOption" | "field.updateOption" | "field.reorderOptions" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "team.setFields" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
1184
1184
  type ActionInputMap = Omit<ActionParsedInputMap, "cycle.create" | "cycle.update"> & {
1185
1185
  "cycle.create": DatesAsInput<{
1186
1186
  teamIdentifier: string;
@@ -1513,6 +1513,11 @@ type ActionParsedInputMap = {
1513
1513
  "doc.unarchive": {
1514
1514
  documentId: string;
1515
1515
  };
1516
+ "doc.restore": {
1517
+ documentId: string;
1518
+ revisionId: string;
1519
+ baseVersion: number;
1520
+ };
1516
1521
  "milestone.create": {
1517
1522
  projectId: string;
1518
1523
  name: string;
@@ -3746,6 +3751,42 @@ type ActionWireOutputMap = {
3746
3751
  updatedAt: string;
3747
3752
  };
3748
3753
  };
3754
+ "doc.restore": {
3755
+ document: {
3756
+ id: string;
3757
+ workspaceId: string;
3758
+ title: string;
3759
+ bodyDocument: {
3760
+ version: 1;
3761
+ content: {
3762
+ [x: string]: any;
3763
+ type?: string | undefined;
3764
+ attrs?: {
3765
+ [x: string]: any;
3766
+ } | undefined;
3767
+ content?: any[] | undefined;
3768
+ marks?: {
3769
+ [x: string]: any;
3770
+ type: string;
3771
+ attrs?: {
3772
+ [x: string]: any;
3773
+ } | undefined;
3774
+ }[] | undefined;
3775
+ text?: string | undefined;
3776
+ };
3777
+ } | null;
3778
+ bodyText: string;
3779
+ version: number;
3780
+ ownerMemberId: string | null;
3781
+ actorType: "user" | "agent" | "system";
3782
+ archivedAt: string | null;
3783
+ createdAt: string;
3784
+ updatedAt: string;
3785
+ };
3786
+ restored: boolean;
3787
+ mentionsAdded: string[];
3788
+ mentionsRemoved: string[];
3789
+ };
3749
3790
  "milestone.create": {
3750
3791
  milestone: {
3751
3792
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxlabz/tasq-sdk",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Typed client for the Tasq API: tasks, projects, cycles, and agent actions",
5
5
  "keywords": [
6
6
  "tasq",