@opencode-ai/client 0.0.0-next-15633 → 0.0.0-next-15635
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/effect/api/api.d.ts +44 -34
- package/dist/effect/generated/client.d.ts +34 -26
- package/dist/effect/generated/client.js +16 -14
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +11 -0
- package/dist/promise/generated/types.d.ts +12 -0
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -379,78 +379,88 @@ export type Endpoint10_1Input = {
|
|
|
379
379
|
};
|
|
380
380
|
export type Endpoint10_1Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.get"]>>;
|
|
381
381
|
export type IntegrationGetOperation<E = never> = (input: Endpoint10_1Input) => Effect.Effect<Endpoint10_1Output, E>;
|
|
382
|
-
type Endpoint10_2Request = Parameters<RawClient["server.integration"]["integration.
|
|
382
|
+
type Endpoint10_2Request = Parameters<RawClient["server.integration"]["integration.wellknown.add"]>[0];
|
|
383
383
|
export type Endpoint10_2Input = {
|
|
384
|
-
readonly integrationID: Endpoint10_2Request["params"]["integrationID"];
|
|
385
384
|
readonly location?: Endpoint10_2Request["query"]["location"];
|
|
386
|
-
readonly
|
|
387
|
-
readonly label?: Endpoint10_2Request["payload"]["label"];
|
|
385
|
+
readonly url: Endpoint10_2Request["payload"]["url"];
|
|
388
386
|
};
|
|
389
|
-
export type Endpoint10_2Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.
|
|
390
|
-
export type
|
|
391
|
-
type Endpoint10_3Request = Parameters<RawClient["server.integration"]["integration.
|
|
387
|
+
export type Endpoint10_2Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.wellknown.add"]>>;
|
|
388
|
+
export type IntegrationWellknownAddOperation<E = never> = (input: Endpoint10_2Input) => Effect.Effect<Endpoint10_2Output, E>;
|
|
389
|
+
type Endpoint10_3Request = Parameters<RawClient["server.integration"]["integration.connect.key"]>[0];
|
|
392
390
|
export type Endpoint10_3Input = {
|
|
393
391
|
readonly integrationID: Endpoint10_3Request["params"]["integrationID"];
|
|
394
392
|
readonly location?: Endpoint10_3Request["query"]["location"];
|
|
395
|
-
readonly
|
|
396
|
-
readonly inputs: Endpoint10_3Request["payload"]["inputs"];
|
|
393
|
+
readonly key: Endpoint10_3Request["payload"]["key"];
|
|
397
394
|
readonly label?: Endpoint10_3Request["payload"]["label"];
|
|
398
395
|
};
|
|
399
|
-
export type Endpoint10_3Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.
|
|
400
|
-
export type
|
|
401
|
-
type Endpoint10_4Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
396
|
+
export type Endpoint10_3Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.connect.key"]>>;
|
|
397
|
+
export type IntegrationConnectKeyOperation<E = never> = (input: Endpoint10_3Input) => Effect.Effect<Endpoint10_3Output, E>;
|
|
398
|
+
type Endpoint10_4Request = Parameters<RawClient["server.integration"]["integration.oauth.connect"]>[0];
|
|
402
399
|
export type Endpoint10_4Input = {
|
|
403
400
|
readonly integrationID: Endpoint10_4Request["params"]["integrationID"];
|
|
404
|
-
readonly attemptID: Endpoint10_4Request["params"]["attemptID"];
|
|
405
401
|
readonly location?: Endpoint10_4Request["query"]["location"];
|
|
402
|
+
readonly methodID: Endpoint10_4Request["payload"]["methodID"];
|
|
403
|
+
readonly inputs: Endpoint10_4Request["payload"]["inputs"];
|
|
404
|
+
readonly label?: Endpoint10_4Request["payload"]["label"];
|
|
406
405
|
};
|
|
407
|
-
export type Endpoint10_4Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.
|
|
408
|
-
export type
|
|
409
|
-
type Endpoint10_5Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
406
|
+
export type Endpoint10_4Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.connect"]>>;
|
|
407
|
+
export type IntegrationOauthConnectOperation<E = never> = (input: Endpoint10_4Input) => Effect.Effect<Endpoint10_4Output, E>;
|
|
408
|
+
type Endpoint10_5Request = Parameters<RawClient["server.integration"]["integration.oauth.status"]>[0];
|
|
410
409
|
export type Endpoint10_5Input = {
|
|
411
410
|
readonly integrationID: Endpoint10_5Request["params"]["integrationID"];
|
|
412
411
|
readonly attemptID: Endpoint10_5Request["params"]["attemptID"];
|
|
413
412
|
readonly location?: Endpoint10_5Request["query"]["location"];
|
|
414
|
-
readonly code?: Endpoint10_5Request["payload"]["code"];
|
|
415
413
|
};
|
|
416
|
-
export type Endpoint10_5Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.
|
|
417
|
-
export type
|
|
418
|
-
type Endpoint10_6Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
414
|
+
export type Endpoint10_5Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.status"]>>;
|
|
415
|
+
export type IntegrationOauthStatusOperation<E = never> = (input: Endpoint10_5Input) => Effect.Effect<Endpoint10_5Output, E>;
|
|
416
|
+
type Endpoint10_6Request = Parameters<RawClient["server.integration"]["integration.oauth.complete"]>[0];
|
|
419
417
|
export type Endpoint10_6Input = {
|
|
420
418
|
readonly integrationID: Endpoint10_6Request["params"]["integrationID"];
|
|
421
419
|
readonly attemptID: Endpoint10_6Request["params"]["attemptID"];
|
|
422
420
|
readonly location?: Endpoint10_6Request["query"]["location"];
|
|
421
|
+
readonly code?: Endpoint10_6Request["payload"]["code"];
|
|
423
422
|
};
|
|
424
|
-
export type Endpoint10_6Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.
|
|
425
|
-
export type
|
|
426
|
-
type Endpoint10_7Request = Parameters<RawClient["server.integration"]["integration.
|
|
423
|
+
export type Endpoint10_6Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.complete"]>>;
|
|
424
|
+
export type IntegrationOauthCompleteOperation<E = never> = (input: Endpoint10_6Input) => Effect.Effect<Endpoint10_6Output, E>;
|
|
425
|
+
type Endpoint10_7Request = Parameters<RawClient["server.integration"]["integration.oauth.cancel"]>[0];
|
|
427
426
|
export type Endpoint10_7Input = {
|
|
428
427
|
readonly integrationID: Endpoint10_7Request["params"]["integrationID"];
|
|
428
|
+
readonly attemptID: Endpoint10_7Request["params"]["attemptID"];
|
|
429
429
|
readonly location?: Endpoint10_7Request["query"]["location"];
|
|
430
|
-
readonly methodID: Endpoint10_7Request["payload"]["methodID"];
|
|
431
|
-
readonly label?: Endpoint10_7Request["payload"]["label"];
|
|
432
430
|
};
|
|
433
|
-
export type Endpoint10_7Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.
|
|
434
|
-
export type
|
|
435
|
-
type Endpoint10_8Request = Parameters<RawClient["server.integration"]["integration.command.
|
|
431
|
+
export type Endpoint10_7Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.oauth.cancel"]>>;
|
|
432
|
+
export type IntegrationOauthCancelOperation<E = never> = (input: Endpoint10_7Input) => Effect.Effect<Endpoint10_7Output, E>;
|
|
433
|
+
type Endpoint10_8Request = Parameters<RawClient["server.integration"]["integration.command.connect"]>[0];
|
|
436
434
|
export type Endpoint10_8Input = {
|
|
437
435
|
readonly integrationID: Endpoint10_8Request["params"]["integrationID"];
|
|
438
|
-
readonly attemptID: Endpoint10_8Request["params"]["attemptID"];
|
|
439
436
|
readonly location?: Endpoint10_8Request["query"]["location"];
|
|
437
|
+
readonly methodID: Endpoint10_8Request["payload"]["methodID"];
|
|
438
|
+
readonly label?: Endpoint10_8Request["payload"]["label"];
|
|
440
439
|
};
|
|
441
|
-
export type Endpoint10_8Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.command.
|
|
442
|
-
export type
|
|
443
|
-
type Endpoint10_9Request = Parameters<RawClient["server.integration"]["integration.command.
|
|
440
|
+
export type Endpoint10_8Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.command.connect"]>>;
|
|
441
|
+
export type IntegrationCommandConnectOperation<E = never> = (input: Endpoint10_8Input) => Effect.Effect<Endpoint10_8Output, E>;
|
|
442
|
+
type Endpoint10_9Request = Parameters<RawClient["server.integration"]["integration.command.status"]>[0];
|
|
444
443
|
export type Endpoint10_9Input = {
|
|
445
444
|
readonly integrationID: Endpoint10_9Request["params"]["integrationID"];
|
|
446
445
|
readonly attemptID: Endpoint10_9Request["params"]["attemptID"];
|
|
447
446
|
readonly location?: Endpoint10_9Request["query"]["location"];
|
|
448
447
|
};
|
|
449
|
-
export type Endpoint10_9Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.command.
|
|
450
|
-
export type
|
|
448
|
+
export type Endpoint10_9Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.command.status"]>>;
|
|
449
|
+
export type IntegrationCommandStatusOperation<E = never> = (input: Endpoint10_9Input) => Effect.Effect<Endpoint10_9Output, E>;
|
|
450
|
+
type Endpoint10_10Request = Parameters<RawClient["server.integration"]["integration.command.cancel"]>[0];
|
|
451
|
+
export type Endpoint10_10Input = {
|
|
452
|
+
readonly integrationID: Endpoint10_10Request["params"]["integrationID"];
|
|
453
|
+
readonly attemptID: Endpoint10_10Request["params"]["attemptID"];
|
|
454
|
+
readonly location?: Endpoint10_10Request["query"]["location"];
|
|
455
|
+
};
|
|
456
|
+
export type Endpoint10_10Output = EffectValue<ReturnType<RawClient["server.integration"]["integration.command.cancel"]>>;
|
|
457
|
+
export type IntegrationCommandCancelOperation<E = never> = (input: Endpoint10_10Input) => Effect.Effect<Endpoint10_10Output, E>;
|
|
451
458
|
export interface IntegrationApi<E = never> {
|
|
452
459
|
readonly list: IntegrationListOperation<E>;
|
|
453
460
|
readonly get: IntegrationGetOperation<E>;
|
|
461
|
+
readonly wellknown: {
|
|
462
|
+
readonly add: IntegrationWellknownAddOperation<E>;
|
|
463
|
+
};
|
|
454
464
|
readonly connect: {
|
|
455
465
|
readonly key: IntegrationConnectKeyOperation<E>;
|
|
456
466
|
};
|
|
@@ -225,59 +225,64 @@ type Endpoint10_1Input = {
|
|
|
225
225
|
readonly integrationID: Endpoint10_1Request["params"]["integrationID"];
|
|
226
226
|
readonly location?: Endpoint10_1Request["query"]["location"];
|
|
227
227
|
};
|
|
228
|
-
type Endpoint10_2Request = Parameters<RawClient["server.integration"]["integration.
|
|
228
|
+
type Endpoint10_2Request = Parameters<RawClient["server.integration"]["integration.wellknown.add"]>[0];
|
|
229
229
|
type Endpoint10_2Input = {
|
|
230
|
-
readonly integrationID: Endpoint10_2Request["params"]["integrationID"];
|
|
231
230
|
readonly location?: Endpoint10_2Request["query"]["location"];
|
|
232
|
-
readonly
|
|
233
|
-
readonly label?: Endpoint10_2Request["payload"]["label"];
|
|
231
|
+
readonly url: Endpoint10_2Request["payload"]["url"];
|
|
234
232
|
};
|
|
235
|
-
type Endpoint10_3Request = Parameters<RawClient["server.integration"]["integration.
|
|
233
|
+
type Endpoint10_3Request = Parameters<RawClient["server.integration"]["integration.connect.key"]>[0];
|
|
236
234
|
type Endpoint10_3Input = {
|
|
237
235
|
readonly integrationID: Endpoint10_3Request["params"]["integrationID"];
|
|
238
236
|
readonly location?: Endpoint10_3Request["query"]["location"];
|
|
239
|
-
readonly
|
|
240
|
-
readonly inputs: Endpoint10_3Request["payload"]["inputs"];
|
|
237
|
+
readonly key: Endpoint10_3Request["payload"]["key"];
|
|
241
238
|
readonly label?: Endpoint10_3Request["payload"]["label"];
|
|
242
239
|
};
|
|
243
|
-
type Endpoint10_4Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
240
|
+
type Endpoint10_4Request = Parameters<RawClient["server.integration"]["integration.oauth.connect"]>[0];
|
|
244
241
|
type Endpoint10_4Input = {
|
|
245
242
|
readonly integrationID: Endpoint10_4Request["params"]["integrationID"];
|
|
246
|
-
readonly attemptID: Endpoint10_4Request["params"]["attemptID"];
|
|
247
243
|
readonly location?: Endpoint10_4Request["query"]["location"];
|
|
244
|
+
readonly methodID: Endpoint10_4Request["payload"]["methodID"];
|
|
245
|
+
readonly inputs: Endpoint10_4Request["payload"]["inputs"];
|
|
246
|
+
readonly label?: Endpoint10_4Request["payload"]["label"];
|
|
248
247
|
};
|
|
249
|
-
type Endpoint10_5Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
248
|
+
type Endpoint10_5Request = Parameters<RawClient["server.integration"]["integration.oauth.status"]>[0];
|
|
250
249
|
type Endpoint10_5Input = {
|
|
251
250
|
readonly integrationID: Endpoint10_5Request["params"]["integrationID"];
|
|
252
251
|
readonly attemptID: Endpoint10_5Request["params"]["attemptID"];
|
|
253
252
|
readonly location?: Endpoint10_5Request["query"]["location"];
|
|
254
|
-
readonly code?: Endpoint10_5Request["payload"]["code"];
|
|
255
253
|
};
|
|
256
|
-
type Endpoint10_6Request = Parameters<RawClient["server.integration"]["integration.oauth.
|
|
254
|
+
type Endpoint10_6Request = Parameters<RawClient["server.integration"]["integration.oauth.complete"]>[0];
|
|
257
255
|
type Endpoint10_6Input = {
|
|
258
256
|
readonly integrationID: Endpoint10_6Request["params"]["integrationID"];
|
|
259
257
|
readonly attemptID: Endpoint10_6Request["params"]["attemptID"];
|
|
260
258
|
readonly location?: Endpoint10_6Request["query"]["location"];
|
|
259
|
+
readonly code?: Endpoint10_6Request["payload"]["code"];
|
|
261
260
|
};
|
|
262
|
-
type Endpoint10_7Request = Parameters<RawClient["server.integration"]["integration.
|
|
261
|
+
type Endpoint10_7Request = Parameters<RawClient["server.integration"]["integration.oauth.cancel"]>[0];
|
|
263
262
|
type Endpoint10_7Input = {
|
|
264
263
|
readonly integrationID: Endpoint10_7Request["params"]["integrationID"];
|
|
264
|
+
readonly attemptID: Endpoint10_7Request["params"]["attemptID"];
|
|
265
265
|
readonly location?: Endpoint10_7Request["query"]["location"];
|
|
266
|
-
readonly methodID: Endpoint10_7Request["payload"]["methodID"];
|
|
267
|
-
readonly label?: Endpoint10_7Request["payload"]["label"];
|
|
268
266
|
};
|
|
269
|
-
type Endpoint10_8Request = Parameters<RawClient["server.integration"]["integration.command.
|
|
267
|
+
type Endpoint10_8Request = Parameters<RawClient["server.integration"]["integration.command.connect"]>[0];
|
|
270
268
|
type Endpoint10_8Input = {
|
|
271
269
|
readonly integrationID: Endpoint10_8Request["params"]["integrationID"];
|
|
272
|
-
readonly attemptID: Endpoint10_8Request["params"]["attemptID"];
|
|
273
270
|
readonly location?: Endpoint10_8Request["query"]["location"];
|
|
271
|
+
readonly methodID: Endpoint10_8Request["payload"]["methodID"];
|
|
272
|
+
readonly label?: Endpoint10_8Request["payload"]["label"];
|
|
274
273
|
};
|
|
275
|
-
type Endpoint10_9Request = Parameters<RawClient["server.integration"]["integration.command.
|
|
274
|
+
type Endpoint10_9Request = Parameters<RawClient["server.integration"]["integration.command.status"]>[0];
|
|
276
275
|
type Endpoint10_9Input = {
|
|
277
276
|
readonly integrationID: Endpoint10_9Request["params"]["integrationID"];
|
|
278
277
|
readonly attemptID: Endpoint10_9Request["params"]["attemptID"];
|
|
279
278
|
readonly location?: Endpoint10_9Request["query"]["location"];
|
|
280
279
|
};
|
|
280
|
+
type Endpoint10_10Request = Parameters<RawClient["server.integration"]["integration.command.cancel"]>[0];
|
|
281
|
+
type Endpoint10_10Input = {
|
|
282
|
+
readonly integrationID: Endpoint10_10Request["params"]["integrationID"];
|
|
283
|
+
readonly attemptID: Endpoint10_10Request["params"]["attemptID"];
|
|
284
|
+
readonly location?: Endpoint10_10Request["query"]["location"];
|
|
285
|
+
};
|
|
281
286
|
type Endpoint11_0Request = Parameters<RawClient["server.mcp"]["mcp.list"]>[0];
|
|
282
287
|
type Endpoint11_0Input = {
|
|
283
288
|
readonly location?: Endpoint11_0Request["query"]["location"];
|
|
@@ -3150,15 +3155,18 @@ export declare const make: (options?: {
|
|
|
3150
3155
|
})[];
|
|
3151
3156
|
} | undefined;
|
|
3152
3157
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3158
|
+
wellknown: {
|
|
3159
|
+
add: (input: Endpoint10_2Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3160
|
+
};
|
|
3153
3161
|
connect: {
|
|
3154
|
-
key: (input:
|
|
3162
|
+
key: (input: Endpoint10_3Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3155
3163
|
};
|
|
3156
3164
|
oauth: {
|
|
3157
|
-
connect: (input:
|
|
3165
|
+
connect: (input: Endpoint10_4Input) => Effect.Effect<{
|
|
3158
3166
|
readonly location: import("@opencode-ai/schema/location").Info;
|
|
3159
3167
|
readonly data: import("@opencode-ai/schema/integration").Attempt;
|
|
3160
3168
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3161
|
-
status: (input:
|
|
3169
|
+
status: (input: Endpoint10_5Input) => Effect.Effect<{
|
|
3162
3170
|
readonly location: import("@opencode-ai/schema/location").Info;
|
|
3163
3171
|
readonly data: {
|
|
3164
3172
|
readonly status: "pending";
|
|
@@ -3187,11 +3195,11 @@ export declare const make: (options?: {
|
|
|
3187
3195
|
};
|
|
3188
3196
|
};
|
|
3189
3197
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3190
|
-
complete: (input:
|
|
3191
|
-
cancel: (input:
|
|
3198
|
+
complete: (input: Endpoint10_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3199
|
+
cancel: (input: Endpoint10_7Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3192
3200
|
};
|
|
3193
3201
|
command: {
|
|
3194
|
-
connect: (input:
|
|
3202
|
+
connect: (input: Endpoint10_8Input) => Effect.Effect<{
|
|
3195
3203
|
readonly location: import("@opencode-ai/schema/location").Info;
|
|
3196
3204
|
readonly data: {
|
|
3197
3205
|
readonly attemptID: string & import("effect/Brand").Brand<"Integration.AttemptID">;
|
|
@@ -3201,7 +3209,7 @@ export declare const make: (options?: {
|
|
|
3201
3209
|
};
|
|
3202
3210
|
};
|
|
3203
3211
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3204
|
-
status: (input:
|
|
3212
|
+
status: (input: Endpoint10_9Input) => Effect.Effect<{
|
|
3205
3213
|
readonly location: import("@opencode-ai/schema/location").Info;
|
|
3206
3214
|
readonly data: {
|
|
3207
3215
|
readonly status: "pending";
|
|
@@ -3231,7 +3239,7 @@ export declare const make: (options?: {
|
|
|
3231
3239
|
};
|
|
3232
3240
|
};
|
|
3233
3241
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3234
|
-
cancel: (input:
|
|
3242
|
+
cancel: (input: Endpoint10_10Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3235
3243
|
};
|
|
3236
3244
|
};
|
|
3237
3245
|
mcp: {
|
|
@@ -162,53 +162,55 @@ const Endpoint10_1 = (raw) => (input) => raw["integration.get"]({
|
|
|
162
162
|
params: { integrationID: input["integrationID"] },
|
|
163
163
|
query: { location: input["location"] },
|
|
164
164
|
}).pipe(Effect.mapError(mapClientError));
|
|
165
|
-
const Endpoint10_2 = (raw) => (input) => raw["integration.
|
|
165
|
+
const Endpoint10_2 = (raw) => (input) => raw["integration.wellknown.add"]({ query: { location: input["location"] }, payload: { url: input["url"] } }).pipe(Effect.mapError(mapClientError));
|
|
166
|
+
const Endpoint10_3 = (raw) => (input) => raw["integration.connect.key"]({
|
|
166
167
|
params: { integrationID: input["integrationID"] },
|
|
167
168
|
query: { location: input["location"] },
|
|
168
169
|
payload: { key: input["key"], label: input["label"] },
|
|
169
170
|
}).pipe(Effect.mapError(mapClientError));
|
|
170
|
-
const
|
|
171
|
+
const Endpoint10_4 = (raw) => (input) => raw["integration.oauth.connect"]({
|
|
171
172
|
params: { integrationID: input["integrationID"] },
|
|
172
173
|
query: { location: input["location"] },
|
|
173
174
|
payload: { methodID: input["methodID"], inputs: input["inputs"], label: input["label"] },
|
|
174
175
|
}).pipe(Effect.mapError(mapClientError));
|
|
175
|
-
const
|
|
176
|
+
const Endpoint10_5 = (raw) => (input) => raw["integration.oauth.status"]({
|
|
176
177
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
177
178
|
query: { location: input["location"] },
|
|
178
179
|
}).pipe(Effect.mapError(mapClientError));
|
|
179
|
-
const
|
|
180
|
+
const Endpoint10_6 = (raw) => (input) => raw["integration.oauth.complete"]({
|
|
180
181
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
181
182
|
query: { location: input["location"] },
|
|
182
183
|
payload: { code: input["code"] },
|
|
183
184
|
}).pipe(Effect.mapError(mapClientError));
|
|
184
|
-
const
|
|
185
|
+
const Endpoint10_7 = (raw) => (input) => raw["integration.oauth.cancel"]({
|
|
185
186
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
186
187
|
query: { location: input["location"] },
|
|
187
188
|
}).pipe(Effect.mapError(mapClientError));
|
|
188
|
-
const
|
|
189
|
+
const Endpoint10_8 = (raw) => (input) => raw["integration.command.connect"]({
|
|
189
190
|
params: { integrationID: input["integrationID"] },
|
|
190
191
|
query: { location: input["location"] },
|
|
191
192
|
payload: { methodID: input["methodID"], label: input["label"] },
|
|
192
193
|
}).pipe(Effect.mapError(mapClientError));
|
|
193
|
-
const
|
|
194
|
+
const Endpoint10_9 = (raw) => (input) => raw["integration.command.status"]({
|
|
194
195
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
195
196
|
query: { location: input["location"] },
|
|
196
197
|
}).pipe(Effect.mapError(mapClientError));
|
|
197
|
-
const
|
|
198
|
+
const Endpoint10_10 = (raw) => (input) => raw["integration.command.cancel"]({
|
|
198
199
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
199
200
|
query: { location: input["location"] },
|
|
200
201
|
}).pipe(Effect.mapError(mapClientError));
|
|
201
202
|
const adaptGroup10 = (raw) => ({
|
|
202
203
|
list: Endpoint10_0(raw),
|
|
203
204
|
get: Endpoint10_1(raw),
|
|
204
|
-
|
|
205
|
+
wellknown: { add: Endpoint10_2(raw) },
|
|
206
|
+
connect: { key: Endpoint10_3(raw) },
|
|
205
207
|
oauth: {
|
|
206
|
-
connect:
|
|
207
|
-
status:
|
|
208
|
-
complete:
|
|
209
|
-
cancel:
|
|
208
|
+
connect: Endpoint10_4(raw),
|
|
209
|
+
status: Endpoint10_5(raw),
|
|
210
|
+
complete: Endpoint10_6(raw),
|
|
211
|
+
cancel: Endpoint10_7(raw),
|
|
210
212
|
},
|
|
211
|
-
command: { connect:
|
|
213
|
+
command: { connect: Endpoint10_8(raw), status: Endpoint10_9(raw), cancel: Endpoint10_10(raw) },
|
|
212
214
|
});
|
|
213
215
|
const Endpoint11_0 = (raw) => (input) => raw["mcp.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
214
216
|
const Endpoint11_1 = (raw) => (input) => raw["mcp.resource.catalog"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput } from "./types";
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -85,6 +85,9 @@ export declare function make(options: ClientOptions): {
|
|
|
85
85
|
integration: {
|
|
86
86
|
list: (input?: IntegrationListInput, requestOptions?: RequestOptions) => Promise<IntegrationListOutput>;
|
|
87
87
|
get: (input: IntegrationGetInput, requestOptions?: RequestOptions) => Promise<IntegrationGetOutput>;
|
|
88
|
+
wellknown: {
|
|
89
|
+
add: (input: IntegrationWellknownAddInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
90
|
+
};
|
|
88
91
|
connect: {
|
|
89
92
|
key: (input: IntegrationConnectKeyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
90
93
|
};
|
|
@@ -514,6 +514,17 @@ export function make(options) {
|
|
|
514
514
|
declaredStatuses: [401, 400],
|
|
515
515
|
empty: false,
|
|
516
516
|
}, requestOptions),
|
|
517
|
+
wellknown: {
|
|
518
|
+
add: (input, requestOptions) => request({
|
|
519
|
+
method: "POST",
|
|
520
|
+
path: `/api/experimental/integration/wellknown`,
|
|
521
|
+
query: { location: input["location"] },
|
|
522
|
+
body: { url: input["url"] },
|
|
523
|
+
successStatus: 204,
|
|
524
|
+
declaredStatuses: [400, 401],
|
|
525
|
+
empty: true,
|
|
526
|
+
}, requestOptions),
|
|
527
|
+
},
|
|
517
528
|
connect: {
|
|
518
529
|
key: (input, requestOptions) => request({
|
|
519
530
|
method: "POST",
|
|
@@ -4384,6 +4384,18 @@ export type IntegrationGetOutput = {
|
|
|
4384
4384
|
};
|
|
4385
4385
|
data: IntegrationInfo | null;
|
|
4386
4386
|
};
|
|
4387
|
+
export type IntegrationWellknownAddInput = {
|
|
4388
|
+
readonly location?: {
|
|
4389
|
+
readonly location?: {
|
|
4390
|
+
readonly directory?: string | undefined;
|
|
4391
|
+
readonly workspace?: string | undefined;
|
|
4392
|
+
} | undefined;
|
|
4393
|
+
}["location"];
|
|
4394
|
+
readonly url: {
|
|
4395
|
+
readonly url: string;
|
|
4396
|
+
}["url"];
|
|
4397
|
+
};
|
|
4398
|
+
export type IntegrationWellknownAddOutput = void;
|
|
4387
4399
|
export type IntegrationConnectKeyInput = {
|
|
4388
4400
|
readonly integrationID: {
|
|
4389
4401
|
readonly integrationID: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15635",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typecheck": "tsgo --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
56
|
+
"@opencode-ai/schema": "0.0.0-next-15635",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-15635"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"effect": "4.0.0-beta.83"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
69
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
69
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15635",
|
|
70
70
|
"@tsconfig/bun": "1.0.9",
|
|
71
71
|
"@types/bun": "1.3.13",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|