@opengeni/sdk 3.7.0-canary.0 → 3.7.0-canary.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/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/{chunk-MPGVC7EO.js → chunk-C44ZOFSF.js} +2 -2
- package/dist/{chunk-IQTEPOI3.js → chunk-DWCHEOMP.js} +43 -4
- package/dist/chunk-DWCHEOMP.js.map +1 -0
- package/dist/{chunk-2E2BFEEN.js → chunk-M4MKZ4LN.js} +2 -2
- package/dist/{chunk-IRAEPLXG.js → chunk-NLW73SND.js} +169 -1
- package/dist/chunk-NLW73SND.js.map +1 -0
- package/dist/{chunk-3QDQTYOE.js → chunk-PRD5R2QI.js} +1 -1
- package/dist/chunk-PRD5R2QI.js.map +1 -0
- package/dist/client.d.ts +37 -14
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/site-http.d.ts +16 -0
- package/dist/site.d.ts +6 -0
- package/dist/site.js +12 -3
- package/dist/types.d.ts +30 -1
- package/dist/workspace-artifacts.d.ts +6 -4
- package/package.json +2 -2
- package/src/client.ts +85 -13
- package/src/index.ts +8 -0
- package/src/site-http.ts +161 -0
- package/src/site.ts +34 -0
- package/src/types.ts +33 -0
- package/src/workspace-artifacts.ts +6 -4
- package/dist/chunk-3QDQTYOE.js.map +0 -1
- package/dist/chunk-IQTEPOI3.js.map +0 -1
- package/dist/chunk-IRAEPLXG.js.map +0 -1
- /package/dist/{chunk-MPGVC7EO.js.map → chunk-C44ZOFSF.js.map} +0 -0
- /package/dist/{chunk-2E2BFEEN.js.map → chunk-M4MKZ4LN.js.map} +0 -0
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-C44ZOFSF.js";
|
|
4
|
+
import "./chunk-M4MKZ4LN.js";
|
|
5
|
+
import "./chunk-DWCHEOMP.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PRD5R2QI.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenGeniClient
|
package/dist/browser.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DWCHEOMP.js";
|
|
12
12
|
import "./chunk-QTBAMHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENGENI_API_CONTRACT_HEADER,
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PRD5R2QI.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
|
19
19
|
OpenGeniApiError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniDocumentAuthorityClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M4MKZ4LN.js";
|
|
4
4
|
|
|
5
5
|
// src/artifact-client.ts
|
|
6
6
|
var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
|
|
@@ -133,4 +133,4 @@ var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
|
|
|
133
133
|
export {
|
|
134
134
|
OpenGeniClient
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-C44ZOFSF.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION,
|
|
10
10
|
OPENGENI_CORRELATION_HEADER,
|
|
11
11
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PRD5R2QI.js";
|
|
13
13
|
import {
|
|
14
14
|
OpenGeniApiContractMismatchError,
|
|
15
15
|
OpenGeniApiError,
|
|
@@ -780,6 +780,9 @@ function sessionListQuery(options) {
|
|
|
780
780
|
...parentSessionId === void 0 ? {} : { parentSessionId: parentSessionId ?? "null" }
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
+
function hasSessionPageFilters(options) {
|
|
784
|
+
return options.channelId !== void 0 || options.createdBy !== void 0 || options.updatedFrom !== void 0 || options.updatedBefore !== void 0 || options.createdFrom !== void 0 || options.createdBefore !== void 0;
|
|
785
|
+
}
|
|
783
786
|
function createSingleFlightReadEntry(generation, onRequestStart) {
|
|
784
787
|
let resolve;
|
|
785
788
|
let reject;
|
|
@@ -1168,10 +1171,14 @@ var OpenGeniClient = class {
|
|
|
1168
1171
|
sessionListQuery(options)
|
|
1169
1172
|
);
|
|
1170
1173
|
}
|
|
1171
|
-
|
|
1174
|
+
/** Running and stopping commands only; settled results remain in session history. */
|
|
1175
|
+
async listSessionBackgroundCommands(workspaceId, sessionId, options = {}) {
|
|
1172
1176
|
return await this.requestJson(
|
|
1173
1177
|
"GET",
|
|
1174
|
-
`/v1/workspaces/${workspaceId}/sessions/${sessionId}/background-commands
|
|
1178
|
+
`/v1/workspaces/${workspaceId}/sessions/${sessionId}/background-commands`,
|
|
1179
|
+
void 0,
|
|
1180
|
+
{},
|
|
1181
|
+
options
|
|
1175
1182
|
);
|
|
1176
1183
|
}
|
|
1177
1184
|
async cancelSessionBackgroundCommand(workspaceId, sessionId, commandId) {
|
|
@@ -1194,6 +1201,15 @@ var OpenGeniClient = class {
|
|
|
1194
1201
|
...sessionListQuery(options),
|
|
1195
1202
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
1196
1203
|
...search ? { search } : {},
|
|
1204
|
+
...options.channelId !== void 0 ? { channelId: options.channelId ?? "null" } : {},
|
|
1205
|
+
...options.createdBy ? {
|
|
1206
|
+
createdByKind: options.createdBy.kind,
|
|
1207
|
+
createdBySubjectId: options.createdBy.subjectId
|
|
1208
|
+
} : {},
|
|
1209
|
+
...options.updatedFrom ? { updatedFrom: options.updatedFrom } : {},
|
|
1210
|
+
...options.updatedBefore ? { updatedBefore: options.updatedBefore } : {},
|
|
1211
|
+
...options.createdFrom ? { createdFrom: options.createdFrom } : {},
|
|
1212
|
+
...options.createdBefore ? { createdBefore: options.createdBefore } : {},
|
|
1197
1213
|
...options.pinsOnly ? { pinsOnly: "true" } : {},
|
|
1198
1214
|
...options.archivedOnly ? { archivedOnly: "true" } : {}
|
|
1199
1215
|
},
|
|
@@ -1224,8 +1240,14 @@ var OpenGeniClient = class {
|
|
|
1224
1240
|
if (options.archivedOnly) {
|
|
1225
1241
|
throw new Error("The connected OpenGeni API does not support archived session lists");
|
|
1226
1242
|
}
|
|
1243
|
+
if (hasSessionPageFilters(options)) {
|
|
1244
|
+
throw new Error("The connected OpenGeni API does not support filtered session lists");
|
|
1245
|
+
}
|
|
1227
1246
|
return { pinned: [], sessions: response, nextCursor: null };
|
|
1228
1247
|
}
|
|
1248
|
+
if (hasSessionPageFilters(options) && response.filtersApplied !== true) {
|
|
1249
|
+
throw new Error("The connected OpenGeni API does not support filtered session lists");
|
|
1250
|
+
}
|
|
1229
1251
|
return response;
|
|
1230
1252
|
}
|
|
1231
1253
|
/** Compact, bounded workspace agent hierarchy page. */
|
|
@@ -1649,6 +1671,8 @@ var OpenGeniClient = class {
|
|
|
1649
1671
|
`/v1/workspaces/${workspaceId}/scheduled-tasks`,
|
|
1650
1672
|
void 0,
|
|
1651
1673
|
{
|
|
1674
|
+
...options.offset !== void 0 ? { offset: String(options.offset) } : {},
|
|
1675
|
+
...options.sessionId ? { sessionId: options.sessionId } : {},
|
|
1652
1676
|
...options.limit !== void 0 ? { limit: String(options.limit) } : {}
|
|
1653
1677
|
}
|
|
1654
1678
|
);
|
|
@@ -5148,6 +5172,21 @@ var OpenGeniClient = class {
|
|
|
5148
5172
|
`/v1/workspaces/${workspaceId}/github/repositories`
|
|
5149
5173
|
);
|
|
5150
5174
|
}
|
|
5175
|
+
/** Effective confirmation policy for each GitHub identity available to this caller. */
|
|
5176
|
+
async getGitHubActionPolicies(workspaceId) {
|
|
5177
|
+
return await this.requestJson(
|
|
5178
|
+
"GET",
|
|
5179
|
+
`/v1/workspaces/${workspaceId}/github/action-policies`
|
|
5180
|
+
);
|
|
5181
|
+
}
|
|
5182
|
+
/** Change one GitHub action group without broadening review or merge policy. */
|
|
5183
|
+
async updateGitHubActionPolicy(workspaceId, request) {
|
|
5184
|
+
return await this.requestJson(
|
|
5185
|
+
"PATCH",
|
|
5186
|
+
`/v1/workspaces/${workspaceId}/github/action-policies`,
|
|
5187
|
+
request
|
|
5188
|
+
);
|
|
5189
|
+
}
|
|
5151
5190
|
/** Re-sync the installation's repository list from GitHub. */
|
|
5152
5191
|
async syncGitHubRepositories(workspaceId) {
|
|
5153
5192
|
return await this.requestJson(
|
|
@@ -5851,4 +5890,4 @@ export {
|
|
|
5851
5890
|
parseMediaGenerationResult,
|
|
5852
5891
|
OpenGeniClient
|
|
5853
5892
|
};
|
|
5854
|
-
//# sourceMappingURL=chunk-
|
|
5893
|
+
//# sourceMappingURL=chunk-DWCHEOMP.js.map
|