@linear/sdk 18.0.0 → 18.1.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.
@@ -391,6 +391,25 @@ export declare class AuthApiKeyPayload extends Request {
391
391
  /** The auth API key that was created. */
392
392
  authApiKey: AuthApiKey;
393
393
  }
394
+ /**
395
+ * An email address that can be used for submitting issues.
396
+ *
397
+ * @param request - function to call the graphql client
398
+ * @param data - L.AuthEmailIntakeAddressFragment response data
399
+ */
400
+ export declare class AuthEmailIntakeAddress extends Request {
401
+ constructor(request: LinearRequest, data: L.AuthEmailIntakeAddressFragment);
402
+ /** Unique email address user name (before @) used for incoming email. */
403
+ address: string;
404
+ /** Whether the email address is enabled. */
405
+ enabled: boolean;
406
+ /** The unique identifier of the entity. */
407
+ id: string;
408
+ /** The auth user who created the email intake address. */
409
+ creator?: AuthUser;
410
+ /** The auth organization that the email address is associated with. */
411
+ organization: AuthOrganization;
412
+ }
394
413
  /**
395
414
  * AuthIntegration model
396
415
  *
@@ -515,6 +534,8 @@ export declare class AuthOrganization extends Request {
515
534
  name: string;
516
535
  /** Previously used URL keys for the organization (last 3 are kept and redirected). */
517
536
  previousUrlKeys: string[];
537
+ /** The region the organization is hosted in. */
538
+ region: string;
518
539
  /** Whether SAML authentication is enabled for organization. */
519
540
  samlEnabled: boolean;
520
541
  /** Whether SCIM provisioning is enabled for organization. */
