@maxim_mazurok/gapi.client.pubsub-v1beta2 0.0.20250123 → 0.0.20250128

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.
Files changed (3) hide show
  1. package/index.d.ts +13 -13
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://pubsub.googleapis.com/$discovery/rest?version=v1beta2
12
- // Revision: 20250123
12
+ // Revision: 20250128
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Pub/Sub API v1beta2 */
18
18
  function load(
19
- urlOrObject: 'https://pubsub.googleapis.com/$discovery/rest?version=v1beta2'
19
+ urlOrObject: 'https://pubsub.googleapis.com/$discovery/rest?version=v1beta2',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'pubsub', version: 'v1beta2'): Promise<void>;
@@ -216,7 +216,7 @@ declare namespace gapi.client {
216
216
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
217
217
  uploadType?: string;
218
218
  },
219
- body: AcknowledgeRequest
219
+ body: AcknowledgeRequest,
220
220
  ): Request<{}>;
221
221
  /** Creates a subscription to a given topic. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. Note that for REST API requests, you must specify a name. */
222
222
  create(request: {
@@ -274,7 +274,7 @@ declare namespace gapi.client {
274
274
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
275
275
  uploadType?: string;
276
276
  },
277
- body: Subscription
277
+ body: Subscription,
278
278
  ): Request<Subscription>;
279
279
  /** Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified. */
280
280
  delete(request?: {
@@ -446,7 +446,7 @@ declare namespace gapi.client {
446
446
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
447
447
  uploadType?: string;
448
448
  },
449
- body: ModifyAckDeadlineRequest
449
+ body: ModifyAckDeadlineRequest,
450
450
  ): Request<{}>;
451
451
  /** Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`. */
452
452
  modifyPushConfig(request: {
@@ -504,7 +504,7 @@ declare namespace gapi.client {
504
504
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
505
505
  uploadType?: string;
506
506
  },
507
- body: ModifyPushConfigRequest
507
+ body: ModifyPushConfigRequest,
508
508
  ): Request<{}>;
509
509
  /** Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. */
510
510
  pull(request: {
@@ -562,7 +562,7 @@ declare namespace gapi.client {
562
562
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
563
563
  uploadType?: string;
564
564
  },
565
- body: PullRequest
565
+ body: PullRequest,
566
566
  ): Request<PullResponse>;
567
567
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
568
568
  setIamPolicy(
@@ -592,7 +592,7 @@ declare namespace gapi.client {
592
592
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
593
593
  uploadType?: string;
594
594
  },
595
- body: SetIamPolicyRequest
595
+ body: SetIamPolicyRequest,
596
596
  ): Request<Policy>;
597
597
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
598
598
  testIamPermissions(
@@ -622,7 +622,7 @@ declare namespace gapi.client {
622
622
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
623
623
  uploadType?: string;
624
624
  },
625
- body: TestIamPermissionsRequest
625
+ body: TestIamPermissionsRequest,
626
626
  ): Request<TestIamPermissionsResponse>;
627
627
  }
628
628
  interface SubscriptionsResource {
@@ -715,7 +715,7 @@ declare namespace gapi.client {
715
715
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
716
716
  uploadType?: string;
717
717
  },
718
- body: Topic
718
+ body: Topic,
719
719
  ): Request<Topic>;
720
720
  /** Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. */
721
721
  delete(request?: {
@@ -887,7 +887,7 @@ declare namespace gapi.client {
887
887
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
888
888
  uploadType?: string;
889
889
  },
890
- body: PublishRequest
890
+ body: PublishRequest,
891
891
  ): Request<PublishResponse>;
892
892
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
893
893
  setIamPolicy(
@@ -917,7 +917,7 @@ declare namespace gapi.client {
917
917
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
918
918
  uploadType?: string;
919
919
  },
920
- body: SetIamPolicyRequest
920
+ body: SetIamPolicyRequest,
921
921
  ): Request<Policy>;
922
922
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
923
923
  testIamPermissions(
@@ -947,7 +947,7 @@ declare namespace gapi.client {
947
947
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
948
948
  uploadType?: string;
949
949
  },
950
- body: TestIamPermissionsRequest
950
+ body: TestIamPermissionsRequest,
951
951
  ): Request<TestIamPermissionsResponse>;
952
952
  subscriptions: SubscriptionsResource;
953
953
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.pubsub-v1beta2",
3
- "version": "0.0.20250123",
3
+ "version": "0.0.20250128",
4
4
  "description": "TypeScript typings for Cloud Pub/Sub API v1beta2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.pubsub
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -65,7 +65,7 @@ gapi.auth.authorize(
65
65
  } else {
66
66
  /* handle authorization error */
67
67
  }
68
- }
68
+ },
69
69
  );
70
70
  ```
71
71