@boboddy/sdk 0.2.15-alpha → 0.3.1

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/dist/index.js CHANGED
@@ -867,6 +867,18 @@ class Api extends HeyApiClient {
867
867
  }
868
868
 
869
869
  class Projects extends HeyApiClient {
870
+ resolveProjectBySlug(options) {
871
+ return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
872
+ }
873
+ listProjectWorkItems(options) {
874
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
875
+ }
876
+ listProjectWorkItemFieldOptions(options) {
877
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
878
+ }
879
+ getProject(options) {
880
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
881
+ }
870
882
  listProjects(options) {
871
883
  return (options?.client ?? this.client).get({ url: "/api/projects", ...options });
872
884
  }
@@ -880,18 +892,6 @@ class Projects extends HeyApiClient {
880
892
  }
881
893
  });
882
894
  }
883
- resolveProjectBySlug(options) {
884
- return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
885
- }
886
- listProjectWorkItems(options) {
887
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
888
- }
889
- listProjectWorkItemFieldOptions(options) {
890
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
891
- }
892
- getProject(options) {
893
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
894
- }
895
895
  updateProjectDefaultPipelineAssignment(options) {
896
896
  return (options.client ?? this.client).put({
897
897
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -950,32 +950,6 @@ class StepDefinitions extends HeyApiClient {
950
950
  }
951
951
 
952
952
  class StepExecutions extends HeyApiClient {
953
- createArtifactUploadUrl(options) {
954
- return (options.client ?? this.client).post({
955
- url: "/api/step-executions/{stepExecutionId}/artifact-upload-url",
956
- ...options,
957
- headers: {
958
- "Content-Type": "application/json",
959
- ...options.headers
960
- }
961
- });
962
- }
963
- listStepExecutionArtifacts(options) {
964
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts", ...options });
965
- }
966
- recordStepExecutionArtifact(options) {
967
- return (options.client ?? this.client).post({
968
- url: "/api/step-executions/{stepExecutionId}/artifacts",
969
- ...options,
970
- headers: {
971
- "Content-Type": "application/json",
972
- ...options.headers
973
- }
974
- });
975
- }
976
- getArtifactDownloadUrl(options) {
977
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts/{artifactId}/download-url", ...options });
978
- }
979
953
  claimStepExecutions(options) {
980
954
  return (options.client ?? this.client).post({
981
955
  url: "/api/step-executions/claims",
@@ -1045,9 +1019,6 @@ class StepExecutions extends HeyApiClient {
1045
1019
  extractStepExecutionSignals(options) {
1046
1020
  return (options.client ?? this.client).post({ url: "/api/step-execution-results/{stepExecutionResultId}/signals/extract", ...options });
1047
1021
  }
1048
- getStepExecution(options) {
1049
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}", ...options });
1050
- }
1051
1022
  readStepExecutionLogs(options) {
1052
1023
  return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/logs", ...options });
1053
1024
  }
@@ -1061,9 +1032,38 @@ class StepExecutions extends HeyApiClient {
1061
1032
  }
1062
1033
  });
1063
1034
  }
1035
+ getStepExecution(options) {
1036
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}", ...options });
1037
+ }
1064
1038
  getStepExecutionLogArchive(options) {
1065
1039
  return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/logs/archive", ...options });
1066
1040
  }
1041
+ createArtifactUploadUrl(options) {
1042
+ return (options.client ?? this.client).post({
1043
+ url: "/api/step-executions/{stepExecutionId}/artifact-upload-url",
1044
+ ...options,
1045
+ headers: {
1046
+ "Content-Type": "application/json",
1047
+ ...options.headers
1048
+ }
1049
+ });
1050
+ }
1051
+ listStepExecutionArtifacts(options) {
1052
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts", ...options });
1053
+ }
1054
+ recordStepExecutionArtifact(options) {
1055
+ return (options.client ?? this.client).post({
1056
+ url: "/api/step-executions/{stepExecutionId}/artifacts",
1057
+ ...options,
1058
+ headers: {
1059
+ "Content-Type": "application/json",
1060
+ ...options.headers
1061
+ }
1062
+ });
1063
+ }
1064
+ getArtifactDownloadUrl(options) {
1065
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts/{artifactId}/download-url", ...options });
1066
+ }
1067
1067
  }
1068
1068
 
1069
1069
  class PipelineDefinitions extends HeyApiClient {
@@ -1087,12 +1087,6 @@ class PipelineDefinitions extends HeyApiClient {
1087
1087
  }
1088
1088
  });
1089
1089
  }
1090
- getPipelineDefinition(options) {
1091
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
1092
- }
1093
- listPipelineDefinitions(options) {
1094
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/linear-pipeline-definitions", ...options });
1095
- }
1096
1090
  archivePipelineDefinition(options) {
1097
1091
  return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive", ...options });
1098
1092
  }
