@opengeni/sdk 1.1.0 → 1.2.0

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.
Files changed (51) hide show
  1. package/dist/adapters/next.js +2 -2
  2. package/dist/artifacts.js +5 -4
  3. package/dist/browser.js +3 -2
  4. package/dist/chat/index.js +6 -5
  5. package/dist/chat/index.js.map +1 -1
  6. package/dist/{chunk-E3KHK7FG.js → chunk-2NIR4WBR.js} +2 -2
  7. package/dist/{chunk-T6HNHCN2.js → chunk-2ULNDOLD.js} +2 -2
  8. package/dist/{chunk-ZBMS2HCV.js → chunk-2VPO6IQC.js} +2 -2
  9. package/dist/{chunk-BNZNLUD4.js → chunk-5AN2FLNC.js} +35 -2
  10. package/dist/chunk-5AN2FLNC.js.map +1 -0
  11. package/dist/{chunk-YH3W3HZZ.js → chunk-66AKEWV6.js} +2 -2
  12. package/dist/{chunk-ZKPY6YAJ.js → chunk-6Z5QRYHG.js} +12 -1
  13. package/dist/chunk-6Z5QRYHG.js.map +1 -0
  14. package/dist/{chunk-H6WMYN23.js → chunk-TZFJUYCT.js} +2 -2
  15. package/dist/chunk-VPVMLM7Q.js +15 -0
  16. package/dist/chunk-VPVMLM7Q.js.map +1 -0
  17. package/dist/{chunk-RLLUZFOW.js → chunk-WIYAB33K.js} +1 -1
  18. package/dist/chunk-WIYAB33K.js.map +1 -0
  19. package/dist/client.d.ts +12 -0
  20. package/dist/core.js +4 -3
  21. package/dist/document-authority.js +4 -3
  22. package/dist/editable-artifacts.js +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +9 -8
  25. package/dist/index.js.map +1 -1
  26. package/dist/insights-usage.d.ts +33 -0
  27. package/dist/insights-usage.js +7 -0
  28. package/dist/insights-usage.js.map +1 -0
  29. package/dist/model-display.d.ts +1 -1
  30. package/dist/model-display.js +3 -1
  31. package/dist/session-proxy.js +2 -2
  32. package/dist/site-browser-runtime.gen.d.ts +1 -1
  33. package/dist/site-document.js +1 -1
  34. package/dist/site-document.js.map +1 -1
  35. package/dist/site.js +4 -3
  36. package/dist/types.d.ts +16 -0
  37. package/package.json +7 -3
  38. package/src/client.ts +69 -0
  39. package/src/index.ts +2 -0
  40. package/src/insights-usage.ts +61 -0
  41. package/src/model-display.ts +1 -0
  42. package/src/site-browser-runtime.gen.ts +1 -1
  43. package/src/types.ts +39 -0
  44. package/dist/chunk-BNZNLUD4.js.map +0 -1
  45. package/dist/chunk-RLLUZFOW.js.map +0 -1
  46. package/dist/chunk-ZKPY6YAJ.js.map +0 -1
  47. /package/dist/{chunk-E3KHK7FG.js.map → chunk-2NIR4WBR.js.map} +0 -0
  48. /package/dist/{chunk-T6HNHCN2.js.map → chunk-2ULNDOLD.js.map} +0 -0
  49. /package/dist/{chunk-ZBMS2HCV.js.map → chunk-2VPO6IQC.js.map} +0 -0
  50. /package/dist/{chunk-YH3W3HZZ.js.map → chunk-66AKEWV6.js.map} +0 -0
  51. /package/dist/{chunk-H6WMYN23.js.map → chunk-TZFJUYCT.js.map} +0 -0
package/src/types.ts CHANGED
@@ -1,4 +1,26 @@
1
1
  import type { WorkspaceTranscriptionPolicy } from "./transcription";
