twenty-client-sdk 2.48.0 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/generate.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-mLOUI7ql.js"),t=require("./application-gV7J_BKH.js");let n=require("node:fs/promises"),r=require("node:path"),i=require("esbuild"),a=require("graphql"),o=require("lodash/camelCase.js");o=e.r(o);let s=require("node:fs"),c=require("node:os"),l=require("prettier/standalone");l=e.r(l);let u=require("prettier/plugins/graphql");u=e.r(u);let d=require("prettier/plugins/typescript");d=e.r(d);let f=require("prettier/plugins/estree");f=e.r(f);let p=require("lodash/uniq.js");p=e.r(p);let ee=require("node:url");var te=`// __STRIPPED_DURING_INJECTION_START__`,ne=`// __STRIPPED_DURING_INJECTION_END__`,m=`// __UPLOAD_FILE_START__`,h=`// __UPLOAD_FILE_END__`,g=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),_=(e,t)=>{let n=e;return n=n.replace(RegExp(`${g(te)}[\\s\\S]*?${g(ne)}\\n?`),``),n=n.replace(`'__TWENTY_DEFAULT_URL__'`,t.defaultUrl),n=n.replace(/TwentyGeneratedClient/g,t.apiClientName),t.includeUploadFile?(n=n.replace(RegExp(`\\s*${g(m)}\\n`),`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-mLOUI7ql.js"),t=require("./application-k13CQDdV.js");let n=require("node:fs/promises"),r=require("node:path"),i=require("esbuild"),a=require("graphql"),o=require("lodash/camelCase.js");o=e.r(o);let s=require("node:fs"),c=require("node:os"),l=require("prettier/standalone");l=e.r(l);let u=require("prettier/plugins/graphql");u=e.r(u);let d=require("prettier/plugins/typescript");d=e.r(d);let f=require("prettier/plugins/estree");f=e.r(f);let p=require("lodash/uniq.js");p=e.r(p);let ee=require("node:url");var te=`// __STRIPPED_DURING_INJECTION_START__`,ne=`// __STRIPPED_DURING_INJECTION_END__`,m=`// __UPLOAD_FILE_START__`,h=`// __UPLOAD_FILE_END__`,g=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),_=(e,t)=>{let n=e;return n=n.replace(RegExp(`${g(te)}[\\s\\S]*?${g(ne)}\\n?`),``),n=n.replace(`'__TWENTY_DEFAULT_URL__'`,t.defaultUrl),n=n.replace(/TwentyGeneratedClient/g,t.apiClientName),t.includeUploadFile?(n=n.replace(RegExp(`\\s*${g(m)}\\n`),`
2
2
  `),n=n.replace(RegExp(`\\s*${g(h)}\\n`),`
3
3
  `)):n=n.replace(RegExp(`\\s*${g(m)}[\\s\\S]*?${g(h)}\\n?`),`
4
4
  `),`\n// ${t.apiClientName} (auto-injected by twenty-client-sdk)\n${n}`},v=e=>(0,n.mkdir)(e,{recursive:!0}),y=async e=>{let t;try{t=await(0,n.readdir)(e)}catch(t){if(t instanceof Error&&`code`in t&&t.code===`ENOENT`){await(0,n.mkdir)(e,{recursive:!0});return}throw t}await Promise.all(t.map(t=>(0,n.rm)((0,r.join)(e,t),{recursive:!0,force:!0})))},b=async(e,t)=>{try{await(0,n.rename)(e,t)}catch(r){if(r instanceof Error&&`code`in r&&r.code===`EXDEV`)await(0,n.cp)(e,t,{recursive:!0}),await(0,n.rm)(e,{recursive:!0,force:!0});else throw r}},x=e=>(0,n.rm)(e,{recursive:!0,force:!0}),re=e=>{let{root:t}=(0,r.parse)(e),n=e.slice(t.length).split(/[\\/]/).filter(Boolean).length,i=(0,r.resolve)((0,c.homedir)()),a=e===i||i.startsWith(`${e}/`);if(e===t||n<2||a)throw Error(`Refusing to recursively clear unsafe path: ${e}`)},S=async(e,t=!1)=>{let n=(0,r.resolve)(...e);t&&(re(n),await s.promises.rm(n,{recursive:!0,force:!0})),await s.promises.mkdir(n,{recursive:!0})},C=async(e,t)=>{let n=(0,r.resolve)(...e,`..`);await s.promises.mkdir(n,{recursive:!0}),await s.promises.writeFile((0,r.resolve)(...e),t)},w=`./runtime`,T=e=>e?`${e.name}GenqlSelection`:``,ie=e=>{let t=e.config?.endpoint?`"${e.config.endpoint}"`:`undefined`,n=e.config?.fetchImport;return`
@@ -1585,7 +1585,7 @@ export class TwentyGeneratedClient {
1585
1585
  processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] = token;
1586
1586
  }
1587
1587
  }
1588
- `,s=`${i}.tmp`;await v(s),await y(s);try{await Z({schema:e,output:s,scalarTypes:Le});let a=_(o,{apiClientName:`CoreApiClient`,defaultUrl:`\`\${process.env.${t.i}}/graphql\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(s,`index.ts`),a),await x(i),await b(s,i),await ze(i)}catch(e){throw await x(s),e}},Re=async({packageRoot:e,schema:t})=>{let i=(0,r.join)(e,`dist`,Q);await $({schema:t,outputPath:i}),await(0,n.copyFile)((0,r.join)(i,`index.mjs`),(0,r.join)(e,`dist`,`core.mjs`)),await(0,n.copyFile)((0,r.join)(i,`index.cjs`),(0,r.join)(e,`dist`,`core.cjs`))},ze=async e=>{let t=(0,r.join)(e,`index.ts`),a=(0,r.join)(e,`index.mjs`);await(0,i.build)({entryPoints:[t],outfile:a,bundle:!0,format:`esm`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,i.build)({entryPoints:[t],outfile:(0,r.join)(e,`index.cjs`),bundle:!0,format:`cjs`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,n.writeFile)((0,r.join)(e,`package.json`),JSON.stringify({type:`module`,main:`index.mjs`,module:`index.mjs`},null,2))},Be={DateTime:`string`,JSON:`Record<string, unknown>`,UUID:`string`},Ve=async({schema:e,outputPath:i,clientWrapperTemplateSource:a})=>{let o=a??`import type { TwentyClientRunAs } from '../shared/twenty-client-run-as.type';
1588
+ `,s=`${i}.tmp`;await v(s),await y(s);try{await Z({schema:e,output:s,scalarTypes:Le});let a=_(o,{apiClientName:`CoreApiClient`,defaultUrl:`\`\${process.env.${t.a}}/graphql\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(s,`index.ts`),a),await x(i),await b(s,i),await ze(i)}catch(e){throw await x(s),e}},Re=async({packageRoot:e,schema:t})=>{let i=(0,r.join)(e,`dist`,Q);await $({schema:t,outputPath:i}),await(0,n.copyFile)((0,r.join)(i,`index.mjs`),(0,r.join)(e,`dist`,`core.mjs`)),await(0,n.copyFile)((0,r.join)(i,`index.cjs`),(0,r.join)(e,`dist`,`core.cjs`))},ze=async e=>{let t=(0,r.join)(e,`index.ts`),a=(0,r.join)(e,`index.mjs`);await(0,i.build)({entryPoints:[t],outfile:a,bundle:!0,format:`esm`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,i.build)({entryPoints:[t],outfile:(0,r.join)(e,`index.cjs`),bundle:!0,format:`cjs`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,n.writeFile)((0,r.join)(e,`package.json`),JSON.stringify({type:`module`,main:`index.mjs`,module:`index.mjs`},null,2))},Be={DateTime:`string`,JSON:`Record<string, unknown>`,UUID:`string`},Ve=async({schema:e,outputPath:i,clientWrapperTemplateSource:a})=>{let o=a??`import type { TwentyClientRunAs } from '../shared/twenty-client-run-as.type';
1589
1589
 
1590
1590
  // Ambient stubs for the genql-generated code this template is injected into.
1591
1591
  // __STRIPPED_DURING_INJECTION_START__
@@ -2079,4 +2079,4 @@ export class TwentyGeneratedClient {
2079
2079
  processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] = token;
2080
2080
  }
2081
2081
  }
2082
- `;await v(i),await y(i),await Z({schema:e,output:i,scalarTypes:{...Be,Upload:`File`}});let s=_(o,{apiClientName:`MetadataApiClient`,defaultUrl:`\`\${process.env.${t.i}}/metadata\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(i,`index.ts`),s)};exports.GENERATED_CORE_DIR=Q,exports.generateCoreClientFromSchema=$,exports.generateMetadataClient=Ve,exports.replaceCoreClient=Re;
2082
+ `;await v(i),await y(i),await Z({schema:e,output:i,scalarTypes:{...Be,Upload:`File`}});let s=_(o,{apiClientName:`MetadataApiClient`,defaultUrl:`\`\${process.env.${t.a}}/metadata\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(i,`index.ts`),s)};exports.GENERATED_CORE_DIR=Q,exports.generateCoreClientFromSchema=$,exports.generateMetadataClient=Ve,exports.replaceCoreClient=Re;
package/dist/generate.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as e } from "./application-BmgukPzb.mjs";
1
+ import { a as e } from "./application-BDz3e_S2.mjs";
2
2
  import { appendFile as t, copyFile as n, cp as r, mkdir as i, readdir as a, rename as o, rm as s, writeFile as c } from "node:fs/promises";
3
3
  import { dirname as l, join as u, parse as ee, relative as d, resolve as f } from "node:path";
4
4
  import { build as p } from "esbuild";
@@ -116,7 +116,9 @@ export interface AgentMessagePart {
116
116
  __typename: 'AgentMessagePart';
117
117
  }
118
118
  export interface AgentMessageReactionSummary {
119
+ agentIds: Scalars['UUID'][];
119
120
  emoji: Scalars['String'];
121
+ hasAssistantReacted: Scalars['Boolean'];
120
122
  workspaceMemberIds: Scalars['UUID'][];
121
123
  __typename: 'AgentMessageReactionSummary';
122
124
  }
@@ -218,8 +220,10 @@ export interface AppConnection {
218
220
  id: Scalars['ID'];
219
221
  name: Scalars['String'];
220
222
  providerName: Scalars['String'];
223
+ scope: ConnectedAccountScope;
221
224
  scopes: Scalars['String'][];
222
225
  userWorkspaceId: Scalars['String'];
226
+ /** @deprecated Use scope instead. */
223
227
  visibility: Scalars['String'];
224
228
  workspaceMemberId?: Scalars['String'];
225
229
  __typename: 'AppConnection';
@@ -298,9 +302,11 @@ export interface ApplicationConnectedAccountDTO {
298
302
  lastSignedInAt?: Scalars['DateTime'];
299
303
  name?: Scalars['String'];
300
304
  provider: Scalars['String'];
305
+ scope: ConnectedAccountScope;
301
306
  scopes?: Scalars['String'][];
302
307
  updatedAt: Scalars['DateTime'];
303
308
  userWorkspaceId: Scalars['UUID'];
309
+ /** @deprecated Use scope instead. */
304
310
  visibility: Scalars['String'];
305
311
  __typename: 'ApplicationConnectedAccountDTO';
306
312
  }
@@ -311,6 +317,7 @@ export interface ApplicationConnectionProvider {
311
317
  logoUrl?: Scalars['String'];
312
318
  name: Scalars['String'];
313
319
  oauth?: ApplicationConnectionProviderOAuthConfig;
320
+ scope: ConnectionProviderScope;
314
321
  type: Scalars['String'];
315
322
  __typename: 'ApplicationConnectionProvider';
316
323
  }
@@ -403,8 +410,11 @@ export interface ApplicationRegistration {
403
410
  export type ApplicationRegistrationSourceType = 'LOCAL' | 'NPM' | 'OAUTH_ONLY' | 'TARBALL';
404
411
  export interface ApplicationRegistrationStats {
405
412
  activeInstalls: Scalars['Int'];
413
+ autoUpdateEnabled: Scalars['Int'];
414
+ creditsUsedBreakdown?: CreditUsedItem[];
406
415
  mostInstalledVersion?: Scalars['String'];
407
416
  suspendedInstalls: Scalars['Int'];
417
+ totalCreditsUsed?: Scalars['Float'];
408
418
  versionDistribution: VersionDistributionEntry[];
409
419
  __typename: 'ApplicationRegistrationStats';
410
420
  }
@@ -583,6 +593,7 @@ export interface Billing {
583
593
  export interface BillingCustomer {
584
594
  hasPaymentMethod?: Scalars['Boolean'];
585
595
  id: Scalars['UUID'];
596
+ userCreditsFallback: UserCreditsFallback;
586
597
  __typename: 'BillingCustomer';
587
598
  }
588
599
  export interface BillingEndTrialPeriod {
@@ -679,14 +690,15 @@ export interface BillingProductMetadata {
679
690
  __typename: 'BillingProductMetadata';
680
691
  }
681
692
  export interface BillingResourceCreditUsage {
682
- grantedCredits: Scalars['Float'];
683
693
  periodEnd: Scalars['DateTime'];
684
694
  periodStart: Scalars['DateTime'];
685
695
  productKey: BillingProductKey;
686
- rolloverCredits: Scalars['Float'];
687
- totalGrantedCredits: Scalars['Float'];
688
696
  unitPriceCents: Scalars['Float'];
689
- usedCredits: Scalars['Float'];
697
+ userCreditsUsed: Scalars['Float'];
698
+ workspaceCreditsExtraGranted: Scalars['Float'];
699
+ workspaceCreditsGranted: Scalars['Float'];
700
+ workspaceCreditsTotalGranted: Scalars['Float'];
701
+ workspaceCreditsUsed: Scalars['Float'];
690
702
  __typename: 'BillingResourceCreditUsage';
691
703
  }
692
704
  export interface BillingSession {
@@ -744,6 +756,7 @@ export interface CalendarChannel {
744
756
  connectedAccountId: Scalars['UUID'];
745
757
  contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy;
746
758
  createdAt: Scalars['DateTime'];
759
+ excludePrivateEvents: Scalars['Boolean'];
747
760
  handle: Scalars['String'];
748
761
  id: Scalars['UUID'];
749
762
  isContactAutoCreationEnabled: Scalars['Boolean'];
@@ -984,12 +997,15 @@ export interface ConnectedAccountPublicDTO {
984
997
  lastSignedInAt?: Scalars['DateTime'];
985
998
  name?: Scalars['String'];
986
999
  provider: Scalars['String'];
1000
+ scope: ConnectedAccountScope;
987
1001
  scopes?: Scalars['String'][];
988
1002
  updatedAt: Scalars['DateTime'];
989
1003
  userWorkspaceId: Scalars['UUID'];
1004
+ /** @deprecated Use scope instead. */
990
1005
  visibility: Scalars['String'];
991
1006
  __typename: 'ConnectedAccountPublicDTO';
992
1007
  }
1008
+ export type ConnectedAccountScope = 'USER' | 'WORKSPACE';
993
1009
  export interface ConnectedImapSmtpCaldavAccount {
994
1010
  connectionParameters?: ImapSmtpCaldavPublicConnectionParameters;
995
1011
  handle: Scalars['String'];
@@ -998,6 +1014,7 @@ export interface ConnectedImapSmtpCaldavAccount {
998
1014
  userWorkspaceId: Scalars['UUID'];
999
1015
  __typename: 'ConnectedImapSmtpCaldavAccount';
1000
1016
  }
1017
+ export type ConnectionProviderScope = 'USER' | 'WORKSPACE';
1001
1018
  export interface CreateApplicationFileUploadsResult {
1002
1019
  errors: ApplicationFileUploadError[];
1003
1020
  targets: ApplicationFileUploadTarget[];
@@ -1021,6 +1038,13 @@ export interface CreateEmailGroupChannelOutput {
1021
1038
  messageChannel: MessageChannel;
1022
1039
  __typename: 'CreateEmailGroupChannelOutput';
1023
1040
  }
1041
+ export interface CreditUsedItem {
1042
+ creditsUsed: Scalars['Float'];
1043
+ label?: Scalars['String'];
1044
+ operation?: UsageOperationType;
1045
+ resource?: UsageResourceType;
1046
+ __typename: 'CreditUsedItem';
1047
+ }
1024
1048
  /** Database Event Action */
1025
1049
  export type DatabaseEventAction = 'CREATED' | 'DELETED' | 'DESTROYED' | 'RESTORED' | 'UPDATED' | 'UPSERTED';
1026
1050
  export interface DeleteSso {
@@ -1180,7 +1204,7 @@ export interface FeatureFlag {
1180
1204
  value: Scalars['Boolean'];
1181
1205
  __typename: 'FeatureFlag';
1182
1206
  }
1183
- export type FeatureFlagKey = 'IS_AI_CHAT_INBOX_ENABLED' | 'IS_APPLICATION_WORKFLOWS_ENABLED' | 'IS_APP_PREFERENCES_ENABLED' | 'IS_ASYNC_CSV_EXPORT_ENABLED' | 'IS_CALENDAR_SYNC_SKIP_UNCHANGED_RECORDS_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_LOGS_SETTINGS_SECTION_ENABLED' | 'IS_MESSAGE_CAMPAIGN_ENABLED' | 'IS_MORPH_RELATION_HEAD_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED' | 'IS_RECORD_LEVEL_SHARING_ENABLED' | 'IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT';
1207
+ export type FeatureFlagKey = 'IS_AI_CHAT_INBOX_ENABLED' | 'IS_APP_PREFERENCES_ENABLED' | 'IS_ASYNC_CSV_EXPORT_ENABLED' | 'IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_LOGS_SETTINGS_SECTION_ENABLED' | 'IS_MESSAGE_CAMPAIGN_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED' | 'IS_RECORD_LEVEL_SHARING_ENABLED' | 'IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT';
1184
1208
  export interface Field {
1185
1209
  applicationId: Scalars['UUID'];
1186
1210
  createdAt: Scalars['DateTime'];
@@ -1657,6 +1681,7 @@ export interface MessageChannel {
1657
1681
  excludeNonProfessionalEmails: Scalars['Boolean'];
1658
1682
  handle: Scalars['String'];
1659
1683
  id: Scalars['UUID'];
1684
+ importProgress?: Scalars['Int'];
1660
1685
  isContactAutoCreationEnabled: Scalars['Boolean'];
1661
1686
  isSyncEnabled: Scalars['Boolean'];
1662
1687
  messageFolderImportPolicy: MessageFolderImportPolicy;
@@ -2010,6 +2035,7 @@ export interface Mutation {
2010
2035
  updateTimelineActivityType: TimelineActivityType;
2011
2036
  updateUnsubscribeTopic: UnsubscribeTopic;
2012
2037
  updateUsageLimit: UsageLimit;
2038
+ updateUserCreditsFallback: BillingCustomer;
2013
2039
  updateUserEmail: Scalars['Boolean'];
2014
2040
  updateValidationRule: ValidationRule;
2015
2041
  updateView: View;
@@ -3005,6 +3031,8 @@ export interface UsageBreakdownItem {
3005
3031
  creditsUsed: Scalars['Float'];
3006
3032
  key: Scalars['String'];
3007
3033
  label?: Scalars['String'];
3034
+ userCreditsUsed: Scalars['Float'];
3035
+ workspaceCreditsUsed: Scalars['Float'];
3008
3036
  __typename: 'UsageBreakdownItem';
3009
3037
  }
3010
3038
  export interface UsageLimit {
@@ -3028,7 +3056,7 @@ export interface UsageLimitOperationDefinition {
3028
3056
  operationType: UsageOperationType;
3029
3057
  __typename: 'UsageLimitOperationDefinition';
3030
3058
  }
3031
- export type UsageOperationType = 'AI_CHAT_TOKEN' | 'AI_WORKFLOW_TOKEN' | 'ALL' | 'API_REQUEST' | 'CALL_RECORDING' | 'CODE_EXECUTION' | 'EMAIL_SEND' | 'MESSAGE_CAMPAIGN_SEND' | 'RECORD_WRITE' | 'STORAGE_FILE' | 'SUBSCRIPTION' | 'WEBHOOK_CALL' | 'WEB_SEARCH' | 'WORKFLOW_EXECUTION';
3059
+ export type UsageOperationType = 'AI_CHAT_TOKEN' | 'AI_WORKFLOW_TOKEN' | 'AI_WORKFLOW_WEB_SEARCH' | 'ALL' | 'API_REQUEST' | 'CALL_RECORDING' | 'CODE_EXECUTION' | 'EMAIL_SEND' | 'MESSAGE_CAMPAIGN_SEND' | 'RECORD_WRITE' | 'STORAGE_FILE' | 'SUBSCRIPTION' | 'WEBHOOK_CALL' | 'WEB_SEARCH' | 'WORKFLOW_EXECUTION';
3032
3060
  export interface UsageQuotaDefinition {
3033
3061
  allowedOperations: UsageLimitOperationDefinition[];
3034
3062
  allowedSpenderTypes: Scalars['String'][];
@@ -3077,9 +3105,10 @@ export type UsageResourceType = 'AI' | 'ALL' | 'API' | 'APP' | 'EMAIL' | 'LOGIC_
3077
3105
  export interface UsageTimeSeries {
3078
3106
  creditsUsed: Scalars['Float'];
3079
3107
  date: Scalars['String'];
3108
+ workspaceCreditsUsed: Scalars['Float'];
3080
3109
  __typename: 'UsageTimeSeries';
3081
3110
  }
3082
- export type UsageUnit = 'BYTE' | 'COMPLEXITY' | 'CREDIT' | 'FILE' | 'INVOCATION' | 'MILLISECOND' | 'MINUTE' | 'RECORD' | 'REQUEST' | 'SEAT' | 'TOKEN';
3111
+ export type UsageUnit = 'BYTE' | 'COMPLEXITY' | 'CREDIT' | 'FILE' | 'INVOCATION' | 'MILLISECOND' | 'MINUTE' | 'RECORD' | 'REQUEST' | 'SEAT' | 'TOKEN' | 'USER_CREDIT';
3083
3112
  export interface UsageUserDaily {
3084
3113
  dailyUsage: UsageTimeSeries[];
3085
3114
  userWorkspaceId: Scalars['String'];
@@ -3126,6 +3155,7 @@ export interface UserApplicationVariableValue {
3126
3155
  value: Scalars['String'];
3127
3156
  __typename: 'UserApplicationVariableValue';
3128
3157
  }
3158
+ export type UserCreditsFallback = 'STOP' | 'WORKSPACE_CREDITS';
3129
3159
  export interface UserSession {
3130
3160
  authProvider: Scalars['String'];
3131
3161
  createdAt: Scalars['DateTime'];
@@ -3633,7 +3663,9 @@ export interface AgentMessagePartGenqlSelection {
3633
3663
  __scalar?: boolean | number;
3634
3664
  }
3635
3665
  export interface AgentMessageReactionSummaryGenqlSelection {
3666
+ agentIds?: boolean | number;
3636
3667
  emoji?: boolean | number;
3668
+ hasAssistantReacted?: boolean | number;
3637
3669
  workspaceMemberIds?: boolean | number;
3638
3670
  __typename?: boolean | number;
3639
3671
  __scalar?: boolean | number;
@@ -3741,8 +3773,10 @@ export interface AppConnectionGenqlSelection {
3741
3773
  id?: boolean | number;
3742
3774
  name?: boolean | number;
3743
3775
  providerName?: boolean | number;
3776
+ scope?: boolean | number;
3744
3777
  scopes?: boolean | number;
3745
3778
  userWorkspaceId?: boolean | number;
3779
+ /** @deprecated Use scope instead. */
3746
3780
  visibility?: boolean | number;
3747
3781
  workspaceMemberId?: boolean | number;
3748
3782
  __typename?: boolean | number;
@@ -3839,9 +3873,11 @@ export interface ApplicationConnectedAccountDTOGenqlSelection {
3839
3873
  lastSignedInAt?: boolean | number;
3840
3874
  name?: boolean | number;
3841
3875
  provider?: boolean | number;
3876
+ scope?: boolean | number;
3842
3877
  scopes?: boolean | number;
3843
3878
  updatedAt?: boolean | number;
3844
3879
  userWorkspaceId?: boolean | number;
3880
+ /** @deprecated Use scope instead. */
3845
3881
  visibility?: boolean | number;
3846
3882
  __typename?: boolean | number;
3847
3883
  __scalar?: boolean | number;
@@ -3853,6 +3889,7 @@ export interface ApplicationConnectionProviderGenqlSelection {
3853
3889
  logoUrl?: boolean | number;
3854
3890
  name?: boolean | number;
3855
3891
  oauth?: ApplicationConnectionProviderOAuthConfigGenqlSelection;
3892
+ scope?: boolean | number;
3856
3893
  type?: boolean | number;
3857
3894
  __typename?: boolean | number;
3858
3895
  __scalar?: boolean | number;
@@ -3959,8 +3996,11 @@ export interface ApplicationRegistrationGenqlSelection {
3959
3996
  }
3960
3997
  export interface ApplicationRegistrationStatsGenqlSelection {
3961
3998
  activeInstalls?: boolean | number;
3999
+ autoUpdateEnabled?: boolean | number;
4000
+ creditsUsedBreakdown?: CreditUsedItemGenqlSelection;
3962
4001
  mostInstalledVersion?: boolean | number;
3963
4002
  suspendedInstalls?: boolean | number;
4003
+ totalCreditsUsed?: boolean | number;
3964
4004
  versionDistribution?: VersionDistributionEntryGenqlSelection;
3965
4005
  __typename?: boolean | number;
3966
4006
  __scalar?: boolean | number;
@@ -4156,6 +4196,7 @@ export interface BillingGenqlSelection {
4156
4196
  export interface BillingCustomerGenqlSelection {
4157
4197
  hasPaymentMethod?: boolean | number;
4158
4198
  id?: boolean | number;
4199
+ userCreditsFallback?: boolean | number;
4159
4200
  __typename?: boolean | number;
4160
4201
  __scalar?: boolean | number;
4161
4202
  }
@@ -4266,14 +4307,15 @@ export interface BillingProductMetadataGenqlSelection {
4266
4307
  __scalar?: boolean | number;
4267
4308
  }
4268
4309
  export interface BillingResourceCreditUsageGenqlSelection {
4269
- grantedCredits?: boolean | number;
4270
4310
  periodEnd?: boolean | number;
4271
4311
  periodStart?: boolean | number;
4272
4312
  productKey?: boolean | number;
4273
- rolloverCredits?: boolean | number;
4274
- totalGrantedCredits?: boolean | number;
4275
4313
  unitPriceCents?: boolean | number;
4276
- usedCredits?: boolean | number;
4314
+ userCreditsUsed?: boolean | number;
4315
+ workspaceCreditsExtraGranted?: boolean | number;
4316
+ workspaceCreditsGranted?: boolean | number;
4317
+ workspaceCreditsTotalGranted?: boolean | number;
4318
+ workspaceCreditsUsed?: boolean | number;
4277
4319
  __typename?: boolean | number;
4278
4320
  __scalar?: boolean | number;
4279
4321
  }
@@ -4341,6 +4383,7 @@ export interface CalendarChannelGenqlSelection {
4341
4383
  connectedAccountId?: boolean | number;
4342
4384
  contactAutoCreationPolicy?: boolean | number;
4343
4385
  createdAt?: boolean | number;
4386
+ excludePrivateEvents?: boolean | number;
4344
4387
  handle?: boolean | number;
4345
4388
  id?: boolean | number;
4346
4389
  isContactAutoCreationEnabled?: boolean | number;
@@ -4600,9 +4643,11 @@ export interface ConnectedAccountPublicDTOGenqlSelection {
4600
4643
  lastSignedInAt?: boolean | number;
4601
4644
  name?: boolean | number;
4602
4645
  provider?: boolean | number;
4646
+ scope?: boolean | number;
4603
4647
  scopes?: boolean | number;
4604
4648
  updatedAt?: boolean | number;
4605
4649
  userWorkspaceId?: boolean | number;
4650
+ /** @deprecated Use scope instead. */
4606
4651
  visibility?: boolean | number;
4607
4652
  __typename?: boolean | number;
4608
4653
  __scalar?: boolean | number;
@@ -4978,6 +5023,14 @@ export interface CreateWebhookInput {
4978
5023
  secret?: (Scalars['String'] | null);
4979
5024
  targetUrl: Scalars['String'];
4980
5025
  }
5026
+ export interface CreditUsedItemGenqlSelection {
5027
+ creditsUsed?: boolean | number;
5028
+ label?: boolean | number;
5029
+ operation?: boolean | number;
5030
+ resource?: boolean | number;
5031
+ __typename?: boolean | number;
5032
+ __scalar?: boolean | number;
5033
+ }
4981
5034
  export interface CursorPaging {
4982
5035
  /** Paginate after opaque cursor */
4983
5036
  after?: (Scalars['ConnectionCursor'] | null);
@@ -5678,6 +5731,7 @@ export interface LineChartSeriesGenqlSelection {
5678
5731
  }
5679
5732
  export interface ListAppConnectionsInput {
5680
5733
  providerName?: (Scalars['String'] | null);
5734
+ scope?: (ConnectedAccountScope | null);
5681
5735
  userWorkspaceId?: (Scalars['String'] | null);
5682
5736
  visibility?: (Scalars['String'] | null);
5683
5737
  }
@@ -5858,6 +5912,7 @@ export interface MessageChannelGenqlSelection {
5858
5912
  excludeNonProfessionalEmails?: boolean | number;
5859
5913
  handle?: boolean | number;
5860
5914
  id?: boolean | number;
5915
+ importProgress?: boolean | number;
5861
5916
  isContactAutoCreationEnabled?: boolean | number;
5862
5917
  isSyncEnabled?: boolean | number;
5863
5918
  messageFolderImportPolicy?: boolean | number;
@@ -6835,6 +6890,7 @@ export interface MutationGenqlSelection {
6835
6890
  mentionedWorkspaceMemberIds?: (Scalars['UUID'][] | null);
6836
6891
  messageId: Scalars['UUID'];
6837
6892
  modelId?: (Scalars['String'] | null);
6893
+ shouldAssistantReply?: (Scalars['Boolean'] | null);
6838
6894
  text: Scalars['String'];
6839
6895
  threadId: Scalars['UUID'];
6840
6896
  };
@@ -7202,6 +7258,11 @@ export interface MutationGenqlSelection {
7202
7258
  input: UpdateUsageLimitInput;
7203
7259
  };
7204
7260
  });
7261
+ updateUserCreditsFallback?: (BillingCustomerGenqlSelection & {
7262
+ __args: {
7263
+ userCreditsFallback: UserCreditsFallback;
7264
+ };
7265
+ });
7205
7266
  updateUserEmail?: {
7206
7267
  __args: {
7207
7268
  newEmail: Scalars['String'];
@@ -7992,6 +8053,8 @@ export interface QueryGenqlSelection {
7992
8053
  findApplicationRegistrationStats?: (ApplicationRegistrationStatsGenqlSelection & {
7993
8054
  __args: {
7994
8055
  id: Scalars['String'];
8056
+ periodEnd?: (Scalars['DateTime'] | null);
8057
+ periodStart?: (Scalars['DateTime'] | null);
7995
8058
  };
7996
8059
  });
7997
8060
  findApplicationRegistrationVariables?: (ApplicationRegistrationVariableGenqlSelection & {
@@ -8590,6 +8653,7 @@ export interface RunAgentInput {
8590
8653
  responseFormat?: (Scalars['JSON'] | null);
8591
8654
  runAsWorkspaceMemberId?: (Scalars['UUID'] | null);
8592
8655
  thread?: (RunAgentThreadInput | null);
8656
+ waitForCompletion?: (Scalars['Boolean'] | null);
8593
8657
  }
8594
8658
  export interface RunAgentMessageAttachmentInput {
8595
8659
  fileId: Scalars['UUID'];
@@ -9076,6 +9140,7 @@ export interface UpdateCalendarChannelInput {
9076
9140
  }
9077
9141
  export interface UpdateCalendarChannelInputUpdates {
9078
9142
  contactAutoCreationPolicy?: (CalendarChannelContactAutoCreationPolicy | null);
9143
+ excludePrivateEvents?: (Scalars['Boolean'] | null);
9079
9144
  isContactAutoCreationEnabled?: (Scalars['Boolean'] | null);
9080
9145
  isSyncEnabled?: (Scalars['Boolean'] | null);
9081
9146
  visibility?: (CalendarChannelVisibility | null);
@@ -9595,6 +9660,8 @@ export interface UsageBreakdownItemGenqlSelection {
9595
9660
  creditsUsed?: boolean | number;
9596
9661
  key?: boolean | number;
9597
9662
  label?: boolean | number;
9663
+ userCreditsUsed?: boolean | number;
9664
+ workspaceCreditsUsed?: boolean | number;
9598
9665
  __typename?: boolean | number;
9599
9666
  __scalar?: boolean | number;
9600
9667
  }
@@ -9681,6 +9748,7 @@ export interface UsageQuotaWithConsumptionGenqlSelection {
9681
9748
  export interface UsageTimeSeriesGenqlSelection {
9682
9749
  creditsUsed?: boolean | number;
9683
9750
  date?: boolean | number;
9751
+ workspaceCreditsUsed?: boolean | number;
9684
9752
  __typename?: boolean | number;
9685
9753
  __scalar?: boolean | number;
9686
9754
  }
@@ -10479,6 +10547,9 @@ export declare const isCreateCalendarEventOutput: (obj?: {
10479
10547
  export declare const isCreateEmailGroupChannelOutput: (obj?: {
10480
10548
  __typename?: any;
10481
10549
  } | null | undefined) => obj is CreateEmailGroupChannelOutput;
10550
+ export declare const isCreditUsedItem: (obj?: {
10551
+ __typename?: any;
10552
+ } | null | undefined) => obj is CreditUsedItem;
10482
10553
  export declare const isDeleteSso: (obj?: {
10483
10554
  __typename?: any;
10484
10555
  } | null | undefined) => obj is DeleteSso;
@@ -11345,6 +11416,14 @@ export declare const enumCommandMenuItemAvailabilityType: {
11345
11416
  GLOBAL_OBJECT_CONTEXT: "GLOBAL_OBJECT_CONTEXT";
11346
11417
  RECORD_SELECTION: "RECORD_SELECTION";
11347
11418
  };
11419
+ export declare const enumConnectedAccountScope: {
11420
+ USER: "USER";
11421
+ WORKSPACE: "WORKSPACE";
11422
+ };
11423
+ export declare const enumConnectionProviderScope: {
11424
+ USER: "USER";
11425
+ WORKSPACE: "WORKSPACE";
11426
+ };
11348
11427
  export declare const enumDatabaseEventAction: {
11349
11428
  CREATED: "CREATED";
11350
11429
  DELETED: "DELETED";
@@ -11472,16 +11551,14 @@ export declare const enumEventLogTable: {
11472
11551
  };
11473
11552
  export declare const enumFeatureFlagKey: {
11474
11553
  IS_AI_CHAT_INBOX_ENABLED: "IS_AI_CHAT_INBOX_ENABLED";
11475
- IS_APPLICATION_WORKFLOWS_ENABLED: "IS_APPLICATION_WORKFLOWS_ENABLED";
11476
11554
  IS_APP_PREFERENCES_ENABLED: "IS_APP_PREFERENCES_ENABLED";
11477
11555
  IS_ASYNC_CSV_EXPORT_ENABLED: "IS_ASYNC_CSV_EXPORT_ENABLED";
11478
- IS_CALENDAR_SYNC_SKIP_UNCHANGED_RECORDS_ENABLED: "IS_CALENDAR_SYNC_SKIP_UNCHANGED_RECORDS_ENABLED";
11556
+ IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED: "IS_CALENDAR_EVENT_SHARED_ACROSS_CHANNELS_ENABLED";
11479
11557
  IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED: "IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED";
11480
11558
  IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED: "IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED";
11481
11559
  IS_JSON_FILTER_ENABLED: "IS_JSON_FILTER_ENABLED";
11482
11560
  IS_LOGS_SETTINGS_SECTION_ENABLED: "IS_LOGS_SETTINGS_SECTION_ENABLED";
11483
11561
  IS_MESSAGE_CAMPAIGN_ENABLED: "IS_MESSAGE_CAMPAIGN_ENABLED";
11484
- IS_MORPH_RELATION_HEAD_ENABLED: "IS_MORPH_RELATION_HEAD_ENABLED";
11485
11562
  IS_RECORD_CREATION_FORM_ENABLED: "IS_RECORD_CREATION_FORM_ENABLED";
11486
11563
  IS_RECORD_LEVEL_SHARING_ENABLED: "IS_RECORD_LEVEL_SHARING_ENABLED";
11487
11564
  IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED: "IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED";
@@ -11843,6 +11920,7 @@ export declare const enumUnsubscribeTopicVisibility: {
11843
11920
  export declare const enumUsageOperationType: {
11844
11921
  AI_CHAT_TOKEN: "AI_CHAT_TOKEN";
11845
11922
  AI_WORKFLOW_TOKEN: "AI_WORKFLOW_TOKEN";
11923
+ AI_WORKFLOW_WEB_SEARCH: "AI_WORKFLOW_WEB_SEARCH";
11846
11924
  ALL: "ALL";
11847
11925
  API_REQUEST: "API_REQUEST";
11848
11926
  CALL_RECORDING: "CALL_RECORDING";
@@ -11880,6 +11958,11 @@ export declare const enumUsageUnit: {
11880
11958
  REQUEST: "REQUEST";
11881
11959
  SEAT: "SEAT";
11882
11960
  TOKEN: "TOKEN";
11961
+ USER_CREDIT: "USER_CREDIT";
11962
+ };
11963
+ export declare const enumUserCreditsFallback: {
11964
+ STOP: "STOP";
11965
+ WORKSPACE_CREDITS: "WORKSPACE_CREDITS";
11883
11966
  };
11884
11967
  export declare const enumViewCalendarLayout: {
11885
11968
  DAY: "DAY";
@@ -124,7 +124,9 @@ declare const _default: {
124
124
  __typename: number[];
125
125
  };
126
126
  AgentMessageReactionSummary: {
127
+ agentIds: number[];
127
128
  emoji: number[];
129
+ hasAssistantReacted: number[];
128
130
  workspaceMemberIds: number[];
129
131
  __typename: number[];
130
132
  };
@@ -225,6 +227,7 @@ declare const _default: {
225
227
  id: number[];
226
228
  name: number[];
227
229
  providerName: number[];
230
+ scope: number[];
228
231
  scopes: number[];
229
232
  userWorkspaceId: number[];
230
233
  visibility: number[];
@@ -320,6 +323,7 @@ declare const _default: {
320
323
  lastSignedInAt: number[];
321
324
  name: number[];
322
325
  provider: number[];
326
+ scope: number[];
323
327
  scopes: number[];
324
328
  updatedAt: number[];
325
329
  userWorkspaceId: number[];
@@ -333,6 +337,7 @@ declare const _default: {
333
337
  logoUrl: number[];
334
338
  name: number[];
335
339
  oauth: number[];
340
+ scope: number[];
336
341
  type: number[];
337
342
  __typename: number[];
338
343
  };
@@ -431,8 +436,11 @@ declare const _default: {
431
436
  ApplicationRegistrationSourceType: {};
432
437
  ApplicationRegistrationStats: {
433
438
  activeInstalls: number[];
439
+ autoUpdateEnabled: number[];
440
+ creditsUsedBreakdown: number[];
434
441
  mostInstalledVersion: number[];
435
442
  suspendedInstalls: number[];
443
+ totalCreditsUsed: number[];
436
444
  versionDistribution: number[];
437
445
  __typename: number[];
438
446
  };
@@ -614,6 +622,7 @@ declare const _default: {
614
622
  BillingCustomer: {
615
623
  hasPaymentMethod: number[];
616
624
  id: number[];
625
+ userCreditsFallback: number[];
617
626
  __typename: number[];
618
627
  };
619
628
  BillingEndTrialPeriod: {
@@ -709,14 +718,15 @@ declare const _default: {
709
718
  __typename: number[];
710
719
  };
711
720
  BillingResourceCreditUsage: {
712
- grantedCredits: number[];
713
721
  periodEnd: number[];
714
722
  periodStart: number[];
715
723
  productKey: number[];
716
- rolloverCredits: number[];
717
- totalGrantedCredits: number[];
718
724
  unitPriceCents: number[];
719
- usedCredits: number[];
725
+ userCreditsUsed: number[];
726
+ workspaceCreditsExtraGranted: number[];
727
+ workspaceCreditsGranted: number[];
728
+ workspaceCreditsTotalGranted: number[];
729
+ workspaceCreditsUsed: number[];
720
730
  __typename: number[];
721
731
  };
722
732
  BillingSession: {
@@ -777,6 +787,7 @@ declare const _default: {
777
787
  connectedAccountId: number[];
778
788
  contactAutoCreationPolicy: number[];
779
789
  createdAt: number[];
790
+ excludePrivateEvents: number[];
780
791
  handle: number[];
781
792
  id: number[];
782
793
  isContactAutoCreationEnabled: number[];
@@ -1022,12 +1033,14 @@ declare const _default: {
1022
1033
  lastSignedInAt: number[];
1023
1034
  name: number[];
1024
1035
  provider: number[];
1036
+ scope: number[];
1025
1037
  scopes: number[];
1026
1038
  updatedAt: number[];
1027
1039
  userWorkspaceId: number[];
1028
1040
  visibility: number[];
1029
1041
  __typename: number[];
1030
1042
  };
1043
+ ConnectedAccountScope: {};
1031
1044
  ConnectedImapSmtpCaldavAccount: {
1032
1045
  connectionParameters: number[];
1033
1046
  handle: number[];
@@ -1045,6 +1058,7 @@ declare const _default: {
1045
1058
  username: number[];
1046
1059
  __typename: number[];
1047
1060
  };
1061
+ ConnectionProviderScope: {};
1048
1062
  CreateAgentInput: {
1049
1063
  description: number[];
1050
1064
  icon: number[];
@@ -1429,6 +1443,13 @@ declare const _default: {
1429
1443
  targetUrl: number[];
1430
1444
  __typename: number[];
1431
1445
  };
1446
+ CreditUsedItem: {
1447
+ creditsUsed: number[];
1448
+ label: number[];
1449
+ operation: number[];
1450
+ resource: number[];
1451
+ __typename: number[];
1452
+ };
1432
1453
  CursorPaging: {
1433
1454
  after: number[];
1434
1455
  before: number[];
@@ -2094,6 +2115,7 @@ declare const _default: {
2094
2115
  };
2095
2116
  ListAppConnectionsInput: {
2096
2117
  providerName: number[];
2118
+ scope: number[];
2097
2119
  userWorkspaceId: number[];
2098
2120
  visibility: number[];
2099
2121
  __typename: number[];
@@ -2258,6 +2280,7 @@ declare const _default: {
2258
2280
  excludeNonProfessionalEmails: number[];
2259
2281
  handle: number[];
2260
2282
  id: number[];
2283
+ importProgress: number[];
2261
2284
  isContactAutoCreationEnabled: number[];
2262
2285
  isSyncEnabled: number[];
2263
2286
  messageFolderImportPolicy: number[];
@@ -2927,6 +2950,7 @@ declare const _default: {
2927
2950
  mentionedWorkspaceMemberIds: (string | number)[];
2928
2951
  messageId: (string | number)[];
2929
2952
  modelId: number[];
2953
+ shouldAssistantReply: number[];
2930
2954
  text: (string | number)[];
2931
2955
  threadId: (string | number)[];
2932
2956
  })[];
@@ -3163,6 +3187,9 @@ declare const _default: {
3163
3187
  updateUsageLimit: (number | {
3164
3188
  input: (string | number)[];
3165
3189
  })[];
3190
+ updateUserCreditsFallback: (number | {
3191
+ userCreditsFallback: (string | number)[];
3192
+ })[];
3166
3193
  updateUserEmail: (number | {
3167
3194
  newEmail: (string | number)[];
3168
3195
  verifyEmailRedirectPath: number[];
@@ -3769,6 +3796,8 @@ declare const _default: {
3769
3796
  })[];
3770
3797
  findApplicationRegistrationStats: (number | {
3771
3798
  id: (string | number)[];
3799
+ periodEnd: number[];
3800
+ periodStart: number[];
3772
3801
  })[];
3773
3802
  findApplicationRegistrationVariables: (number | {
3774
3803
  applicationRegistrationId: (string | number)[];
@@ -4223,6 +4252,7 @@ declare const _default: {
4223
4252
  responseFormat: number[];
4224
4253
  runAsWorkspaceMemberId: number[];
4225
4254
  thread: number[];
4255
+ waitForCompletion: number[];
4226
4256
  __typename: number[];
4227
4257
  };
4228
4258
  RunAgentMessageAttachmentInput: {
@@ -4694,6 +4724,7 @@ declare const _default: {
4694
4724
  };
4695
4725
  UpdateCalendarChannelInputUpdates: {
4696
4726
  contactAutoCreationPolicy: number[];
4727
+ excludePrivateEvents: number[];
4697
4728
  isContactAutoCreationEnabled: number[];
4698
4729
  isSyncEnabled: number[];
4699
4730
  visibility: number[];
@@ -5238,6 +5269,8 @@ declare const _default: {
5238
5269
  creditsUsed: number[];
5239
5270
  key: number[];
5240
5271
  label: number[];
5272
+ userCreditsUsed: number[];
5273
+ workspaceCreditsUsed: number[];
5241
5274
  __typename: number[];
5242
5275
  };
5243
5276
  UsageLimit: {
@@ -5319,6 +5352,7 @@ declare const _default: {
5319
5352
  UsageTimeSeries: {
5320
5353
  creditsUsed: number[];
5321
5354
  date: number[];
5355
+ workspaceCreditsUsed: number[];
5322
5356
  __typename: number[];
5323
5357
  };
5324
5358
  UsageUnit: {};
@@ -5368,6 +5402,7 @@ declare const _default: {
5368
5402
  value: number[];
5369
5403
  __typename: number[];
5370
5404
  };
5405
+ UserCreditsFallback: {};
5371
5406
  UserSession: {
5372
5407
  authProvider: number[];
5373
5408
  createdAt: number[];