@linear/sdk 2.0.0 → 2.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.
@@ -269,6 +269,8 @@ export declare class AuditEntry extends Request {
269
269
  ip?: string;
270
270
  /** Additional metadata related to the audit entry. */
271
271
  metadata?: Record<string, unknown>;
272
+ /** Additional information related to the request which performed the action. */
273
+ requestInformation?: Record<string, unknown>;
272
274
  type: string;
273
275
  /**
274
276
  * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
@@ -302,19 +304,6 @@ export declare class AuditEntryType extends Request {
302
304
  /** The audit entry type. */
303
305
  type: string;
304
306
  }
305
- /**
306
- * [INTERNAL] An OAuth userId/createdDate tuple
307
- *
308
- * @param request - function to call the graphql client
309
- * @param data - L.AuthMembershipFragment response data
310
- */
311
- export declare class AuthMembership extends Request {
312
- constructor(request: LinearRequest, data: L.AuthMembershipFragment);
313
- /** The date of the authorization */
314
- createdAt: Date;
315
- /** The authorizing userId */
316
- userId: string;
317
- }
318
307
  /**
319
308
  * AuthResolverResponse model
320
309
  *
@@ -338,27 +327,6 @@ export declare class AuthResolverResponse extends Request {
338
327
  /** Users belonging to this account. */
339
328
  users: User[];
340
329
  }
341
- /**
342
- * [INTERNAL] Public information of the OAuth application, plus the authorized scopes for a given user.
343
- *
344
- * @param request - function to call the graphql client
345
- * @param data - L.AuthorizedApplicationFragment response data
346
- */
347
- export declare class AuthorizedApplication extends Request {
348
- constructor(request: LinearRequest, data: L.AuthorizedApplicationFragment);
349
- /** OAuth application's ID. */
350
- appId: string;
351
- /** OAuth application's client ID. */
352
- clientId: string;
353
- /** Image of the application. */
354
- imageUrl?: string;
355
- /** Application name. */
356
- name: string;
357
- /** Scopes that are authorized for this application for a given user. */
358
- scope: string[];
359
- /** Whether or not webhooks are enabled for the application. */
360
- webhooksEnabled: boolean;
361
- }
362
330
  /**
363
331
  * A comment associated with an issue.
364
332
  *
@@ -718,17 +686,6 @@ export declare class DocumentPayload extends Request {
718
686
  /** The document that was created or updated. */
719
687
  get document(): LinearFetch<Document> | undefined;
720
688
  }
721
- /**
722
- * EmailSubscribePayload model
723
- *
724
- * @param request - function to call the graphql client
725
- * @param data - L.EmailSubscribePayloadFragment response data
726
- */
727
- export declare class EmailSubscribePayload extends Request {
728
- constructor(request: LinearRequest, data: L.EmailSubscribePayloadFragment);
729
- /** Whether the operation was successful. */
730
- success: boolean;
731
- }
732
689
  /**
733
690
  * EmailUnsubscribePayload model
734
691
  *
@@ -2550,43 +2507,6 @@ export declare class OrganizationDomain extends Request {
2550
2507
  /** Deletes a domain. */
2551
2508
  delete(): LinearFetch<ArchivePayload>;
2552
2509
  }