2
+ export type {
3
+ InsightsUsageRange,
4
+ InsightsUsageGroupBy,
5
+ InsightsUsagePayer,
6
+ InsightsUsageSource,
7
+ InsightsUsageTokens,
8
+ InsightsUsageClassMicros,
9
+ InsightsUsageMeasures,
10
+ InsightsUsageScope,
11
+ InsightsUsageGroup,
12
+ InsightsUsageSeriesPoint,
13
+ InsightsUsageFacets,
14
+ InsightsUsageResponse,
15
+ InsightsCall,
16
+ InsightsCallsResponse,
17
+ InsightsUsageWindowOptions,
18
+ WorkspaceInsightsUsageOptions,
19
+ OrganizationInsightsUsageOptions,
20
+ WorkspaceInsightsCallsOptions,
21
+ OrganizationInsightsCallsOptions,
22
+ InsightsCallsScope,
23
+ } from "./insights-usage";
2
24
  export type {
3
25
  ClaudeSubscriptionOAuthStartResponse,
4
26
  ClaudeSubscriptionOAuthCompleteRequest,
@@ -3605,6 +3627,8 @@ export type ClientModel = {
3605
3627
  label: string;
3606
3628
  /** Optional curated compact label for dense UI (e.g. mobile composer). */
3607
3629
  shortLabel?: string | undefined;
3630
+ /** Optional HTTPS maker logo supplied by the model catalog. */
3631
+ logoUrl?: string | undefined;
3608
3632
  /** Provider id (e.g. `openai`, `azure`, or a registry provider id). */
3609
3633
  provider: string;
3610
3634
  providerLabel: string;
@@ -3665,6 +3689,7 @@ export type ModelCredentialReadinessV1 = {
3665
3689
 
3666
3690
  export type WorkspaceModelCatalogModel = ClientModel & {
3667
3691
  credentialReadiness: ModelCredentialReadinessV1;
3692
+ creditFunding?: "promotional" | "general" | "unavailable" | undefined;
3668
3693
  /** Exact workspace-policy verdict without exposing provider identity. */
3669
3694
  policyAllowed?: boolean | undefined;
3670
3695
  availability: ModelAvailabilityV1;
@@ -8170,11 +8195,23 @@ export type BillingMode = "disabled" | "stripe";
8170
8195
 
8171
8196
  export type EntitlementsMode = "none" | "static" | "managed";
8172
8197
 
8198
+ export type PromotionalCreditScope = {
8199
+ label: string;
8200
+ eligibleModelIds: string[];
8201
+ };
8202
+
8203
+ export type PromotionalCreditBalance = PromotionalCreditScope & {
8204
+ grantId: string;
8205
+ remainingMicros: number;
8206
+ };
8207
+
8173
8208
  export type BillingBalance = {
8174
8209
  accountId: string;
8175
8210
  balanceMicros: number;
8176
8211
  currency: "usd";
8177
8212
  updatedAt: string;
8213
+ generalBalanceMicros?: number | undefined;
8214
+ promotionalCredits?: PromotionalCreditBalance[] | undefined;
8178
8215
  };
8179
8216
 
8180
8217
  export const KNOWN_USAGE_EVENT_TYPES = [
@@ -8521,6 +8558,7 @@ export type CreateCheckoutResponse = {
8521
8558
  url: string;
8522
8559
  /** The credits this checkout grants once it completes. */
8523
8560
  amountUsd?: number | undefined;
8561
+ promotionalScope?: PromotionalCreditScope | undefined;
8524
8562
  };
8525
8563
 
8526
8564
  /** Where one checkout stands, and whether its credits reached the balance. */
@@ -8533,6 +8571,7 @@ export type BillingCheckoutStatus = {
8533
8571
  currency: "usd";
8534
8572
  /** True when a coupon covered the whole checkout, so nothing was charged. */
8535
8573
  free: boolean;
8574
+ promotionalScope?: PromotionalCreditScope | undefined;
8536
8575
  };
8537
8576
  balance: BillingBalance | null;
8538
8577
  };