@devrev/typescript-sdk 1.1.60 → 1.1.61

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.
@@ -440,7 +440,9 @@ export interface AggregatedSchema {
440
440
  /** aggregated-schema-get-request */
441
441
  export interface AggregatedSchemaGetRequest {
442
442
  /** The list of custom schema fragment DONs which are to be aggregated. */
443
- custom_schema_fragment_ids: string[];
443
+ custom_schema_fragment_ids?: string[];
444
+ /** Custom schemas described using identifiers */
445
+ custom_schema_spec?: CustomSchemaSpecForRead;
444
446
  /** Whether the leaf type corresponds to a custom object. */
445
447
  is_custom_leaf_type?: boolean;
446
448
  /**
@@ -664,6 +666,14 @@ export interface AiAgentEventSourceTarget {
664
666
  */
665
667
  event_source: string;
666
668
  }
669
+ /**
670
+ * ai-agent-event-suggestions
671
+ * A list of suggestions generated for the AI agent event.
672
+ */
673
+ export interface AiAgentEventSuggestions {
674
+ /** The suggestions generated for the AI agent event. */
675
+ suggestions: AiAgentSuggestion[];
676
+ }
667
677
  /**
668
678
  * ai-agent-events-execute-async-request
669
679
  * Request object to consume an input event and execute asynchronously.
@@ -724,6 +734,17 @@ export interface AiAgentMessageGenerationStarted {
724
734
  }
725
735
  /** ai-agent-session-summary */
726
736
  export type AiAgentSessionSummary = AtomBaseSummary;
737
+ /**
738
+ * ai-agent-suggestion
739
+ * A suggestion generated for the AI agent event.
740
+ */
741
+ export interface AiAgentSuggestion {
742
+ /**
743
+ * The text of the suggestion.
744
+ * @format text
745
+ */
746
+ suggestion: string;
747
+ }
727
748
  /**
728
749
  * ai-agent-webhook-target
729
750
  * The source of the event to send notifications to, of asynchronous
@@ -4868,13 +4889,18 @@ export interface CustomLinkTypeCreateRequest {
4868
4889
  * @format text
4869
4890
  */
4870
4891
  backward_name: string;
4871
- /** Whether the link type is deprecated. */
4892
+ /**
4893
+ * Whether the link type is deprecated.
4894
+ * @deprecated
4895
+ */
4872
4896
  deprecated?: boolean;
4873
4897
  /**
4874
4898
  * The name of the link in the forward direction.
4875
4899
  * @format text
4876
4900
  */
4877
4901
  forward_name: string;
4902
+ /** Whether the link type is deprecated. */
4903
+ is_deprecated?: boolean;
4878
4904
  /**
4879
4905
  * The name of the custom link type.
4880
4906
  * @format text
@@ -4914,8 +4940,13 @@ export interface CustomLinkTypeListRequest {
4914
4940
  * @format text
4915
4941
  */
4916
4942
  cursor?: string;
4917
- /** Whether only deprecated link types should be filtered. */
4943
+ /**
4944
+ * Whether only deprecated link types should be filtered.
4945
+ * @deprecated
4946
+ */
4918
4947
  deprecated?: boolean;
4948
+ /** Whether only deprecated link types should be filtered. */
4949
+ is_deprecated?: boolean;
4919
4950
  /**
4920
4951
  * The maximum number of items.
4921
4952
  * @format int32
@@ -4934,7 +4965,11 @@ export interface CustomLinkTypeListRequest {
4934
4965
  /** The list of fields to sort the items by and how to sort them. */
4935
4966
  sort_by?: string[];
4936
4967
  source_types?: LinkDescriptorFilter;
4968
+ /** Types from which a link can be made. */
4969
+ source_types_v2?: LinkTargetDescriptor[];
4937
4970
  target_types?: LinkDescriptorFilter;
4971
+ /** Types to which a link can be made. */
4972
+ target_types_v2?: LinkTargetDescriptor[];
4938
4973
  }
4939
4974
  /** custom-link-type-list-response */
