twenty-client-sdk 2.47.0 → 2.48.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-DE61c9du.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-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`),`
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.r}}/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.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';
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.r}}/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.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;
package/dist/generate.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { r as e } from "./application-ByLt9IKe.mjs";
1
+ import { i as e } from "./application-BmgukPzb.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";
@@ -77,6 +77,7 @@ export interface AgentMessage {
77
77
  id: Scalars['UUID'];
78
78
  parts: AgentMessagePart[];
79
79
  processedAt?: Scalars['DateTime'];
80
+ reactions: AgentMessageReactionSummary[];
80
81
  role: Scalars['String'];
81
82
  senderUserWorkspaceId?: Scalars['UUID'];
82
83
  senderWorkspaceMemberId?: Scalars['UUID'];
@@ -114,6 +115,11 @@ export interface AgentMessagePart {
114
115
  type: Scalars['String'];
115
116
  __typename: 'AgentMessagePart';
116
117
  }
118
+ export interface AgentMessageReactionSummary {
119
+ emoji: Scalars['String'];
120
+ workspaceMemberIds: Scalars['UUID'][];
121
+ __typename: 'AgentMessageReactionSummary';
122
+ }
117
123
  export interface AgentRun {
118
124
  createdAt: Scalars['DateTime'];
119
125
  creatorName: Scalars['String'];
@@ -207,6 +213,7 @@ export interface AppConnection {
207
213
  accessToken: Scalars['String'];
208
214
  authFailedAt?: Scalars['String'];
209
215
  authFailedReason?: Scalars['String'];
216
+ externalAccountId?: Scalars['String'];
210
217
  handle: Scalars['String'];
211
218
  id: Scalars['ID'];
212
219
  name: Scalars['String'];
@@ -620,13 +627,16 @@ export interface BillingPaymentIntent {
620
627
  }
621
628
  export interface BillingPlan {
622
629
  baseProducts: BillingLicensedProduct[];
630
+ downgradePlanKeys: BillingPlanKey[];
631
+ isSellable: Scalars['Boolean'];
623
632
  meteredProducts: BillingMeteredProduct[];
624
633
  planKey: BillingPlanKey;
625
634
  resourceCreditProducts: BillingLicensedProduct[];
635
+ upgradePlanKeys: BillingPlanKey[];
626
636
  __typename: 'BillingPlan';
627
637
  }
628
638
  /** The different billing plans available */
629
- export type BillingPlanKey = 'ENTERPRISE' | 'PRO';
639
+ export type BillingPlanKey = 'ENTERPRISE' | 'ORGANIZATION_V2' | 'PRO' | 'PRO_V2';
630
640
  export interface BillingPriceLicensed {
631
641
  creditAmount?: Scalars['Float'];
632
642
  isSellable: Scalars['Boolean'];
@@ -1105,7 +1115,7 @@ export interface EmailsConfiguration {
1105
1115
  configurationType: WidgetConfigurationType;
1106
1116
  __typename: 'EmailsConfiguration';
1107
1117
  }
1108
- export type EngineComponentKey = 'ACTIVATE_WORKFLOW' | 'ADD_NODE_WORKFLOW' | 'ADD_TO_FAVORITES' | 'ADD_TO_MESSAGE_LIST' | 'ADD_VIEW_TO_MESSAGE_LIST' | 'ASK_AI' | 'ASSIGN_AI_CHAT' | 'CANCEL_DASHBOARD_LAYOUT' | 'CANCEL_MESSAGE_CAMPAIGN' | 'COMPOSE_CAMPAIGN' | 'COMPOSE_EMAIL' | 'CREATE_NEW_RECORD' | 'CREATE_NEW_VIEW' | 'DEACTIVATE_WORKFLOW' | 'DELETE_MULTIPLE_RECORDS' | 'DELETE_RECORDS' | 'DELETE_SINGLE_RECORD' | 'DESTROY_MULTIPLE_RECORDS' | 'DESTROY_RECORDS' | 'DESTROY_SINGLE_RECORD' | 'DISCARD_DRAFT_WORKFLOW' | 'DUPLICATE_DASHBOARD' | 'DUPLICATE_MESSAGE_CAMPAIGN' | 'DUPLICATE_MESSAGE_LIST' | 'DUPLICATE_WORKFLOW' | 'EDIT_DASHBOARD_LAYOUT' | 'EDIT_RECORD_PAGE_LAYOUT' | 'EMAIL_BLOCK_SETTINGS' | 'EXPORT_FROM_RECORD_INDEX' | 'EXPORT_FROM_RECORD_SHOW' | 'EXPORT_MULTIPLE_RECORDS' | 'EXPORT_NOTE_TO_PDF' | 'EXPORT_RECORDS' | 'EXPORT_VIEW' | 'FRONT_COMPONENT_RENDERER' | 'GO_TO_COMPANIES' | 'GO_TO_DASHBOARDS' | 'GO_TO_NOTES' | 'GO_TO_OPPORTUNITIES' | 'GO_TO_PEOPLE' | 'GO_TO_RUNS' | 'GO_TO_SETTINGS' | 'GO_TO_TASKS' | 'GO_TO_WORKFLOWS' | 'HIDE_DELETED_RECORDS' | 'IMPORT_RECORDS' | 'MARK_AI_CHAT_AS_DONE' | 'MARK_AI_CHAT_AS_READ' | 'MARK_AI_CHAT_AS_UNREAD' | 'MERGE_MULTIPLE_RECORDS' | 'NAVIGATE_TO_NEXT_RECORD' | 'NAVIGATE_TO_PREVIOUS_RECORD' | 'NAVIGATION' | 'NEW_AI_CHAT' | 'REMOVE_FROM_FAVORITES' | 'REOPEN_AI_CHAT' | 'REPLY_TO_EMAIL_THREAD' | 'RESTORE_MULTIPLE_RECORDS' | 'RESTORE_RECORDS' | 'RESTORE_SINGLE_RECORD' | 'RETRY_WORKFLOW_RUN' | 'SAVE_DASHBOARD_LAYOUT' | 'SEARCH_RECORDS' | 'SEARCH_RECORDS_FALLBACK' | 'SEE_ACTIVE_VERSION_WORKFLOW' | 'SEE_DELETED_RECORDS' | 'SEE_RUNS_WORKFLOW' | 'SEE_RUNS_WORKFLOW_VERSION' | 'SEE_VERSIONS_WORKFLOW' | 'SEE_VERSIONS_WORKFLOW_VERSION' | 'SEE_VERSION_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_VERSION' | 'SEND_MESSAGE_CAMPAIGN' | 'SEND_MESSAGE_CAMPAIGN_TEST' | 'SHARE_RECORD' | 'SNOOZE_AI_CHAT' | 'STOP_WORKFLOW_RUN' | 'SUBSCRIBE_TO_AI_CHAT' | 'TEST_WORKFLOW' | 'TIDY_UP_WORKFLOW' | 'TOGGLE_WORKFLOW_VISIBILITY' | 'TRIGGER_WORKFLOW_VERSION' | 'UNSUBSCRIBE_FROM_AI_CHAT' | 'UPDATE_MULTIPLE_RECORDS' | 'USE_AS_DRAFT_WORKFLOW_VERSION' | 'VIEW_PREVIOUS_AI_CHATS';
1118
+ export type EngineComponentKey = 'ACTIVATE_WORKFLOW' | 'ADD_NODE_WORKFLOW' | 'ADD_TO_FAVORITES' | 'ADD_TO_MESSAGE_LIST' | 'ADD_VIEW_TO_MESSAGE_LIST' | 'ASK_AI' | 'ASSIGN_AI_CHAT' | 'CANCEL_DASHBOARD_LAYOUT' | 'CANCEL_MESSAGE_CAMPAIGN' | 'COMPOSE_CAMPAIGN' | 'COMPOSE_EMAIL' | 'CREATE_NEW_RECORD' | 'CREATE_NEW_VIEW' | 'DEACTIVATE_WORKFLOW' | 'DELETE_MULTIPLE_RECORDS' | 'DELETE_RECORDS' | 'DELETE_SINGLE_RECORD' | 'DESTROY_MULTIPLE_RECORDS' | 'DESTROY_RECORDS' | 'DESTROY_SINGLE_RECORD' | 'DISCARD_DRAFT_WORKFLOW' | 'DUPLICATE_DASHBOARD' | 'DUPLICATE_MESSAGE_CAMPAIGN' | 'DUPLICATE_MESSAGE_LIST' | 'DUPLICATE_WORKFLOW' | 'EDIT_DASHBOARD_LAYOUT' | 'EDIT_RECORD_PAGE_LAYOUT' | 'EMAIL_BLOCK_SETTINGS' | 'EMAIL_PAGE_STYLE' | 'EXPORT_FROM_RECORD_INDEX' | 'EXPORT_FROM_RECORD_SHOW' | 'EXPORT_MULTIPLE_RECORDS' | 'EXPORT_NOTE_TO_PDF' | 'EXPORT_RECORDS' | 'EXPORT_VIEW' | 'FRONT_COMPONENT_RENDERER' | 'GO_TO_COMPANIES' | 'GO_TO_DASHBOARDS' | 'GO_TO_NOTES' | 'GO_TO_OPPORTUNITIES' | 'GO_TO_PEOPLE' | 'GO_TO_RUNS' | 'GO_TO_SETTINGS' | 'GO_TO_TASKS' | 'GO_TO_WORKFLOWS' | 'HIDE_DELETED_RECORDS' | 'IMPORT_RECORDS' | 'MARK_AI_CHAT_AS_DONE' | 'MARK_AI_CHAT_AS_READ' | 'MARK_AI_CHAT_AS_UNREAD' | 'MERGE_MULTIPLE_RECORDS' | 'NAVIGATE_TO_NEXT_RECORD' | 'NAVIGATE_TO_PREVIOUS_RECORD' | 'NAVIGATION' | 'NEW_AI_CHAT' | 'REMOVE_FROM_FAVORITES' | 'REOPEN_AI_CHAT' | 'REPLY_TO_EMAIL_THREAD' | 'RESTORE_MULTIPLE_RECORDS' | 'RESTORE_RECORDS' | 'RESTORE_SINGLE_RECORD' | 'RETRY_WORKFLOW_RUN' | 'SAVE_DASHBOARD_LAYOUT' | 'SEARCH_RECORDS' | 'SEARCH_RECORDS_FALLBACK' | 'SEE_ACTIVE_VERSION_WORKFLOW' | 'SEE_DELETED_RECORDS' | 'SEE_RUNS_WORKFLOW' | 'SEE_RUNS_WORKFLOW_VERSION' | 'SEE_VERSIONS_WORKFLOW' | 'SEE_VERSIONS_WORKFLOW_VERSION' | 'SEE_VERSION_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_VERSION' | 'SEND_MESSAGE_CAMPAIGN' | 'SEND_MESSAGE_CAMPAIGN_TEST' | 'SHARE_RECORD' | 'SNOOZE_AI_CHAT' | 'STOP_WORKFLOW_RUN' | 'SUBSCRIBE_TO_AI_CHAT' | 'TEST_WORKFLOW' | 'TIDY_UP_WORKFLOW' | 'TOGGLE_WORKFLOW_VISIBILITY' | 'TRIGGER_WORKFLOW_VERSION' | 'UNSUBSCRIBE_FROM_AI_CHAT' | 'UPDATE_MULTIPLE_RECORDS' | 'USE_AS_DRAFT_WORKFLOW_VERSION' | 'VIEW_PREVIOUS_AI_CHATS';
1109
1119
  export interface EnqueueJobResult {
1110
1120
  enqueued: Scalars['Boolean'];
1111
1121
  jobId: Scalars['String'];
@@ -1170,7 +1180,7 @@ export interface FeatureFlag {
1170
1180
  value: Scalars['Boolean'];
1171
1181
  __typename: 'FeatureFlag';
1172
1182
  }
1173
- 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_INITIAL_OBJECT_VIEW_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' | 'IS_VALIDATION_RULES_ENABLED';
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';
1174
1184
  export interface Field {
1175
1185
  applicationId: Scalars['UUID'];
1176
1186
  createdAt: Scalars['DateTime'];
@@ -1577,6 +1587,7 @@ export interface MarketplaceAppDetail {
1577
1587
  /** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */
1578
1588
  manifest?: Scalars['JSON'];
1579
1589
  name: Scalars['String'];
1590
+ objects?: MarketplaceAppObject[];
1580
1591
  pricingDescription?: Scalars['String'];
1581
1592
  requestedCapabilities: Scalars['String'][];
1582
1593
  roles?: MarketplaceAppRole[];
@@ -1589,6 +1600,12 @@ export interface MarketplaceAppDetail {
1589
1600
  websiteUrl?: Scalars['String'];
1590
1601
  __typename: 'MarketplaceAppDetail';
1591
1602
  }
1603
+ export interface MarketplaceAppObject {
1604
+ labelPlural: Scalars['String'];
1605
+ labelSingular: Scalars['String'];
1606
+ universalIdentifier: Scalars['String'];
1607
+ __typename: 'MarketplaceAppObject';
1608
+ }
1592
1609
  export interface MarketplaceAppRole {
1593
1610
  canAccessAllTools?: Scalars['Boolean'];
1594
1611
  canDestroyAllObjectRecords?: Scalars['Boolean'];
@@ -1749,6 +1766,7 @@ export type ModelFamily = 'CLAUDE' | 'GEMINI' | 'GPT' | 'GROK' | 'MISTRAL';
1749
1766
  export interface Mutation {
1750
1767
  activateSkill: Skill;
1751
1768
  activateWorkspace: Workspace;
1769
+ addAgentChatMessageReaction: AgentMessageReactionSummary[];
1752
1770
  addQueryToEventStream: Scalars['Boolean'];
1753
1771
  assignAgentChatThread: Scalars['Boolean'];
1754
1772
  assignRoleToAgent: Scalars['Boolean'];
@@ -1898,6 +1916,7 @@ export interface Mutation {
1898
1916
  installMarketplaceApp: Scalars['Boolean'];
1899
1917
  refreshEnterpriseValidityToken: Scalars['Boolean'];
1900
1918
  releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTO;
1919
+ removeAgentChatMessageReaction: AgentMessageReactionSummary[];
1901
1920
  removeQueryFromEventStream: Scalars['Boolean'];
1902
1921
  removeRecordShare: RecordSharingDTO;
1903
1922
  removeRoleFromAgent: Scalars['Boolean'];
@@ -2635,6 +2654,7 @@ export interface RichTextBody {
2635
2654
  export interface Role {
2636
2655
  agents: Agent[];
2637
2656
  apiKeys: ApiKeyForRole[];
2657
+ applicationId: Scalars['UUID'];
2638
2658
  canAccessAllTools: Scalars['Boolean'];
2639
2659
  canBeAssignedToAgents: Scalars['Boolean'];
2640
2660
  canBeAssignedToApiKeys: Scalars['Boolean'];
@@ -3053,7 +3073,7 @@ export interface UsageQuotaWithConsumption {
3053
3073
  unit: UsageUnit;
3054
3074
  __typename: 'UsageQuotaWithConsumption';
3055
3075
  }
3056
- export type UsageResourceType = 'AI' | 'API' | 'APP' | 'EMAIL' | 'LOGIC_FUNCTION' | 'RECORD' | 'STORAGE' | 'WEBHOOK' | 'WORKFLOW';
3076
+ export type UsageResourceType = 'AI' | 'ALL' | 'API' | 'APP' | 'EMAIL' | 'LOGIC_FUNCTION' | 'RECORD' | 'STORAGE' | 'WEBHOOK' | 'WORKFLOW';
3057
3077
  export interface UsageTimeSeries {
3058
3078
  creditsUsed: Scalars['Float'];
3059
3079
  date: Scalars['String'];
@@ -3572,6 +3592,7 @@ export interface AgentMessageGenqlSelection {
3572
3592
  id?: boolean | number;
3573
3593
  parts?: AgentMessagePartGenqlSelection;
3574
3594
  processedAt?: boolean | number;
3595
+ reactions?: AgentMessageReactionSummaryGenqlSelection;
3575
3596
  role?: boolean | number;
3576
3597
  senderUserWorkspaceId?: boolean | number;
3577
3598
  senderWorkspaceMemberId?: boolean | number;
@@ -3611,6 +3632,12 @@ export interface AgentMessagePartGenqlSelection {
3611
3632
  __typename?: boolean | number;
3612
3633
  __scalar?: boolean | number;
3613
3634
  }
3635
+ export interface AgentMessageReactionSummaryGenqlSelection {
3636
+ emoji?: boolean | number;
3637
+ workspaceMemberIds?: boolean | number;
3638
+ __typename?: boolean | number;
3639
+ __scalar?: boolean | number;
3640
+ }
3614
3641
  export interface AgentRunGenqlSelection {
3615
3642
  createdAt?: boolean | number;
3616
3643
  creatorName?: boolean | number;
@@ -3709,6 +3736,7 @@ export interface AppConnectionGenqlSelection {
3709
3736
  accessToken?: boolean | number;
3710
3737
  authFailedAt?: boolean | number;
3711
3738
  authFailedReason?: boolean | number;
3739
+ externalAccountId?: boolean | number;
3712
3740
  handle?: boolean | number;
3713
3741
  id?: boolean | number;
3714
3742
  name?: boolean | number;
@@ -4177,9 +4205,12 @@ export interface BillingPaymentIntentGenqlSelection {
4177
4205
  }
4178
4206
  export interface BillingPlanGenqlSelection {
4179
4207
  baseProducts?: BillingLicensedProductGenqlSelection;
4208
+ downgradePlanKeys?: boolean | number;
4209
+ isSellable?: boolean | number;
4180
4210
  meteredProducts?: BillingMeteredProductGenqlSelection;
4181
4211
  planKey?: boolean | number;
4182
4212
  resourceCreditProducts?: BillingLicensedProductGenqlSelection;
4213
+ upgradePlanKeys?: boolean | number;
4183
4214
  __typename?: boolean | number;
4184
4215
  __scalar?: boolean | number;
4185
4216
  }
@@ -5750,6 +5781,7 @@ export interface MarketplaceAppDetailGenqlSelection {
5750
5781
  /** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */
5751
5782
  manifest?: boolean | number;
5752
5783
  name?: boolean | number;
5784
+ objects?: MarketplaceAppObjectGenqlSelection;
5753
5785
  pricingDescription?: boolean | number;
5754
5786
  requestedCapabilities?: boolean | number;
5755
5787
  roles?: MarketplaceAppRoleGenqlSelection;
@@ -5763,6 +5795,13 @@ export interface MarketplaceAppDetailGenqlSelection {
5763
5795
  __typename?: boolean | number;
5764
5796
  __scalar?: boolean | number;
5765
5797
  }
5798
+ export interface MarketplaceAppObjectGenqlSelection {
5799
+ labelPlural?: boolean | number;
5800
+ labelSingular?: boolean | number;
5801
+ universalIdentifier?: boolean | number;
5802
+ __typename?: boolean | number;
5803
+ __scalar?: boolean | number;
5804
+ }
5766
5805
  export interface MarketplaceAppRoleGenqlSelection {
5767
5806
  canAccessAllTools?: boolean | number;
5768
5807
  canDestroyAllObjectRecords?: boolean | number;
@@ -5937,6 +5976,12 @@ export interface MutationGenqlSelection {
5937
5976
  data: ActivateWorkspaceInput;
5938
5977
  };
5939
5978
  });
5979
+ addAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & {
5980
+ __args: {
5981
+ emoji: Scalars['String'];
5982
+ messageId: Scalars['UUID'];
5983
+ };
5984
+ });
5940
5985
  addQueryToEventStream?: {
5941
5986
  __args: {
5942
5987
  input: AddQuerySubscriptionInput;
@@ -6661,6 +6706,12 @@ export interface MutationGenqlSelection {
6661
6706
  };
6662
6707
  refreshEnterpriseValidityToken?: boolean | number;
6663
6708
  releaseEnterpriseServerBinding?: EnterpriseLicenseInfoDTOGenqlSelection;
6709
+ removeAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & {
6710
+ __args: {
6711
+ emoji: Scalars['String'];
6712
+ messageId: Scalars['UUID'];
6713
+ };
6714
+ });
6664
6715
  removeQueryFromEventStream?: {
6665
6716
  __args: {
6666
6717
  input: RemoveQueryFromEventStreamInput;
@@ -6904,7 +6955,11 @@ export interface MutationGenqlSelection {
6904
6955
  };
6905
6956
  };
6906
6957
  stopImpersonation?: StopImpersonationGenqlSelection;
6907
- switchBillingPlan?: BillingUpdateGenqlSelection;
6958
+ switchBillingPlan?: (BillingUpdateGenqlSelection & {
6959
+ __args?: {
6960
+ plan?: (BillingPlanKey | null);
6961
+ };
6962
+ });
6908
6963
  switchSubscriptionInterval?: BillingUpdateGenqlSelection;
6909
6964
  syncApplication?: (WorkspaceMigrationGenqlSelection & {
6910
6965
  __args: {
@@ -7952,6 +8007,7 @@ export interface QueryGenqlSelection {
7952
8007
  });
7953
8008
  findInstallApplicationJobStatus?: (JobStatusGenqlSelection & {
7954
8009
  __args: {
8010
+ jobId?: (Scalars['String'] | null);
7955
8011
  universalIdentifier: Scalars['String'];
7956
8012
  };
7957
8013
  });
@@ -7993,11 +8049,13 @@ export interface QueryGenqlSelection {
7993
8049
  });
7994
8050
  findUninstallApplicationJobStatus?: (JobStatusGenqlSelection & {
7995
8051
  __args: {
8052
+ jobId?: (Scalars['String'] | null);
7996
8053
  universalIdentifier: Scalars['String'];
7997
8054
  };
7998
8055
  });
7999
8056
  findUpgradeApplicationJobStatus?: (JobStatusGenqlSelection & {
8000
8057
  __args: {
8058
+ jobId?: (Scalars['String'] | null);
8001
8059
  universalIdentifier: Scalars['String'];
8002
8060
  };
8003
8061
  });
@@ -8443,6 +8501,7 @@ export interface RichTextBodyGenqlSelection {
8443
8501
  export interface RoleGenqlSelection {
8444
8502
  agents?: AgentGenqlSelection;
8445
8503
  apiKeys?: ApiKeyForRoleGenqlSelection;
8504
+ applicationId?: boolean | number;
8446
8505
  canAccessAllTools?: boolean | number;
8447
8506
  canBeAssignedToAgents?: boolean | number;
8448
8507
  canBeAssignedToApiKeys?: boolean | number;
@@ -8528,6 +8587,7 @@ export interface RunAgentInput {
8528
8587
  input?: (RunAgentMessageInput[] | null);
8529
8588
  messages?: (RunAgentMessageInput[] | null);
8530
8589
  prompt?: (Scalars['String'] | null);
8590
+ responseFormat?: (Scalars['JSON'] | null);
8531
8591
  runAsWorkspaceMemberId?: (Scalars['UUID'] | null);
8532
8592
  thread?: (RunAgentThreadInput | null);
8533
8593
  }
@@ -10122,6 +10182,9 @@ export declare const isAgentMessage: (obj?: {
10122
10182
  export declare const isAgentMessagePart: (obj?: {
10123
10183
  __typename?: any;
10124
10184
  } | null | undefined) => obj is AgentMessagePart;
10185
+ export declare const isAgentMessageReactionSummary: (obj?: {
10186
+ __typename?: any;
10187
+ } | null | undefined) => obj is AgentMessageReactionSummary;
10125
10188
  export declare const isAgentRun: (obj?: {
10126
10189
  __typename?: any;
10127
10190
  } | null | undefined) => obj is AgentRun;
@@ -10614,6 +10677,9 @@ export declare const isMarketplaceApp: (obj?: {
10614
10677
  export declare const isMarketplaceAppDetail: (obj?: {
10615
10678
  __typename?: any;
10616
10679
  } | null | undefined) => obj is MarketplaceAppDetail;
10680
+ export declare const isMarketplaceAppObject: (obj?: {
10681
+ __typename?: any;
10682
+ } | null | undefined) => obj is MarketplaceAppObject;
10617
10683
  export declare const isMarketplaceAppRole: (obj?: {
10618
10684
  __typename?: any;
10619
10685
  } | null | undefined) => obj is MarketplaceAppRole;
@@ -11222,7 +11288,9 @@ export declare const enumBillingEntitlementKey: {
11222
11288
  };
11223
11289
  export declare const enumBillingPlanKey: {
11224
11290
  ENTERPRISE: "ENTERPRISE";
11291
+ ORGANIZATION_V2: "ORGANIZATION_V2";
11225
11292
  PRO: "PRO";
11293
+ PRO_V2: "PRO_V2";
11226
11294
  };
11227
11295
  export declare const enumBillingProductKey: {
11228
11296
  BASE_PRODUCT: "BASE_PRODUCT";
@@ -11330,6 +11398,7 @@ export declare const enumEngineComponentKey: {
11330
11398
  EDIT_DASHBOARD_LAYOUT: "EDIT_DASHBOARD_LAYOUT";
11331
11399
  EDIT_RECORD_PAGE_LAYOUT: "EDIT_RECORD_PAGE_LAYOUT";
11332
11400
  EMAIL_BLOCK_SETTINGS: "EMAIL_BLOCK_SETTINGS";
11401
+ EMAIL_PAGE_STYLE: "EMAIL_PAGE_STYLE";
11333
11402
  EXPORT_FROM_RECORD_INDEX: "EXPORT_FROM_RECORD_INDEX";
11334
11403
  EXPORT_FROM_RECORD_SHOW: "EXPORT_FROM_RECORD_SHOW";
11335
11404
  EXPORT_MULTIPLE_RECORDS: "EXPORT_MULTIPLE_RECORDS";
@@ -11409,15 +11478,14 @@ export declare const enumFeatureFlagKey: {
11409
11478
  IS_CALENDAR_SYNC_SKIP_UNCHANGED_RECORDS_ENABLED: "IS_CALENDAR_SYNC_SKIP_UNCHANGED_RECORDS_ENABLED";
11410
11479
  IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED: "IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED";
11411
11480
  IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED: "IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED";
11412
- IS_INITIAL_OBJECT_VIEW_ENABLED: "IS_INITIAL_OBJECT_VIEW_ENABLED";
11413
11481
  IS_JSON_FILTER_ENABLED: "IS_JSON_FILTER_ENABLED";
11414
11482
  IS_LOGS_SETTINGS_SECTION_ENABLED: "IS_LOGS_SETTINGS_SECTION_ENABLED";
11415
11483
  IS_MESSAGE_CAMPAIGN_ENABLED: "IS_MESSAGE_CAMPAIGN_ENABLED";
11484
+ IS_MORPH_RELATION_HEAD_ENABLED: "IS_MORPH_RELATION_HEAD_ENABLED";
11416
11485
  IS_RECORD_CREATION_FORM_ENABLED: "IS_RECORD_CREATION_FORM_ENABLED";
11417
11486
  IS_RECORD_LEVEL_SHARING_ENABLED: "IS_RECORD_LEVEL_SHARING_ENABLED";
11418
11487
  IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED: "IS_RECORD_SHARE_VISIBILITY_GATING_ENABLED";
11419
11488
  IS_REST_METADATA_API_NEW_FORMAT_DIRECT: "IS_REST_METADATA_API_NEW_FORMAT_DIRECT";
11420
- IS_VALIDATION_RULES_ENABLED: "IS_VALIDATION_RULES_ENABLED";
11421
11489
  };
11422
11490
  export declare const enumFieldDisplayMode: {
11423
11491
  CARD: "CARD";
@@ -11790,6 +11858,7 @@ export declare const enumUsageOperationType: {
11790
11858
  };
11791
11859
  export declare const enumUsageResourceType: {
11792
11860
  AI: "AI";
11861
+ ALL: "ALL";
11793
11862
  API: "API";
11794
11863
  APP: "APP";
11795
11864
  EMAIL: "EMAIL";
@@ -85,6 +85,7 @@ declare const _default: {
85
85
  id: number[];
86
86
  parts: number[];
87
87
  processedAt: number[];
88
+ reactions: number[];
88
89
  role: number[];
89
90
  senderUserWorkspaceId: number[];
90
91
  senderWorkspaceMemberId: number[];
@@ -122,6 +123,11 @@ declare const _default: {
122
123
  type: number[];
123
124
  __typename: number[];
124
125
  };
126
+ AgentMessageReactionSummary: {
127
+ emoji: number[];
128
+ workspaceMemberIds: number[];
129
+ __typename: number[];
130
+ };
125
131
  AgentRun: {
126
132
  createdAt: number[];
127
133
  creatorName: number[];
@@ -214,6 +220,7 @@ declare const _default: {
214
220
  accessToken: number[];
215
221
  authFailedAt: number[];
216
222
  authFailedReason: number[];
223
+ externalAccountId: number[];
217
224
  handle: number[];
218
225
  id: number[];
219
226
  name: number[];
@@ -646,9 +653,12 @@ declare const _default: {
646
653
  };
647
654
  BillingPlan: {
648
655
  baseProducts: number[];
656
+ downgradePlanKeys: number[];
657
+ isSellable: number[];
649
658
  meteredProducts: number[];
650
659
  planKey: number[];
651
660
  resourceCreditProducts: number[];
661
+ upgradePlanKeys: number[];
652
662
  __typename: number[];
653
663
  };
654
664
  BillingPlanKey: {};
@@ -2179,6 +2189,7 @@ declare const _default: {
2179
2189
  logoUrl: number[];
2180
2190
  manifest: number[];
2181
2191
  name: number[];
2192
+ objects: number[];
2182
2193
  pricingDescription: number[];
2183
2194
  requestedCapabilities: number[];
2184
2195
  roles: number[];
@@ -2190,6 +2201,12 @@ declare const _default: {
2190
2201
  websiteUrl: number[];
2191
2202
  __typename: number[];
2192
2203
  };
2204
+ MarketplaceAppObject: {
2205
+ labelPlural: number[];
2206
+ labelSingular: number[];
2207
+ universalIdentifier: number[];
2208
+ __typename: number[];
2209
+ };
2193
2210
  MarketplaceAppRole: {
2194
2211
  canAccessAllTools: number[];
2195
2212
  canDestroyAllObjectRecords: number[];
@@ -2364,6 +2381,10 @@ declare const _default: {
2364
2381
  activateWorkspace: (number | {
2365
2382
  data: (string | number)[];
2366
2383
  })[];
2384
+ addAgentChatMessageReaction: (number | {
2385
+ emoji: (string | number)[];
2386
+ messageId: (string | number)[];
2387
+ })[];
2367
2388
  addQueryToEventStream: (number | {
2368
2389
  input: (string | number)[];
2369
2390
  })[];
@@ -2824,6 +2845,10 @@ declare const _default: {
2824
2845
  })[];
2825
2846
  refreshEnterpriseValidityToken: number[];
2826
2847
  releaseEnterpriseServerBinding: number[];
2848
+ removeAgentChatMessageReaction: (number | {
2849
+ emoji: (string | number)[];
2850
+ messageId: (string | number)[];
2851
+ })[];
2827
2852
  removeQueryFromEventStream: (number | {
2828
2853
  input: (string | number)[];
2829
2854
  })[];
@@ -2983,7 +3008,9 @@ declare const _default: {
2983
3008
  threadId: (string | number)[];
2984
3009
  })[];
2985
3010
  stopImpersonation: number[];
2986
- switchBillingPlan: number[];
3011
+ switchBillingPlan: (number | {
3012
+ plan: number[];
3013
+ })[];
2987
3014
  switchSubscriptionInterval: number[];
2988
3015
  syncApplication: (number | {
2989
3016
  dryRun: number[];
@@ -3751,6 +3778,7 @@ declare const _default: {
3751
3778
  universalIdentifier: number[];
3752
3779
  })[];
3753
3780
  findInstallApplicationJobStatus: (number | {
3781
+ jobId: number[];
3754
3782
  universalIdentifier: (string | number)[];
3755
3783
  })[];
3756
3784
  findManyAgents: number[];
@@ -3778,9 +3806,11 @@ declare const _default: {
3778
3806
  input: (string | number)[];
3779
3807
  })[];
3780
3808
  findUninstallApplicationJobStatus: (number | {
3809
+ jobId: number[];
3781
3810
  universalIdentifier: (string | number)[];
3782
3811
  })[];
3783
3812
  findUpgradeApplicationJobStatus: (number | {
3813
+ jobId: number[];
3784
3814
  universalIdentifier: (string | number)[];
3785
3815
  })[];
3786
3816
  findWorkspaceAiStats: number[];
@@ -4105,6 +4135,7 @@ declare const _default: {
4105
4135
  Role: {
4106
4136
  agents: number[];
4107
4137
  apiKeys: number[];
4138
+ applicationId: number[];
4108
4139
  canAccessAllTools: number[];
4109
4140
  canBeAssignedToAgents: number[];
4110
4141
  canBeAssignedToApiKeys: number[];
@@ -4189,6 +4220,7 @@ declare const _default: {
4189
4220
  input: number[];
4190
4221
  messages: number[];
4191
4222
  prompt: number[];
4223
+ responseFormat: number[];
4192
4224
  runAsWorkspaceMemberId: number[];
4193
4225
  thread: number[];
4194
4226
  __typename: number[];