twenty-client-sdk 2.7.0 → 2.9.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.
@@ -170,7 +170,7 @@ export interface FieldPermission {
170
170
  export interface RolePermissionFlag {
171
171
  id: Scalars['UUID'];
172
172
  roleId: Scalars['UUID'];
173
- flag: PermissionFlagType;
173
+ flag: Scalars['String'];
174
174
  __typename: 'RolePermissionFlag';
175
175
  }
176
176
  export interface ApiKeyForRole {
@@ -346,6 +346,7 @@ export interface IndexField {
346
346
  id: Scalars['UUID'];
347
347
  fieldMetadataId: Scalars['UUID'];
348
348
  order: Scalars['Float'];
349
+ subFieldName?: Scalars['String'];
349
350
  createdAt: Scalars['DateTime'];
350
351
  updatedAt: Scalars['DateTime'];
351
352
  __typename: 'IndexField';
@@ -1235,6 +1236,18 @@ export interface WorkspaceUrls {
1235
1236
  subdomainUrl: Scalars['String'];
1236
1237
  __typename: 'WorkspaceUrls';
1237
1238
  }
1239
+ export interface ApplicationRegistrationVariableDTO {
1240
+ id: Scalars['UUID'];
1241
+ key: Scalars['String'];
1242
+ value?: Scalars['String'];
1243
+ description: Scalars['String'];
1244
+ isSecret: Scalars['Boolean'];
1245
+ isRequired: Scalars['Boolean'];
1246
+ isFilled: Scalars['Boolean'];
1247
+ createdAt: Scalars['DateTime'];
1248
+ updatedAt: Scalars['DateTime'];
1249
+ __typename: 'ApplicationRegistrationVariableDTO';
1250
+ }
1238
1251
  export interface BillingTrialPeriod {
1239
1252
  duration: Scalars['Float'];
1240
1253
  isCreditCardRequired: Scalars['Boolean'];
@@ -1415,18 +1428,6 @@ export interface RotateClientSecret {
1415
1428
  clientSecret: Scalars['String'];
1416
1429
  __typename: 'RotateClientSecret';
1417
1430
  }
1418
- export interface ApplicationRegistrationVariableDTO {
1419
- id: Scalars['UUID'];
1420
- key: Scalars['String'];
1421
- value?: Scalars['String'];
1422
- description: Scalars['String'];
1423
- isSecret: Scalars['Boolean'];
1424
- isRequired: Scalars['Boolean'];
1425
- isFilled: Scalars['Boolean'];
1426
- createdAt: Scalars['DateTime'];
1427
- updatedAt: Scalars['DateTime'];
1428
- __typename: 'ApplicationRegistrationVariableDTO';
1429
- }
1430
1431
  export interface Relation {
1431
1432
  type: RelationType;
1432
1433
  sourceObjectMetadata: Object;
@@ -1890,6 +1891,18 @@ export interface ImapSmtpCaldavConnectionSuccess {
1890
1891
  connectedAccountId: Scalars['String'];
1891
1892
  __typename: 'ImapSmtpCaldavConnectionSuccess';
1892
1893
  }
1894
+ export interface Webhook {
1895
+ id: Scalars['UUID'];
1896
+ targetUrl: Scalars['String'];
1897
+ operations: Scalars['String'][];
1898
+ description?: Scalars['String'];
1899
+ secret: Scalars['String'];
1900
+ applicationId: Scalars['UUID'];
1901
+ createdAt: Scalars['DateTime'];
1902
+ updatedAt: Scalars['DateTime'];
1903
+ deletedAt?: Scalars['DateTime'];
1904
+ __typename: 'Webhook';
1905
+ }
1893
1906
  export interface ToolIndexEntry {
1894
1907
  name: Scalars['String'];
1895
1908
  description: Scalars['String'];
@@ -2212,18 +2225,6 @@ export interface MinimalMetadata {
2212
2225
  collectionHashes: CollectionHash[];
2213
2226
  __typename: 'MinimalMetadata';
2214
2227
  }
2215
- export interface Webhook {
2216
- id: Scalars['UUID'];
2217
- targetUrl: Scalars['String'];
2218
- operations: Scalars['String'][];
2219
- description?: Scalars['String'];
2220
- secret: Scalars['String'];
2221
- applicationId: Scalars['UUID'];
2222
- createdAt: Scalars['DateTime'];
2223
- updatedAt: Scalars['DateTime'];
2224
- deletedAt?: Scalars['DateTime'];
2225
- __typename: 'Webhook';
2226
- }
2227
2228
  export interface Query {
2228
2229
  navigationMenuItems: NavigationMenuItem[];
2229
2230
  navigationMenuItem?: NavigationMenuItem;
@@ -2274,6 +2275,8 @@ export interface Query {
2274
2275
  getRoles: Role[];
2275
2276
  getToolIndex: ToolIndexEntry[];
2276
2277
  getToolInputSchema?: Scalars['JSON'];
2278
+ webhooks: Webhook[];
2279
+ webhook?: Webhook;
2277
2280
  field: Field;
2278
2281
  fields: FieldConnection;
2279
2282
  getViewGroups: ViewGroup[];
@@ -2282,8 +2285,6 @@ export interface Query {
2282
2285
  myMessageChannels: MessageChannel[];
2283
2286
  myConnectedAccounts: ConnectedAccountPublicDTO[];
2284
2287
  myCalendarChannels: CalendarChannel[];
2285
- webhooks: Webhook[];
2286
- webhook?: Webhook;
2287
2288
  minimalMetadata: MinimalMetadata;
2288
2289
  chatThreads: AgentChatThread[];
2289
2290
  chatThread: AgentChatThread;
@@ -2422,6 +2423,8 @@ export interface Mutation {
2422
2423
  createOneObject: Object;
2423
2424
  deleteOneObject: Object;
2424
2425
  updateOneObject: Object;
2426
+ createOneIndex: Index;
2427
+ deleteOneIndex: Index;
2425
2428
  createOneAgent: Agent;
2426
2429
  updateOneAgent: Agent;
2427
2430
  deleteOneAgent: Agent;
@@ -2435,6 +2438,9 @@ export interface Mutation {
2435
2438
  upsertRowLevelPermissionPredicates: UpsertRowLevelPermissionPredicatesResult;
2436
2439
  assignRoleToAgent: Scalars['Boolean'];
2437
2440
  removeRoleFromAgent: Scalars['Boolean'];
2441
+ createWebhook: Webhook;
2442
+ updateWebhook: Webhook;
2443
+ deleteWebhook: Webhook;
2438
2444
  createOneField: Field;
2439
2445
  updateOneField: Field;
2440
2446
  deleteOneField: Field;
@@ -2451,9 +2457,6 @@ export interface Mutation {
2451
2457
  deleteEmailGroupChannel: MessageChannel;
2452
2458
  deleteConnectedAccount: ConnectedAccountPublicDTO;
2453
2459
  updateCalendarChannel: CalendarChannel;
2454
- createWebhook: Webhook;
2455
- updateWebhook: Webhook;
2456
- deleteWebhook: Webhook;
2457
2460
  createChatThread: AgentChatThread;
2458
2461
  sendChatMessage: SendChatMessageResult;
2459
2462
  stopAgentChatStream: Scalars['Boolean'];
@@ -2507,7 +2510,6 @@ export interface Mutation {
2507
2510
  updateWorkspace: Workspace;
2508
2511
  deleteCurrentWorkspace: Workspace;
2509
2512
  checkCustomDomainValidRecords?: DomainValidRecords;
2510
- installApplication: Scalars['Boolean'];
2511
2513
  runWorkspaceMigration: Scalars['Boolean'];
2512
2514
  uninstallApplication: Scalars['Boolean'];
2513
2515
  createOIDCIdentityProvider: SetupSso;
@@ -2528,7 +2530,9 @@ export interface Mutation {
2528
2530
  deleteEmailingDomain: Scalars['Boolean'];
2529
2531
  verifyEmailingDomain: EmailingDomain;
2530
2532
  createOneAppToken: AppToken;
2533
+ /** @deprecated Use installApplication instead */
2531
2534
  installMarketplaceApp: Scalars['Boolean'];
2535
+ installApplication: Application;
2532
2536
  syncMarketplaceCatalog: Scalars['Boolean'];
2533
2537
  createDevelopmentApplication: DevelopmentApplication;
2534
2538
  generateApplicationToken: ApplicationTokenPair;
@@ -2903,6 +2907,7 @@ export interface IndexFieldGenqlSelection {
2903
2907
  id?: boolean | number;
2904
2908
  fieldMetadataId?: boolean | number;
2905
2909
  order?: boolean | number;
2910
+ subFieldName?: boolean | number;
2906
2911
  createdAt?: boolean | number;
2907
2912
  updatedAt?: boolean | number;
2908
2913
  __typename?: boolean | number;
@@ -3947,6 +3952,19 @@ export interface WorkspaceUrlsGenqlSelection {
3947
3952
  __typename?: boolean | number;
3948
3953
  __scalar?: boolean | number;
3949
3954
  }
3955
+ export interface ApplicationRegistrationVariableDTOGenqlSelection {
3956
+ id?: boolean | number;
3957
+ key?: boolean | number;
3958
+ value?: boolean | number;
3959
+ description?: boolean | number;
3960
+ isSecret?: boolean | number;
3961
+ isRequired?: boolean | number;
3962
+ isFilled?: boolean | number;
3963
+ createdAt?: boolean | number;
3964
+ updatedAt?: boolean | number;
3965
+ __typename?: boolean | number;
3966
+ __scalar?: boolean | number;
3967
+ }
3950
3968
  export interface BillingTrialPeriodGenqlSelection {
3951
3969
  duration?: boolean | number;
3952
3970
  isCreditCardRequired?: boolean | number;
@@ -4145,19 +4163,6 @@ export interface RotateClientSecretGenqlSelection {
4145
4163
  __typename?: boolean | number;
4146
4164
  __scalar?: boolean | number;
4147
4165
  }
4148
- export interface ApplicationRegistrationVariableDTOGenqlSelection {
4149
- id?: boolean | number;
4150
- key?: boolean | number;
4151
- value?: boolean | number;
4152
- description?: boolean | number;
4153
- isSecret?: boolean | number;
4154
- isRequired?: boolean | number;
4155
- isFilled?: boolean | number;
4156
- createdAt?: boolean | number;
4157
- updatedAt?: boolean | number;
4158
- __typename?: boolean | number;
4159
- __scalar?: boolean | number;
4160
- }
4161
4166
  export interface RelationGenqlSelection {
4162
4167
  type?: boolean | number;
4163
4168
  sourceObjectMetadata?: ObjectGenqlSelection;
@@ -4686,6 +4691,19 @@ export interface ImapSmtpCaldavConnectionSuccessGenqlSelection {
4686
4691
  __typename?: boolean | number;
4687
4692
  __scalar?: boolean | number;
4688
4693
  }
4694
+ export interface WebhookGenqlSelection {
4695
+ id?: boolean | number;
4696
+ targetUrl?: boolean | number;
4697
+ operations?: boolean | number;
4698
+ description?: boolean | number;
4699
+ secret?: boolean | number;
4700
+ applicationId?: boolean | number;
4701
+ createdAt?: boolean | number;
4702
+ updatedAt?: boolean | number;
4703
+ deletedAt?: boolean | number;
4704
+ __typename?: boolean | number;
4705
+ __scalar?: boolean | number;
4706
+ }
4689
4707
  export interface ToolIndexEntryGenqlSelection {
4690
4708
  name?: boolean | number;
4691
4709
  description?: boolean | number;
@@ -5028,19 +5046,6 @@ export interface MinimalMetadataGenqlSelection {
5028
5046
  __typename?: boolean | number;
5029
5047
  __scalar?: boolean | number;
5030
5048
  }
5031
- export interface WebhookGenqlSelection {
5032
- id?: boolean | number;
5033
- targetUrl?: boolean | number;
5034
- operations?: boolean | number;
5035
- description?: boolean | number;
5036
- secret?: boolean | number;
5037
- applicationId?: boolean | number;
5038
- createdAt?: boolean | number;
5039
- updatedAt?: boolean | number;
5040
- deletedAt?: boolean | number;
5041
- __typename?: boolean | number;
5042
- __scalar?: boolean | number;
5043
- }
5044
5049
  export interface QueryGenqlSelection {
5045
5050
  navigationMenuItems?: NavigationMenuItemGenqlSelection;
5046
5051
  navigationMenuItem?: (NavigationMenuItemGenqlSelection & {
@@ -5241,6 +5246,12 @@ export interface QueryGenqlSelection {
5241
5246
  toolName: Scalars['String'];
5242
5247
  };
5243
5248
  };
5249
+ webhooks?: WebhookGenqlSelection;
5250
+ webhook?: (WebhookGenqlSelection & {
5251
+ __args: {
5252
+ id: Scalars['UUID'];
5253
+ };
5254
+ });
5244
5255
  field?: (FieldGenqlSelection & {
5245
5256
  __args: {
5246
5257
  /** The id of the record to find. */
@@ -5281,12 +5292,6 @@ export interface QueryGenqlSelection {
5281
5292
  connectedAccountId?: (Scalars['UUID'] | null);
5282
5293
  };
5283
5294
  });
5284
- webhooks?: WebhookGenqlSelection;
5285
- webhook?: (WebhookGenqlSelection & {
5286
- __args: {
5287
- id: Scalars['UUID'];
5288
- };
5289
- });
5290
5295
  minimalMetadata?: MinimalMetadataGenqlSelection;
5291
5296
  chatThreads?: AgentChatThreadGenqlSelection;
5292
5297
  chatThread?: (AgentChatThreadGenqlSelection & {
@@ -5945,6 +5950,16 @@ export interface MutationGenqlSelection {
5945
5950
  input: UpdateOneObjectInput;
5946
5951
  };
5947
5952
  });
5953
+ createOneIndex?: (IndexGenqlSelection & {
5954
+ __args: {
5955
+ input: CreateOneIndexInput;
5956
+ };
5957
+ });
5958
+ deleteOneIndex?: (IndexGenqlSelection & {
5959
+ __args: {
5960
+ input: DeleteOneIndexInput;
5961
+ };
5962
+ });
5948
5963
  createOneAgent?: (AgentGenqlSelection & {
5949
5964
  __args: {
5950
5965
  input: CreateAgentInput;
@@ -6012,6 +6027,21 @@ export interface MutationGenqlSelection {
6012
6027
  agentId: Scalars['UUID'];
6013
6028
  };
6014
6029
  };
6030
+ createWebhook?: (WebhookGenqlSelection & {
6031
+ __args: {
6032
+ input: CreateWebhookInput;
6033
+ };
6034
+ });
6035
+ updateWebhook?: (WebhookGenqlSelection & {
6036
+ __args: {
6037
+ input: UpdateWebhookInput;
6038
+ };
6039
+ });
6040
+ deleteWebhook?: (WebhookGenqlSelection & {
6041
+ __args: {
6042
+ id: Scalars['UUID'];
6043
+ };
6044
+ });
6015
6045
  createOneField?: (FieldGenqlSelection & {
6016
6046
  __args: {
6017
6047
  input: CreateOneFieldMetadataInput;
@@ -6092,21 +6122,6 @@ export interface MutationGenqlSelection {
6092
6122
  input: UpdateCalendarChannelInput;
6093
6123
  };
6094
6124
  });
6095
- createWebhook?: (WebhookGenqlSelection & {
6096
- __args: {
6097
- input: CreateWebhookInput;
6098
- };
6099
- });
6100
- updateWebhook?: (WebhookGenqlSelection & {
6101
- __args: {
6102
- input: UpdateWebhookInput;
6103
- };
6104
- });
6105
- deleteWebhook?: (WebhookGenqlSelection & {
6106
- __args: {
6107
- id: Scalars['UUID'];
6108
- };
6109
- });
6110
6125
  createChatThread?: AgentChatThreadGenqlSelection;
6111
6126
  sendChatMessage?: (SendChatMessageResultGenqlSelection & {
6112
6127
  __args: {
@@ -6392,12 +6407,6 @@ export interface MutationGenqlSelection {
6392
6407
  });
6393
6408
  deleteCurrentWorkspace?: WorkspaceGenqlSelection;
6394
6409
  checkCustomDomainValidRecords?: DomainValidRecordsGenqlSelection;
6395
- installApplication?: {
6396
- __args: {
6397
- appRegistrationId: Scalars['String'];
6398
- version?: (Scalars['String'] | null);
6399
- };
6400
- };
6401
6410
  runWorkspaceMigration?: {
6402
6411
  __args: {
6403
6412
  workspaceMigration: WorkspaceMigrationInput;
@@ -6504,12 +6513,19 @@ export interface MutationGenqlSelection {
6504
6513
  input: CreateOneAppTokenInput;
6505
6514
  };
6506
6515
  });
6516
+ /** @deprecated Use installApplication instead */
6507
6517
  installMarketplaceApp?: {
6508
6518
  __args: {
6509
6519
  universalIdentifier: Scalars['String'];
6510
6520
  version?: (Scalars['String'] | null);
6511
6521
  };
6512
6522
  };
6523
+ installApplication?: (ApplicationGenqlSelection & {
6524
+ __args: {
6525
+ universalIdentifier: Scalars['String'];
6526
+ version?: (Scalars['String'] | null);
6527
+ };
6528
+ });
6513
6529
  syncMarketplaceCatalog?: boolean | number;
6514
6530
  createDevelopmentApplication?: (DevelopmentApplicationGenqlSelection & {
6515
6531
  __args: {
@@ -7049,6 +7065,23 @@ export interface UpdateObjectPayload {
7049
7065
  isLabelSyncedWithName?: (Scalars['Boolean'] | null);
7050
7066
  isSearchable?: (Scalars['Boolean'] | null);
7051
7067
  }
7068
+ export interface CreateOneIndexInput {
7069
+ /** The custom index to create */
7070
+ index: CreateIndexInput;
7071
+ }
7072
+ export interface CreateIndexInput {
7073
+ objectMetadataId: Scalars['UUID'];
7074
+ fields: CreateIndexFieldInput[];
7075
+ indexType: IndexType;
7076
+ }
7077
+ export interface CreateIndexFieldInput {
7078
+ fieldMetadataId: Scalars['UUID'];
7079
+ subFieldName?: (Scalars['String'] | null);
7080
+ }
7081
+ export interface DeleteOneIndexInput {
7082
+ /** The id of the custom index to delete. */
7083
+ id: Scalars['UUID'];
7084
+ }
7052
7085
  export interface CreateAgentInput {
7053
7086
  name?: (Scalars['String'] | null);
7054
7087
  label: Scalars['String'];
@@ -7121,7 +7154,7 @@ export interface ObjectPermissionInput {
7121
7154
  }
7122
7155
  export interface UpsertPermissionFlagsInput {
7123
7156
  roleId: Scalars['UUID'];
7124
- permissionFlagKeys: PermissionFlagType[];
7157
+ permissionFlagKeys: Scalars['String'][];
7125
7158
  }
7126
7159
  export interface UpsertFieldPermissionsInput {
7127
7160
  roleId: Scalars['UUID'];
@@ -7157,6 +7190,25 @@ export interface RowLevelPermissionPredicateGroupInput {
7157
7190
  logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
7158
7191
  positionInRowLevelPermissionPredicateGroup?: (Scalars['Float'] | null);
7159
7192
  }
7193
+ export interface CreateWebhookInput {
7194
+ id?: (Scalars['UUID'] | null);
7195
+ targetUrl: Scalars['String'];
7196
+ operations: Scalars['String'][];
7197
+ description?: (Scalars['String'] | null);
7198
+ secret?: (Scalars['String'] | null);
7199
+ }
7200
+ export interface UpdateWebhookInput {
7201
+ /** The id of the webhook to update */
7202
+ id: Scalars['UUID'];
7203
+ /** The webhook fields to update */
7204
+ update: UpdateWebhookInputUpdates;
7205
+ }
7206
+ export interface UpdateWebhookInputUpdates {
7207
+ targetUrl?: (Scalars['String'] | null);
7208
+ operations?: (Scalars['String'][] | null);
7209
+ description?: (Scalars['String'] | null);
7210
+ secret?: (Scalars['String'] | null);
7211
+ }
7160
7212
  export interface CreateOneFieldMetadataInput {
7161
7213
  /** The record to create */
7162
7214
  field: CreateFieldInput;
@@ -7274,25 +7326,6 @@ export interface UpdateCalendarChannelInputUpdates {
7274
7326
  contactAutoCreationPolicy?: (CalendarChannelContactAutoCreationPolicy | null);
7275
7327
  isSyncEnabled?: (Scalars['Boolean'] | null);
7276
7328
  }
7277
- export interface CreateWebhookInput {
7278
- id?: (Scalars['UUID'] | null);
7279
- targetUrl: Scalars['String'];
7280
- operations: Scalars['String'][];
7281
- description?: (Scalars['String'] | null);
7282
- secret?: (Scalars['String'] | null);
7283
- }
7284
- export interface UpdateWebhookInput {
7285
- /** The id of the webhook to update */
7286
- id: Scalars['UUID'];
7287
- /** The webhook fields to update */
7288
- update: UpdateWebhookInputUpdates;
7289
- }
7290
- export interface UpdateWebhookInputUpdates {
7291
- targetUrl?: (Scalars['String'] | null);
7292
- operations?: (Scalars['String'][] | null);
7293
- description?: (Scalars['String'] | null);
7294
- secret?: (Scalars['String'] | null);
7295
- }
7296
7329
  export interface FileAttachmentInput {
7297
7330
  id: Scalars['UUID'];
7298
7331
  filename: Scalars['String'];
@@ -7814,6 +7847,9 @@ export declare const isFeatureFlag: (obj?: {
7814
7847
  export declare const isWorkspaceUrls: (obj?: {
7815
7848
  __typename?: any;
7816
7849
  } | null | undefined) => obj is WorkspaceUrls;
7850
+ export declare const isApplicationRegistrationVariableDTO: (obj?: {
7851
+ __typename?: any;
7852
+ } | null | undefined) => obj is ApplicationRegistrationVariableDTO;
7817
7853
  export declare const isBillingTrialPeriod: (obj?: {
7818
7854
  __typename?: any;
7819
7855
  } | null | undefined) => obj is BillingTrialPeriod;
@@ -7883,9 +7919,6 @@ export declare const isPublicApplicationRegistration: (obj?: {
7883
7919
  export declare const isRotateClientSecret: (obj?: {
7884
7920
  __typename?: any;
7885
7921
  } | null | undefined) => obj is RotateClientSecret;
7886
- export declare const isApplicationRegistrationVariableDTO: (obj?: {
7887
- __typename?: any;
7888
- } | null | undefined) => obj is ApplicationRegistrationVariableDTO;
7889
7922
  export declare const isRelation: (obj?: {
7890
7923
  __typename?: any;
7891
7924
  } | null | undefined) => obj is Relation;
@@ -8096,6 +8129,9 @@ export declare const isConnectedImapSmtpCaldavAccount: (obj?: {
8096
8129
  export declare const isImapSmtpCaldavConnectionSuccess: (obj?: {
8097
8130
  __typename?: any;
8098
8131
  } | null | undefined) => obj is ImapSmtpCaldavConnectionSuccess;
8132
+ export declare const isWebhook: (obj?: {
8133
+ __typename?: any;
8134
+ } | null | undefined) => obj is Webhook;
8099
8135
  export declare const isToolIndexEntry: (obj?: {
8100
8136
  __typename?: any;
8101
8137
  } | null | undefined) => obj is ToolIndexEntry;
@@ -8195,9 +8231,6 @@ export declare const isMinimalView: (obj?: {
8195
8231
  export declare const isMinimalMetadata: (obj?: {
8196
8232
  __typename?: any;
8197
8233
  } | null | undefined) => obj is MinimalMetadata;
8198
- export declare const isWebhook: (obj?: {
8199
- __typename?: any;
8200
- } | null | undefined) => obj is Webhook;
8201
8234
  export declare const isQuery: (obj?: {
8202
8235
  __typename?: any;
8203
8236
  } | null | undefined) => obj is Query;