@@ -1132,6 +1126,12 @@ class PipelineDefinitions extends HeyApiClient {
1132
1126
  }
1133
1127
  });
1134
1128
  }
1129
+ getPipelineDefinition(options) {
1130
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
1131
+ }
1132
+ listPipelineDefinitions(options) {
1133
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/linear-pipeline-definitions", ...options });
1134
+ }
1135
1135
  }
1136
1136
 
1137
1137
  class PipelineExecutions extends HeyApiClient {
@@ -1205,6 +1205,12 @@ class PipelineExecutions extends HeyApiClient {
1205
1205
  }
1206
1206
 
1207
1207
  class WorkItems extends HeyApiClient {
1208
+ deleteWorkItem(options) {
1209
+ return (options.client ?? this.client).delete({ url: "/api/work-items/{workItemId}", ...options });
1210
+ }
1211
+ getWorkItem(options) {
1212
+ return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
1213
+ }
1208
1214
  createWorkItem(options) {
1209
1215
  return (options.client ?? this.client).post({
1210
1216
  url: "/api/work-items",
@@ -1255,12 +1261,6 @@ class WorkItems extends HeyApiClient {
1255
1261
  }
1256
1262
  });
1257
1263
  }
1258
- deleteWorkItem(options) {
1259
- return (options.client ?? this.client).delete({ url: "/api/work-items/{workItemId}", ...options });
1260
- }
1261
- getWorkItem(options) {
1262
- return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
1263
- }
1264
1264
  }
1265
1265
 
1266
1266
  class WorkItemComments extends HeyApiClient {
@@ -12933,6 +12933,18 @@ class Api extends HeyApiClient {
12933
12933
  }
12934
12934
 
12935
12935
  class Projects extends HeyApiClient {
12936
+ resolveProjectBySlug(options) {
12937
+ return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
12938
+ }
12939
+ listProjectWorkItems(options) {
12940
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
12941
+ }
12942
+ listProjectWorkItemFieldOptions(options) {
12943
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
12944
+ }
12945
+ getProject(options) {
12946
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
12947
+ }
12936
12948
  listProjects(options) {
12937
12949
  return (options?.client ?? this.client).get({ url: "/api/projects", ...options });
12938
12950
  }
@@ -12946,18 +12958,6 @@ class Projects extends HeyApiClient {
12946
12958
  }
12947
12959
  });
12948
12960
  }
12949
- resolveProjectBySlug(options) {
12950
- return (options.client ?? this.client).get({ url: "/api/projects/resolve", ...options });
12951
- }
12952
- listProjectWorkItems(options) {
12953
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-items", ...options });
12954
- }
12955
- listProjectWorkItemFieldOptions(options) {
12956
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-field-options", ...options });
12957
- }
12958
- getProject(options) {
12959
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
12960
- }
12961
12961
  updateProjectDefaultPipelineAssignment(options) {
12962
12962
  return (options.client ?? this.client).put({
12963
12963
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -13016,32 +13016,6 @@ class StepDefinitions extends HeyApiClient {
13016
13016
  }
13017
13017
 
13018
13018
  class StepExecutions extends HeyApiClient {
13019
- createArtifactUploadUrl(options) {
13020
- return (options.client ?? this.client).post({
13021
- url: "/api/step-executions/{stepExecutionId}/artifact-upload-url",
13022
- ...options,
13023
- headers: {
13024
- "Content-Type": "application/json",
13025
- ...options.headers
13026
- }
13027
- });
13028
- }
13029
- listStepExecutionArtifacts(options) {
13030
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts", ...options });
13031
- }
13032
- recordStepExecutionArtifact(options) {
13033
- return (options.client ?? this.client).post({
13034
- url: "/api/step-executions/{stepExecutionId}/artifacts",
13035
- ...options,
13036
- headers: {
13037
- "Content-Type": "application/json",
13038
- ...options.headers
13039
- }
13040
- });
13041
- }
13042
- getArtifactDownloadUrl(options) {
13043
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts/{artifactId}/download-url", ...options });
13044
- }
13045
13019
  claimStepExecutions(options) {
13046
13020
  return (options.client ?? this.client).post({
13047
13021
  url: "/api/step-executions/claims",
@@ -13111,9 +13085,6 @@ class StepExecutions extends HeyApiClient {
13111
13085
  extractStepExecutionSignals(options) {
13112
13086
  return (options.client ?? this.client).post({ url: "/api/step-execution-results/{stepExecutionResultId}/signals/extract", ...options });
13113
13087
  }
13114
- getStepExecution(options) {
13115
- return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}", ...options });
13116
- }
13117
13088
  readStepExecutionLogs(options) {
13118
13089
  return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/logs", ...options });
13119
13090
  }
@@ -13127,9 +13098,38 @@ class StepExecutions extends HeyApiClient {
13127
13098
  }
13128
13099
  });
13129
13100
  }
13101
+ getStepExecution(options) {
13102
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}", ...options });
13103
+ }
13130
13104
  getStepExecutionLogArchive(options) {
13131
13105
  return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/logs/archive", ...options });
13132
13106
  }
13107
+ createArtifactUploadUrl(options) {
13108
+ return (options.client ?? this.client).post({
13109
+ url: "/api/step-executions/{stepExecutionId}/artifact-upload-url",
13110
+ ...options,
13111
+ headers: {
13112
+ "Content-Type": "application/json",
13113
+ ...options.headers
13114
+ }
13115
+ });
13116
+ }
13117
+ listStepExecutionArtifacts(options) {
13118
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts", ...options });
13119
+ }
13120
+ recordStepExecutionArtifact(options) {
13121
+ return (options.client ?? this.client).post({
13122
+ url: "/api/step-executions/{stepExecutionId}/artifacts",
13123
+ ...options,
13124
+ headers: {
13125
+ "Content-Type": "application/json",
13126
+ ...options.headers
13127
+ }
13128
+ });
13129
+ }
13130
+ getArtifactDownloadUrl(options) {
13131
+ return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts/{artifactId}/download-url", ...options });
13132
+ }
13133
13133
  }
13134
13134
 
13135
13135
  class PipelineDefinitions extends HeyApiClient {
@@ -13153,12 +13153,6 @@ class PipelineDefinitions extends HeyApiClient {
13153
13153
  }
13154
13154
  });
13155
13155
  }
