@pxlabz/tasq-sdk 0.1.21 → 0.1.22

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 +221 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -933,7 +933,7 @@ type DispatchResponse<TName extends ActionName> = {
933
933
  result: ActionWireOutputMap[TName];
934
934
  invalidates: Array<Array<string>>;
935
935
  };
936
- 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" | "time.log" | "time.update" | "time.delete" | "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" | "initiative.create" | "initiative.update" | "initiative.delete" | "initiative.linkProject" | "initiative.unlinkProject" | "projectUpdate.create" | "projectUpdate.update" | "projectUpdate.send" | "projectUpdate.delete" | "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" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
936
+ 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" | "time.log" | "time.update" | "time.delete" | "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" | "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" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
937
937
  type ActionInputMap = Omit<ActionParsedInputMap, "cycle.create" | "cycle.update"> & {
938
938
  "cycle.create": DatesAsInput<{
939
939
  teamIdentifier: string;
@@ -1171,6 +1171,35 @@ type ActionParsedInputMap = {
1171
1171
  "projectUpdate.delete": {
1172
1172
  updateId: string;
1173
1173
  };
1174
+ "doc.create": {
1175
+ title: string;
1176
+ projectId?: string | undefined;
1177
+ teamId?: string | undefined;
1178
+ bodyDocument?: DescriptionDocumentJson | null | undefined;
1179
+ bodyMarkdown?: string | undefined;
1180
+ };
1181
+ "doc.update": {
1182
+ documentId: string;
1183
+ baseVersion: number;
1184
+ title?: string | undefined;
1185
+ bodyDocument?: DescriptionDocumentJson | null | undefined;
1186
+ bodyMarkdown?: string | undefined;
1187
+ };
1188
+ "doc.link": {
1189
+ documentId: string;
1190
+ targetType: "project" | "team" | "task";
1191
+ targetId: string;
1192
+ };
1193
+ "doc.unlink": {
1194
+ documentId: string;
1195
+ linkId: string;
1196
+ };
1197
+ "doc.archive": {
1198
+ documentId: string;
1199
+ };
1200
+ "doc.unarchive": {
1201
+ documentId: string;
1202
+ };
1174
1203
  "milestone.create": {
1175
1204
  projectId: string;
1176
1205
  name: string;
@@ -2846,6 +2875,197 @@ type ActionWireOutputMap = {
2846
2875
  deletedUpdateId: string;
2847
2876
  projectId: string;
2848
2877
  };
2878
+ "doc.create": {
2879
+ document: {
2880
+ id: string;
2881
+ workspaceId: string;
2882
+ title: string;
2883
+ bodyDocument: {
2884
+ version: 1;
2885
+ content: {
2886
+ [x: string]: any;
2887
+ type?: string | undefined;
2888
+ attrs?: {
2889
+ [x: string]: any;
2890
+ } | undefined;
2891
+ content?: any[] | undefined;
2892
+ marks?: {
2893
+ [x: string]: any;
2894
+ type: string;
2895
+ attrs?: {
2896
+ [x: string]: any;
2897
+ } | undefined;
2898
+ }[] | undefined;
2899
+ text?: string | undefined;
2900
+ };
2901
+ } | null;
2902
+ bodyText: string;
2903
+ version: number;
2904
+ ownerMemberId: string | null;
2905
+ actorType: "user" | "agent" | "system";
2906
+ archivedAt: string | null;
2907
+ createdAt: string;
2908
+ updatedAt: string;
2909
+ };
2910
+ mentionsAdded: string[];
2911
+ };
2912
+ "doc.update": {
2913
+ document: {
2914
+ id: string;
2915
+ workspaceId: string;
2916
+ title: string;
2917
+ bodyDocument: {
2918
+ version: 1;
2919
+ content: {
2920
+ [x: string]: any;
2921
+ type?: string | undefined;
2922
+ attrs?: {
2923
+ [x: string]: any;
2924
+ } | undefined;
2925
+ content?: any[] | undefined;
2926
+ marks?: {
2927
+ [x: string]: any;
2928
+ type: string;
2929
+ attrs?: {
2930
+ [x: string]: any;
2931
+ } | undefined;
2932
+ }[] | undefined;
2933
+ text?: string | undefined;
2934
+ };
2935
+ } | null;
2936
+ bodyText: string;
2937
+ version: number;
2938
+ ownerMemberId: string | null;
2939
+ actorType: "user" | "agent" | "system";
2940
+ archivedAt: string | null;
2941
+ createdAt: string;
2942
+ updatedAt: string;
2943
+ };
2944
+ mentionsAdded: string[];
2945
+ mentionsRemoved: string[];
2946
+ };
2947
+ "doc.link": {
2948
+ document: {
2949
+ id: string;
2950
+ workspaceId: string;
2951
+ title: string;
2952
+ bodyDocument: {
2953
+ version: 1;
2954
+ content: {
2955
+ [x: string]: any;
2956
+ type?: string | undefined;
2957
+ attrs?: {
2958
+ [x: string]: any;
2959
+ } | undefined;
2960
+ content?: any[] | undefined;
2961
+ marks?: {
2962
+ [x: string]: any;
2963
+ type: string;
2964
+ attrs?: {
2965
+ [x: string]: any;
2966
+ } | undefined;
2967
+ }[] | undefined;
2968
+ text?: string | undefined;
2969
+ };
2970
+ } | null;
2971
+ bodyText: string;
2972
+ version: number;
2973
+ ownerMemberId: string | null;
2974
+ actorType: "user" | "agent" | "system";
2975
+ archivedAt: string | null;
2976
+ createdAt: string;
2977
+ updatedAt: string;
2978
+ };
2979
+ link: {
2980
+ id: string;
2981
+ documentId: string;
2982
+ projectId: string | null;
2983
+ teamId: string | null;
2984
+ taskId: string | null;
2985
+ source: "manual" | "mention";
2986
+ createdByMemberId: string | null;
2987
+ createdAt: string;
2988
+ };
2989
+ linked: boolean;
2990
+ };
2991
+ "doc.unlink": {
2992
+ link: {
2993
+ id: string;
2994
+ documentId: string;
2995
+ projectId: string | null;
2996
+ teamId: string | null;
2997
+ taskId: string | null;
2998
+ source: "manual" | "mention";
2999
+ createdByMemberId: string | null;
3000
+ createdAt: string;
3001
+ };
3002
+ };
3003
+ "doc.archive": {
3004
+ document: {
3005
+ id: string;
3006
+ workspaceId: string;
3007
+ title: string;
3008
+ bodyDocument: {
3009
+ version: 1;
3010
+ content: {
3011
+ [x: string]: any;
3012
+ type?: string | undefined;
3013
+ attrs?: {
3014
+ [x: string]: any;
3015
+ } | undefined;
3016
+ content?: any[] | undefined;
3017
+ marks?: {
3018
+ [x: string]: any;
3019
+ type: string;
3020
+ attrs?: {
3021
+ [x: string]: any;
3022
+ } | undefined;
3023
+ }[] | undefined;
3024
+ text?: string | undefined;
3025
+ };
3026
+ } | null;
3027
+ bodyText: string;
3028
+ version: number;
3029
+ ownerMemberId: string | null;
3030
+ actorType: "user" | "agent" | "system";
3031
+ archivedAt: string | null;
3032
+ createdAt: string;
3033
+ updatedAt: string;
3034
+ };
3035
+ };
3036
+ "doc.unarchive": {
3037
+ document: {
3038
+ id: string;
3039
+ workspaceId: string;
3040
+ title: string;
3041
+ bodyDocument: {
3042
+ version: 1;
3043
+ content: {
3044
+ [x: string]: any;
3045
+ type?: string | undefined;
3046
+ attrs?: {
3047
+ [x: string]: any;
3048
+ } | undefined;
3049
+ content?: any[] | undefined;
3050
+ marks?: {
3051
+ [x: string]: any;
3052
+ type: string;
3053
+ attrs?: {
3054
+ [x: string]: any;
3055
+ } | undefined;
3056
+ }[] | undefined;
3057
+ text?: string | undefined;
3058
+ };
3059
+ } | null;
3060
+ bodyText: string;
3061
+ version: number;
3062
+ ownerMemberId: string | null;
3063
+ actorType: "user" | "agent" | "system";
3064
+ archivedAt: string | null;
3065
+ createdAt: string;
3066
+ updatedAt: string;
3067
+ };
3068
+ };
2849
3069
  "milestone.create": {
2850
3070
  milestone: {
2851
3071
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxlabz/tasq-sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Typed client for the Tasq API: tasks, projects, cycles, and agent actions",
5
5
  "keywords": [
6
6
  "tasq",