2553
- /**
2554
- * [INTERNAL] Domain claim request response.
2555
- *
2556
- * @param request - function to call the graphql client
2557
- * @param data - L.OrganizationDomainClaimPayloadFragment response data
2558
- */
2559
- export declare class OrganizationDomainClaimPayload extends Request {
2560
- constructor(request: LinearRequest, data: L.OrganizationDomainClaimPayloadFragment);
2561
- /** String to put into DNS for verification. */
2562
- verificationString: string;
2563
- }
2564
- /**
2565
- * [INTERNAL] Organization domain operation response.
2566
- *
2567
- * @param request - function to call the graphql client
2568
- * @param data - L.OrganizationDomainPayloadFragment response data
2569
- */
2570
- export declare class OrganizationDomainPayload extends Request {
2571
- constructor(request: LinearRequest, data: L.OrganizationDomainPayloadFragment);
2572
- /** The identifier of the last sync operation. */
2573
- lastSyncId: number;
2574
- /** Whether the operation was successful. */
2575
- success: boolean;
2576
- /** The organization domain that was created or updated. */
2577
- organizationDomain: OrganizationDomain;
2578
- }
2579
- /**
2580
- * [INTERNAL] Organization domain operation response.
2581
- *
2582
- * @param request - function to call the graphql client
2583
- * @param data - L.OrganizationDomainSimplePayloadFragment response data
2584
- */
2585
- export declare class OrganizationDomainSimplePayload extends Request {
2586
- constructor(request: LinearRequest, data: L.OrganizationDomainSimplePayloadFragment);
2587
- /** Whether the operation was successful. */
2588
- success: boolean;
2589
- }
2590
2510
  /**
2591
2511
  * OrganizationExistsPayload model
2592
2512
  *
@@ -4134,33 +4054,6 @@ export declare class UserAccount extends Request {
4134
4054
  /** Users belonging to the account. */
4135
4055
  users: User[];
4136
4056
  }
4137
- /**
4138
- * [INTERNAL] An email change verification challenge.
4139
- *
4140
- * @param request - function to call the graphql client
4141
- * @param data - L.UserAccountEmailChangeFragment response data
4142
- */
4143
- export declare class UserAccountEmailChange extends Request {
4144
- constructor(request: LinearRequest, data: L.UserAccountEmailChangeFragment);
4145
- /** The time at which the model was archived. */
4146
- archivedAt?: Date;
4147
- /** The timestamp this verification challenge was canceled at. */
4148
- canceledAt?: Date;
4149
- /** The timestamp the verification codes expire at. */
4150
- expiresAt: Date;
4151
- /** The model's identifier. */
4152
- id: string;
4153
- /** The new email the user account wants to change to. */
4154
- newEmail: string;
4155
- /** The timestamp the new email was verified at. */
4156
- newEmailVerifiedAt?: Date;
4157
- /** The user account's current email. */
4158
- oldEmail: string;
4159
- /** The timestamp the old email was verified at. */
4160
- oldEmailVerifiedAt?: Date;
4161
- /** The time at which the model was updated. */
4162
- updatedAt: Date;
4163
- }
4164
4057
  /**
4165
4058
  * UserAdminPayload model
4166
4059
  *
@@ -4304,17 +4197,6 @@ export declare class UserSettingsPayload extends Request {
4304
4197
  /** The user's settings. */
4305
4198
  get userSettings(): LinearFetch<UserSettings>;
4306
4199
  }
4307
- /**
4308
- * UserSubscribeToNewsletterPayload model
4309
- *
4310
- * @param request - function to call the graphql client
4311
- * @param data - L.UserSubscribeToNewsletterPayloadFragment response data
4312
- */
4313
- export declare class UserSubscribeToNewsletterPayload extends Request {
4314
- constructor(request: LinearRequest, data: L.UserSubscribeToNewsletterPayloadFragment);
4315
- /** Whether the operation was successful. */
4316
- success: boolean;
4317
- }
4318
4200
  /**
4319
4201
  * View preferences.
4320
4202
  *
@@ -4540,31 +4422,6 @@ export declare class WorkflowStatePayload extends Request {
4540
4422
  /** The state that was created or updated. */
4541
4423
  get workflowState(): LinearFetch<WorkflowState> | undefined;
4542
4424
  }