4940
4975
  export interface CustomLinkTypeListResponse {
@@ -4962,7 +4997,10 @@ export interface CustomLinkTypeUpdateRequest {
4962
4997
  * @format text
4963
4998
  */
4964
4999
  backward_name?: string;
4965
- /** Whether the link type is deprecated. */
5000
+ /**
5001
+ * Whether the link type is deprecated.
5002
+ * @deprecated
5003
+ */
4966
5004
  deprecated?: boolean;
4967
5005
  /**
4968
5006
  * The updated name of the link in the forward direction.
@@ -4974,13 +5012,19 @@ export interface CustomLinkTypeUpdateRequest {
4974
5012
  * @format id
4975
5013
  */
4976
5014
  id: string;
5015
+ /** Whether the link type is deprecated. */
5016
+ is_deprecated?: boolean;
4977
5017
  /**
4978
5018
  * The updated name of the custom link type.
4979
5019
  * @format text
4980
5020
  */
4981
5021
  name?: string;
4982
5022
  source_types?: UpdateLinkTargetDescriptorList;
5023
+ /** Types from which a link can be made. */
5024
+ source_types_v2?: LinkTargetDescriptor[];
4983
5025
  target_types?: UpdateLinkTargetDescriptorList;
5026
+ /** Types to which a link can be made. */
5027
+ target_types_v2?: LinkTargetDescriptor[];
4984
5028
  /**
4985
5029
  * The updated tooltip of the custom link type.
4986
5030
  * @format text
@@ -5117,6 +5161,8 @@ export interface CustomObjectsListRequest {
5117
5161
  cursor?: string;
5118
5162
  /** List of filters to apply. */
5119
5163
  filter?: any[];
5164
+ /** List of filters to apply. */
5165
+ filters?: any[];
5120
5166
  /**
5121
5167
  * Leaf type to filter.
5122
5168
  * @format text
@@ -5220,6 +5266,12 @@ export type CustomSchemaFragmentBase = AtomBase & {
5220
5266
  fields?: SchemaFieldDescriptor[];
5221
5267
  /** Type of the custom schema fragment. */
5222
5268
  fragment_type?: CustomSchemaFragmentFragmentType;
5269
+ /**
5270
+ * Indicates if the fragment is deprecated. Modifications to this
5271
+ * field are done in-place and don't result in creation of a new
5272
+ * fragment in chain.
5273
+ */
5274
+ is_deprecated?: boolean;
5223
5275
  /**
5224
5276
  * Leaf type this fragment applies to.
5225
5277
  * @format text
@@ -5307,10 +5359,15 @@ export interface CustomSchemaFragmentsListRequest {
5307
5359
  * @format text
5308
5360
  */
5309
5361
  cursor?: string;
5310
- /** Whether only deprecated fragments should be filtered. */
5362
+ /**
5363
+ * Whether only deprecated fragments should be filtered.
5364
+ * @deprecated
5365
+ */
5311
5366
  deprecated?: boolean;
5312
5367
  /** Whether the leaf type corresponds to a custom object */
5313
5368
  is_custom_leaf_type?: boolean;
5369
+ /** Whether the fragment has been deprecated. */
5370
+ is_deprecated?: boolean;
5314
5371
  /** The list of leaf types. */
5315
5372
  leaf_type?: string[];
5316
5373
  /**
@@ -5367,7 +5424,10 @@ export type CustomSchemaFragmentsSetRequest = (CustomSchemaFragmentsSetRequestAp
5367
5424
  conditions?: CustomSchemaFragmentCondition[];
5368
5425
  /** List of field names which are being dropped. */
5369
5426
  deleted_fields?: string[];
5370
- /** Whether this fragment has been deprecated. */
5427
+ /**
5428
+ * Whether this fragment has been deprecated.
5429
+ * @deprecated
5430
+ */
5371
5431
  deprecated?: boolean;
5372
5432
  /**
5373
5433
  * The description of the custom schema fragment.
@@ -5378,6 +5438,8 @@ export type CustomSchemaFragmentsSetRequest = (CustomSchemaFragmentsSetRequestAp
5378
5438
  fields?: SchemaFieldDescriptor[];
5379
5439
  /** Whether the leaf type corresponds to a custom object */
5380
5440
  is_custom_leaf_type?: boolean;
5441
+ /** Whether this fragment has been deprecated. */
5442
+ is_deprecated?: boolean;
5381
5443
  /**
5382
5444
  * The leaf type this fragment applies to.
5383
5445
  * @format text
@@ -5496,6 +5558,19 @@ export interface CustomSchemaSpecDrop {
5496
5558
  */
5497
5559
  subtype?: boolean;
5498
5560
  }
5561
+ /**
5562
+ * custom-schema-spec-for-read
5563
+ * Custom schemas described using identifiers
5564
+ */
5565
+ export interface CustomSchemaSpecForRead {
5566
+ /** List of apps. */
5567
+ apps?: string[];
5568
+ /**
5569
+ * Name of the subtype.
5570
+ * @format text
5571
+ */
5572
+ subtype?: string;
5573
+ }
5499
5574
  /** custom-stage */
5500
5575
  export type CustomStage = AtomBase & {
5501
5576
  /**
@@ -8035,7 +8110,7 @@ export interface EventAiAgentResponse {
8035
8110
  * @format id
8036
8111
  */
8037
8112
  agent: string;
8038
- agent_response?: 'error' | 'message' | 'message_generation_started' | 'progress';
8113
+ agent_response?: 'error' | 'message' | 'message_generation_started' | 'progress' | 'suggestions';
8039
8114
  /** The metadata given by client to be passed to the event source. */
8040
8115
  client_metadata?: object;
8041
8116
  /**
@@ -8066,6 +8141,8 @@ export interface EventAiAgentResponse {
8066
8141
  * @format text
8067
8142
  */
8068
8143
  session_object: string;
8144
+ /** A list of suggestions generated for the AI agent event. */
8145
+ suggestions?: AiAgentEventSuggestions;
8069
8146
  }
8070
8147
  /** event-conversation-created */
8071
8148
  export interface EventConversationCreated {
@@ -12263,6 +12340,8 @@ export interface PartsListRequest {
12263
12340
  owned_by?: string[];
12264
12341
  /** The filter for specifying parent part. */
12265
12342
  parent_part?: ParentPartFilter;
12343
+ /** Filters for subtypes. */
12344
+ subtype?: string[];
12266
12345
  /**
12267
12346
  * Filters for part with any of the provided tags.
12268
12347
  * @example ["TAG-12345"]
@@ -23063,6 +23142,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
23063
23142
  cursor?: string;
23064
23143
  /** List of filters to apply. */
23065
23144
  filter?: any[];
23145
+ /** List of filters to apply. */
23146
+ filters?: any[];
23066
23147
  /**
23067
23148
  * The maximum number of items.
23068
23149
  * @format int32
@@ -24229,8 +24310,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
24229
24310
  * @format text
24230
24311
  */
24231
24312
  cursor?: string;
24232
- /** Whether only deprecated link types should be filtered. */
24313
+ /**
24314
+ * Whether only deprecated link types should be filtered.
24315
+ * @deprecated
24316
+ */
24233
24317
  deprecated?: boolean;
24318
+ /** Whether only deprecated link types should be filtered. */
24319
+ is_deprecated?: boolean;
24234
24320
  /**
24235
24321
  * The maximum number of items.
24236
24322
  * @format int32
@@ -24263,6 +24349,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
24263
24349
  */
24264
24350
  'source_types.link_descriptors.subtype'?: string;
24265
24351
  /** True when the descriptor describes a custom leaf type. */
24352
+ 'source_types_v2.is_custom_leaf_type'?: boolean;
24353
+ /**
24354
+ * Set to true when only the specified leaf type (no subtypes) is
24355
+ * allowed as a link target.
24356
+ */
24357
+ 'source_types_v2.leaf_only'?: boolean;
24358
+ /**
24359
+ * Leaf type of the target objects.
24360
+ * @format text
24361
+ */
24362
+ 'source_types_v2.leaf_type'?: string;
24363
+ /**
24364
+ * Specific subtype of the target objects.
24365
+ * @format text
24366
+ */
24367
+ 'source_types_v2.subtype'?: string;
24368
+ /** True when the descriptor describes a custom leaf type. */
24266
24369
  'target_types.link_descriptors.is_custom_leaf_type'?: boolean;
24267
24370
  /**
24268
24371
  * Set to true when only the specified leaf type (no subtypes) is
@@ -24279,6 +24382,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
24279
24382
  * @format text
24280
24383
  */
24281
24384
  'target_types.link_descriptors.subtype'?: string;
24385
+ /** True when the descriptor describes a custom leaf type. */
24386
+ 'target_types_v2.is_custom_leaf_type'?: boolean;
24387
+ /**
24388
+ * Set to true when only the specified leaf type (no subtypes) is
24389
+ * allowed as a link target.
24390
+ */
24391
+ 'target_types_v2.leaf_only'?: boolean;
24392
+ /**
24393
+ * Leaf type of the target objects.
24394
+ * @format text
24395
+ */
24396
+ 'target_types_v2.leaf_type'?: string;
24397
+ /**
24398
+ * Specific subtype of the target objects.
24399
+ * @format text
24400
+ */
24401
+ 'target_types_v2.subtype'?: string;
24282
24402
  }, params?: RequestParams) => Promise<AxiosResponse<CustomLinkTypeListResponse, any>>;
24283
24403
  /**
24284
24404
  * @description Lists custom link types.
@@ -25145,6 +25265,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
25145
25265
  * @example ["PROD-12345"]
25146
25266
  */
25147
25267
  'parent_part.parts'?: string[];
25268
+ /** Filters for subtypes. */
25269
+ subtype?: string[];
25148
25270
  /**
25149
25271
  * Filters for part with any of the provided tags.
25150
25272
  * @example ["TAG-12345"]
@@ -25955,9 +26077,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
25955
26077
  * @request GET:/schemas.aggregated.get
25956
26078
  * @secure
25957
26079
  */
25958
- aggregatedSchemaGet: (query: {
26080
+ aggregatedSchemaGet: (query?: {
25959
26081
  /** The list of custom schema fragment DONs which are to be aggregated. */
25960
- custom_schema_fragment_ids: string[];
26082
+ custom_schema_fragment_ids?: string[];
26083
+ /** List of apps. */
26084
+ 'custom_schema_spec.apps'?: string[];
26085
+ /**
26086
+ * Name of the subtype.
26087
+ * @format text
26088
+ */
26089
+ 'custom_schema_spec.subtype'?: string;
25961
26090
  /** Whether the leaf type corresponds to a custom object. */
25962
26091
  is_custom_leaf_type?: boolean;
25963
26092
  /**
@@ -26026,10 +26155,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
26026
26155
  * @format text
26027
26156
  */
26028
26157
  cursor?: string;
26029
- /** Whether only deprecated fragments should be filtered. */
26158
+ /**
26159
+ * Whether only deprecated fragments should be filtered.
26160
+ * @deprecated
26161
+ */
26030
26162
  deprecated?: boolean;
26031
26163
  /** Whether the leaf type corresponds to a custom object */
26032
26164
  is_custom_leaf_type?: boolean;
26165
+ /** Whether the fragment has been deprecated. */
26166
+ is_deprecated?: boolean;
26033
26167
  /** The list of leaf types. */
26034
26168
  leaf_type?: string[];
26035
26169
  /**
@@ -387,6 +387,14 @@ export interface AiAgentEventExecuteProgressSkillTriggered {
387
387
  workflow?: WorkflowSummary;
388
388
  workflow_run?: WorkflowRunSummary;
389
389
  }
390
+ /**
391
+ * ai-agent-event-suggestions
392
+ * A list of suggestions generated for the AI agent event.
393
+ */
394
+ export interface AiAgentEventSuggestions {
395
+ /** The suggestions generated for the AI agent event. */
396
+ suggestions: AiAgentSuggestion[];
397
+ }
390
398
  /**
391
399
  * ai-agent-message-generation-started
392
400
  * Additional metadata to indicate that the message generation has
@@ -401,6 +409,17 @@ export interface AiAgentMessageGenerationStarted {
401
409
  */
402
410
  request_id: string;
403
411
  }
412
+ /**
413
+ * ai-agent-suggestion
414
+ * A suggestion generated for the AI agent event.
415
+ */
416
+ export interface AiAgentSuggestion {
417
+ /**
418
+ * The text of the suggestion.
419
+ * @format text
420
+ */
421
+ suggestion: string;
422
+ }
404
423
  /**
405
424
  * archetype-metric-target
406
425
  * Metric with corresponding target values.
@@ -4886,7 +4905,7 @@ export interface EventAiAgentResponse {
4886
4905
  * @format id
4887
4906
  */
4888
4907
  agent: string;
4889
- agent_response?: 'error' | 'message' | 'message_generation_started' | 'progress';
4908
+ agent_response?: 'error' | 'message' | 'message_generation_started' | 'progress' | 'suggestions';
4890
4909
  /** The metadata given by client to be passed to the event source. */
4891
4910
  client_metadata?: object;
4892
4911
  /**
@@ -4917,6 +4936,8 @@ export interface EventAiAgentResponse {
4917
4936
  * @format text
4918
4937
  */
4919
4938
  session_object: string;
4939
+ /** A list of suggestions generated for the AI agent event. */
4940
+ suggestions?: AiAgentEventSuggestions;
4920
4941
  }
4921
4942
  /** event-conversation-created */
4922
4943
  export interface EventConversationCreated {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {