@opengeni/contracts 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.
package/dist/atlassian.js CHANGED
@@ -17,12 +17,13 @@ import {
17
17
  AtlassianSyncCadence,
18
18
  SaveAtlassianSourcesRequest,
19
19
  atlassianScopesAllowRead
20
- } from "./chunk-VSM752ZW.js";
20
+ } from "./chunk-L73LKLKP.js";
21
21
  import "./chunk-5IXYF6XN.js";
22
22
  import "./chunk-NRMCVHAU.js";
23
23
  import "./chunk-WYBDERIY.js";
24
24
  import "./chunk-4JGHSSB7.js";
25
25
  import "./chunk-EK7NDGFR.js";
26
+ import "./chunk-XSBEB2HQ.js";
26
27
  import "./chunk-O77VSFYZ.js";
27
28
  import "./chunk-NVJMJWLL.js";
28
29
  import "./chunk-SIOU2K4U.js";
@@ -13,6 +13,9 @@ import {
13
13
  UsageAllowanceStatus,
14
14
  UsageAllowanceWindow
15
15
  } from "./chunk-EK7NDGFR.js";
16
+ import {
17
+ modelLogoUrl
18
+ } from "./chunk-XSBEB2HQ.js";
16
19
  import {
17
20
  OPENGENI_WEBHOOK_TEST_EVENT_TYPE,
18
21
  WORKSPACE_WEBHOOK_EVENT_TYPES
@@ -14952,11 +14955,22 @@ var McpConnectionAccountSelections = z57.array(McpConnectionAccountSelection).ma
14952
14955
  seen.add(key);
14953
14956
  }
14954
14957
  });
14958
+ var PromotionalCreditScope = z57.object({
14959
+ label: z57.string().trim().min(1).max(120),
14960
+ eligibleModelIds: z57.array(z57.string().trim().min(1).max(200)).min(1).max(40)
14961
+ });
14962
+ var PromotionalCreditBalance = PromotionalCreditScope.extend({
14963
+ grantId: z57.string().uuid(),
14964
+ remainingMicros: z57.number().int().nonnegative()
14965
+ });
14955
14966
  var BillingBalance = z57.object({
14956
14967
  accountId: z57.string().uuid(),
14957
14968
  balanceMicros: z57.number().int(),
14958
14969
  currency: z57.literal("usd"),
14959
- updatedAt: z57.string()
14970
+ updatedAt: z57.string(),
14971
+ /** General credits, including unrestricted legacy grants. May be negative after use. */
14972
+ generalBalanceMicros: z57.number().int().optional(),
14973
+ promotionalCredits: z57.array(PromotionalCreditBalance).optional()
14960
14974
  });
14961
14975
  var CreateCheckoutRequest = z57.object({
14962
14976
  accountId: z57.string().uuid().optional(),
@@ -14977,7 +14991,8 @@ var CreateCheckoutResponse = z57.object({
14977
14991
  checkoutSessionId: z57.string(),
14978
14992
  url: z57.string().url(),
14979
14993
  /** The credits this checkout grants once it completes. */
14980
- amountUsd: z57.number().optional()
14994
+ amountUsd: z57.number().optional(),
14995
+ promotionalScope: PromotionalCreditScope.optional()
14981
14996
  });
14982
14997
  var BillingCheckoutStatus = z57.object({
14983
14998
  checkoutSessionId: z57.string(),
@@ -14987,7 +15002,8 @@ var BillingCheckoutStatus = z57.object({
14987
15002
  amountMicros: z57.number().int(),
14988
15003
  currency: z57.literal("usd"),
14989
15004
  /** True when a coupon covered the whole checkout, so nothing was charged. */
14990
- free: z57.boolean()
15005
+ free: z57.boolean(),
15006
+ promotionalScope: PromotionalCreditScope.optional()
14991
15007
  }),
14992
15008
  balance: BillingBalance.nullable()
14993
15009
  });
@@ -24097,6 +24113,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
24097
24113
  label: z57.string(),
24098
24114
  /** Optional curated compact label for dense UI (e.g. mobile composer). */
24099
24115
  shortLabel: z57.string().min(1).max(64).optional(),
24116
+ logoUrl: z57.string().refine((value) => modelLogoUrl({ id: "", logoUrl: value }) !== null).optional(),
24100
24117
  provider: z57.string(),
24101
24118
  // provider id
24102
24119
  providerLabel: z57.string(),
@@ -24189,6 +24206,8 @@ var ModelAvailabilityV1 = /* @__PURE__ */ defineModelContractSchema(
24189
24206
  var WorkspaceModelCatalogModel = /* @__PURE__ */ defineModelContractSchema(
24190
24207
  () => ClientModel.extend({
24191
24208
  credentialReadiness: ModelCredentialReadinessV1,
24209
+ /** Current funding status, without exposing the organization's balance. */
24210
+ creditFunding: z57.enum(["promotional", "general", "unavailable"]).optional(),
24192
24211
  /** Exact workspace-policy verdict without exposing provider identity. */
24193
24212
  policyAllowed: z57.boolean().optional(),
24194
24213
  availability: ModelAvailabilityV1
@@ -25730,6 +25749,8 @@ export {
25730
25749
  McpConnectionAccountBindings,
25731
25750
  McpConnectionAccountSelection,
25732
25751
  McpConnectionAccountSelections,
25752
+ PromotionalCreditScope,
25753
+ PromotionalCreditBalance,
25733
25754
  BillingBalance,
25734
25755
  CreateCheckoutRequest,
25735
25756
  CreateCheckoutResponse,
@@ -26567,4 +26588,4 @@ export {
26567
26588
  AtlassianDisconnectRequest,
26568
26589
  atlassianScopesAllowRead
26569
26590
  };
26570
- //# sourceMappingURL=chunk-VSM752ZW.js.map
26591
+ //# sourceMappingURL=chunk-L73LKLKP.js.map