4543
- /**
4544
- * [INTERNAL] Public information of the OAuth application, plus the userIds and scopes for those users.
4545
- *
4546
- * @param request - function to call the graphql client
4547
- * @param data - L.WorkspaceAuthorizedApplicationFragment response data
4548
- */
4549
- export declare class WorkspaceAuthorizedApplication extends Request {
4550
- constructor(request: LinearRequest, data: L.WorkspaceAuthorizedApplicationFragment);
4551
- /** OAuth application's ID. */
4552
- appId: string;
4553
- /** OAuth application's client ID. */
4554
- clientId: string;
4555
- /** Image of the application. */
4556
- imageUrl?: string;
4557
- /** Application name. */
4558
- name: string;
4559
- /** Scopes that are authorized for this application for a given user. */
4560
- scope: string[];
4561
- /** Total number of members that authorized the application */
4562
- totalMembers: number;
4563
- /** Whether or not webhooks are enabled for the application. */
4564
- webhooksEnabled: boolean;
4565
- /** UserIds and membership dates of everyone who has authorized the application with the set of scopes */
4566
- memberships: AuthMembership[];
4567
- }
4568
4425
  /**
4569
4426
  * Zendesk specific settings.
4570
4427
  *
@@ -6191,21 +6048,6 @@ export declare class UpdateDocumentMutation extends Request {
6191
6048
  */
6192
6049
  fetch(id: string, input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
6193
6050
  }
6194
- /**
6195
- * A fetchable EmailSubscribe Mutation
6196
- *
6197
- * @param request - function to call the graphql client
6198
- */
6199
- export declare class EmailSubscribeMutation extends Request {
6200
- constructor(request: LinearRequest);
6201
- /**
6202
- * Call the EmailSubscribe mutation and return a EmailSubscribePayload
6203
- *
6204
- * @param input - required input to pass to emailSubscribe
6205
- * @returns parsed response from EmailSubscribeMutation
6206
- */
6207
- fetch(input: L.EmailSubscribeInput): LinearFetch<EmailSubscribePayload>;
6208
- }
6209
6051
  /**
6210
6052
  * A fetchable EmailTokenUserAccountAuth Mutation
6211
6053
  *
@@ -8198,20 +8040,6 @@ export declare class UpdateUserSettingsMutation extends Request {
8198
8040
  */
8199
8041
  fetch(id: string, input: L.UserSettingsUpdateInput): LinearFetch<UserSettingsPayload>;
8200
8042
  }
8201
- /**
8202
- * A fetchable UserSubscribeToNewsletter Mutation
8203
- *
8204
- * @param request - function to call the graphql client
8205
- */
8206
- export declare class UserSubscribeToNewsletterMutation extends Request {
8207
- constructor(request: LinearRequest);
8208
- /**
8209
- * Call the UserSubscribeToNewsletter mutation and return a UserSubscribeToNewsletterPayload
8210
- *
8211
- * @returns parsed response from UserSubscribeToNewsletterMutation
8212
- */
8213
- fetch(): LinearFetch<UserSubscribeToNewsletterPayload>;
8214
- }
8215
8043
  /**
8216
8044
  * A fetchable SuspendUser Mutation
8217
8045
  *
@@ -10349,13 +10177,6 @@ export declare class LinearSdk extends Request {
10349
10177
  * @returns DocumentPayload
10350
10178
  */
10351
10179
  updateDocument(id: string, input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
10352
- /**
10353
- * Subscribes the email to the newsletter.
10354
- *
10355
- * @param input - required input to pass to emailSubscribe
10356
- * @returns EmailSubscribePayload
10357
- */
10358
- emailSubscribe(input: L.EmailSubscribeInput): LinearFetch<EmailSubscribePayload>;
10359
10180
  /**
10360
10181
  * Authenticates a user account via email and authentication token.
10361
10182
  *
@@ -11316,12 +11137,6 @@ export declare class LinearSdk extends Request {
11316
11137
  * @returns UserSettingsPayload
11317
11138
  */
11318
11139
  updateUserSettings(id: string, input: L.UserSettingsUpdateInput): LinearFetch<UserSettingsPayload>;
11319
- /**
11320
- * Subscribes user to changelog newsletter.
11321
- *
11322
- * @returns UserSubscribeToNewsletterPayload
11323
- */
11324
- get userSubscribeToNewsletter(): LinearFetch<UserSubscribeToNewsletterPayload>;
11325
11140
  /**
11326
11141
  * Suspends a user. Can only be called by an admin.
11327
11142
  *