@opengeni/sdk 3.3.0 → 3.3.1-canary.38922642121001
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/adapters/next.js +2 -2
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-BWAJPU5S.js → chunk-2GF2BILF.js} +23 -2
- package/dist/chunk-2GF2BILF.js.map +1 -0
- package/dist/{chunk-F4OXWFCU.js → chunk-3MK6MJFY.js} +2 -2
- package/dist/{chunk-S5XTUA7L.js → chunk-DFGSLPR5.js} +2 -2
- package/dist/{chunk-HP7NVCAX.js → chunk-OUHLON6F.js} +2 -2
- package/dist/{chunk-MJWC6GTA.js → chunk-P3V5BNF4.js} +2 -2
- package/dist/{chunk-6HZGAIUE.js → chunk-POJP5JVC.js} +2 -2
- package/dist/{chunk-KADZ5PGG.js → chunk-UGB3XMXN.js} +1 -1
- package/dist/{chunk-KADZ5PGG.js.map → chunk-UGB3XMXN.js.map} +1 -1
- package/dist/client.d.ts +12 -1
- 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 +1 -1
- package/dist/index.js +7 -7
- package/dist/session-proxy.js +2 -2
- package/dist/site-bridge-host.js +3 -3
- package/dist/site-browser-runtime.gen.d.ts +1 -1
- package/dist/site-document.js +1 -1
- package/dist/site-document.js.map +1 -1
- package/dist/site.js +3 -3
- package/dist/types.d.ts +3 -0
- package/package.json +3 -3
- package/src/client.ts +45 -0
- package/src/index.ts +9 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/src/types.ts +14 -0
- package/dist/chunk-BWAJPU5S.js.map +0 -1
- /package/dist/{chunk-F4OXWFCU.js.map → chunk-3MK6MJFY.js.map} +0 -0
- /package/dist/{chunk-S5XTUA7L.js.map → chunk-DFGSLPR5.js.map} +0 -0
- /package/dist/{chunk-HP7NVCAX.js.map → chunk-OUHLON6F.js.map} +0 -0
- /package/dist/{chunk-MJWC6GTA.js.map → chunk-P3V5BNF4.js.map} +0 -0
- /package/dist/{chunk-6HZGAIUE.js.map → chunk-POJP5JVC.js.map} +0 -0
package/dist/adapters/next.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSessionProxyHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-POJP5JVC.js";
|
|
4
4
|
import "../chunk-UM4ZXXJR.js";
|
|
5
5
|
import "../chunk-QGEIL4TR.js";
|
|
6
6
|
import "../chunk-4AHR4KGA.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-UGB3XMXN.js";
|
|
8
8
|
import "../chunk-7EWT3PV6.js";
|
|
9
9
|
|
|
10
10
|
// src/adapters/next.ts
|
package/dist/artifacts.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DFGSLPR5.js";
|
|
4
|
+
import "./chunk-P3V5BNF4.js";
|
|
5
|
+
import "./chunk-2GF2BILF.js";
|
|
6
6
|
import "./chunk-X5ITQVXE.js";
|
|
7
7
|
import "./chunk-4AHR4KGA.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UGB3XMXN.js";
|
|
9
9
|
import "./chunk-O7KANXC3.js";
|
|
10
10
|
import "./chunk-7EWT3PV6.js";
|
|
11
11
|
export {
|
package/dist/browser.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-P7UWKORG.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2GF2BILF.js";
|
|
12
12
|
import "./chunk-X5ITQVXE.js";
|
|
13
13
|
import "./chunk-4AHR4KGA.js";
|
|
14
14
|
import {
|
|
15
15
|
OPENGENI_API_CONTRACT_HEADER,
|
|
16
16
|
OPENGENI_API_CONTRACT_REVISION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UGB3XMXN.js";
|
|
18
18
|
import "./chunk-O7KANXC3.js";
|
|
19
19
|
import {
|
|
20
20
|
OpenGeniAllowanceExhaustedError,
|
package/dist/chat/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
} from "../chunk-XA7HVIHI.js";
|
|
10
10
|
import {
|
|
11
11
|
OpenGeniEmbeddingClient
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-OUHLON6F.js";
|
|
13
|
+
import "../chunk-DFGSLPR5.js";
|
|
14
|
+
import "../chunk-P3V5BNF4.js";
|
|
15
15
|
import {
|
|
16
16
|
chatDefaults
|
|
17
17
|
} from "../chunk-UM4ZXXJR.js";
|
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
humanInputPending,
|
|
25
25
|
stringValue
|
|
26
26
|
} from "../chunk-OV3POE62.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2GF2BILF.js";
|
|
28
28
|
import "../chunk-X5ITQVXE.js";
|
|
29
29
|
import {
|
|
30
30
|
parseSseStream
|
|
31
31
|
} from "../chunk-4AHR4KGA.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-UGB3XMXN.js";
|
|
33
33
|
import "../chunk-O7KANXC3.js";
|
|
34
34
|
import {
|
|
35
35
|
OpenGeniApiError,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION,
|
|
16
16
|
OPENGENI_CORRELATION_HEADER,
|
|
17
17
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UGB3XMXN.js";
|
|
19
19
|
import {
|
|
20
20
|
OpenGeniInteractionClient,
|
|
21
21
|
decodeComputerFrameMetadataHeader,
|
|
@@ -7195,6 +7195,27 @@ var OpenGeniClient = class {
|
|
|
7195
7195
|
request
|
|
7196
7196
|
);
|
|
7197
7197
|
}
|
|
7198
|
+
/** Current runtime catalog, USD prices, self-service availability and plan balance. */
|
|
7199
|
+
async getBillingSubscriptionPlans(options = {}) {
|
|
7200
|
+
return await this.requestJson("GET", "/v1/billing/subscription/plans", void 0, options);
|
|
7201
|
+
}
|
|
7202
|
+
async createSubscriptionCheckout(request) {
|
|
7203
|
+
return await this.requestJson("POST", "/v1/billing/subscription/checkout", request);
|
|
7204
|
+
}
|
|
7205
|
+
/** Charge immediately, reset the monthly anchor and replace plan credit after payment. */
|
|
7206
|
+
async upgradeBillingSubscription(request) {
|
|
7207
|
+
return await this.requestJson("POST", "/v1/billing/subscription/upgrade", request);
|
|
7208
|
+
}
|
|
7209
|
+
/** Schedule a lower-priced plan at the end of the already-paid period. */
|
|
7210
|
+
async changeBillingSubscription(request) {
|
|
7211
|
+
return await this.requestJson("POST", "/v1/billing/subscription/change", request);
|
|
7212
|
+
}
|
|
7213
|
+
async cancelBillingSubscription(request) {
|
|
7214
|
+
return await this.requestJson("POST", "/v1/billing/subscription/cancel", request);
|
|
7215
|
+
}
|
|
7216
|
+
async createSubscriptionPortalSession(request = {}) {
|
|
7217
|
+
return await this.requestJson("POST", "/v1/billing/subscription/portal", request);
|
|
7218
|
+
}
|
|
7198
7219
|
// --- Embedding transport -----------------------------------------------------
|
|
7199
7220
|
/** The URL of an API path on this client's base (relative when the base is relative). */
|
|
7200
7221
|
apiUrl(path) {
|
|
@@ -7967,4 +7988,4 @@ export {
|
|
|
7967
7988
|
parseMediaGenerationResult,
|
|
7968
7989
|
OpenGeniClient
|
|
7969
7990
|
};
|
|
7970
|
-
//# sourceMappingURL=chunk-
|
|
7991
|
+
//# sourceMappingURL=chunk-2GF2BILF.js.map
|