@opencode-ai/sdk 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/v2/gen/types.gen.d.ts +27 -46
- package/package.json +1 -1
|
@@ -1125,7 +1125,7 @@ export type GlobalEvent = {
|
|
|
1125
1125
|
id: string;
|
|
1126
1126
|
type: "form.created";
|
|
1127
1127
|
properties: {
|
|
1128
|
-
form:
|
|
1128
|
+
form: FormInfo;
|
|
1129
1129
|
};
|
|
1130
1130
|
} | {
|
|
1131
1131
|
id: string;
|
|
@@ -2804,21 +2804,21 @@ export type FormMultiselectField = {
|
|
|
2804
2804
|
custom?: boolean;
|
|
2805
2805
|
default?: Array<string>;
|
|
2806
2806
|
};
|
|
2807
|
-
export type
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
fields: Array<FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField>;
|
|
2807
|
+
export type FormExternalField = {
|
|
2808
|
+
key: string;
|
|
2809
|
+
type: "external";
|
|
2810
|
+
url: string;
|
|
2811
|
+
title?: string;
|
|
2812
|
+
description?: string;
|
|
2814
2813
|
};
|
|
2815
|
-
export type
|
|
2814
|
+
export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
|
|
2815
|
+
export type FormFields = Array<FormField>;
|
|
2816
|
+
export type FormInfo = {
|
|
2816
2817
|
id: string;
|
|
2817
2818
|
sessionID: string;
|
|
2818
2819
|
title: string;
|
|
2819
2820
|
metadata?: FormMetadata;
|
|
2820
|
-
|
|
2821
|
-
url: string;
|
|
2821
|
+
fields: FormFields;
|
|
2822
2822
|
};
|
|
2823
2823
|
export type FormValue = string | number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
|
|
2824
2824
|
export type FormAnswer = {
|
|
@@ -4855,9 +4855,7 @@ export type FormCreatePayload = {
|
|
|
4855
4855
|
id?: string;
|
|
4856
4856
|
title: string;
|
|
4857
4857
|
metadata?: FormMetadata;
|
|
4858
|
-
|
|
4859
|
-
fields?: Array<FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField>;
|
|
4860
|
-
url?: string;
|
|
4858
|
+
fields: FormFields;
|
|
4861
4859
|
};
|
|
4862
4860
|
export type FormState = {
|
|
4863
4861
|
status: "pending";
|
|
@@ -5515,7 +5513,7 @@ export type FormCreated = {
|
|
|
5515
5513
|
type: "form.created";
|
|
5516
5514
|
location?: LocationRef;
|
|
5517
5515
|
data: {
|
|
5518
|
-
form:
|
|
5516
|
+
form: FormInfo;
|
|
5519
5517
|
};
|
|
5520
5518
|
};
|
|
5521
5519
|
export type FormValue1 = string | number | "NaN" | "Infinity" | "-Infinity" | boolean | Array<string>;
|
|
@@ -6644,7 +6642,7 @@ export type EventFormCreated = {
|
|
|
6644
6642
|
id: string;
|
|
6645
6643
|
type: "form.created";
|
|
6646
6644
|
properties: {
|
|
6647
|
-
form:
|
|
6645
|
+
form: FormInfo;
|
|
6648
6646
|
};
|
|
6649
6647
|
};
|
|
6650
6648
|
export type EventFormReplied = {
|
|
@@ -8440,29 +8438,19 @@ export type FormMultiselectFieldV2 = {
|
|
|
8440
8438
|
custom?: boolean;
|
|
8441
8439
|
default?: Array<string>;
|
|
8442
8440
|
};
|
|
8443
|
-
export type
|
|
8444
|
-
|
|
8445
|
-
sessionID: string;
|
|
8446
|
-
title: string;
|
|
8447
|
-
metadata?: FormMetadata;
|
|
8448
|
-
mode: "form";
|
|
8449
|
-
fields: Array<FormStringFieldV2 | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectFieldV2>;
|
|
8450
|
-
};
|
|
8451
|
-
export type FormUrlInfoV2 = {
|
|
8441
|
+
export type FormFieldsV2 = [FormField, FormField];
|
|
8442
|
+
export type FormInfoV2 = {
|
|
8452
8443
|
id: string;
|
|
8453
8444
|
sessionID: string;
|
|
8454
8445
|
title: string;
|
|
8455
8446
|
metadata?: FormMetadata;
|
|
8456
|
-
|
|
8457
|
-
url: string;
|
|
8447
|
+
fields: FormFieldsV2;
|
|
8458
8448
|
};
|
|
8459
8449
|
export type FormCreatePayloadV2 = {
|
|
8460
8450
|
id?: string | null;
|
|
8461
8451
|
title: string;
|
|
8462
8452
|
metadata?: FormMetadata;
|
|
8463
|
-
|
|
8464
|
-
fields?: Array<FormStringFieldV2 | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectFieldV2> | null;
|
|
8465
|
-
url?: string | null;
|
|
8453
|
+
fields: FormFieldsV2;
|
|
8466
8454
|
};
|
|
8467
8455
|
export type FormValueV2 = string | number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
|
|
8468
8456
|
export type PermissionV2SourceV2 = {
|
|
@@ -9097,21 +9085,14 @@ export type FormMultiselectField1 = {
|
|
|
9097
9085
|
custom?: boolean;
|
|
9098
9086
|
default?: Array<string>;
|
|
9099
9087
|
};
|
|
9100
|
-
export type
|
|
9088
|
+
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
9089
|
+
export type FormFields1 = [FormField1, FormField1];
|
|
9090
|
+
export type FormInfo1 = {
|
|
9101
9091
|
id: string;
|
|
9102
9092
|
sessionID: string;
|
|
9103
9093
|
title: string;
|
|
9104
9094
|
metadata?: FormMetadata1;
|
|
9105
|
-
|
|
9106
|
-
fields: Array<FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1>;
|
|
9107
|
-
};
|
|
9108
|
-
export type FormUrlInfo1 = {
|
|
9109
|
-
id: string;
|
|
9110
|
-
sessionID: string;
|
|
9111
|
-
title: string;
|
|
9112
|
-
metadata?: FormMetadata1;
|
|
9113
|
-
mode: "url";
|
|
9114
|
-
url: string;
|
|
9095
|
+
fields: FormFields1;
|
|
9115
9096
|
};
|
|
9116
9097
|
export type FormCreatedV2 = {
|
|
9117
9098
|
id: string;
|
|
@@ -9122,7 +9103,7 @@ export type FormCreatedV2 = {
|
|
|
9122
9103
|
type: "form.created";
|
|
9123
9104
|
location?: LocationRefV2;
|
|
9124
9105
|
data: {
|
|
9125
|
-
form:
|
|
9106
|
+
form: FormInfo1;
|
|
9126
9107
|
};
|
|
9127
9108
|
};
|
|
9128
9109
|
export type FormAnswer1 = {
|
|
@@ -14728,7 +14709,7 @@ export type V2FormRequestListResponses = {
|
|
|
14728
14709
|
*/
|
|
14729
14710
|
200: {
|
|
14730
14711
|
location: LocationInfoV2;
|
|
14731
|
-
data: Array<
|
|
14712
|
+
data: Array<FormInfoV2>;
|
|
14732
14713
|
};
|
|
14733
14714
|
};
|
|
14734
14715
|
export type V2FormRequestListResponse = V2FormRequestListResponses[keyof V2FormRequestListResponses];
|
|
@@ -14760,7 +14741,7 @@ export type V2SessionFormListResponses = {
|
|
|
14760
14741
|
* Success
|
|
14761
14742
|
*/
|
|
14762
14743
|
200: {
|
|
14763
|
-
data: Array<
|
|
14744
|
+
data: Array<FormInfoV2>;
|
|
14764
14745
|
};
|
|
14765
14746
|
};
|
|
14766
14747
|
export type V2SessionFormListResponse = V2SessionFormListResponses[keyof V2SessionFormListResponses];
|
|
@@ -14796,7 +14777,7 @@ export type V2SessionFormCreateResponses = {
|
|
|
14796
14777
|
* Success
|
|
14797
14778
|
*/
|
|
14798
14779
|
200: {
|
|
14799
|
-
data:
|
|
14780
|
+
data: FormInfoV2;
|
|
14800
14781
|
};
|
|
14801
14782
|
};
|
|
14802
14783
|
export type V2SessionFormCreateResponse = V2SessionFormCreateResponses[keyof V2SessionFormCreateResponses];
|
|
@@ -14829,7 +14810,7 @@ export type V2SessionFormGetResponses = {
|
|
|
14829
14810
|
* Success
|
|
14830
14811
|
*/
|
|
14831
14812
|
200: {
|
|
14832
|
-
data:
|
|
14813
|
+
data: FormInfoV2;
|
|
14833
14814
|
};
|
|
14834
14815
|
};
|
|
14835
14816
|
export type V2SessionFormGetResponse = V2SessionFormGetResponses[keyof V2SessionFormGetResponses];
|