@@ -1223,6 +1244,8 @@ export declare class Document extends Request {
1223
1244
  content?: string;
1224
1245
  /** The time at which the entity was created. */
1225
1246
  createdAt: Date;
1247
+ /** The time at which the document was hidden. Null if the entity has not been hidden. */
1248
+ hiddenAt?: Date;
1226
1249
  /** The icon of the document. */
1227
1250
  icon?: string;
1228
1251
  /** The unique identifier of the entity. */
@@ -1411,6 +1434,8 @@ export declare class DocumentSearchResult extends Request {
1411
1434
  content?: string;
1412
1435
  /** The time at which the entity was created. */
1413
1436
  createdAt: Date;
1437
+ /** The time at which the document was hidden. Null if the entity has not been hidden. */
1438
+ hiddenAt?: Date;
1414
1439
  /** The icon of the document. */
1415
1440
  icon?: string;
1416
1441
  /** The unique identifier of the entity. */
@@ -3811,6 +3836,8 @@ export declare class OrganizationInviteFullDetailsPayload extends Request {
3811
3836
  constructor(request: LinearRequest, data: L.OrganizationInviteFullDetailsPayloadFragment);
3812
3837
  /** Whether the invite has already been accepted. */
3813
3838
  accepted: boolean;
3839
+ /** Allowed authentication providers, empty array means all are allowed. */
3840
+ allowedAuthServices: string[];
3814
3841
  /** When the invite was created. */
3815
3842
  createdAt: Date;
3816
3843
  /** The email of the invitee. */
@@ -3826,6 +3853,27 @@ export declare class OrganizationInviteFullDetailsPayload extends Request {
3826
3853
  /** Name of the workspace the invite is for. */
3827
3854
  organizationName: string;
3828
3855
  }
3856
+ /**
3857
+ * OrganizationInviteLinkDetailsPayload model
3858
+ *
3859
+ * @param request - function to call the graphql client
3860
+ * @param data - L.OrganizationInviteLinkDetailsPayloadFragment response data
3861
+ */
3862
+ export declare class OrganizationInviteLinkDetailsPayload extends Request {
3863
+ constructor(request: LinearRequest, data: L.OrganizationInviteLinkDetailsPayloadFragment);
3864
+ /** Allowed authentication providers, empty array means all are allowed. */
3865
+ allowedAuthServices: string[];
3866
+ /** ID of the workspace the invite link is for. */
3867
+ organizationId?: string;
3868
+ /** URL of the workspace logo the invite link is for. */
3869
+ organizationLogoUrl?: string;
3870
+ /** Name of the workspace the invite link is for. */
3871
+ organizationName?: string;
3872
+ /** Region of the workspace the invite link is for. */
3873
+ organizationRegion?: string;
3874
+ /** URL key of the workspace the invite link is for. */
3875
+ organizationUrlKey?: string;
3876
+ }
3829
3877
  /**
3830
3878
  * OrganizationInvitePayload model
3831
3879
  *
@@ -3857,6 +3905,19 @@ export declare class OrganizationPayload extends Request {
3857
3905
  /** The organization that was created or updated. */
3858
3906
  get organization(): LinearFetch<Organization>;
3859
3907
  }
3908
+ /**
3909
+ * OrganizationRegionResponse model
3910
+ *
3911
+ * @param request - function to call the graphql client
3912
+ * @param data - L.OrganizationRegionResponseFragment response data
3913
+ */
3914
+ export declare class OrganizationRegionResponse extends Request {
3915
+ constructor(request: LinearRequest, data: L.OrganizationRegionResponseFragment);
3916
+ /** The region for the organization. */
3917
+ region?: string;
3918
+ /** Whether the operation was successful. */
3919
+ success: boolean;
3920
+ }
3860
3921
  /**
3861
3922
  * OrganizationStartPlusTrialPayload model
3862
3923
  *
@@ -3947,6 +4008,7 @@ export declare class PaidSubscription extends Request {
3947
4008
  export declare class Project extends Request {
3948
4009
  private _convertedFromIssue?;
3949
4010
  private _creator?;
4011
+ private _favorite?;
3950
4012
  private _integrationsSettings?;
3951
4013
  private _lastAppliedTemplate?;
3952
4014
  private _lead?;
@@ -4003,7 +4065,7 @@ export declare class Project extends Request {
4003
4065
  startDate?: L.Scalars["TimelessDate"];
4004
4066
  /** The time at which the project was moved into started state. */
4005
4067
  startedAt?: Date;
4006
- /** The type of the state. */
4068
+ /** [DEPRECATED] The type of the state. */
4007
4069
  state: string;
4008
4070
  /** The estimated completion date of the project. */
4009
4071
  targetDate?: L.Scalars["TimelessDate"];
@@ -4021,6 +4083,8 @@ export declare class Project extends Request {
4021
4083
  get convertedFromIssue(): LinearFetch<Issue> | undefined;
4022
4084
  /** The user who created the project. */
4023
4085
  get creator(): LinearFetch<User> | undefined;
4086
+ /** The user's favorite associated with this project. */
4087
+ get favorite(): LinearFetch<Favorite> | undefined;
4024
4088
  /** Settings for all integrations associated with that project. */
4025
4089
  get integrationsSettings(): LinearFetch<IntegrationsSettings> | undefined;
4026
4090
  /** The last template that was applied to this project. */
@@ -4357,6 +4421,7 @@ export declare class ProjectSearchPayload extends Request {
4357
4421
  export declare class ProjectSearchResult extends Request {
4358
4422
  private _convertedFromIssue?;
4359
4423
  private _creator?;
4424
+ private _favorite?;
4360
4425
  private _integrationsSettings?;
4361
4426
  private _lastAppliedTemplate?;
4362
4427
  private _lead?;
@@ -4415,7 +4480,7 @@ export declare class ProjectSearchResult extends Request {
4415
4480
  startDate?: L.Scalars["TimelessDate"];
4416
4481
  /** The time at which the project was moved into started state. */
4417
4482
  startedAt?: Date;
4418
- /** The type of the state. */
4483
+ /** [DEPRECATED] The type of the state. */
4419
4484
  state: string;
4420
4485
  /** The estimated completion date of the project. */
4421
4486
  targetDate?: L.Scalars["TimelessDate"];
@@ -4433,6 +4498,8 @@ export declare class ProjectSearchResult extends Request {
4433
4498
  get convertedFromIssue(): LinearFetch<Issue> | undefined;
4434
4499
  /** The user who created the project. */
4435
4500
  get creator(): LinearFetch<User> | undefined;
4501
+ /** The user's favorite associated with this project. */
4502
+ get favorite(): LinearFetch<Favorite> | undefined;
4436
4503
  /** Settings for all integrations associated with that project. */
4437
4504
  get integrationsSettings(): LinearFetch<IntegrationsSettings> | undefined;
4438
4505
  /** The last template that was applied to this project. */
@@ -4942,6 +5009,8 @@ export declare class SentrySettings extends Request {
4942
5009
  */
4943
5010
  export declare class SharedSlackSettings extends Request {
4944
5011
  constructor(request: LinearRequest, data: L.SharedSlackSettingsFragment);
5012
+ /** Enterprise name of the connected Slack enterprise */
5013
+ enterpriseName?: string;
4945
5014
  /** Slack workspace id */
4946
5015
  teamId?: string;
4947
5016
  /** Slack workspace name */
@@ -4955,6 +5024,8 @@ export declare class SharedSlackSettings extends Request {
4955
5024
  */
4956
5025
  export declare class SlackAsksSettings extends Request {
4957
5026
  constructor(request: LinearRequest, data: L.SlackAsksSettingsFragment);
5027
+ /** Enterprise name of the connected Slack enterprise */
5028
+ enterpriseName?: string;
4958
5029
  /** Slack workspace id */
4959
5030
  teamId?: string;
4960
5031
  /** Slack workspace name */
@@ -5046,6 +5117,8 @@ export declare class SlackPostSettings extends Request {
5046
5117
  */
5047
5118
  export declare class SlackSettings extends Request {
5048
5119
  constructor(request: LinearRequest, data: L.SlackSettingsFragment);
5120
+ /** Enterprise name of the connected Slack enterprise */
5121
+ enterpriseName?: string;
5049
5122
  /** Whether Linear should automatically respond with issue unfurls when an issue identifier is mentioned in a Slack message. */
5050
5123
  linkOnIssueIdMention: boolean;
5051
5124
  /** Slack workspace id */
@@ -7134,6 +7207,21 @@ export declare class OrganizationInvitesQuery extends Request {
7134
7207
  */
7135
7208
  fetch(variables?: L.OrganizationInvitesQueryVariables): LinearFetch<OrganizationInviteConnection>;
7136
7209
  }
7210
+ /**
7211
+ * A fetchable OrganizationRegion Query
7212
+ *
7213
+ * @param request - function to call the graphql client
7214
+ */
7215
+ export declare class OrganizationRegionQuery extends Request {
7216
+ constructor(request: LinearRequest);
7217
+ /**
7218
+ * Call the OrganizationRegion query and return a OrganizationRegionResponse
7219
+ *
7220
+ * @param id - required id to pass to organizationRegion
7221
+ * @returns parsed response from OrganizationRegionQuery
7222
+ */
7223
+ fetch(id: string): LinearFetch<OrganizationRegionResponse>;
7224
+ }
7137
7225
  /**
7138
7226
  * A fetchable Project Query
7139
7227
  *
@@ -12605,6 +12693,13 @@ export declare class LinearSdk extends Request {
12605
12693
  * @returns OrganizationInviteConnection
12606
12694
  */
12607
12695
  organizationInvites(variables?: L.OrganizationInvitesQueryVariables): LinearFetch<OrganizationInviteConnection>;
12696
+ /**
12697
+ * Fetch the region for the organization.
12698
+ *
12699
+ * @param id - required id to pass to organizationRegion
12700
+ * @returns OrganizationRegionResponse
12701
+ */
12702
+ organizationRegion(id: string): LinearFetch<OrganizationRegionResponse>;
12608
12703
  /**
12609
12704
  * One specific project.
12610
12705
  *
@@ -13179,7 +13274,7 @@ export declare class LinearSdk extends Request {
13179
13274
  */
13180
13275
  emailTokenUserAccountAuth(input: L.TokenUserAccountAuthInput): LinearFetch<AuthResolverResponse>;
13181
13276
  /**
13182
- * Unsubscribes the user from one type of emails.
13277
+ * Unsubscribes the user from one type of email.
13183
13278
  *
13184
13279
  * @param input - required input to pass to emailUnsubscribe
13185
13280
  * @returns EmailUnsubscribePayload