13156
- getPipelineDefinition(options) {
13157
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
13158
- }
13159
- listPipelineDefinitions(options) {
13160
- return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/linear-pipeline-definitions", ...options });
13161
- }
13162
13156
  archivePipelineDefinition(options) {
13163
13157
  return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive", ...options });
13164
13158
  }
@@ -13198,6 +13192,12 @@ class PipelineDefinitions extends HeyApiClient {
13198
13192
  }
13199
13193
  });
13200
13194
  }
13195
+ getPipelineDefinition(options) {
13196
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
13197
+ }
13198
+ listPipelineDefinitions(options) {
13199
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/linear-pipeline-definitions", ...options });
13200
+ }
13201
13201
  }
13202
13202
 
13203
13203
  class PipelineExecutions extends HeyApiClient {
@@ -13271,6 +13271,12 @@ class PipelineExecutions extends HeyApiClient {
13271
13271
  }
13272
13272
 
13273
13273
  class WorkItems extends HeyApiClient {
13274
+ deleteWorkItem(options) {
13275
+ return (options.client ?? this.client).delete({ url: "/api/work-items/{workItemId}", ...options });
13276
+ }
13277
+ getWorkItem(options) {
13278
+ return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
13279
+ }
13274
13280
  createWorkItem(options) {
13275
13281
  return (options.client ?? this.client).post({
13276
13282
  url: "/api/work-items",
@@ -13321,12 +13327,6 @@ class WorkItems extends HeyApiClient {
13321
13327
  }
13322
13328
  });
13323
13329
  }
13324
- deleteWorkItem(options) {
13325
- return (options.client ?? this.client).delete({ url: "/api/work-items/{workItemId}", ...options });
13326
- }
13327
- getWorkItem(options) {
13328
- return (options.client ?? this.client).get({ url: "/api/work-items/{workItemId}", ...options });
13329
- }
13330
13330
  }
13331
13331
 
13332
13332
  class WorkItemComments extends HeyApiClient {
@@ -207,9 +207,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
207
207
  id: string;
208
208
  stepExecutionId: string;
209
209
  relativeStorePath: string;
210
- storeRef: string;
211
- objectKey: string;
212
- sizeBytes: number;
210
+ storeRef: string | unknown;
211
+ objectKey: string | unknown;
212
+ sizeBytes: number | unknown;
213
213
  contentType: string | unknown;
214
214
  kind: "generic" | "playwright-trace";
215
215
  createdAt: string;
@@ -218,9 +218,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
218
218
  id: string;
219
219
  stepExecutionId: string;
220
220
  relativeStorePath: string;
221
- storeRef: string;
222
- objectKey: string;
223
- sizeBytes: number;
221
+ storeRef: string | unknown;
222
+ objectKey: string | unknown;
223
+ sizeBytes: number | unknown;
224
224
  contentType: string | unknown;
225
225
  kind: "generic" | "playwright-trace";
226
226
  createdAt: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@boboddy/sdk",
4
- "version": "0.2.15-alpha",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {