@opencode-ai/sdk 0.0.0-next-14744 → 0.0.0-next-14759
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/v2/gen/sdk.gen.d.ts +58 -109
- package/dist/v2/gen/sdk.gen.js +69 -146
- package/dist/v2/gen/types.gen.d.ts +5789 -2896
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -3222,44 +3222,42 @@ export class Context extends HeyApiClient {
|
|
|
3222
3222
|
return (this._entry ??= new Entry({ client: this.client }));
|
|
3223
3223
|
}
|
|
3224
3224
|
}
|
|
3225
|
-
export class
|
|
3225
|
+
export class Permission2 extends HeyApiClient {
|
|
3226
3226
|
/**
|
|
3227
|
-
* List session
|
|
3227
|
+
* List session permission requests
|
|
3228
3228
|
*
|
|
3229
|
-
* Retrieve pending
|
|
3229
|
+
* Retrieve pending permission requests owned by a session.
|
|
3230
3230
|
*/
|
|
3231
3231
|
list(parameters, options) {
|
|
3232
|
-
const params = buildClientParams([parameters], [
|
|
3233
|
-
{
|
|
3234
|
-
args: [
|
|
3235
|
-
{ in: "path", key: "sessionID" },
|
|
3236
|
-
{ in: "query", key: "location" },
|
|
3237
|
-
],
|
|
3238
|
-
},
|
|
3239
|
-
]);
|
|
3232
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
3240
3233
|
return (options?.client ?? this.client).get({
|
|
3241
|
-
url: "/api/session/{sessionID}/
|
|
3234
|
+
url: "/api/session/{sessionID}/permission",
|
|
3242
3235
|
...options,
|
|
3243
3236
|
...params,
|
|
3244
3237
|
});
|
|
3245
3238
|
}
|
|
3246
3239
|
/**
|
|
3247
|
-
* Create
|
|
3240
|
+
* Create permission request
|
|
3248
3241
|
*
|
|
3249
|
-
*
|
|
3242
|
+
* Evaluate and, when approval is required, create a permission request for a session.
|
|
3250
3243
|
*/
|
|
3251
3244
|
create(parameters, options) {
|
|
3252
3245
|
const params = buildClientParams([parameters], [
|
|
3253
3246
|
{
|
|
3254
3247
|
args: [
|
|
3255
3248
|
{ in: "path", key: "sessionID" },
|
|
3256
|
-
{ in: "
|
|
3257
|
-
{
|
|
3249
|
+
{ in: "body", key: "id" },
|
|
3250
|
+
{ in: "body", key: "action" },
|
|
3251
|
+
{ in: "body", key: "resources" },
|
|
3252
|
+
{ in: "body", key: "save" },
|
|
3253
|
+
{ in: "body", key: "metadata" },
|
|
3254
|
+
{ in: "body", key: "source" },
|
|
3255
|
+
{ in: "body", key: "agent" },
|
|
3258
3256
|
],
|
|
3259
3257
|
},
|
|
3260
3258
|
]);
|
|
3261
3259
|
return (options?.client ?? this.client).post({
|
|
3262
|
-
url: "/api/session/{sessionID}/
|
|
3260
|
+
url: "/api/session/{sessionID}/permission",
|
|
3263
3261
|
...options,
|
|
3264
3262
|
...params,
|
|
3265
3263
|
headers: {
|
|
@@ -3270,65 +3268,43 @@ export class Form extends HeyApiClient {
|
|
|
3270
3268
|
});
|
|
3271
3269
|
}
|
|
3272
3270
|
/**
|
|
3273
|
-
* Get
|
|
3271
|
+
* Get permission request
|
|
3274
3272
|
*
|
|
3275
|
-
* Retrieve a
|
|
3273
|
+
* Retrieve a pending permission request owned by a session.
|
|
3276
3274
|
*/
|
|
3277
3275
|
get(parameters, options) {
|
|
3278
3276
|
const params = buildClientParams([parameters], [
|
|
3279
3277
|
{
|
|
3280
3278
|
args: [
|
|
3281
3279
|
{ in: "path", key: "sessionID" },
|
|
3282
|
-
{ in: "path", key: "
|
|
3283
|
-
{ in: "query", key: "location" },
|
|
3284
|
-
],
|
|
3285
|
-
},
|
|
3286
|
-
]);
|
|
3287
|
-
return (options?.client ?? this.client).get({
|
|
3288
|
-
url: "/api/session/{sessionID}/form/{formID}",
|
|
3289
|
-
...options,
|
|
3290
|
-
...params,
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
|
-
/**
|
|
3294
|
-
* Get form state
|
|
3295
|
-
*
|
|
3296
|
-
* Retrieve the current state for a form.
|
|
3297
|
-
*/
|
|
3298
|
-
state(parameters, options) {
|
|
3299
|
-
const params = buildClientParams([parameters], [
|
|
3300
|
-
{
|
|
3301
|
-
args: [
|
|
3302
|
-
{ in: "path", key: "sessionID" },
|
|
3303
|
-
{ in: "path", key: "formID" },
|
|
3304
|
-
{ in: "query", key: "location" },
|
|
3280
|
+
{ in: "path", key: "requestID" },
|
|
3305
3281
|
],
|
|
3306
3282
|
},
|
|
3307
3283
|
]);
|
|
3308
3284
|
return (options?.client ?? this.client).get({
|
|
3309
|
-
url: "/api/session/{sessionID}/
|
|
3285
|
+
url: "/api/session/{sessionID}/permission/{requestID}",
|
|
3310
3286
|
...options,
|
|
3311
3287
|
...params,
|
|
3312
3288
|
});
|
|
3313
3289
|
}
|
|
3314
3290
|
/**
|
|
3315
|
-
* Reply to
|
|
3291
|
+
* Reply to pending permission request
|
|
3316
3292
|
*
|
|
3317
|
-
*
|
|
3293
|
+
* Respond to a pending permission request owned by a session.
|
|
3318
3294
|
*/
|
|
3319
3295
|
reply(parameters, options) {
|
|
3320
3296
|
const params = buildClientParams([parameters], [
|
|
3321
3297
|
{
|
|
3322
3298
|
args: [
|
|
3323
3299
|
{ in: "path", key: "sessionID" },
|
|
3324
|
-
{ in: "path", key: "
|
|
3325
|
-
{ in: "
|
|
3326
|
-
{
|
|
3300
|
+
{ in: "path", key: "requestID" },
|
|
3301
|
+
{ in: "body", key: "reply" },
|
|
3302
|
+
{ in: "body", key: "message" },
|
|
3327
3303
|
],
|
|
3328
3304
|
},
|
|
3329
3305
|
]);
|
|
3330
3306
|
return (options?.client ?? this.client).post({
|
|
3331
|
-
url: "/api/session/{sessionID}/
|
|
3307
|
+
url: "/api/session/{sessionID}/permission/{requestID}/reply",
|
|
3332
3308
|
...options,
|
|
3333
3309
|
...params,
|
|
3334
3310
|
headers: {
|
|
@@ -3338,64 +3314,38 @@ export class Form extends HeyApiClient {
|
|
|
3338
3314
|
},
|
|
3339
3315
|
});
|
|
3340
3316
|
}
|
|
3341
|
-
/**
|
|
3342
|
-
* Cancel form
|
|
3343
|
-
*
|
|
3344
|
-
* Cancel a pending form.
|
|
3345
|
-
*/
|
|
3346
|
-
cancel(parameters, options) {
|
|
3347
|
-
const params = buildClientParams([parameters], [
|
|
3348
|
-
{
|
|
3349
|
-
args: [
|
|
3350
|
-
{ in: "path", key: "sessionID" },
|
|
3351
|
-
{ in: "path", key: "formID" },
|
|
3352
|
-
{ in: "query", key: "location" },
|
|
3353
|
-
],
|
|
3354
|
-
},
|
|
3355
|
-
]);
|
|
3356
|
-
return (options?.client ?? this.client).post({
|
|
3357
|
-
url: "/api/session/{sessionID}/form/{formID}/cancel",
|
|
3358
|
-
...options,
|
|
3359
|
-
...params,
|
|
3360
|
-
});
|
|
3361
|
-
}
|
|
3362
3317
|
}
|
|
3363
|
-
export class
|
|
3318
|
+
export class Question2 extends HeyApiClient {
|
|
3364
3319
|
/**
|
|
3365
|
-
* List session
|
|
3320
|
+
* List session question requests
|
|
3366
3321
|
*
|
|
3367
|
-
* Retrieve pending
|
|
3322
|
+
* Retrieve pending question requests owned by a session.
|
|
3368
3323
|
*/
|
|
3369
3324
|
list(parameters, options) {
|
|
3370
3325
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
3371
3326
|
return (options?.client ?? this.client).get({
|
|
3372
|
-
url: "/api/session/{sessionID}/
|
|
3327
|
+
url: "/api/session/{sessionID}/question",
|
|
3373
3328
|
...options,
|
|
3374
3329
|
...params,
|
|
3375
3330
|
});
|
|
3376
3331
|
}
|
|
3377
3332
|
/**
|
|
3378
|
-
*
|
|
3333
|
+
* Reply to pending question request
|
|
3379
3334
|
*
|
|
3380
|
-
*
|
|
3335
|
+
* Answer a pending question request owned by a session.
|
|
3381
3336
|
*/
|
|
3382
|
-
|
|
3337
|
+
reply(parameters, options) {
|
|
3383
3338
|
const params = buildClientParams([parameters], [
|
|
3384
3339
|
{
|
|
3385
3340
|
args: [
|
|
3386
3341
|
{ in: "path", key: "sessionID" },
|
|
3387
|
-
{ in: "
|
|
3388
|
-
{
|
|
3389
|
-
{ in: "body", key: "resources" },
|
|
3390
|
-
{ in: "body", key: "save" },
|
|
3391
|
-
{ in: "body", key: "metadata" },
|
|
3392
|
-
{ in: "body", key: "source" },
|
|
3393
|
-
{ in: "body", key: "agent" },
|
|
3342
|
+
{ in: "path", key: "requestID" },
|
|
3343
|
+
{ key: "questionV2Reply", map: "body" },
|
|
3394
3344
|
],
|
|
3395
3345
|
},
|
|
3396
3346
|
]);
|
|
3397
3347
|
return (options?.client ?? this.client).post({
|
|
3398
|
-
url: "/api/session/{sessionID}/
|
|
3348
|
+
url: "/api/session/{sessionID}/question/{requestID}/reply",
|
|
3399
3349
|
...options,
|
|
3400
3350
|
...params,
|
|
3401
3351
|
headers: {
|
|
@@ -3406,50 +3356,23 @@ export class Permission2 extends HeyApiClient {
|
|
|
3406
3356
|
});
|
|
3407
3357
|
}
|
|
3408
3358
|
/**
|
|
3409
|
-
*
|
|
3359
|
+
* Reject pending question request
|
|
3410
3360
|
*
|
|
3411
|
-
*
|
|
3361
|
+
* Reject a pending question request owned by a session.
|
|
3412
3362
|
*/
|
|
3413
|
-
|
|
3414
|
-
const params = buildClientParams([parameters], [
|
|
3415
|
-
{
|
|
3416
|
-
args: [
|
|
3417
|
-
{ in: "path", key: "sessionID" },
|
|
3418
|
-
{ in: "path", key: "requestID" },
|
|
3419
|
-
],
|
|
3420
|
-
},
|
|
3421
|
-
]);
|
|
3422
|
-
return (options?.client ?? this.client).get({
|
|
3423
|
-
url: "/api/session/{sessionID}/permission/{requestID}",
|
|
3424
|
-
...options,
|
|
3425
|
-
...params,
|
|
3426
|
-
});
|
|
3427
|
-
}
|
|
3428
|
-
/**
|
|
3429
|
-
* Reply to pending permission request
|
|
3430
|
-
*
|
|
3431
|
-
* Respond to a pending permission request owned by a session.
|
|
3432
|
-
*/
|
|
3433
|
-
reply(parameters, options) {
|
|
3363
|
+
reject(parameters, options) {
|
|
3434
3364
|
const params = buildClientParams([parameters], [
|
|
3435
3365
|
{
|
|
3436
3366
|
args: [
|
|
3437
3367
|
{ in: "path", key: "sessionID" },
|
|
3438
3368
|
{ in: "path", key: "requestID" },
|
|
3439
|
-
{ in: "body", key: "reply" },
|
|
3440
|
-
{ in: "body", key: "message" },
|
|
3441
3369
|
],
|
|
3442
3370
|
},
|
|
3443
3371
|
]);
|
|
3444
3372
|
return (options?.client ?? this.client).post({
|
|
3445
|
-
url: "/api/session/{sessionID}/
|
|
3373
|
+
url: "/api/session/{sessionID}/question/{requestID}/reject",
|
|
3446
3374
|
...options,
|
|
3447
3375
|
...params,
|
|
3448
|
-
headers: {
|
|
3449
|
-
"Content-Type": "application/json",
|
|
3450
|
-
...options?.headers,
|
|
3451
|
-
...params.headers,
|
|
3452
|
-
},
|
|
3453
3376
|
});
|
|
3454
3377
|
}
|
|
3455
3378
|
}
|
|
@@ -3883,14 +3806,14 @@ export class Session3 extends HeyApiClient {
|
|
|
3883
3806
|
get context2() {
|
|
3884
3807
|
return (this._context ??= new Context({ client: this.client }));
|
|
3885
3808
|
}
|
|
3886
|
-
_form;
|
|
3887
|
-
get form() {
|
|
3888
|
-
return (this._form ??= new Form({ client: this.client }));
|
|
3889
|
-
}
|
|
3890
3809
|
_permission;
|
|
3891
3810
|
get permission() {
|
|
3892
3811
|
return (this._permission ??= new Permission2({ client: this.client }));
|
|
3893
3812
|
}
|
|
3813
|
+
_question;
|
|
3814
|
+
get question() {
|
|
3815
|
+
return (this._question ??= new Question2({ client: this.client }));
|
|
3816
|
+
}
|
|
3894
3817
|
}
|
|
3895
3818
|
export class Model extends HeyApiClient {
|
|
3896
3819
|
/**
|
|
@@ -4250,27 +4173,6 @@ export class Project2 extends HeyApiClient {
|
|
|
4250
4173
|
}
|
|
4251
4174
|
}
|
|
4252
4175
|
export class Request extends HeyApiClient {
|
|
4253
|
-
/**
|
|
4254
|
-
* List pending form requests
|
|
4255
|
-
*
|
|
4256
|
-
* Retrieve pending forms for a location.
|
|
4257
|
-
*/
|
|
4258
|
-
list(parameters, options) {
|
|
4259
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
4260
|
-
return (options?.client ?? this.client).get({
|
|
4261
|
-
url: "/api/form/request",
|
|
4262
|
-
...options,
|
|
4263
|
-
...params,
|
|
4264
|
-
});
|
|
4265
|
-
}
|
|
4266
|
-
}
|
|
4267
|
-
export class Form2 extends HeyApiClient {
|
|
4268
|
-
_request;
|
|
4269
|
-
get request() {
|
|
4270
|
-
return (this._request ??= new Request({ client: this.client }));
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
export class Request2 extends HeyApiClient {
|
|
4274
4176
|
/**
|
|
4275
4177
|
* List pending permission requests
|
|
4276
4178
|
*
|
|
@@ -4316,7 +4218,7 @@ export class Saved extends HeyApiClient {
|
|
|
4316
4218
|
export class Permission3 extends HeyApiClient {
|
|
4317
4219
|
_request;
|
|
4318
4220
|
get request() {
|
|
4319
|
-
return (this._request ??= new
|
|
4221
|
+
return (this._request ??= new Request({ client: this.client }));
|
|
4320
4222
|
}
|
|
4321
4223
|
_saved;
|
|
4322
4224
|
get saved() {
|
|
@@ -4693,6 +4595,27 @@ export class Shell extends HeyApiClient {
|
|
|
4693
4595
|
});
|
|
4694
4596
|
}
|
|
4695
4597
|
}
|
|
4598
|
+
export class Request2 extends HeyApiClient {
|
|
4599
|
+
/**
|
|
4600
|
+
* List pending question requests
|
|
4601
|
+
*
|
|
4602
|
+
* Retrieve pending question requests for a location.
|
|
4603
|
+
*/
|
|
4604
|
+
list(parameters, options) {
|
|
4605
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
4606
|
+
return (options?.client ?? this.client).get({
|
|
4607
|
+
url: "/api/question/request",
|
|
4608
|
+
...options,
|
|
4609
|
+
...params,
|
|
4610
|
+
});
|
|
4611
|
+
}
|
|
4612
|
+
}
|
|
4613
|
+
export class Question3 extends HeyApiClient {
|
|
4614
|
+
_request;
|
|
4615
|
+
get request() {
|
|
4616
|
+
return (this._request ??= new Request2({ client: this.client }));
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4696
4619
|
export class Reference extends HeyApiClient {
|
|
4697
4620
|
/**
|
|
4698
4621
|
* List references
|
|
@@ -4819,10 +4742,6 @@ export class V2 extends HeyApiClient {
|
|
|
4819
4742
|
get project() {
|
|
4820
4743
|
return (this._project ??= new Project2({ client: this.client }));
|
|
4821
4744
|
}
|
|
4822
|
-
_form;
|
|
4823
|
-
get form() {
|
|
4824
|
-
return (this._form ??= new Form2({ client: this.client }));
|
|
4825
|
-
}
|
|
4826
4745
|
_permission;
|
|
4827
4746
|
get permission() {
|
|
4828
4747
|
return (this._permission ??= new Permission3({ client: this.client }));
|
|
@@ -4851,6 +4770,10 @@ export class V2 extends HeyApiClient {
|
|
|
4851
4770
|
get shell() {
|
|
4852
4771
|
return (this._shell ??= new Shell({ client: this.client }));
|
|
4853
4772
|
}
|
|
4773
|
+
_question;
|
|
4774
|
+
get question() {
|
|
4775
|
+
return (this._question ??= new Question3({ client: this.client }));
|
|
4776
|
+
}
|
|
4854
4777
|
_reference;
|
|
4855
4778
|
get reference() {
|
|
4856
4779
|
return (this._reference ??= new Reference({ client: this.client }));
|