@boboddy/sdk 0.1.11-alpha → 0.1.13-alpha

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
@@ -839,29 +839,38 @@ class HeyApiRegistry {
839
839
  }
840
840
 
841
841
  class Api extends HeyApiClient {
842
- "allApiApiAuth*"(options) {
843
- return (options?.client ?? this.client).delete({ url: "/api/api/auth/*", ...options });
842
+ "allApiAuth*"(options) {
843
+ return (options?.client ?? this.client).delete({ url: "/api/auth/*", ...options });
844
844
  }
845
- "allApiApiAuth*2"(options) {
846
- return (options?.client ?? this.client).get({ url: "/api/api/auth/*", ...options });
845
+ "allApiAuth*2"(options) {
846
+ return (options?.client ?? this.client).get({ url: "/api/auth/*", ...options });
847
847
  }
848
- "allApiApiAuth*3"(options) {
849
- return (options?.client ?? this.client).head({ url: "/api/api/auth/*", ...options });
848
+ "allApiAuth*3"(options) {
849
+ return (options?.client ?? this.client).head({ url: "/api/auth/*", ...options });
850
850
  }
851
- "allApiApiAuth*4"(options) {
852
- return (options?.client ?? this.client).options({ url: "/api/api/auth/*", ...options });
851
+ "allApiAuth*4"(options) {
852
+ return (options?.client ?? this.client).options({ url: "/api/auth/*", ...options });
853
853
  }
854
- "allApiApiAuth*5"(options) {
855
- return (options?.client ?? this.client).patch({ url: "/api/api/auth/*", ...options });
854
+ "allApiAuth*5"(options) {
855
+ return (options?.client ?? this.client).patch({ url: "/api/auth/*", ...options });
856
856
  }
857
- "allApiApiAuth*6"(options) {
858
- return (options?.client ?? this.client).post({ url: "/api/api/auth/*", ...options });
857
+ "allApiAuth*6"(options) {
858
+ return (options?.client ?? this.client).post({ url: "/api/auth/*", ...options });
859
859
  }
860
- "allApiApiAuth*7"(options) {
861
- return (options?.client ?? this.client).put({ url: "/api/api/auth/*", ...options });
860
+ "allApiAuth*7"(options) {
861
+ return (options?.client ?? this.client).put({ url: "/api/auth/*", ...options });
862
862
  }
863
- "allApiApiAuth*8"(options) {
864
- return (options?.client ?? this.client).trace({ url: "/api/api/auth/*", ...options });
863
+ "allApiAuth*8"(options) {
864
+ return (options?.client ?? this.client).trace({ url: "/api/auth/*", ...options });
865
+ }
866
+ getApiIntegrationsGithubInstall(options) {
867
+ return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
868
+ }
869
+ getApiIntegrationsGithubCallback(options) {
870
+ return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
871
+ }
872
+ postApiIntegrationsGithubWebhook(options) {
873
+ return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
865
874
  }
866
875
  }
867
876
 
@@ -999,7 +1008,7 @@ class StepExecutions extends HeyApiClient {
999
1008
 
1000
1009
  class PipelineDefinitions extends HeyApiClient {
1001
1010
  listPipelineDefinitions(options) {
1002
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions", ...options });
1011
+ return (options?.client ?? this.client).get({ url: "/api/linear-pipeline-definitions", ...options });
1003
1012
  }
1004
1013
  createPipelineDefinition(options) {
1005
1014
  return (options.client ?? this.client).post({
@@ -1027,6 +1036,9 @@ class PipelineDefinitions extends HeyApiClient {
1027
1036
  archivePipelineDefinition(options) {
1028
1037
  return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive", ...options });
1029
1038
  }
1039
+ unarchivePipelineDefinition(options) {
1040
+ return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/unarchive", ...options });
1041
+ }
1030
1042
  addPipelineStep(options) {
1031
1043
  return (options.client ?? this.client).post({
1032
1044
  url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps",
@@ -1082,15 +1094,12 @@ class PipelineExecutions extends HeyApiClient {
1082
1094
  queueFirstPipelineStepRun(options) {
1083
1095
  return (options.client ?? this.client).post({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/first", ...options });
1084
1096
  }
1085
- createPipelineStepRunAttempt(options) {
1086
- return (options.client ?? this.client).post({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts", ...options });
1087
- }
1088
- markPipelineStepRunAttemptRunning(options) {
1089
- return (options.client ?? this.client).put({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/running", ...options });
1097
+ markPipelineStepRunRunning(options) {
1098
+ return (options.client ?? this.client).put({ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/running", ...options });
1090
1099
  }
1091
1100
  applyPipelineStepResult(options) {
1092
1101
  return (options.client ?? this.client).post({
1093
- url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/attempts/{linearPipelineStepRunAttemptId}/results",
1102
+ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/results",
1094
1103
  ...options,
1095
1104
  headers: {
1096
1105
  "Content-Type": "application/json",
@@ -1108,9 +1117,9 @@ class PipelineExecutions extends HeyApiClient {
1108
1117
  }
1109
1118
  });
1110
1119
  }
1111
- retriggerPipelineStepRun(options) {
1120
+ rerunPipelineExecution(options) {
1112
1121
  return (options.client ?? this.client).post({
1113
- url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/step-runs/{linearPipelineStepRunId}/retrigger",
1122
+ url: "/api/linear-pipeline-executions/{linearPipelineExecutionId}/rerun",
1114
1123
  ...options,
1115
1124
  headers: {
1116
1125
  "Content-Type": "application/json",
@@ -1238,6 +1247,28 @@ class StepDefinitionTemplates extends HeyApiClient {
1238
1247
  }
1239
1248
  }
1240
1249
 
1250
+ class ProjectIntegrations extends HeyApiClient {
1251
+ listProjectIntegrations(options) {
1252
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/integrations", ...options });
1253
+ }
1254
+ createProjectIntegration(options) {
1255
+ return (options.client ?? this.client).post({
1256
+ url: "/api/projects/{projectId}/integrations",
1257
+ ...options,
1258
+ headers: {
1259
+ "Content-Type": "application/json",
1260
+ ...options.headers
1261
+ }
1262
+ });
1263
+ }
1264
+ syncProjectIntegration(options) {
1265
+ return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/integrations/{integrationId}/sync", ...options });
1266
+ }
1267
+ deleteProjectIntegration(options) {
1268
+ return (options.client ?? this.client).delete({ url: "/api/projects/{projectId}/integrations/{integrationId}", ...options });
1269
+ }
1270
+ }
1271
+
1241
1272
  class BoboddyClient extends HeyApiClient {
1242
1273
  static __registry = new HeyApiRegistry;
1243
1274
  constructor(args) {
@@ -1284,6 +1315,10 @@ class BoboddyClient extends HeyApiClient {
1284
1315
  get stepDefinitionTemplates() {
1285
1316
  return this._stepDefinitionTemplates ??= new StepDefinitionTemplates({ client: this.client });
1286
1317
  }
1318
+ _projectIntegrations;
1319
+ get projectIntegrations() {
1320
+ return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
1321
+ }
1287
1322
  }
1288
1323
  // src/step-execution-plane-client.ts
1289
1324
  function createStepExecutionPlaneClient(baseUrl) {
@@ -16712,6 +16747,7 @@ export {
16712
16747
  StepDefinitionTemplates,
16713
16748
  Rule,
16714
16749
  Projects,
16750
+ ProjectIntegrations,
16715
16751
  ProjectContext,
16716
16752
  PipelineExecutions,
16717
16753
  PipelineDefinitions,
@@ -29,10 +29,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
29
29
  executionDeadlineAt: string | unknown;
30
30
  startedAt: string | unknown;
31
31
  completedAt: string | unknown;
32
- results: Array<{
32
+ result: {
33
33
  id: string;
34
34
  stepExecutionId: string;
35
- attempt: number;
36
35
  status: "succeeded" | "failed";
37
36
  resultJson: unknown;
38
37
  errorJson: unknown;
@@ -48,7 +47,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
48
47
  createdAt: string;
49
48
  }>;
50
49
  createdAt: string;
51
- }>;
50
+ } | unknown;
52
51
  createdAt: string;
53
52
  updatedAt: string;
54
53
  };
@@ -73,10 +72,9 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
73
72
  executionDeadlineAt: string | unknown;
74
73
  startedAt: string | unknown;
75
74
  completedAt: string | unknown;
76
- results: Array<{
75
+ result: {
77
76
  id: string;
78
77
  stepExecutionId: string;
79
- attempt: number;
80
78
  status: "succeeded" | "failed";
81
79
  resultJson: unknown;
82
80
  errorJson: unknown;
@@ -92,7 +90,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
92
90
  createdAt: string;
93
91
  }>;
94
92
  createdAt: string;
95
- }>;
93
+ } | unknown;
96
94
  createdAt: string;
97
95
  updatedAt: string;
98
96
  }>;
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.1.11-alpha",
4
+ "version": "0.1.13-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "https://github.com/connorivy/boboddy"
46
+ "url": "https://github.com/boboddy-dev/boboddy"
47
47
  },
48
48
  "scripts": {
49
49
  "generate": "openapi-ts",