@opencode-ai/client 0.0.0-next-15270 → 0.0.0-next-15273
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 +1 -3
- package/dist/effect/generated/client.d.ts +490 -67
- package/dist/effect/generated/client.js +1 -8
- package/dist/promise/generated/client.d.ts +293 -38
- package/dist/promise/generated/client.js +1 -8
- package/dist/promise/generated/types.d.ts +1588 -950
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -501,9 +501,7 @@ export type Endpoint14_2Input = {
|
|
|
501
501
|
readonly id?: Endpoint14_2Request["payload"]["id"];
|
|
502
502
|
readonly title: Endpoint14_2Request["payload"]["title"];
|
|
503
503
|
readonly metadata?: Endpoint14_2Request["payload"]["metadata"];
|
|
504
|
-
readonly
|
|
505
|
-
readonly fields?: Endpoint14_2Request["payload"]["fields"];
|
|
506
|
-
readonly url?: Endpoint14_2Request["payload"]["url"];
|
|
504
|
+
readonly fields: Endpoint14_2Request["payload"]["fields"];
|
|
507
505
|
};
|
|
508
506
|
export type Endpoint14_2Output = EffectValue<ReturnType<RawClient["server.form"]["session.form.create"]>>["data"];
|
|
509
507
|
export type FormCreateOperation<E = never> = (input: Endpoint14_2Input) => Effect.Effect<Endpoint14_2Output, E>;
|
|
@@ -294,9 +294,7 @@ type Endpoint14_2Input = {
|
|
|
294
294
|
readonly id?: Endpoint14_2Request["payload"]["id"];
|
|
295
295
|
readonly title: Endpoint14_2Request["payload"]["title"];
|
|
296
296
|
readonly metadata?: Endpoint14_2Request["payload"]["metadata"];
|
|
297
|
-
readonly
|
|
298
|
-
readonly fields?: Endpoint14_2Request["payload"]["fields"];
|
|
299
|
-
readonly url?: Endpoint14_2Request["payload"]["url"];
|
|
297
|
+
readonly fields: Endpoint14_2Request["payload"]["fields"];
|
|
300
298
|
};
|
|
301
299
|
type Endpoint14_3Request = Parameters<RawClient["server.form"]["session.form.get"]>[0];
|
|
302
300
|
type Endpoint14_3Input = {
|
|
@@ -3139,9 +3137,8 @@ export declare const make: (options?: {
|
|
|
3139
3137
|
request: {
|
|
3140
3138
|
list: (input?: Endpoint14_0Input) => Effect.Effect<{
|
|
3141
3139
|
readonly location: import("@opencode-ai/schema/location").Info;
|
|
3142
|
-
readonly data: readonly
|
|
3143
|
-
readonly
|
|
3144
|
-
readonly fields: readonly ({
|
|
3140
|
+
readonly data: readonly {
|
|
3141
|
+
readonly fields: readonly [{
|
|
3145
3142
|
readonly type: "string";
|
|
3146
3143
|
readonly key: string;
|
|
3147
3144
|
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
@@ -3224,28 +3221,113 @@ export declare const make: (options?: {
|
|
|
3224
3221
|
readonly op: "eq" | "neq";
|
|
3225
3222
|
readonly value: string | number | boolean;
|
|
3226
3223
|
}[] | undefined;
|
|
3227
|
-
}
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
readonly
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3224
|
+
} | {
|
|
3225
|
+
readonly key: string;
|
|
3226
|
+
readonly type: "external";
|
|
3227
|
+
readonly url: string;
|
|
3228
|
+
readonly title?: string | undefined;
|
|
3229
|
+
readonly description?: string | undefined;
|
|
3230
|
+
}, ...({
|
|
3231
|
+
readonly type: "string";
|
|
3232
|
+
readonly key: string;
|
|
3233
|
+
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
3234
|
+
readonly minLength?: number | undefined;
|
|
3235
|
+
readonly maxLength?: number | undefined;
|
|
3236
|
+
readonly pattern?: string | undefined;
|
|
3237
|
+
readonly placeholder?: string | undefined;
|
|
3238
|
+
readonly default?: string | undefined;
|
|
3239
|
+
readonly options?: readonly {
|
|
3240
|
+
readonly value: string;
|
|
3241
|
+
readonly label: string;
|
|
3242
|
+
readonly description?: string | undefined;
|
|
3243
|
+
}[] | undefined;
|
|
3244
|
+
readonly custom?: boolean | undefined;
|
|
3245
|
+
readonly title?: string | undefined;
|
|
3246
|
+
readonly description?: string | undefined;
|
|
3247
|
+
readonly required?: boolean | undefined;
|
|
3248
|
+
readonly when?: readonly {
|
|
3249
|
+
readonly key: string;
|
|
3250
|
+
readonly op: "eq" | "neq";
|
|
3251
|
+
readonly value: string | number | boolean;
|
|
3252
|
+
}[] | undefined;
|
|
3253
|
+
} | {
|
|
3254
|
+
readonly type: "number";
|
|
3255
|
+
readonly key: string;
|
|
3256
|
+
readonly minimum?: number | undefined;
|
|
3257
|
+
readonly maximum?: number | undefined;
|
|
3258
|
+
readonly default?: number | undefined;
|
|
3259
|
+
readonly title?: string | undefined;
|
|
3260
|
+
readonly description?: string | undefined;
|
|
3261
|
+
readonly required?: boolean | undefined;
|
|
3262
|
+
readonly when?: readonly {
|
|
3263
|
+
readonly key: string;
|
|
3264
|
+
readonly op: "eq" | "neq";
|
|
3265
|
+
readonly value: string | number | boolean;
|
|
3266
|
+
}[] | undefined;
|
|
3267
|
+
} | {
|
|
3268
|
+
readonly type: "integer";
|
|
3269
|
+
readonly key: string;
|
|
3270
|
+
readonly minimum?: number | undefined;
|
|
3271
|
+
readonly maximum?: number | undefined;
|
|
3272
|
+
readonly default?: number | undefined;
|
|
3273
|
+
readonly title?: string | undefined;
|
|
3274
|
+
readonly description?: string | undefined;
|
|
3275
|
+
readonly required?: boolean | undefined;
|
|
3276
|
+
readonly when?: readonly {
|
|
3277
|
+
readonly key: string;
|
|
3278
|
+
readonly op: "eq" | "neq";
|
|
3279
|
+
readonly value: string | number | boolean;
|
|
3280
|
+
}[] | undefined;
|
|
3281
|
+
} | {
|
|
3282
|
+
readonly type: "boolean";
|
|
3283
|
+
readonly key: string;
|
|
3284
|
+
readonly default?: boolean | undefined;
|
|
3285
|
+
readonly title?: string | undefined;
|
|
3286
|
+
readonly description?: string | undefined;
|
|
3287
|
+
readonly required?: boolean | undefined;
|
|
3288
|
+
readonly when?: readonly {
|
|
3289
|
+
readonly key: string;
|
|
3290
|
+
readonly op: "eq" | "neq";
|
|
3291
|
+
readonly value: string | number | boolean;
|
|
3292
|
+
}[] | undefined;
|
|
3293
|
+
} | {
|
|
3294
|
+
readonly type: "multiselect";
|
|
3295
|
+
readonly options: readonly {
|
|
3296
|
+
readonly value: string;
|
|
3297
|
+
readonly label: string;
|
|
3298
|
+
readonly description?: string | undefined;
|
|
3299
|
+
}[];
|
|
3300
|
+
readonly key: string;
|
|
3301
|
+
readonly minItems?: number | undefined;
|
|
3302
|
+
readonly maxItems?: number | undefined;
|
|
3303
|
+
readonly custom?: boolean | undefined;
|
|
3304
|
+
readonly default?: readonly string[] | undefined;
|
|
3305
|
+
readonly title?: string | undefined;
|
|
3306
|
+
readonly description?: string | undefined;
|
|
3307
|
+
readonly required?: boolean | undefined;
|
|
3308
|
+
readonly when?: readonly {
|
|
3309
|
+
readonly key: string;
|
|
3310
|
+
readonly op: "eq" | "neq";
|
|
3311
|
+
readonly value: string | number | boolean;
|
|
3312
|
+
}[] | undefined;
|
|
3313
|
+
} | {
|
|
3314
|
+
readonly key: string;
|
|
3315
|
+
readonly type: "external";
|
|
3316
|
+
readonly url: string;
|
|
3317
|
+
readonly title?: string | undefined;
|
|
3318
|
+
readonly description?: string | undefined;
|
|
3319
|
+
})[]];
|
|
3237
3320
|
readonly id: string & import("effect/Brand").Brand<"Form.ID">;
|
|
3238
3321
|
readonly sessionID: string;
|
|
3239
3322
|
readonly title: string;
|
|
3240
3323
|
readonly metadata?: {
|
|
3241
3324
|
readonly [x: string]: unknown;
|
|
3242
3325
|
} | undefined;
|
|
3243
|
-
}
|
|
3326
|
+
}[];
|
|
3244
3327
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3245
3328
|
};
|
|
3246
|
-
list: (input: Endpoint14_1Input) => Effect.Effect<readonly
|
|
3247
|
-
readonly
|
|
3248
|
-
readonly fields: readonly ({
|
|
3329
|
+
list: (input: Endpoint14_1Input) => Effect.Effect<readonly {
|
|
3330
|
+
readonly fields: readonly [{
|
|
3249
3331
|
readonly type: "string";
|
|
3250
3332
|
readonly key: string;
|
|
3251
3333
|
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
@@ -3328,26 +3410,111 @@ export declare const make: (options?: {
|
|
|
3328
3410
|
readonly op: "eq" | "neq";
|
|
3329
3411
|
readonly value: string | number | boolean;
|
|
3330
3412
|
}[] | undefined;
|
|
3331
|
-
}
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
readonly
|
|
3337
|
-
}
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3413
|
+
} | {
|
|
3414
|
+
readonly key: string;
|
|
3415
|
+
readonly type: "external";
|
|
3416
|
+
readonly url: string;
|
|
3417
|
+
readonly title?: string | undefined;
|
|
3418
|
+
readonly description?: string | undefined;
|
|
3419
|
+
}, ...({
|
|
3420
|
+
readonly type: "string";
|
|
3421
|
+
readonly key: string;
|
|
3422
|
+
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
3423
|
+
readonly minLength?: number | undefined;
|
|
3424
|
+
readonly maxLength?: number | undefined;
|
|
3425
|
+
readonly pattern?: string | undefined;
|
|
3426
|
+
readonly placeholder?: string | undefined;
|
|
3427
|
+
readonly default?: string | undefined;
|
|
3428
|
+
readonly options?: readonly {
|
|
3429
|
+
readonly value: string;
|
|
3430
|
+
readonly label: string;
|
|
3431
|
+
readonly description?: string | undefined;
|
|
3432
|
+
}[] | undefined;
|
|
3433
|
+
readonly custom?: boolean | undefined;
|
|
3434
|
+
readonly title?: string | undefined;
|
|
3435
|
+
readonly description?: string | undefined;
|
|
3436
|
+
readonly required?: boolean | undefined;
|
|
3437
|
+
readonly when?: readonly {
|
|
3438
|
+
readonly key: string;
|
|
3439
|
+
readonly op: "eq" | "neq";
|
|
3440
|
+
readonly value: string | number | boolean;
|
|
3441
|
+
}[] | undefined;
|
|
3442
|
+
} | {
|
|
3443
|
+
readonly type: "number";
|
|
3444
|
+
readonly key: string;
|
|
3445
|
+
readonly minimum?: number | undefined;
|
|
3446
|
+
readonly maximum?: number | undefined;
|
|
3447
|
+
readonly default?: number | undefined;
|
|
3448
|
+
readonly title?: string | undefined;
|
|
3449
|
+
readonly description?: string | undefined;
|
|
3450
|
+
readonly required?: boolean | undefined;
|
|
3451
|
+
readonly when?: readonly {
|
|
3452
|
+
readonly key: string;
|
|
3453
|
+
readonly op: "eq" | "neq";
|
|
3454
|
+
readonly value: string | number | boolean;
|
|
3455
|
+
}[] | undefined;
|
|
3456
|
+
} | {
|
|
3457
|
+
readonly type: "integer";
|
|
3458
|
+
readonly key: string;
|
|
3459
|
+
readonly minimum?: number | undefined;
|
|
3460
|
+
readonly maximum?: number | undefined;
|
|
3461
|
+
readonly default?: number | undefined;
|
|
3462
|
+
readonly title?: string | undefined;
|
|
3463
|
+
readonly description?: string | undefined;
|
|
3464
|
+
readonly required?: boolean | undefined;
|
|
3465
|
+
readonly when?: readonly {
|
|
3466
|
+
readonly key: string;
|
|
3467
|
+
readonly op: "eq" | "neq";
|
|
3468
|
+
readonly value: string | number | boolean;
|
|
3469
|
+
}[] | undefined;
|
|
3470
|
+
} | {
|
|
3471
|
+
readonly type: "boolean";
|
|
3472
|
+
readonly key: string;
|
|
3473
|
+
readonly default?: boolean | undefined;
|
|
3474
|
+
readonly title?: string | undefined;
|
|
3475
|
+
readonly description?: string | undefined;
|
|
3476
|
+
readonly required?: boolean | undefined;
|
|
3477
|
+
readonly when?: readonly {
|
|
3478
|
+
readonly key: string;
|
|
3479
|
+
readonly op: "eq" | "neq";
|
|
3480
|
+
readonly value: string | number | boolean;
|
|
3481
|
+
}[] | undefined;
|
|
3482
|
+
} | {
|
|
3483
|
+
readonly type: "multiselect";
|
|
3484
|
+
readonly options: readonly {
|
|
3485
|
+
readonly value: string;
|
|
3486
|
+
readonly label: string;
|
|
3487
|
+
readonly description?: string | undefined;
|
|
3488
|
+
}[];
|
|
3489
|
+
readonly key: string;
|
|
3490
|
+
readonly minItems?: number | undefined;
|
|
3491
|
+
readonly maxItems?: number | undefined;
|
|
3492
|
+
readonly custom?: boolean | undefined;
|
|
3493
|
+
readonly default?: readonly string[] | undefined;
|
|
3494
|
+
readonly title?: string | undefined;
|
|
3495
|
+
readonly description?: string | undefined;
|
|
3496
|
+
readonly required?: boolean | undefined;
|
|
3497
|
+
readonly when?: readonly {
|
|
3498
|
+
readonly key: string;
|
|
3499
|
+
readonly op: "eq" | "neq";
|
|
3500
|
+
readonly value: string | number | boolean;
|
|
3501
|
+
}[] | undefined;
|
|
3502
|
+
} | {
|
|
3503
|
+
readonly key: string;
|
|
3504
|
+
readonly type: "external";
|
|
3505
|
+
readonly url: string;
|
|
3506
|
+
readonly title?: string | undefined;
|
|
3507
|
+
readonly description?: string | undefined;
|
|
3508
|
+
})[]];
|
|
3341
3509
|
readonly id: string & import("effect/Brand").Brand<"Form.ID">;
|
|
3342
3510
|
readonly sessionID: string;
|
|
3343
3511
|
readonly title: string;
|
|
3344
3512
|
readonly metadata?: {
|
|
3345
3513
|
readonly [x: string]: unknown;
|
|
3346
3514
|
} | undefined;
|
|
3347
|
-
}
|
|
3515
|
+
}[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3348
3516
|
create: (input: Endpoint14_2Input) => Effect.Effect<{
|
|
3349
|
-
readonly
|
|
3350
|
-
readonly fields: readonly ({
|
|
3517
|
+
readonly fields: readonly [{
|
|
3351
3518
|
readonly type: "string";
|
|
3352
3519
|
readonly key: string;
|
|
3353
3520
|
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
@@ -3430,16 +3597,102 @@ export declare const make: (options?: {
|
|
|
3430
3597
|
readonly op: "eq" | "neq";
|
|
3431
3598
|
readonly value: string | number | boolean;
|
|
3432
3599
|
}[] | undefined;
|
|
3433
|
-
}
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
readonly
|
|
3439
|
-
}
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3600
|
+
} | {
|
|
3601
|
+
readonly key: string;
|
|
3602
|
+
readonly type: "external";
|
|
3603
|
+
readonly url: string;
|
|
3604
|
+
readonly title?: string | undefined;
|
|
3605
|
+
readonly description?: string | undefined;
|
|
3606
|
+
}, ...({
|
|
3607
|
+
readonly type: "string";
|
|
3608
|
+
readonly key: string;
|
|
3609
|
+
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
3610
|
+
readonly minLength?: number | undefined;
|
|
3611
|
+
readonly maxLength?: number | undefined;
|
|
3612
|
+
readonly pattern?: string | undefined;
|
|
3613
|
+
readonly placeholder?: string | undefined;
|
|
3614
|
+
readonly default?: string | undefined;
|
|
3615
|
+
readonly options?: readonly {
|
|
3616
|
+
readonly value: string;
|
|
3617
|
+
readonly label: string;
|
|
3618
|
+
readonly description?: string | undefined;
|
|
3619
|
+
}[] | undefined;
|
|
3620
|
+
readonly custom?: boolean | undefined;
|
|
3621
|
+
readonly title?: string | undefined;
|
|
3622
|
+
readonly description?: string | undefined;
|
|
3623
|
+
readonly required?: boolean | undefined;
|
|
3624
|
+
readonly when?: readonly {
|
|
3625
|
+
readonly key: string;
|
|
3626
|
+
readonly op: "eq" | "neq";
|
|
3627
|
+
readonly value: string | number | boolean;
|
|
3628
|
+
}[] | undefined;
|
|
3629
|
+
} | {
|
|
3630
|
+
readonly type: "number";
|
|
3631
|
+
readonly key: string;
|
|
3632
|
+
readonly minimum?: number | undefined;
|
|
3633
|
+
readonly maximum?: number | undefined;
|
|
3634
|
+
readonly default?: number | undefined;
|
|
3635
|
+
readonly title?: string | undefined;
|
|
3636
|
+
readonly description?: string | undefined;
|
|
3637
|
+
readonly required?: boolean | undefined;
|
|
3638
|
+
readonly when?: readonly {
|
|
3639
|
+
readonly key: string;
|
|
3640
|
+
readonly op: "eq" | "neq";
|
|
3641
|
+
readonly value: string | number | boolean;
|
|
3642
|
+
}[] | undefined;
|
|
3643
|
+
} | {
|
|
3644
|
+
readonly type: "integer";
|
|
3645
|
+
readonly key: string;
|
|
3646
|
+
readonly minimum?: number | undefined;
|
|
3647
|
+
readonly maximum?: number | undefined;
|
|
3648
|
+
readonly default?: number | undefined;
|
|
3649
|
+
readonly title?: string | undefined;
|
|
3650
|
+
readonly description?: string | undefined;
|
|
3651
|
+
readonly required?: boolean | undefined;
|
|
3652
|
+
readonly when?: readonly {
|
|
3653
|
+
readonly key: string;
|
|
3654
|
+
readonly op: "eq" | "neq";
|
|
3655
|
+
readonly value: string | number | boolean;
|
|
3656
|
+
}[] | undefined;
|
|
3657
|
+
} | {
|
|
3658
|
+
readonly type: "boolean";
|
|
3659
|
+
readonly key: string;
|
|
3660
|
+
readonly default?: boolean | undefined;
|
|
3661
|
+
readonly title?: string | undefined;
|
|
3662
|
+
readonly description?: string | undefined;
|
|
3663
|
+
readonly required?: boolean | undefined;
|
|
3664
|
+
readonly when?: readonly {
|
|
3665
|
+
readonly key: string;
|
|
3666
|
+
readonly op: "eq" | "neq";
|
|
3667
|
+
readonly value: string | number | boolean;
|
|
3668
|
+
}[] | undefined;
|
|
3669
|
+
} | {
|
|
3670
|
+
readonly type: "multiselect";
|
|
3671
|
+
readonly options: readonly {
|
|
3672
|
+
readonly value: string;
|
|
3673
|
+
readonly label: string;
|
|
3674
|
+
readonly description?: string | undefined;
|
|
3675
|
+
}[];
|
|
3676
|
+
readonly key: string;
|
|
3677
|
+
readonly minItems?: number | undefined;
|
|
3678
|
+
readonly maxItems?: number | undefined;
|
|
3679
|
+
readonly custom?: boolean | undefined;
|
|
3680
|
+
readonly default?: readonly string[] | undefined;
|
|
3681
|
+
readonly title?: string | undefined;
|
|
3682
|
+
readonly description?: string | undefined;
|
|
3683
|
+
readonly required?: boolean | undefined;
|
|
3684
|
+
readonly when?: readonly {
|
|
3685
|
+
readonly key: string;
|
|
3686
|
+
readonly op: "eq" | "neq";
|
|
3687
|
+
readonly value: string | number | boolean;
|
|
3688
|
+
}[] | undefined;
|
|
3689
|
+
} | {
|
|
3690
|
+
readonly key: string;
|
|
3691
|
+
readonly type: "external";
|
|
3692
|
+
readonly url: string;
|
|
3693
|
+
readonly title?: string | undefined;
|
|
3694
|
+
readonly description?: string | undefined;
|
|
3695
|
+
})[]];
|
|
3443
3696
|
readonly id: string & import("effect/Brand").Brand<"Form.ID">;
|
|
3444
3697
|
readonly sessionID: string;
|
|
3445
3698
|
readonly title: string;
|
|
@@ -3448,8 +3701,7 @@ export declare const make: (options?: {
|
|
|
3448
3701
|
} | undefined;
|
|
3449
3702
|
}, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
3450
3703
|
get: (input: Endpoint14_3Input) => Effect.Effect<{
|
|
3451
|
-
readonly
|
|
3452
|
-
readonly fields: readonly ({
|
|
3704
|
+
readonly fields: readonly [{
|
|
3453
3705
|
readonly type: "string";
|
|
3454
3706
|
readonly key: string;
|
|
3455
3707
|
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
@@ -3532,16 +3784,102 @@ export declare const make: (options?: {
|
|
|
3532
3784
|
readonly op: "eq" | "neq";
|
|
3533
3785
|
readonly value: string | number | boolean;
|
|
3534
3786
|
}[] | undefined;
|
|
3535
|
-
}
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
readonly
|
|
3541
|
-
}
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3787
|
+
} | {
|
|
3788
|
+
readonly key: string;
|
|
3789
|
+
readonly type: "external";
|
|
3790
|
+
readonly url: string;
|
|
3791
|
+
readonly title?: string | undefined;
|
|
3792
|
+
readonly description?: string | undefined;
|
|
3793
|
+
}, ...({
|
|
3794
|
+
readonly type: "string";
|
|
3795
|
+
readonly key: string;
|
|
3796
|
+
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
3797
|
+
readonly minLength?: number | undefined;
|
|
3798
|
+
readonly maxLength?: number | undefined;
|
|
3799
|
+
readonly pattern?: string | undefined;
|
|
3800
|
+
readonly placeholder?: string | undefined;
|
|
3801
|
+
readonly default?: string | undefined;
|
|
3802
|
+
readonly options?: readonly {
|
|
3803
|
+
readonly value: string;
|
|
3804
|
+
readonly label: string;
|
|
3805
|
+
readonly description?: string | undefined;
|
|
3806
|
+
}[] | undefined;
|
|
3807
|
+
readonly custom?: boolean | undefined;
|
|
3808
|
+
readonly title?: string | undefined;
|
|
3809
|
+
readonly description?: string | undefined;
|
|
3810
|
+
readonly required?: boolean | undefined;
|
|
3811
|
+
readonly when?: readonly {
|
|
3812
|
+
readonly key: string;
|
|
3813
|
+
readonly op: "eq" | "neq";
|
|
3814
|
+
readonly value: string | number | boolean;
|
|
3815
|
+
}[] | undefined;
|
|
3816
|
+
} | {
|
|
3817
|
+
readonly type: "number";
|
|
3818
|
+
readonly key: string;
|
|
3819
|
+
readonly minimum?: number | undefined;
|
|
3820
|
+
readonly maximum?: number | undefined;
|
|
3821
|
+
readonly default?: number | undefined;
|
|
3822
|
+
readonly title?: string | undefined;
|
|
3823
|
+
readonly description?: string | undefined;
|
|
3824
|
+
readonly required?: boolean | undefined;
|
|
3825
|
+
readonly when?: readonly {
|
|
3826
|
+
readonly key: string;
|
|
3827
|
+
readonly op: "eq" | "neq";
|
|
3828
|
+
readonly value: string | number | boolean;
|
|
3829
|
+
}[] | undefined;
|
|
3830
|
+
} | {
|
|
3831
|
+
readonly type: "integer";
|
|
3832
|
+
readonly key: string;
|
|
3833
|
+
readonly minimum?: number | undefined;
|
|
3834
|
+
readonly maximum?: number | undefined;
|
|
3835
|
+
readonly default?: number | undefined;
|
|
3836
|
+
readonly title?: string | undefined;
|
|
3837
|
+
readonly description?: string | undefined;
|
|
3838
|
+
readonly required?: boolean | undefined;
|
|
3839
|
+
readonly when?: readonly {
|
|
3840
|
+
readonly key: string;
|
|
3841
|
+
readonly op: "eq" | "neq";
|
|
3842
|
+
readonly value: string | number | boolean;
|
|
3843
|
+
}[] | undefined;
|
|
3844
|
+
} | {
|
|
3845
|
+
readonly type: "boolean";
|
|
3846
|
+
readonly key: string;
|
|
3847
|
+
readonly default?: boolean | undefined;
|
|
3848
|
+
readonly title?: string | undefined;
|
|
3849
|
+
readonly description?: string | undefined;
|
|
3850
|
+
readonly required?: boolean | undefined;
|
|
3851
|
+
readonly when?: readonly {
|
|
3852
|
+
readonly key: string;
|
|
3853
|
+
readonly op: "eq" | "neq";
|
|
3854
|
+
readonly value: string | number | boolean;
|
|
3855
|
+
}[] | undefined;
|
|
3856
|
+
} | {
|
|
3857
|
+
readonly type: "multiselect";
|
|
3858
|
+
readonly options: readonly {
|
|
3859
|
+
readonly value: string;
|
|
3860
|
+
readonly label: string;
|
|
3861
|
+
readonly description?: string | undefined;
|
|
3862
|
+
}[];
|
|
3863
|
+
readonly key: string;
|
|
3864
|
+
readonly minItems?: number | undefined;
|
|
3865
|
+
readonly maxItems?: number | undefined;
|
|
3866
|
+
readonly custom?: boolean | undefined;
|
|
3867
|
+
readonly default?: readonly string[] | undefined;
|
|
3868
|
+
readonly title?: string | undefined;
|
|
3869
|
+
readonly description?: string | undefined;
|
|
3870
|
+
readonly required?: boolean | undefined;
|
|
3871
|
+
readonly when?: readonly {
|
|
3872
|
+
readonly key: string;
|
|
3873
|
+
readonly op: "eq" | "neq";
|
|
3874
|
+
readonly value: string | number | boolean;
|
|
3875
|
+
}[] | undefined;
|
|
3876
|
+
} | {
|
|
3877
|
+
readonly key: string;
|
|
3878
|
+
readonly type: "external";
|
|
3879
|
+
readonly url: string;
|
|
3880
|
+
readonly title?: string | undefined;
|
|
3881
|
+
readonly description?: string | undefined;
|
|
3882
|
+
})[]];
|
|
3545
3883
|
readonly id: string & import("effect/Brand").Brand<"Form.ID">;
|
|
3546
3884
|
readonly sessionID: string;
|
|
3547
3885
|
readonly title: string;
|
|
@@ -4921,8 +5259,7 @@ export declare const make: (options?: {
|
|
|
4921
5259
|
readonly type: "form.created";
|
|
4922
5260
|
readonly data: {
|
|
4923
5261
|
readonly form: {
|
|
4924
|
-
readonly
|
|
4925
|
-
readonly fields: readonly ({
|
|
5262
|
+
readonly fields: readonly [{
|
|
4926
5263
|
readonly type: "string";
|
|
4927
5264
|
readonly key: string;
|
|
4928
5265
|
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
@@ -5005,16 +5342,102 @@ export declare const make: (options?: {
|
|
|
5005
5342
|
readonly op: "eq" | "neq";
|
|
5006
5343
|
readonly value: string | number | boolean;
|
|
5007
5344
|
}[] | undefined;
|
|
5008
|
-
}
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
readonly
|
|
5014
|
-
}
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5345
|
+
} | {
|
|
5346
|
+
readonly key: string;
|
|
5347
|
+
readonly type: "external";
|
|
5348
|
+
readonly url: string;
|
|
5349
|
+
readonly title?: string | undefined;
|
|
5350
|
+
readonly description?: string | undefined;
|
|
5351
|
+
}, ...({
|
|
5352
|
+
readonly type: "string";
|
|
5353
|
+
readonly key: string;
|
|
5354
|
+
readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
|
|
5355
|
+
readonly minLength?: number | undefined;
|
|
5356
|
+
readonly maxLength?: number | undefined;
|
|
5357
|
+
readonly pattern?: string | undefined;
|
|
5358
|
+
readonly placeholder?: string | undefined;
|
|
5359
|
+
readonly default?: string | undefined;
|
|
5360
|
+
readonly options?: readonly {
|
|
5361
|
+
readonly value: string;
|
|
5362
|
+
readonly label: string;
|
|
5363
|
+
readonly description?: string | undefined;
|
|
5364
|
+
}[] | undefined;
|
|
5365
|
+
readonly custom?: boolean | undefined;
|
|
5366
|
+
readonly title?: string | undefined;
|
|
5367
|
+
readonly description?: string | undefined;
|
|
5368
|
+
readonly required?: boolean | undefined;
|
|
5369
|
+
readonly when?: readonly {
|
|
5370
|
+
readonly key: string;
|
|
5371
|
+
readonly op: "eq" | "neq";
|
|
5372
|
+
readonly value: string | number | boolean;
|
|
5373
|
+
}[] | undefined;
|
|
5374
|
+
} | {
|
|
5375
|
+
readonly type: "number";
|
|
5376
|
+
readonly key: string;
|
|
5377
|
+
readonly minimum?: number | undefined;
|
|
5378
|
+
readonly maximum?: number | undefined;
|
|
5379
|
+
readonly default?: number | undefined;
|
|
5380
|
+
readonly title?: string | undefined;
|
|
5381
|
+
readonly description?: string | undefined;
|
|
5382
|
+
readonly required?: boolean | undefined;
|
|
5383
|
+
readonly when?: readonly {
|
|
5384
|
+
readonly key: string;
|
|
5385
|
+
readonly op: "eq" | "neq";
|
|
5386
|
+
readonly value: string | number | boolean;
|
|
5387
|
+
}[] | undefined;
|
|
5388
|
+
} | {
|
|
5389
|
+
readonly type: "integer";
|
|
5390
|
+
readonly key: string;
|
|
5391
|
+
readonly minimum?: number | undefined;
|
|
5392
|
+
readonly maximum?: number | undefined;
|
|
5393
|
+
readonly default?: number | undefined;
|
|
5394
|
+
readonly title?: string | undefined;
|
|
5395
|
+
readonly description?: string | undefined;
|
|
5396
|
+
readonly required?: boolean | undefined;
|
|
5397
|
+
readonly when?: readonly {
|
|
5398
|
+
readonly key: string;
|
|
5399
|
+
readonly op: "eq" | "neq";
|
|
5400
|
+
readonly value: string | number | boolean;
|
|
5401
|
+
}[] | undefined;
|
|
5402
|
+
} | {
|
|
5403
|
+
readonly type: "boolean";
|
|
5404
|
+
readonly key: string;
|
|
5405
|
+
readonly default?: boolean | undefined;
|
|
5406
|
+
readonly title?: string | undefined;
|
|
5407
|
+
readonly description?: string | undefined;
|
|
5408
|
+
readonly required?: boolean | undefined;
|
|
5409
|
+
readonly when?: readonly {
|
|
5410
|
+
readonly key: string;
|
|
5411
|
+
readonly op: "eq" | "neq";
|
|
5412
|
+
readonly value: string | number | boolean;
|
|
5413
|
+
}[] | undefined;
|
|
5414
|
+
} | {
|
|
5415
|
+
readonly type: "multiselect";
|
|
5416
|
+
readonly options: readonly {
|
|
5417
|
+
readonly value: string;
|
|
5418
|
+
readonly label: string;
|
|
5419
|
+
readonly description?: string | undefined;
|
|
5420
|
+
}[];
|
|
5421
|
+
readonly key: string;
|
|
5422
|
+
readonly minItems?: number | undefined;
|
|
5423
|
+
readonly maxItems?: number | undefined;
|
|
5424
|
+
readonly custom?: boolean | undefined;
|
|
5425
|
+
readonly default?: readonly string[] | undefined;
|
|
5426
|
+
readonly title?: string | undefined;
|
|
5427
|
+
readonly description?: string | undefined;
|
|
5428
|
+
readonly required?: boolean | undefined;
|
|
5429
|
+
readonly when?: readonly {
|
|
5430
|
+
readonly key: string;
|
|
5431
|
+
readonly op: "eq" | "neq";
|
|
5432
|
+
readonly value: string | number | boolean;
|
|
5433
|
+
}[] | undefined;
|
|
5434
|
+
} | {
|
|
5435
|
+
readonly key: string;
|
|
5436
|
+
readonly type: "external";
|
|
5437
|
+
readonly url: string;
|
|
5438
|
+
readonly title?: string | undefined;
|
|
5439
|
+
readonly description?: string | undefined;
|
|
5440
|
+
})[]];
|
|
5018
5441
|
readonly id: string & import("effect/Brand").Brand<"Form.ID">;
|
|
5019
5442
|
readonly sessionID: string;
|
|
5020
5443
|
readonly title: string;
|
|
@@ -221,14 +221,7 @@ const Endpoint14_0 = (raw) => (input) => raw["form.request.list"]({ query: { loc
|
|
|
221
221
|
const Endpoint14_1 = (raw) => (input) => raw["session.form.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
222
222
|
const Endpoint14_2 = (raw) => (input) => raw["session.form.create"]({
|
|
223
223
|
params: { sessionID: input["sessionID"] },
|
|
224
|
-
payload: {
|
|
225
|
-
id: input["id"],
|
|
226
|
-
title: input["title"],
|
|
227
|
-
metadata: input["metadata"],
|
|
228
|
-
mode: input["mode"],
|
|
229
|
-
fields: input["fields"],
|
|
230
|
-
url: input["url"],
|
|
231
|
-
},
|
|
224
|
+
payload: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
232
225
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
233
226
|
const Endpoint14_3 = (raw) => (input) => raw["session.form.get"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
234
227
|
const Endpoint14_4 = (raw) => (input) => raw["session.form.state"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|