@dvina/sdk 4.1.76 → 4.1.89
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/angular/index.js +1 -1
- package/dist/billing/index.d.ts +29 -0
- package/dist/billing/index.js +1 -1
- package/dist/chunk-DNCW73ED.js +5 -0
- package/dist/{chunk-SJ6Q5IDB.js → chunk-YUQTEBYO.js} +7 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2RXHPDJI.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {e,d,c,a,j}from'./chunk-5E7LX4YQ.js';var Me=(o=>(o.Enterprise="enterprise",o.Free="free",o.Max="max",o.Plus="plus",o.Pro="pro",o))(Me||{}),Ve=(a=>(a.Daily="DAILY",a.Monthly="MONTHLY",a.Weekly="WEEKLY",a.Yearly="YEARLY",a))(Ve||{}),Pe=(t=>(t.Revcat="REVCAT",t.Stripe="STRIPE",t))(Pe||{});var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierOrders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tierOrders"}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entitlements"}}]}}]},$={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlementsForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlementsForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProrationAmount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prorationAmount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpgradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DowngradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"downgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"additionalSeats"},value:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}}}]}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeBillingCycle"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeBillingCycle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"seatsToRemove"},value:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}}}]}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscription"}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscription"}}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}]}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"releaseSchedule"}}]}}]},pe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCheckoutSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"successUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCheckoutSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"priceId"},value:{kind:"Variable",name:{kind:"Name",value:"priceId"}}},{kind:"Argument",name:{kind:"Name",value:"successUrl"},value:{kind:"Variable",name:{kind:"Name",value:"successUrl"}}},{kind:"Argument",name:{kind:"Name",value:"cancelUrl"},value:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomerPortalSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomerPortalSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"returnUrl"},value:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]};function Se(e,n){throw new Error(n)}var U={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},we=new Set(Object.keys(U));function _(e){let n=e?.kind;return typeof n=="string"&&we.has(n)}var L;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(L||(L={}));var N;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";})(N||(N={}));function Q(e){return e===9||e===32}function ye(e,n){let t=e.replace(/"""/g,'\\"""'),i=t.split(/\r\n|[\n\r]/g),a=i.length===1,o=i.length>1&&i.slice(1).every(b=>b.length===0||Q(b.charCodeAt(0))),c=t.endsWith('\\"""'),d=e.endsWith('"')&&!c,u=e.endsWith("\\"),s=d||u,m=(!a||e.length>70||s||o||c),p="",y=a&&Q(e.charCodeAt(0));return (m&&!y||o)&&(p+=`
|
|
1
|
+
import {e,d,c,a,j}from'./chunk-5E7LX4YQ.js';var Me=(o=>(o.Enterprise="enterprise",o.Free="free",o.Max="max",o.Plus="plus",o.Pro="pro",o))(Me||{}),Ve=(a=>(a.Daily="DAILY",a.Monthly="MONTHLY",a.Weekly="WEEKLY",a.Yearly="YEARLY",a))(Ve||{}),Pe=(t=>(t.Revcat="REVCAT",t.Stripe="STRIPE",t))(Pe||{});var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"campaign"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"originalAmount"}},{kind:"Field",name:{kind:"Name",value:"discountedAmount"}},{kind:"Field",name:{kind:"Name",value:"percentOff"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"campaign"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"originalAmount"}},{kind:"Field",name:{kind:"Name",value:"discountedAmount"}},{kind:"Field",name:{kind:"Name",value:"percentOff"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierOrders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tierOrders"}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entitlements"}}]}}]},$={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlementsForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlementsForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisTokenLimit"}},{kind:"Field",name:{kind:"Name",value:"deepAnalysisCharacterLimit"}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProrationAmount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prorationAmount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpgradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DowngradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"downgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"additionalSeats"},value:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}}}]}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeBillingCycle"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeBillingCycle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"seatsToRemove"},value:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}}}]}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscription"}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscription"}}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}]}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"releaseSchedule"}}]}}]},pe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCheckoutSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"successUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCheckoutSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"priceId"},value:{kind:"Variable",name:{kind:"Name",value:"priceId"}}},{kind:"Argument",name:{kind:"Name",value:"successUrl"},value:{kind:"Variable",name:{kind:"Name",value:"successUrl"}}},{kind:"Argument",name:{kind:"Name",value:"cancelUrl"},value:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomerPortalSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomerPortalSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"returnUrl"},value:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]};function Se(e,n){throw new Error(n)}var U={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},we=new Set(Object.keys(U));function _(e){let n=e?.kind;return typeof n=="string"&&we.has(n)}var L;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(L||(L={}));var N;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";})(N||(N={}));function Q(e){return e===9||e===32}function ye(e,n){let t=e.replace(/"""/g,'\\"""'),i=t.split(/\r\n|[\n\r]/g),a=i.length===1,o=i.length>1&&i.slice(1).every(g=>g.length===0||Q(g.charCodeAt(0))),c=t.endsWith('\\"""'),d=e.endsWith('"')&&!c,u=e.endsWith("\\"),s=d||u,m=(!a||e.length>70||s||o||c),p="",y=a&&Q(e.charCodeAt(0));return (m&&!y||o)&&(p+=`
|
|
2
2
|
`),p+=t,(m||s)&&(p+=`
|
|
3
|
-
`),'"""'+p+'"""'}function ve(e){return
|
|
3
|
+
`),'"""'+p+'"""'}function ve(e){return D(e,[])}function D(e,n){switch(typeof e){case "string":return JSON.stringify(e);case "function":return e.name?`[function ${e.name}]`:"[function]";case "object":return Oe(e,n);default:return String(e)}}function Oe(e,n){if(e===null)return "null";if(n.includes(e))return "[Circular]";let t=[...n,e];if(Le(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:D(i,t)}else if(Array.isArray(e))return _e(e,t);return Ue(e,t)}function Le(e){return typeof e.toJSON=="function"}function Ue(e,n){let t=Object.entries(e);return t.length===0?"{}":n.length>2?"["+Qe(e)+"]":"{ "+t.map(([a,o])=>a+": "+D(o,n)).join(", ")+" }"}function _e(e,n){if(e.length===0)return "[]";if(n.length>2)return "[Array]";let t=Math.min(10,e.length),i=e.length-t,a=[];for(let o=0;o<t;++o)a.push(D(e[o],n));return i===1?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}function Qe(e){let n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){let t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function fe(e){return `"${e.replace(Be,qe)}"`}var Be=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function qe(e){return je[e.charCodeAt(0)]}var je=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var he=Object.freeze({});function B(e,n,t=U){let i=new Map;for(let v of Object.values(N))i.set(v,ge(n,v));let a,o=Array.isArray(e),c=[e],d=-1,u=[],s=e,m,p,y=[],g=[];do{d++;let v=d===c.length,j=v&&u.length!==0;if(v){if(m=g.length===0?void 0:y[y.length-1],s=p,p=g.pop(),j)if(o){s=s.slice();let h=0;for(let[O,G]of u){let H=O-h;G===null?(s.splice(H,1),h++):s[H]=G;}}else {s=Object.defineProperties({},Object.getOwnPropertyDescriptors(s));for(let[h,O]of u)s[h]=O;}d=a.index,c=a.keys,u=a.edits,o=a.inArray,a=a.prev;}else if(p){if(m=o?d:c[d],s=p[m],s==null)continue;y.push(m);}let f;if(!Array.isArray(s)){var V,P;_(s)||Se(false,`Invalid AST Node: ${ve(s)}.`);let h=v?(V=i.get(s.kind))===null||V===void 0?void 0:V.leave:(P=i.get(s.kind))===null||P===void 0?void 0:P.enter;if(f=h?.call(n,s,m,p,y,g),f===he)break;if(f===false){if(!v){y.pop();continue}}else if(f!==void 0&&(u.push([m,f]),!v))if(_(f))s=f;else {y.pop();continue}}if(f===void 0&&j&&u.push([m,s]),v)y.pop();else {var w;a={inArray:o,index:d,keys:c,edits:u,prev:a},o=Array.isArray(s),c=o?s:(w=t[s.kind])!==null&&w!==void 0?w:[],d=-1,u=[],p&&g.push(p),p=s;}}while(a!==void 0);return u.length!==0?u[u.length-1][1]:e}function ge(e,n){let t=e[n];return typeof t=="object"?t:typeof t=="function"?{enter:t,leave:void 0}:{enter:e.enter,leave:e.leave}}function x(e){return B(e,He)}var Ge=80,He={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>r(e.definitions,`
|
|
4
4
|
|
|
5
5
|
`)},OperationDefinition:{leave(e){let n=l("(",r(e.variableDefinitions,", "),")"),t=r([e.operation,r([e.name,n]),r(e.directives," ")]," ");return (t==="query"?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:n,defaultValue:t,directives:i})=>e+": "+n+l(" = ",t)+l(" ",r(i," "))},SelectionSet:{leave:({selections:e})=>S(e)},Field:{leave({alias:e,name:n,arguments:t,directives:i,selectionSet:a}){let o=l("",e,": ")+n,c=o+l("(",r(t,", "),")");return c.length>Ge&&(c=o+l(`(
|
|
6
6
|
`,F(r(t,`
|
|
@@ -9,7 +9,7 @@ import {e,d,c,a,j}from'./chunk-5E7LX4YQ.js';var Me=(o=>(o.Enterprise="enterprise
|
|
|
9
9
|
`)+r(["schema",r(n," "),S(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:n})=>e+": "+n},ScalarTypeDefinition:{leave:({description:e,name:n,directives:t})=>l("",e,`
|
|
10
10
|
`)+r(["scalar",n,r(t," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:a})=>l("",e,`
|
|
11
11
|
`)+r(["type",n,l("implements ",r(t," & ")),r(i," "),S(a)]," ")},FieldDefinition:{leave:({description:e,name:n,arguments:t,type:i,directives:a})=>l("",e,`
|
|
12
|
-
`)+n+(
|
|
12
|
+
`)+n+(be(t)?l(`(
|
|
13
13
|
`,F(r(t,`
|
|
14
14
|
`)),`
|
|
15
15
|
)`):l("(",r(t,", "),")"))+": "+i+l(" ",r(a," "))},InputValueDefinition:{leave:({description:e,name:n,type:t,defaultValue:i,directives:a})=>l("",e,`
|
|
@@ -19,13 +19,13 @@ import {e,d,c,a,j}from'./chunk-5E7LX4YQ.js';var Me=(o=>(o.Enterprise="enterprise
|
|
|
19
19
|
`)+r(["enum",n,r(t," "),S(i)]," ")},EnumValueDefinition:{leave:({description:e,name:n,directives:t})=>l("",e,`
|
|
20
20
|
`)+r([n,r(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:n,directives:t,fields:i})=>l("",e,`
|
|
21
21
|
`)+r(["input",n,r(t," "),S(i)]," ")},DirectiveDefinition:{leave:({description:e,name:n,arguments:t,repeatable:i,locations:a})=>l("",e,`
|
|
22
|
-
`)+"directive @"+n+(
|
|
22
|
+
`)+"directive @"+n+(be(t)?l(`(
|
|
23
23
|
`,F(r(t,`
|
|
24
24
|
`)),`
|
|
25
25
|
)`):l("(",r(t,", "),")"))+(i?" repeatable":"")+" on "+r(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:n})=>r(["extend schema",r(e," "),S(n)]," ")},ScalarTypeExtension:{leave:({name:e,directives:n})=>r(["extend scalar",e,r(n," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend type",e,l("implements ",r(n," & ")),r(t," "),S(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend interface",e,l("implements ",r(n," & ")),r(t," "),S(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:n,types:t})=>r(["extend union",e,r(n," "),l("= ",r(t," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:n,values:t})=>r(["extend enum",e,r(n," "),S(t)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:n,fields:t})=>r(["extend input",e,r(n," "),S(t)]," ")}};function r(e,n=""){var t;return (t=e?.filter(i=>i).join(n))!==null&&t!==void 0?t:""}function S(e){return l(`{
|
|
26
26
|
`,F(r(e,`
|
|
27
27
|
`)),`
|
|
28
28
|
}`)}function l(e,n,t=""){return n!=null&&n!==""?e+n+t:""}function F(e){return l(" ",e.replace(/\n/g,`
|
|
29
|
-
`))}function
|
|
30
|
-
`)))!==null&&n!==void 0?n:false}var C=new WeakMap;async function R(e,n){let t=C.get(e);if(!t){let a=e({forceRefresh:true}).finally(()=>{C.get(e)===a&&C.delete(e);});C.set(e,a),t=a;}let i=await t;if(n&&i===n)throw new d("Token refresh did not produce a new token",n);return i}var Ne=new WeakMap;function I(e){let n=Ne.get(e);return n||(n=x(e),Ne.set(e,n)),n}var We=new Set([e.SESSION_TOKEN_LIMIT_REACHED,e.STORAGE_LIMIT_REACHED,e.DEEP_ANALYSIS_LIMIT_EXCEEDED,e.PLAN_DETAIL_RESTRICTION,e.RESOURCE_NOT_FOUND]);function Ee(e,n){if(e)for(let t of e){let i=t.extensions?.code;if(i==null)continue;if(i===4401||i==="4401")return true;let a=String(i).toUpperCase();if(We.has(a))return false;if(a==="UNAUTHORIZED"||a==="UNAUTHENTICATED"||t.message==="Unauthorized")return true}return false}async function De(e,n,t){let i=await e.getToken(),a=e.getLanguage(),o=e.getPlatform?.(),c$1=e.getUserTimezone?.(),d$1={"Content-Type":"application/json",Authorization:`Bearer ${i}`};a&&(d$1["x-preferred-language"]=a),o&&(d$1["x-platform"]=o),c$1&&(d$1["x-user-timezone"]=c$1);let u=JSON.stringify({query:I(n),variables:t}),s;try{s=await fetch(e.url,{method:"POST",headers:d$1,body:u});}catch(m){throw m instanceof Error&&m.name==="AbortError"?m:new c(m instanceof Error?m.message:"Network request failed before reaching the server",0)}if(!s.ok)throw s.status===401||s.status===403?new d(`Authentication failed with status ${s.status}`,i):new c(`HTTP ${s.status}: ${s.statusText}`,s.status);return {response:await s.json(),usedToken:i}}var Ye=4,ze=1e3;function Ae(e){async function n(t,i,a$1=0){let o;try{o=await De(e,t,i);}catch(u){if(u instanceof d)return Te(t,i,e,u.failedToken);if(u instanceof c&&u.status===0&&a$1<Ye)return await Je(ze*(a$1+1)),n(t,i,a$1+1);throw u instanceof a&&e.onError?.(u),u}let{response:c$1,usedToken:d$1}=o;if(Ee(c$1.errors))return Te(t,i,e,d$1);if(c$1.errors?.length&&!c$1.data){let u=j(c$1.errors,I(t),i);throw e.onError?.(u),u}if(!c$1.data){let u=j([{message:"No data returned from server"}],I(t),i);throw e.onError?.(u),u}return c$1.data}return {request:(t,i)=>n(t,i)}}async function Te(e,n,t,i){try{await R(t.getToken,i);}catch{let a=new d("Token refresh failed");throw t.onError?.(a),a}return Xe(t,e,n)}async function Xe(e,n,t){let{response:i}=await De(e,n,t);if(Ee(i.errors)){let a=new d("Authentication failed after token refresh");throw e.onError?.(a),a}if(i.errors?.length&&!i.data){let a=j(i.errors,I(n),t);throw e.onError?.(a),a}return i.data}function Je(e){return new Promise(n=>setTimeout(n,e))}var $e=1e3,Fe=1e3,Ze=3,Ke=3e4;function en(e){return e instanceof Error&&e.name==="AbortError"}function xe(){return Date.now()}var M=class{constructor(n){this.options=n;}abortController;abortReason;attemptPromise;closed=false;consecutiveAuthFailures=0;forceRefreshNext=false;lastActivityAt=null;lastConnectedAt=null;lastError;reconnectAttempt=0;reconnectTimer;restartAfterCurrentAttempt=false;state="idle";staleTimer;shouldRun=false;get snapshot(){return {consecutiveAuthFailures:this.consecutiveAuthFailures,id:this.options.id,kind:this.options.kind,lastActivityAt:this.lastActivityAt,lastConnectedAt:this.lastConnectedAt,lastError:this.lastError,reconnectAttempt:this.reconnectAttempt,state:this.state}}async start(){if(this.closed)throw new Error(`Connection '${this.options.kind}:${this.options.id}' is closed`);return this.shouldRun=true,this.clearReconnectTimer(),this.attemptPromise&&this.abortReason&&(this.restartAfterCurrentAttempt=true),this.ensureAttempt()}stop(){this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("idle");}close(){this.closed=true,this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("closed");}reconnect(){if(!this.closed){if(this.shouldRun=true,this.clearReconnectTimer(),this.clearStaleTimer(),this.abortController){this.restartAfterCurrentAttempt=true,this.abort("restart");return}this.ensureAttempt();}}ensureAttempt(){if(!this.shouldRun||this.closed)return Promise.resolve();if(!this.attemptPromise){let n=this.runAttempt().finally(()=>{this.attemptPromise===n&&(this.attemptPromise=void 0);});this.attemptPromise=n;}return this.attemptPromise}async runAttempt(){if(!this.shouldRun||this.closed)return;let n=this.lastConnectedAt!==null||this.reconnectAttempt>0;this.setState("connecting"),this.lastError=void 0,this.abortReason=void 0;let t=new AbortController;this.abortController=t;try{let i=this.forceRefreshNext?await R(this.options.getToken):await this.options.getToken(void 0);if(this.forceRefreshNext=!1,await this.options.dial({isReconnect:n,markActivity:()=>this.markActivity(),markConnected:()=>this.markConnected(),requestTokenRefresh:()=>{this.forceRefreshNext=!0;},signal:t.signal,token:i}),!this.shouldRun||this.closed)return;this.scheduleReconnect("end");}catch(i){if(en(i)){this.abortReason==="stale"&&this.shouldRun&&!this.closed&&this.scheduleReconnect("end");return}if(!this.shouldRun||this.closed)return;this.handleFailure(i);}finally{this.abortController===t&&(this.abortController=void 0),this.abortReason=void 0,this.restartAfterCurrentAttempt&&this.shouldRun&&!this.closed&&(this.restartAfterCurrentAttempt=false,queueMicrotask(()=>{!this.closed&&this.shouldRun&&this.ensureAttempt();}));}}handleFailure(n){if(this.lastError=n,n instanceof d){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}if(this.options.isAuthError?.(n)??false){if(this.consecutiveAuthFailures+=1,this.forceRefreshNext=true,this.setState("reconnecting"),this.consecutiveAuthFailures>=(this.options.maxConsecutiveAuthFailures??Ze)){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}this.scheduleReconnect("auth");return}this.consecutiveAuthFailures=0,typeof navigator<"u"&&"onLine"in navigator&&navigator.onLine===false?this.setState("offline"):this.setState("reconnecting"),this.scheduleReconnect("failure");}scheduleReconnect(n){if(!this.shouldRun||this.closed)return;this.clearReconnectTimer(),this.clearStaleTimer();let t=n==="auth"?this.options.authRetryDelayMs??$e:n==="failure"?this.nextReconnectDelay():this.options.baseReconnectDelayMs??Fe;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.ensureAttempt();},t);}nextReconnectDelay(){let n=this.options.baseReconnectDelayMs??Fe,t=this.options.maxReconnectDelayMs??Ke,i=Math.min(n*Math.pow(2,this.reconnectAttempt),t);return this.reconnectAttempt+=1,this.options.jitter==="full"?Math.floor(Math.random()*i):i}markConnected(){this.consecutiveAuthFailures=0,this.reconnectAttempt=0,this.lastConnectedAt=xe(),this.setState("connected"),this.markActivity();}markActivity(){this.lastActivityAt=xe(),this.armStaleTimer();}armStaleTimer(){this.clearStaleTimer();let n=this.options.staleTimeoutMs;!n||n<=0||this.state!=="connected"||(this.staleTimer=setTimeout(()=>{!this.shouldRun||this.closed||!this.abortController||(this.setState("stale"),this.abort("stale"));},n));}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0);}clearStaleTimer(){this.staleTimer&&(clearTimeout(this.staleTimer),this.staleTimer=void 0);}abort(n){this.abortController&&(this.abortReason=n,this.abortController.abort(),this.abortController=void 0);}setState(n){this.state!==n&&(this.state=n,this.options.onStateChange?.(this.snapshot));}};async function Ce(e,n,t){let i=e.getReader(),a=new TextDecoder,o="";try{for(;!n.aborted;){let{done:c,value:d}=await i.read();if(c)break;t.onChunk?.(),o+=a.decode(d,{stream:!0});let u=o.split(/(?:\r\n|\r|\n){2}/);o=u.pop()??"";for(let s of u)t.onEventBlock(s.trim());}}finally{i.releaseLock();}}var Re=1e3,nn=3e4,tn=3,an=35e3,T=class extends Error{constructor(t){super(`Billing SSE auth failed: ${t}`);this.status=t;this.name="BillingAuthStreamError";}},q=class{constructor(n,t){this.options=n;this.onClose=t;this.supervisor=new M({authRetryDelayMs:Re,baseReconnectDelayMs:Re,getToken:n.getToken,id:`billing-${Math.random().toString(36).slice(2)}`,isAuthError:i=>i instanceof T,kind:"billing-sse",maxConsecutiveAuthFailures:tn,maxReconnectDelayMs:nn,onFatalError:()=>{this.options.onError?.(new d("Billing SSE stream authentication failed permanently")),this.close();},staleTimeoutMs:an,dial:async i=>{let a=await fetch(this.options.billingSseUrl,{method:"GET",headers:{Authorization:`Bearer ${i.token}`,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:i.signal});if(!a.ok)throw a.status===401||a.status===403?new T(a.status):new Error(`Billing SSE failed: ${a.status} ${a.statusText}`);if(!a.body)throw new Error("Billing SSE response has no body");i.markConnected(),await Ce(a.body,i.signal,{onChunk:()=>i.markActivity(),onEventBlock:o=>this.processEventBlock(o,i.requestTokenRefresh)});}});}abortFinished=false;queue=[];pendingResolve=null;supervisor;start(){this.supervisor.start();}reconnect(){this.abortFinished||this.supervisor.reconnect();}next(){return this.queue.length>0?Promise.resolve({value:this.queue.shift(),done:false}):this.abortFinished?Promise.resolve({value:void 0,done:true}):new Promise(n=>{this.pendingResolve=n;})}return(){return this.close(),Promise.resolve({value:void 0,done:true})}[Symbol.asyncIterator](){return this}close(){this.abortFinished||(this.abortFinished=true,this.supervisor.close(),this.pendingResolve&&(this.pendingResolve({value:void 0,done:true}),this.pendingResolve=null),this.onClose(this));}push(n){if(!this.abortFinished){if(this.pendingResolve){this.pendingResolve({value:n,done:false}),this.pendingResolve=null;return}this.queue.length=0,this.queue.push(n);}}processEventBlock(n,t){if(!n||n.startsWith(":"))return;let i,a=[];for(let o of n.split(/\r\n|\r|\n/))o.startsWith("event: ")?i=o.slice(7).trim():o.startsWith("data: ")&&a.push(o.slice(6));if(i==="token-expired")throw t(),new T(401);if(!(i!=="subscription"||a.length===0))try{let o=JSON.parse(a.join(`
|
|
31
|
-
`));this.push(o);}catch{}}},Ie=class{http;options;activeUpdateStreams=new Set;constructor(n){this.options=n,this.http=
|
|
29
|
+
`))}function be(e){var n;return (n=e?.some(t=>t.includes(`
|
|
30
|
+
`)))!==null&&n!==void 0?n:false}var C=new WeakMap;async function R(e,n){let t=C.get(e);if(!t){let a=e({forceRefresh:true}).finally(()=>{C.get(e)===a&&C.delete(e);});C.set(e,a),t=a;}let i=await t;if(n&&i===n)throw new d("Token refresh did not produce a new token",n);return i}var Ne=new WeakMap;function I(e){let n=Ne.get(e);return n||(n=x(e),Ne.set(e,n)),n}var We=new Set([e.SESSION_TOKEN_LIMIT_REACHED,e.STORAGE_LIMIT_REACHED,e.DEEP_ANALYSIS_LIMIT_EXCEEDED,e.PLAN_DETAIL_RESTRICTION,e.RESOURCE_NOT_FOUND]);function Ee(e,n){if(e)for(let t of e){let i=t.extensions?.code;if(i==null)continue;if(i===4401||i==="4401")return true;let a=String(i).toUpperCase();if(We.has(a))return false;if(a==="UNAUTHORIZED"||a==="UNAUTHENTICATED"||t.message==="Unauthorized")return true}return false}async function Ae(e,n,t){let i=await e.getToken(),a=e.getLanguage(),o=e.getPlatform?.(),c$1=e.getUserTimezone?.(),d$1={"Content-Type":"application/json",Authorization:`Bearer ${i}`};a&&(d$1["x-preferred-language"]=a),o&&(d$1["x-platform"]=o),c$1&&(d$1["x-user-timezone"]=c$1);let u=JSON.stringify({query:I(n),variables:t}),s;try{s=await fetch(e.url,{method:"POST",headers:d$1,body:u});}catch(m){throw m instanceof Error&&m.name==="AbortError"?m:new c(m instanceof Error?m.message:"Network request failed before reaching the server",0)}if(!s.ok)throw s.status===401||s.status===403?new d(`Authentication failed with status ${s.status}`,i):new c(`HTTP ${s.status}: ${s.statusText}`,s.status);return {response:await s.json(),usedToken:i}}var Ye=4,ze=1e3;function De(e){async function n(t,i,a$1=0){let o;try{o=await Ae(e,t,i);}catch(u){if(u instanceof d)return Te(t,i,e,u.failedToken);if(u instanceof c&&u.status===0&&a$1<Ye)return await Je(ze*(a$1+1)),n(t,i,a$1+1);throw u instanceof a&&e.onError?.(u),u}let{response:c$1,usedToken:d$1}=o;if(Ee(c$1.errors))return Te(t,i,e,d$1);if(c$1.errors?.length&&!c$1.data){let u=j(c$1.errors,I(t),i);throw e.onError?.(u),u}if(!c$1.data){let u=j([{message:"No data returned from server"}],I(t),i);throw e.onError?.(u),u}return c$1.data}return {request:(t,i)=>n(t,i)}}async function Te(e,n,t,i){try{await R(t.getToken,i);}catch{let a=new d("Token refresh failed");throw t.onError?.(a),a}return Xe(t,e,n)}async function Xe(e,n,t){let{response:i}=await Ae(e,n,t);if(Ee(i.errors)){let a=new d("Authentication failed after token refresh");throw e.onError?.(a),a}if(i.errors?.length&&!i.data){let a=j(i.errors,I(n),t);throw e.onError?.(a),a}return i.data}function Je(e){return new Promise(n=>setTimeout(n,e))}var $e=1e3,Fe=1e3,Ze=3,Ke=3e4;function en(e){return e instanceof Error&&e.name==="AbortError"}function xe(){return Date.now()}var M=class{constructor(n){this.options=n;}abortController;abortReason;attemptPromise;closed=false;consecutiveAuthFailures=0;forceRefreshNext=false;lastActivityAt=null;lastConnectedAt=null;lastError;reconnectAttempt=0;reconnectTimer;restartAfterCurrentAttempt=false;state="idle";staleTimer;shouldRun=false;get snapshot(){return {consecutiveAuthFailures:this.consecutiveAuthFailures,id:this.options.id,kind:this.options.kind,lastActivityAt:this.lastActivityAt,lastConnectedAt:this.lastConnectedAt,lastError:this.lastError,reconnectAttempt:this.reconnectAttempt,state:this.state}}async start(){if(this.closed)throw new Error(`Connection '${this.options.kind}:${this.options.id}' is closed`);return this.shouldRun=true,this.clearReconnectTimer(),this.attemptPromise&&this.abortReason&&(this.restartAfterCurrentAttempt=true),this.ensureAttempt()}stop(){this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("idle");}close(){this.closed=true,this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("closed");}reconnect(){if(!this.closed){if(this.shouldRun=true,this.clearReconnectTimer(),this.clearStaleTimer(),this.abortController){this.restartAfterCurrentAttempt=true,this.abort("restart");return}this.ensureAttempt();}}ensureAttempt(){if(!this.shouldRun||this.closed)return Promise.resolve();if(!this.attemptPromise){let n=this.runAttempt().finally(()=>{this.attemptPromise===n&&(this.attemptPromise=void 0);});this.attemptPromise=n;}return this.attemptPromise}async runAttempt(){if(!this.shouldRun||this.closed)return;let n=this.lastConnectedAt!==null||this.reconnectAttempt>0;this.setState("connecting"),this.lastError=void 0,this.abortReason=void 0;let t=new AbortController;this.abortController=t;try{let i=this.forceRefreshNext?await R(this.options.getToken):await this.options.getToken(void 0);if(this.forceRefreshNext=!1,await this.options.dial({isReconnect:n,markActivity:()=>this.markActivity(),markConnected:()=>this.markConnected(),requestTokenRefresh:()=>{this.forceRefreshNext=!0;},signal:t.signal,token:i}),!this.shouldRun||this.closed)return;this.scheduleReconnect("end");}catch(i){if(en(i)){this.abortReason==="stale"&&this.shouldRun&&!this.closed&&this.scheduleReconnect("end");return}if(!this.shouldRun||this.closed)return;this.handleFailure(i);}finally{this.abortController===t&&(this.abortController=void 0),this.abortReason=void 0,this.restartAfterCurrentAttempt&&this.shouldRun&&!this.closed&&(this.restartAfterCurrentAttempt=false,queueMicrotask(()=>{!this.closed&&this.shouldRun&&this.ensureAttempt();}));}}handleFailure(n){if(this.lastError=n,n instanceof d){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}if(this.options.isAuthError?.(n)??false){if(this.consecutiveAuthFailures+=1,this.forceRefreshNext=true,this.setState("reconnecting"),this.consecutiveAuthFailures>=(this.options.maxConsecutiveAuthFailures??Ze)){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}this.scheduleReconnect("auth");return}this.consecutiveAuthFailures=0,typeof navigator<"u"&&"onLine"in navigator&&navigator.onLine===false?this.setState("offline"):this.setState("reconnecting"),this.scheduleReconnect("failure");}scheduleReconnect(n){if(!this.shouldRun||this.closed)return;this.clearReconnectTimer(),this.clearStaleTimer();let t=n==="auth"?this.options.authRetryDelayMs??$e:n==="failure"?this.nextReconnectDelay():this.options.baseReconnectDelayMs??Fe;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.ensureAttempt();},t);}nextReconnectDelay(){let n=this.options.baseReconnectDelayMs??Fe,t=this.options.maxReconnectDelayMs??Ke,i=Math.min(n*Math.pow(2,this.reconnectAttempt),t);return this.reconnectAttempt+=1,this.options.jitter==="full"?Math.floor(Math.random()*i):i}markConnected(){this.consecutiveAuthFailures=0,this.reconnectAttempt=0,this.lastConnectedAt=xe(),this.setState("connected"),this.markActivity();}markActivity(){this.lastActivityAt=xe(),this.armStaleTimer();}armStaleTimer(){this.clearStaleTimer();let n=this.options.staleTimeoutMs;!n||n<=0||this.state!=="connected"||(this.staleTimer=setTimeout(()=>{!this.shouldRun||this.closed||!this.abortController||(this.setState("stale"),this.abort("stale"));},n));}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0);}clearStaleTimer(){this.staleTimer&&(clearTimeout(this.staleTimer),this.staleTimer=void 0);}abort(n){this.abortController&&(this.abortReason=n,this.abortController.abort(),this.abortController=void 0);}setState(n){this.state!==n&&(this.state=n,this.options.onStateChange?.(this.snapshot));}};async function Ce(e,n,t){let i=e.getReader(),a=new TextDecoder,o="";try{for(;!n.aborted;){let{done:c,value:d}=await i.read();if(c)break;t.onChunk?.(),o+=a.decode(d,{stream:!0});let u=o.split(/(?:\r\n|\r|\n){2}/);o=u.pop()??"";for(let s of u)t.onEventBlock(s.trim());}}finally{i.releaseLock();}}var Re=1e3,nn=3e4,tn=3,an=35e3,T=class extends Error{constructor(t){super(`Billing SSE auth failed: ${t}`);this.status=t;this.name="BillingAuthStreamError";}},q=class{constructor(n,t){this.options=n;this.onClose=t;this.supervisor=new M({authRetryDelayMs:Re,baseReconnectDelayMs:Re,getToken:n.getToken,id:`billing-${Math.random().toString(36).slice(2)}`,isAuthError:i=>i instanceof T,kind:"billing-sse",maxConsecutiveAuthFailures:tn,maxReconnectDelayMs:nn,onFatalError:()=>{this.options.onError?.(new d("Billing SSE stream authentication failed permanently")),this.close();},staleTimeoutMs:an,dial:async i=>{let a=await fetch(this.options.billingSseUrl,{method:"GET",headers:{Authorization:`Bearer ${i.token}`,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:i.signal});if(!a.ok)throw a.status===401||a.status===403?new T(a.status):new Error(`Billing SSE failed: ${a.status} ${a.statusText}`);if(!a.body)throw new Error("Billing SSE response has no body");i.markConnected(),await Ce(a.body,i.signal,{onChunk:()=>i.markActivity(),onEventBlock:o=>this.processEventBlock(o,i.requestTokenRefresh)});}});}abortFinished=false;queue=[];pendingResolve=null;supervisor;start(){this.supervisor.start();}reconnect(){this.abortFinished||this.supervisor.reconnect();}next(){return this.queue.length>0?Promise.resolve({value:this.queue.shift(),done:false}):this.abortFinished?Promise.resolve({value:void 0,done:true}):new Promise(n=>{this.pendingResolve=n;})}return(){return this.close(),Promise.resolve({value:void 0,done:true})}[Symbol.asyncIterator](){return this}close(){this.abortFinished||(this.abortFinished=true,this.supervisor.close(),this.pendingResolve&&(this.pendingResolve({value:void 0,done:true}),this.pendingResolve=null),this.onClose(this));}push(n){if(!this.abortFinished){if(this.pendingResolve){this.pendingResolve({value:n,done:false}),this.pendingResolve=null;return}this.queue.length=0,this.queue.push(n);}}processEventBlock(n,t){if(!n||n.startsWith(":"))return;let i,a=[];for(let o of n.split(/\r\n|\r|\n/))o.startsWith("event: ")?i=o.slice(7).trim():o.startsWith("data: ")&&a.push(o.slice(6));if(i==="token-expired")throw t(),new T(401);if(!(i!=="subscription"||a.length===0))try{let o=JSON.parse(a.join(`
|
|
31
|
+
`));this.push(o);}catch{}}},Ie=class{http;options;activeUpdateStreams=new Set;constructor(n){this.options=n,this.http=De({url:n.billingHttpUrl,getToken:n.getToken,getLanguage:()=>{},onError:n.onError});}destroy(){for(let n of Array.from(this.activeUpdateStreams))n.close();this.activeUpdateStreams.clear();}reconnectAll(){for(let n of this.activeUpdateStreams)n.reconnect();}get plans(){return {list:async()=>(await this.request(Y)).plans,get:async n=>(await this.request(z,n)).plan,entitlements:async()=>(await this.request(J)).entitlements,tierOrders:async()=>(await this.request(X)).tierOrders}}get subscription(){return {get:async()=>(await this.request($)).subscription,entitlements:async()=>(await this.request(K)).subscriptionEntitlements,upgrade:async n=>(await this.request(te,n)).upgradePlan,prorationAmount:async n=>(await this.request(ne,n)).prorationAmount,downgrade:async n=>(await this.request(ie,n)).downgradePlan,changeBillingCycle:async n=>(await this.request(re,n)).changeBillingCycle,cancel:async()=>(await this.request(se)).cancelSubscription,reactivate:async()=>(await this.request(le)).reactivateSubscription,releaseSchedule:async()=>(await this.request(me)).releaseSchedule,updates:()=>{let n=new q(this.options,t=>{this.activeUpdateStreams.delete(t);});return this.activeUpdateStreams.add(n),n.start(),n}}}get seats(){return {add:async n=>(await this.request(ae,n)).addSeats,remove:async n=>(await this.request(oe,n)).removeSeats}}get session(){return {createSession:async n=>(await this.request(pe,n)).createCheckoutSession,createCustomerPortalSession:async n=>(await this.request(ke,n)).createCustomerPortalSession}}get management(){return {subscription:async n=>(await this.request(Z,n)).subscriptionForManager,entitlements:async n=>(await this.request(ee,n)).subscriptionEntitlementsForManager,cancel:async n=>(await this.request(ue,n)).cancelSubscriptionForManager,reactivate:async n=>(await this.request(ce,n)).reactivateSubscriptionForManager,createCustomer:async n=>(await this.request(de,n)).createCustomer}}request(n,t){return this.http.request(n,t)}};export{N as a,x as b,R as c,De as d,Me as e,Ve as f,Pe as g,Ie as h};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{mc as AbortChatMutation,x as Action,nc as AddInsightToReportMutation,oc as AddMcpServerMutation,y as Agent,Bb as AgentConnection,Qd as AgentQuery,Wb as AgentSubBuilder,Rd as Agent_ChatsQuery,Sd as AgentsQuery,Td as AiProviderSettingQuery,z as Artifact,Cb as ArtifactConnection,Ud as ArtifactQuery,Xb as ArtifactSubBuilder,Vd as Artifact_ChatQuery,Wd as Artifact_Chat_DesktopDeviceQuery,Xd as Artifact_Chat_InsightQuery,Yd as Artifact_Chat_ProjectQuery,Zd as Artifact_FileQuery,_d as Artifact_MessageQuery,$d as Artifact_Message_ChatQuery,ae as Artifact_Message_ContentsQuery,be as Artifact_Message_FeedbackQuery,ce as ArtifactsQuery,A as AudioEventOutput,pc as CancelOauthFlowMutation,qc as CancelWorkspaceDeletionMutation,B as Candidate,C as CandidateEvidence,D as CandidateGenerationRejection,E as CandidateGenerationRejectionNeighbour,F as CandidateScheduleState,G as CandidateSignals,H as Chat,Db as ChatConnection,I as ChatImportExecuteOutput,J as ChatImportPreviewOutput,K as ChatMessage,Eb as ChatMessageConnection,oe as ChatMessageQuery,Zb as ChatMessageSubBuilder,pe as ChatMessage_ArtifactsQuery,qe as ChatMessage_ChatQuery,re as ChatMessage_Chat_DesktopDeviceQuery,se as ChatMessage_Chat_InsightQuery,te as ChatMessage_Chat_ProjectQuery,ue as ChatMessage_ContentsQuery,ve as ChatMessage_FeedbackQuery,we as ChatMessagesQuery,de as ChatQuery,Yb as ChatSubBuilder,L as ChatTitleEventOutput,ee as Chat_AgentsQuery,fe as Chat_ArtifactsQuery,ge as Chat_DesktopDeviceQuery,he as Chat_DesktopDevice_DesktopBindingsQuery,ie as Chat_InsightQuery,je as Chat_Insight_ReportMembersQuery,ke as Chat_Insight_ThumbnailFileQuery,le as Chat_MessagesQuery,me as Chat_ProjectQuery,ne as Chat_Project_DesktopBindingQuery,xe as ChatsQuery,rc as CloseActiveTabsMutation,sc as ConnectIntegrationMutation,tc as ConsumePulseEventsMutation,M as ContentBlock,N as ContentBlockAgentOutput,O as ContentMask,P as ContextUsageEventOutput,uc as ContinueImportedChatMutation,vc as ContinueInterpretationMutation,wc as CreateAgentMutation,xc as CreateChatMutation,yc as CreateDatabaseMutation,zc as CreateDocumentMutation,Ac as CreateFeedbackMutation,Bc as CreateFolderMutation,Cc as CreateInsightMutation,Dc as CreateIntegrationMutation,Q as CreateIntegrationOutput,Ec as CreateProjectMutation,Fc as CreateReportMutation,Gc as CreateTableMutation,Hc as CreateUserSkillFileMutation,Ic as CreateUserSkillFolderMutation,R as CubeModel,c as DB_ENTITY_SCHEMA,S as Database,T as DatabaseCatalog,Fb as DatabaseCatalogConnection,Ce as DatabaseCatalogQuery,$b as DatabaseCatalogSubBuilder,De as DatabaseCatalog_EngineQuery,Ee as DatabaseCatalogsQuery,Gb as DatabaseConnection,U as DatabaseEngine,ye as DatabaseQuery,Fe as DatabaseSchemaQuery,_b as DatabaseSubBuilder,ze as Database_EngineQuery,Ae as Database_Engine_CatalogQuery,Be as Database_TablesQuery,Ge as DatabasesQuery,V as DeepAnalysisUsage,n as DeferredDvinaQueryRef,Jc as DeleteAgentMutation,Kc as DeleteAiProviderSettingMutation,Lc as DeleteArtifactMutation,Mc as DeleteChatMutation,Nc as DeleteDatabaseMutation,Oc as DeleteDocumentMutation,Pc as DeleteFolderMutation,Qc as DeleteInsightMutation,Rc as DeleteInsightsMutation,Sc as DeleteIntegrationMutation,Tc as DeleteProjectMutation,Uc as DeleteReportMutation,Vc as DeleteSavedAiProviderModelMutation,Wc as DeleteTableMutation,Xc as DeleteUserSkillFileMutation,Yc as DeleteUserSkillFolderMutation,W as DesktopDevice,Hb as DesktopDeviceConnection,He as DesktopDeviceQuery,ac as DesktopDeviceSubBuilder,Ie as DesktopDevice_ChatsQuery,Je as DesktopDevice_DesktopBindingsQuery,Ke as DesktopDevicesQuery,X as DevAccessTokenOutput,o as DexieLiveQueryRef,Zc as DisconnectIntegrationMutation,_c as DismissPulseEventMutation,Y as Document,Z as DocumentCatalog,Ib as DocumentCatalogConnection,Re as DocumentCatalogQuery,cc as DocumentCatalogSubBuilder,Se as DocumentCatalog_FormatQuery,Te as DocumentCatalogsQuery,Jb as DocumentConnection,_ as DocumentContent,$ as DocumentFormat,Le as DocumentQuery,bc as DocumentSubBuilder,Me as Document_ContentsQuery,Ne as Document_FileQuery,Oe as Document_FormatQuery,Pe as Document_Format_CatalogQuery,Qe as Document_TablesQuery,Ue as DocumentsQuery,h as DvinaDatabase,u as DvinaModel,Fg as DvinaSdk,aa as Evidence,$c as ExecuteChatImportMutation,Ve as ExportQuery,We as ExportWithInsightIdQuery,ba as FailedSyncEventIngestion,ca as FeedArtifactData,Kb as FeedConnection,da as FeedDatabaseData,ea as FeedDocumentData,fa as FeedInsightData,ga as FeedIntegrationData,ha as FeedItem,ia as FeedItemGenerated,Xe as FeedItemQuery,dc as FeedItemSubBuilder,Ye as FeedItem_ActionQuery,Ze as FeedItem_DataQuery,_e as FeedItemsQuery,ja as FeedLiveContextData,ka as FeedProjectData,la as FeedPulseData,ma as FeedSendMessageAction,na as Feedback,oa as File,af as FileMetaQuery,pa as FileModel,$e as FileQuery,bf as FileUrlsQuery,qa as FinalContentEventOutput,cf as FindFitTierQuery,ra as Folder,Lb as FolderConnection,df as FolderQuery,ef as FoldersQuery,ad as GenerateUploadUriMutation,ff as GetCapabilityQuery,gf as GetDevAccessTokenQuery,hf as GetLimitQuery,if as GetRemainingQuery,jf as GetTokenUsageByModelQuery,kf as GetTokenUsageHistoryQuery,lf as GetTokenUsageStatusQuery,mf as GetTokenUsageStatus_WindowsQuery,nf as GetTokenUsageStatus_Windows_DayQuery,of as GetTokenUsageStatus_Windows_FiveHourQuery,pf as GetTokenUsageStatus_Windows_MonthQuery,qf as GetTokenUsageStatus_Windows_WeekQuery,rf as GetUsageQuery,sa as ImportedChatSummaryOutput,ta as InferenceRequestAudit,ua as Insight,Mb as InsightConnection,sf as InsightQuery,ec as InsightSubBuilder,tf as Insight_ChatQuery,uf as Insight_Chat_DesktopDeviceQuery,vf as Insight_Chat_ProjectQuery,wf as Insight_ReportMembersQuery,xf as Insight_ReportsQuery,yf as Insight_ThumbnailFileQuery,zf as InsightsQuery,va as Integration,wa as IntegrationCatalog,Nb as IntegrationCatalogConnection,Df as IntegrationCatalogQuery,gc as IntegrationCatalogSubBuilder,Ff as IntegrationCatalogToolsQuery,Ef as IntegrationCatalog_ProviderQuery,Gf as IntegrationCatalogsQuery,Ob as IntegrationConnection,xa as IntegrationProvider,Af as IntegrationQuery,fc as IntegrationSubBuilder,Bf as Integration_ProviderQuery,Cf as Integration_Provider_CatalogQuery,Hf as IntegrationsQuery,ya as Interpretation,Pb as InterpretationConnection,If as InterpretationsQuery,za as InterruptEventOutput,Aa as Invocation,Ba as LiveContext,Qb as LiveContextConnection,Jf as LiveContextQuery,hc as LiveContextSubBuilder,Kf as LiveContext_ItemsQuery,Lf as LiveContext_SourceQuery,Mf as LiveContext_Source_EvidencesQuery,Nf as LiveContext_Source_SignalsQuery,Of as LiveContextsQuery,Ca as LocalSandboxDeviceStatusModel,Pf as LocalSandboxDeviceStatusesQuery,g as MUTATION_CACHE_RULES,Qf as ManagedChatModelsQuery,m as MappedDvinaQueryRef,Da as McpAuthUpdateModel,Dg as McpAuthUpdatesSubscription,Ea as McpClientInformation,Fa as McpCodeVerifier,Ga as McpServer,Ha as McpServerTestOutput,Ia as McpTokens,Ja as McpTool,Ka as MessageEndEventOutput,La as MessageStartEventOutput,Ma as ModelTokenUsage,Na as Notification,Rb as NotificationConnection,Rf as NotificationQuery,Tf as NotificationsByReferenceQuery,Sf as NotificationsQuery,bd as OpenActiveTabMutation,f as PRIMARY_KEY_CONFIG,cd as PreviewChatImportMutation,Oa as PrivacyStats,Pa as PrivacyStatsOutput,Uf as PrivacyStatsQuery,Vf as PrivateMcpServersQuery,Qa as Project,Sb as ProjectConnection,Ra as ProjectDesktopBinding,Wf as ProjectQuery,ic as ProjectSubBuilder,Xf as Project_ChatsQuery,Yf as Project_DesktopBindingQuery,Zf as Project_DesktopBinding_DeviceQuery,_f as ProjectsQuery,Sa as PulseAppSummaryModel,$f as PulseAppSummaryQuery,Ta as PulseEvent,Tb as PulseEventConnection,ag as PulseEventQuery,jc as PulseEventSubBuilder,bg as PulseEvent_IntegrationQuery,cg as PulseEvent_Integration_ProviderQuery,dg as PulseEventsQuery,Ua as PulseTriggerSettingModel,eg as PulseTriggerSettingsQuery,fg as QueryQuery,gg as QueryWithInsightIdQuery,hg as QueryWithMessageIdQuery,dd as ReanalyzeDocumentMutation,Va as ReasoningEventOutput,ed as RefineAgentInstructionMutation,fd as RefineSkillInstructionMutation,gd as RefreshDatabaseSchemaMutation,hd as RefreshInsightMutation,id as RegisterDesktopDeviceMutation,jd as ReinterpretSourceMutation,kd as ReinterpretSourcesOfuserMutation,Wa as Relation,ld as RelocateInsightMutation,md as RemoveInsightFromReportMutation,nd as RemoveMcpServerMutation,Xa as Report,Ub as ReportConnection,Ya as ReportMember,ig as ReportQuery,kc as ReportSubBuilder,jg as Report_InsightsQuery,kg as Report_LayoutQuery,lg as ReportsQuery,od as ResetWorkspaceMutation,pd as ResolvePulseEventMutation,Za as ResolvedFileUrl,qd as ResumeMessageMutation,rd as ScheduleWorkspaceDeletionMutation,sd as SendMessageMutation,td as SetDatabasePrimaryKeyMutation,_a as SkillCatalogItem,mg as SkillCatalogQuery,$a as StreamEventSchemaAnchor,ab as StreamMessageContentOutput,bb as StreamMessageOutput,p as SyncEngine,cb as SyncEvent,db as SyncEventCursor,ud as SyncProjectDesktopBindingMutation,e as TABLE_TO_TYPENAME,d as TYPENAME_TO_TABLE,eb as Table,Vb as TableConnection,ng as TableQuery,lc as TableSubBuilder,og as Table_DatabaseQuery,pg as Table_Database_EngineQuery,qg as Table_DocumentQuery,rg as Table_Document_ContentsQuery,sg as Table_Document_FileQuery,tg as Table_Document_FormatQuery,ug as Table_FromRelationsQuery,vg as Table_ToRelationsQuery,wg as TablesQuery,wd as TestMcpServerConnectionMutation,vd as TestMcpServerMutation,fb as TextBlockEventOutput,gb as TextDeltaEventOutput,hb as TokenUsage,Eg as TokenUsageUpdatesSubscription,ib as ToolInputDeltaEventOutput,jb as ToolResultArtifactOutput,kb as ToolResultEventOutput,lb as ToolStartEventOutput,xd as UpdateAgentMutation,yd as UpdateArtifactNameMutation,zd as UpdateChatMutation,Ad as UpdateDatabaseMutation,Bd as UpdateDocumentMutation,Cd as UpdateFolderMutation,Ed as UpdateInsightInReportMutation,Dd as UpdateInsightMutation,Fd as UpdateInsightThumbnailMutation,Gd as UpdateInterpMutation,Hd as UpdateLiveContextMutation,Id as UpdateProjectMutation,Jd as UpdatePulseTriggerMutation,Kd as UpdateReportMutation,Ld as UpdateTableMutation,Md as UpdateUserSkillFileMutation,Nd as UpdateUserSkillFolderMutation,Od as UpsertAiProviderSettingMutation,Pd as UpsertWorkspaceAiModelMutation,mb as UsageMetaOutput,nb as UsageStatus,ob as UsageWindowsStatusType,pb as UserAiProviderSetting,qb as UserSkillFile,rb as UserSkillFileModel,xg as UserSkillFileQuery,yg as UserSkillFilesQuery,sb as UserSkillFolder,tb as UserSkillFolderModel,zg as UserSkillFolderQuery,Ag as UserSkillFoldersQuery,ub as WidgetBlockCompleteEventOutput,vb as WidgetBlockErrorEventOutput,wb as WidgetBlockStartEventOutput,xb as WidgetHtmlDeltaEventOutput,yb as WindowDetailType,Bg as WorkspaceAiModelQuery,zb as WorkspaceAiModelSetting,Ab as WorkspaceDeleteSchedule,Cg as WorkspaceDeletionScheduleQuery,j as closeDatabase,a as createChatStreamClient,t as createDvinaClient,r as createDvinaEvents,q as createLazySyncEngine,l as createSseTransport,b as createWsTransport,k as deleteDatabase,i as getOrCreateDatabase,w as reconstructConnectionNodes,v as reconstructEntity,s as uploadFile}from'./chunk-2RXHPDJI.js';export{a as extractNodes,b as mergeConnections}from'./chunk-G34ETQUN.js';export{d as AbstractConnection,e as Connection,c as PageInfo,a as Request,b as defaultConnection}from'./chunk-H3TI6B7T.js';import'./chunk-IIQ3WGOJ.js';import'./chunk-SJ6Q5IDB.js';export{d as DvinaAuthenticationError,a as DvinaError,b as DvinaGraphQLError,c as DvinaNetworkError,h as DvinaNotFoundError,f as DvinaPlanRestrictionError,g as DvinaTokenLimitError,e as GRAPHQL_ERROR_CODES,j as createGraphQLError,i as extractErrorCode}from'./chunk-5E7LX4YQ.js';export{b as ActionType,c as ActiveWindowType,d as AgentOrderByRelevanceFieldEnum,a as AiResourceType,e as ArtifactKind,f as ArtifactOrderByRelevanceFieldEnum,g as CandidateState,h as CapabilityType,i as ChatMessageFromEnum,j as ChatMessageOrderByRelevanceFieldEnum,k as ChatOrderByRelevanceFieldEnum,l as ChatSourceImportFidelityEnum,m as ChatSourceImportModeEnum,n as ChatSourceProviderEnum,o as ChatWorkspaceMode,p as ContentBlockType,q as DatabaseCatalogOrderByRelevanceFieldEnum,r as DatabaseOrderByRelevanceFieldEnum,s as DesktopDeviceOrderByRelevanceFieldEnum,t as DocumentCatalogOrderByRelevanceFieldEnum,u as DocumentOrderByRelevanceFieldEnum,v as EntitlementTier,w as FeedActionType,x as FeedItemKind,y as FeedItemOrderByRelevanceFieldEnum,z as FeedbackOrderByRelevanceFieldEnum,A as FeedbackType,B as FileOrderByRelevanceFieldEnum,C as FileUrlVariant,D as FolderOrderByRelevanceFieldEnum,E as InsightOrderByRelevanceFieldEnum,F as IntegrationCatalogOrderByRelevanceFieldEnum,G as IntegrationOrderByRelevanceFieldEnum,H as IntegrationStatus,I as InterpretationOrderByRelevanceFieldEnum,J as InterpretationType,K as LimitType,L as LiveContextOrderByRelevanceFieldEnum,M as LiveContextStatus,N as LocalSandboxDeviceConnectionState,O as McpAuthPhase,P as NotificationCategory,Q as NotificationOrderByRelevanceFieldEnum,R as NotificationPriority,S as NotificationStatus,T as NullsOrder,U as Presentation,V as ProjectDesktopBindingOrderByRelevanceFieldEnum,W as ProjectDesktopContextKind,X as ProjectOrderByRelevanceFieldEnum,Y as ProjectSource,Z as PulseEventKind,_ as PulseEventOrderByRelevanceFieldEnum,$ as PulseEventPriority,aa as QueryMode,ba as ReasoningEffort,ca as RelationType,da as ReportMemberSize,ea as ReportOrderByRelevanceFieldEnum,fa as SendMessageModel,ga as SkillCatalogSource,ha as SortOrder,ia as TableOrderByRelevanceFieldEnum,ja as TableStatus,ka as TokenUsageLimit,la as UsageHistoryGranularity}from'./chunk-2EXM4BMP.js';import'./chunk-EK7ODJWE.js';
|
|
1
|
+
export{mc as AbortChatMutation,x as Action,nc as AddInsightToReportMutation,oc as AddMcpServerMutation,y as Agent,Bb as AgentConnection,Qd as AgentQuery,Wb as AgentSubBuilder,Rd as Agent_ChatsQuery,Sd as AgentsQuery,Td as AiProviderSettingQuery,z as Artifact,Cb as ArtifactConnection,Ud as ArtifactQuery,Xb as ArtifactSubBuilder,Vd as Artifact_ChatQuery,Wd as Artifact_Chat_DesktopDeviceQuery,Xd as Artifact_Chat_InsightQuery,Yd as Artifact_Chat_ProjectQuery,Zd as Artifact_FileQuery,_d as Artifact_MessageQuery,$d as Artifact_Message_ChatQuery,ae as Artifact_Message_ContentsQuery,be as Artifact_Message_FeedbackQuery,ce as ArtifactsQuery,A as AudioEventOutput,pc as CancelOauthFlowMutation,qc as CancelWorkspaceDeletionMutation,B as Candidate,C as CandidateEvidence,D as CandidateGenerationRejection,E as CandidateGenerationRejectionNeighbour,F as CandidateScheduleState,G as CandidateSignals,H as Chat,Db as ChatConnection,I as ChatImportExecuteOutput,J as ChatImportPreviewOutput,K as ChatMessage,Eb as ChatMessageConnection,oe as ChatMessageQuery,Zb as ChatMessageSubBuilder,pe as ChatMessage_ArtifactsQuery,qe as ChatMessage_ChatQuery,re as ChatMessage_Chat_DesktopDeviceQuery,se as ChatMessage_Chat_InsightQuery,te as ChatMessage_Chat_ProjectQuery,ue as ChatMessage_ContentsQuery,ve as ChatMessage_FeedbackQuery,we as ChatMessagesQuery,de as ChatQuery,Yb as ChatSubBuilder,L as ChatTitleEventOutput,ee as Chat_AgentsQuery,fe as Chat_ArtifactsQuery,ge as Chat_DesktopDeviceQuery,he as Chat_DesktopDevice_DesktopBindingsQuery,ie as Chat_InsightQuery,je as Chat_Insight_ReportMembersQuery,ke as Chat_Insight_ThumbnailFileQuery,le as Chat_MessagesQuery,me as Chat_ProjectQuery,ne as Chat_Project_DesktopBindingQuery,xe as ChatsQuery,rc as CloseActiveTabsMutation,sc as ConnectIntegrationMutation,tc as ConsumePulseEventsMutation,M as ContentBlock,N as ContentBlockAgentOutput,O as ContentMask,P as ContextUsageEventOutput,uc as ContinueImportedChatMutation,vc as ContinueInterpretationMutation,wc as CreateAgentMutation,xc as CreateChatMutation,yc as CreateDatabaseMutation,zc as CreateDocumentMutation,Ac as CreateFeedbackMutation,Bc as CreateFolderMutation,Cc as CreateInsightMutation,Dc as CreateIntegrationMutation,Q as CreateIntegrationOutput,Ec as CreateProjectMutation,Fc as CreateReportMutation,Gc as CreateTableMutation,Hc as CreateUserSkillFileMutation,Ic as CreateUserSkillFolderMutation,R as CubeModel,c as DB_ENTITY_SCHEMA,S as Database,T as DatabaseCatalog,Fb as DatabaseCatalogConnection,Ce as DatabaseCatalogQuery,$b as DatabaseCatalogSubBuilder,De as DatabaseCatalog_EngineQuery,Ee as DatabaseCatalogsQuery,Gb as DatabaseConnection,U as DatabaseEngine,ye as DatabaseQuery,Fe as DatabaseSchemaQuery,_b as DatabaseSubBuilder,ze as Database_EngineQuery,Ae as Database_Engine_CatalogQuery,Be as Database_TablesQuery,Ge as DatabasesQuery,V as DeepAnalysisUsage,n as DeferredDvinaQueryRef,Jc as DeleteAgentMutation,Kc as DeleteAiProviderSettingMutation,Lc as DeleteArtifactMutation,Mc as DeleteChatMutation,Nc as DeleteDatabaseMutation,Oc as DeleteDocumentMutation,Pc as DeleteFolderMutation,Qc as DeleteInsightMutation,Rc as DeleteInsightsMutation,Sc as DeleteIntegrationMutation,Tc as DeleteProjectMutation,Uc as DeleteReportMutation,Vc as DeleteSavedAiProviderModelMutation,Wc as DeleteTableMutation,Xc as DeleteUserSkillFileMutation,Yc as DeleteUserSkillFolderMutation,W as DesktopDevice,Hb as DesktopDeviceConnection,He as DesktopDeviceQuery,ac as DesktopDeviceSubBuilder,Ie as DesktopDevice_ChatsQuery,Je as DesktopDevice_DesktopBindingsQuery,Ke as DesktopDevicesQuery,X as DevAccessTokenOutput,o as DexieLiveQueryRef,Zc as DisconnectIntegrationMutation,_c as DismissPulseEventMutation,Y as Document,Z as DocumentCatalog,Ib as DocumentCatalogConnection,Re as DocumentCatalogQuery,cc as DocumentCatalogSubBuilder,Se as DocumentCatalog_FormatQuery,Te as DocumentCatalogsQuery,Jb as DocumentConnection,_ as DocumentContent,$ as DocumentFormat,Le as DocumentQuery,bc as DocumentSubBuilder,Me as Document_ContentsQuery,Ne as Document_FileQuery,Oe as Document_FormatQuery,Pe as Document_Format_CatalogQuery,Qe as Document_TablesQuery,Ue as DocumentsQuery,h as DvinaDatabase,u as DvinaModel,Fg as DvinaSdk,aa as Evidence,$c as ExecuteChatImportMutation,Ve as ExportQuery,We as ExportWithInsightIdQuery,ba as FailedSyncEventIngestion,ca as FeedArtifactData,Kb as FeedConnection,da as FeedDatabaseData,ea as FeedDocumentData,fa as FeedInsightData,ga as FeedIntegrationData,ha as FeedItem,ia as FeedItemGenerated,Xe as FeedItemQuery,dc as FeedItemSubBuilder,Ye as FeedItem_ActionQuery,Ze as FeedItem_DataQuery,_e as FeedItemsQuery,ja as FeedLiveContextData,ka as FeedProjectData,la as FeedPulseData,ma as FeedSendMessageAction,na as Feedback,oa as File,af as FileMetaQuery,pa as FileModel,$e as FileQuery,bf as FileUrlsQuery,qa as FinalContentEventOutput,cf as FindFitTierQuery,ra as Folder,Lb as FolderConnection,df as FolderQuery,ef as FoldersQuery,ad as GenerateUploadUriMutation,ff as GetCapabilityQuery,gf as GetDevAccessTokenQuery,hf as GetLimitQuery,if as GetRemainingQuery,jf as GetTokenUsageByModelQuery,kf as GetTokenUsageHistoryQuery,lf as GetTokenUsageStatusQuery,mf as GetTokenUsageStatus_WindowsQuery,nf as GetTokenUsageStatus_Windows_DayQuery,of as GetTokenUsageStatus_Windows_FiveHourQuery,pf as GetTokenUsageStatus_Windows_MonthQuery,qf as GetTokenUsageStatus_Windows_WeekQuery,rf as GetUsageQuery,sa as ImportedChatSummaryOutput,ta as InferenceRequestAudit,ua as Insight,Mb as InsightConnection,sf as InsightQuery,ec as InsightSubBuilder,tf as Insight_ChatQuery,uf as Insight_Chat_DesktopDeviceQuery,vf as Insight_Chat_ProjectQuery,wf as Insight_ReportMembersQuery,xf as Insight_ReportsQuery,yf as Insight_ThumbnailFileQuery,zf as InsightsQuery,va as Integration,wa as IntegrationCatalog,Nb as IntegrationCatalogConnection,Df as IntegrationCatalogQuery,gc as IntegrationCatalogSubBuilder,Ff as IntegrationCatalogToolsQuery,Ef as IntegrationCatalog_ProviderQuery,Gf as IntegrationCatalogsQuery,Ob as IntegrationConnection,xa as IntegrationProvider,Af as IntegrationQuery,fc as IntegrationSubBuilder,Bf as Integration_ProviderQuery,Cf as Integration_Provider_CatalogQuery,Hf as IntegrationsQuery,ya as Interpretation,Pb as InterpretationConnection,If as InterpretationsQuery,za as InterruptEventOutput,Aa as Invocation,Ba as LiveContext,Qb as LiveContextConnection,Jf as LiveContextQuery,hc as LiveContextSubBuilder,Kf as LiveContext_ItemsQuery,Lf as LiveContext_SourceQuery,Mf as LiveContext_Source_EvidencesQuery,Nf as LiveContext_Source_SignalsQuery,Of as LiveContextsQuery,Ca as LocalSandboxDeviceStatusModel,Pf as LocalSandboxDeviceStatusesQuery,g as MUTATION_CACHE_RULES,Qf as ManagedChatModelsQuery,m as MappedDvinaQueryRef,Da as McpAuthUpdateModel,Dg as McpAuthUpdatesSubscription,Ea as McpClientInformation,Fa as McpCodeVerifier,Ga as McpServer,Ha as McpServerTestOutput,Ia as McpTokens,Ja as McpTool,Ka as MessageEndEventOutput,La as MessageStartEventOutput,Ma as ModelTokenUsage,Na as Notification,Rb as NotificationConnection,Rf as NotificationQuery,Tf as NotificationsByReferenceQuery,Sf as NotificationsQuery,bd as OpenActiveTabMutation,f as PRIMARY_KEY_CONFIG,cd as PreviewChatImportMutation,Oa as PrivacyStats,Pa as PrivacyStatsOutput,Uf as PrivacyStatsQuery,Vf as PrivateMcpServersQuery,Qa as Project,Sb as ProjectConnection,Ra as ProjectDesktopBinding,Wf as ProjectQuery,ic as ProjectSubBuilder,Xf as Project_ChatsQuery,Yf as Project_DesktopBindingQuery,Zf as Project_DesktopBinding_DeviceQuery,_f as ProjectsQuery,Sa as PulseAppSummaryModel,$f as PulseAppSummaryQuery,Ta as PulseEvent,Tb as PulseEventConnection,ag as PulseEventQuery,jc as PulseEventSubBuilder,bg as PulseEvent_IntegrationQuery,cg as PulseEvent_Integration_ProviderQuery,dg as PulseEventsQuery,Ua as PulseTriggerSettingModel,eg as PulseTriggerSettingsQuery,fg as QueryQuery,gg as QueryWithInsightIdQuery,hg as QueryWithMessageIdQuery,dd as ReanalyzeDocumentMutation,Va as ReasoningEventOutput,ed as RefineAgentInstructionMutation,fd as RefineSkillInstructionMutation,gd as RefreshDatabaseSchemaMutation,hd as RefreshInsightMutation,id as RegisterDesktopDeviceMutation,jd as ReinterpretSourceMutation,kd as ReinterpretSourcesOfuserMutation,Wa as Relation,ld as RelocateInsightMutation,md as RemoveInsightFromReportMutation,nd as RemoveMcpServerMutation,Xa as Report,Ub as ReportConnection,Ya as ReportMember,ig as ReportQuery,kc as ReportSubBuilder,jg as Report_InsightsQuery,kg as Report_LayoutQuery,lg as ReportsQuery,od as ResetWorkspaceMutation,pd as ResolvePulseEventMutation,Za as ResolvedFileUrl,qd as ResumeMessageMutation,rd as ScheduleWorkspaceDeletionMutation,sd as SendMessageMutation,td as SetDatabasePrimaryKeyMutation,_a as SkillCatalogItem,mg as SkillCatalogQuery,$a as StreamEventSchemaAnchor,ab as StreamMessageContentOutput,bb as StreamMessageOutput,p as SyncEngine,cb as SyncEvent,db as SyncEventCursor,ud as SyncProjectDesktopBindingMutation,e as TABLE_TO_TYPENAME,d as TYPENAME_TO_TABLE,eb as Table,Vb as TableConnection,ng as TableQuery,lc as TableSubBuilder,og as Table_DatabaseQuery,pg as Table_Database_EngineQuery,qg as Table_DocumentQuery,rg as Table_Document_ContentsQuery,sg as Table_Document_FileQuery,tg as Table_Document_FormatQuery,ug as Table_FromRelationsQuery,vg as Table_ToRelationsQuery,wg as TablesQuery,wd as TestMcpServerConnectionMutation,vd as TestMcpServerMutation,fb as TextBlockEventOutput,gb as TextDeltaEventOutput,hb as TokenUsage,Eg as TokenUsageUpdatesSubscription,ib as ToolInputDeltaEventOutput,jb as ToolResultArtifactOutput,kb as ToolResultEventOutput,lb as ToolStartEventOutput,xd as UpdateAgentMutation,yd as UpdateArtifactNameMutation,zd as UpdateChatMutation,Ad as UpdateDatabaseMutation,Bd as UpdateDocumentMutation,Cd as UpdateFolderMutation,Ed as UpdateInsightInReportMutation,Dd as UpdateInsightMutation,Fd as UpdateInsightThumbnailMutation,Gd as UpdateInterpMutation,Hd as UpdateLiveContextMutation,Id as UpdateProjectMutation,Jd as UpdatePulseTriggerMutation,Kd as UpdateReportMutation,Ld as UpdateTableMutation,Md as UpdateUserSkillFileMutation,Nd as UpdateUserSkillFolderMutation,Od as UpsertAiProviderSettingMutation,Pd as UpsertWorkspaceAiModelMutation,mb as UsageMetaOutput,nb as UsageStatus,ob as UsageWindowsStatusType,pb as UserAiProviderSetting,qb as UserSkillFile,rb as UserSkillFileModel,xg as UserSkillFileQuery,yg as UserSkillFilesQuery,sb as UserSkillFolder,tb as UserSkillFolderModel,zg as UserSkillFolderQuery,Ag as UserSkillFoldersQuery,ub as WidgetBlockCompleteEventOutput,vb as WidgetBlockErrorEventOutput,wb as WidgetBlockStartEventOutput,xb as WidgetHtmlDeltaEventOutput,yb as WindowDetailType,Bg as WorkspaceAiModelQuery,zb as WorkspaceAiModelSetting,Ab as WorkspaceDeleteSchedule,Cg as WorkspaceDeletionScheduleQuery,j as closeDatabase,a as createChatStreamClient,t as createDvinaClient,r as createDvinaEvents,q as createLazySyncEngine,l as createSseTransport,b as createWsTransport,k as deleteDatabase,i as getOrCreateDatabase,w as reconstructConnectionNodes,v as reconstructEntity,s as uploadFile}from'./chunk-DNCW73ED.js';export{a as extractNodes,b as mergeConnections}from'./chunk-G34ETQUN.js';export{d as AbstractConnection,e as Connection,c as PageInfo,a as Request,b as defaultConnection}from'./chunk-H3TI6B7T.js';import'./chunk-IIQ3WGOJ.js';import'./chunk-YUQTEBYO.js';export{d as DvinaAuthenticationError,a as DvinaError,b as DvinaGraphQLError,c as DvinaNetworkError,h as DvinaNotFoundError,f as DvinaPlanRestrictionError,g as DvinaTokenLimitError,e as GRAPHQL_ERROR_CODES,j as createGraphQLError,i as extractErrorCode}from'./chunk-5E7LX4YQ.js';export{b as ActionType,c as ActiveWindowType,d as AgentOrderByRelevanceFieldEnum,a as AiResourceType,e as ArtifactKind,f as ArtifactOrderByRelevanceFieldEnum,g as CandidateState,h as CapabilityType,i as ChatMessageFromEnum,j as ChatMessageOrderByRelevanceFieldEnum,k as ChatOrderByRelevanceFieldEnum,l as ChatSourceImportFidelityEnum,m as ChatSourceImportModeEnum,n as ChatSourceProviderEnum,o as ChatWorkspaceMode,p as ContentBlockType,q as DatabaseCatalogOrderByRelevanceFieldEnum,r as DatabaseOrderByRelevanceFieldEnum,s as DesktopDeviceOrderByRelevanceFieldEnum,t as DocumentCatalogOrderByRelevanceFieldEnum,u as DocumentOrderByRelevanceFieldEnum,v as EntitlementTier,w as FeedActionType,x as FeedItemKind,y as FeedItemOrderByRelevanceFieldEnum,z as FeedbackOrderByRelevanceFieldEnum,A as FeedbackType,B as FileOrderByRelevanceFieldEnum,C as FileUrlVariant,D as FolderOrderByRelevanceFieldEnum,E as InsightOrderByRelevanceFieldEnum,F as IntegrationCatalogOrderByRelevanceFieldEnum,G as IntegrationOrderByRelevanceFieldEnum,H as IntegrationStatus,I as InterpretationOrderByRelevanceFieldEnum,J as InterpretationType,K as LimitType,L as LiveContextOrderByRelevanceFieldEnum,M as LiveContextStatus,N as LocalSandboxDeviceConnectionState,O as McpAuthPhase,P as NotificationCategory,Q as NotificationOrderByRelevanceFieldEnum,R as NotificationPriority,S as NotificationStatus,T as NullsOrder,U as Presentation,V as ProjectDesktopBindingOrderByRelevanceFieldEnum,W as ProjectDesktopContextKind,X as ProjectOrderByRelevanceFieldEnum,Y as ProjectSource,Z as PulseEventKind,_ as PulseEventOrderByRelevanceFieldEnum,$ as PulseEventPriority,aa as QueryMode,ba as ReasoningEffort,ca as RelationType,da as ReportMemberSize,ea as ReportOrderByRelevanceFieldEnum,fa as SendMessageModel,ga as SkillCatalogSource,ha as SortOrder,ia as TableOrderByRelevanceFieldEnum,ja as TableStatus,ka as TokenUsageLimit,la as UsageHistoryGranularity}from'./chunk-2EXM4BMP.js';import'./chunk-EK7ODJWE.js';
|