@meshtrade/api-web 1.49.0 → 1.50.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.
@@ -1,4 +1,5 @@
1
1
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
2
3
  import type { UserProfile, UserProfileSchema } from "./user_profile_pb";
3
4
  import type { Message } from "@bufbuild/protobuf";
4
5
  /**
@@ -67,7 +68,7 @@ export type GetUserProfileRequest = Message<"meshtrade.iam.user_profile.v1.GetUs
67
68
  /**
68
69
  *
69
70
  * The resource name of the user profile to retrieve.
70
- * Format: user_profiles/{ULIDv2}.
71
+ * Format: iam/user_profiles/{ULIDv2}.
71
72
  * This field is required.
72
73
  *
73
74
  * @generated from field: string name = 1;
@@ -117,6 +118,62 @@ export type ListUserProfilesResponse = Message<"meshtrade.iam.user_profile.v1.Li
117
118
  * Use `create(ListUserProfilesResponseSchema)` to create a new message.
118
119
  */
119
120
  export declare const ListUserProfilesResponseSchema: GenMessage<ListUserProfilesResponse>;
121
+ /**
122
+ *
123
+ * Request message for GetUserProfilePictureUploadUrl.
124
+ *
125
+ * Requests a presigned URL for uploading a profile picture for
126
+ * the specified user profile.
127
+ *
128
+ * @generated from message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest
129
+ */
130
+ export type GetUserProfilePictureUploadUrlRequest = Message<"meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest"> & {
131
+ /**
132
+ *
133
+ * The resource name of the user profile to upload a picture for.
134
+ * Format: iam/user_profiles/{ULIDv2}.
135
+ * This field is required.
136
+ *
137
+ * @generated from field: string name = 1;
138
+ */
139
+ name: string;
140
+ };
141
+ /**
142
+ * Describes the message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.
143
+ * Use `create(GetUserProfilePictureUploadUrlRequestSchema)` to create a new message.
144
+ */
145
+ export declare const GetUserProfilePictureUploadUrlRequestSchema: GenMessage<GetUserProfilePictureUploadUrlRequest>;
146
+ /**
147
+ *
148
+ * Response message for GetUserProfilePictureUploadUrl.
149
+ *
150
+ * Contains the presigned upload URL and its expiration time.
151
+ *
152
+ * @generated from message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse
153
+ */
154
+ export type GetUserProfilePictureUploadUrlResponse = Message<"meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse"> & {
155
+ /**
156
+ *
157
+ * The presigned URL for uploading the profile picture.
158
+ * This URL should be used immediately with a PUT request to upload the image.
159
+ *
160
+ * @generated from field: string upload_url = 1;
161
+ */
162
+ uploadUrl: string;
163
+ /**
164
+ *
165
+ * The timestamp when the upload URL expires.
166
+ * After this time, the URL will no longer be valid for uploading.
167
+ *
168
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
169
+ */
170
+ expiresAt?: Timestamp;
171
+ };
172
+ /**
173
+ * Describes the message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.
174
+ * Use `create(GetUserProfilePictureUploadUrlResponseSchema)` to create a new message.
175
+ */
176
+ export declare const GetUserProfilePictureUploadUrlResponseSchema: GenMessage<GetUserProfilePictureUploadUrlResponse>;
120
177
  /**
121
178
  *
122
179
  * UserProfileService manages user profile information and preferences.
@@ -194,4 +251,21 @@ export declare const UserProfileService: GenService<{
194
251
  input: typeof ListUserProfilesRequestSchema;
195
252
  output: typeof ListUserProfilesResponseSchema;
196
253
  };
254
+ /**
255
+ *
256
+ * Retrieves a presigned upload URL for a user profile picture.
257
+ *
258
+ * Generates a temporary upload URL that can be used to upload
259
+ * a profile picture image. The URL expires after a short duration
260
+ * and should be used immediately for uploading the image file.
261
+ *
262
+ * Returns upload URL and expiration timestamp.
263
+ *
264
+ * @generated from rpc meshtrade.iam.user_profile.v1.UserProfileService.GetUserProfilePictureUploadUrl
265
+ */
266
+ getUserProfilePictureUploadUrl: {
267
+ methodKind: "unary";
268
+ input: typeof GetUserProfilePictureUploadUrlRequestSchema;
269
+ output: typeof GetUserProfilePictureUploadUrlResponseSchema;
270
+ };
197
271
  }>;
@@ -3,15 +3,16 @@
3
3
  // @generated from file meshtrade/iam/user_profile/v1/service.proto (package meshtrade.iam.user_profile.v1, syntax proto3)
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UserProfileService = exports.ListUserProfilesResponseSchema = exports.ListUserProfilesRequestSchema = exports.GetUserProfileRequestSchema = exports.UpdateUserProfileRequestSchema = exports.GetUserProfileByUserRequestSchema = exports.file_meshtrade_iam_user_profile_v1_service = void 0;
6
+ exports.UserProfileService = exports.GetUserProfilePictureUploadUrlResponseSchema = exports.GetUserProfilePictureUploadUrlRequestSchema = exports.ListUserProfilesResponseSchema = exports.ListUserProfilesRequestSchema = exports.GetUserProfileRequestSchema = exports.UpdateUserProfileRequestSchema = exports.GetUserProfileByUserRequestSchema = exports.file_meshtrade_iam_user_profile_v1_service = void 0;
7
7
  const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
8
  const validate_pb_1 = require("../../../../buf/validate/validate_pb");
9
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
9
10
  const user_profile_pb_1 = require("./user_profile_pb");
10
11
  const method_options_pb_1 = require("../../../option/method_options/v1/method_options_pb");
11
12
  /**
12
13
  * Describes the file meshtrade/iam/user_profile/v1/service.proto.
13
14
  */
14
- exports.file_meshtrade_iam_user_profile_v1_service = (0, codegenv2_1.fileDesc)("CittZXNodHJhZGUvaWFtL3VzZXJfcHJvZmlsZS92MS9zZXJ2aWNlLnByb3RvEh1tZXNodHJhZGUuaWFtLnVzZXJfcHJvZmlsZS52MSL4AgobR2V0VXNlclByb2ZpbGVCeVVzZXJSZXF1ZXN0EtgCCgR1c2VyGAEgASgJQskCukjFAroBVgoNdXNlci5yZXF1aXJlZBI1dXNlciBpcyByZXF1aXJlZCBhbmQgbXVzdCBiZSBpbiBmb3JtYXQgdXNlcnMve1VMSU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xO3VzZXJfcHJvZmlsZV92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, user_profile_pb_1.file_meshtrade_iam_user_profile_v1_user_profile, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options]);
15
+ exports.file_meshtrade_iam_user_profile_v1_service = (0, codegenv2_1.fileDesc)("CittZXNodHJhZGUvaWFtL3VzZXJfcHJvZmlsZS92MS9zZXJ2aWNlLnByb3RvEh1tZXNodHJhZGUuaWFtLnVzZXJfcHJvZmlsZS52MSL4AgobR2V0VXNlclByb2ZpbGVCeVVzZXJSZXF1ZXN0EtgCCgR1c2VyGAEgASgJQskCukjFAroBVgoNdXNlci5yZXF1aXJlZBI1dXNlciBpcyByZXF1aXJlZCBhbmQgbXVzdCBiZSBpbiBmb3JtYXQgdXNlcnMve1VMSUR2Mn0aDnNpemUodGhpcykgPiAwugGxAQoLdXNlci5mb3JtYXQSYm5hbWUgbXVzdCBiZSBpbiBmb3JtYXQgdXNlcnMve1VMSUR2Mn0gd2hlcmUgdWxpZHYyIGlzIGV4YWN0bHkgMjYgdXBwZXJjYXNlIGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzGj50aGlzLm1hdGNoZXMoJ151c2Vycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQnKcgBAXIyEAEyLl51c2Vycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQiZAoYVXBkYXRlVXNlclByb2ZpbGVSZXF1ZXN0EkgKDHVzZXJfcHJvZmlsZRgBIAEoCzIqLm1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxLlVzZXJQcm9maWxlQga6SAPIAQEiogMKFUdldFVzZXJQcm9maWxlUmVxdWVzdBKIAwoEbmFtZRgBIAEoCUL5ArpI9QK6AWIKDW5hbWUucmVxdWlyZWQSQW5hbWUgaXMgcmVxdWlyZWQgYW5kIG11c3QgYmUgaW4gZm9ybWF0IGlhbS91c2V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bcByY23ARLBAQoeR2V0VXNlclByb2ZpbGVQaWN0dXJlVXBsb2FkVXJsEkQubWVzaHRyYWRlLmlhbS51c2VyX3Byb2ZpbGUudjEuR2V0VXNlclByb2ZpbGVQaWN0dXJlVXBsb2FkVXJsUmVxdWVzdBpFLm1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxLkdldFVzZXJQcm9maWxlUGljdHVyZVVwbG9hZFVybFJlc3BvbnNlIhKytRgOCAEQAhoIwI23AciNtwFCZwokY28ubWVzaHRyYWRlLmFwaS5pYW0udXNlcl9wcm9maWxlLnYxWj9naXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vaWFtL3VzZXJfcHJvZmlsZS92MTt1c2VyX3Byb2ZpbGVfdjFiBnByb3RvMw", [validate_pb_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp, user_profile_pb_1.file_meshtrade_iam_user_profile_v1_user_profile, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options]);
15
16
  /**
16
17
  * Describes the message meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.
17
18
  * Use `create(GetUserProfileByUserRequestSchema)` to create a new message.
@@ -37,6 +38,16 @@ exports.ListUserProfilesRequestSchema = (0, codegenv2_1.messageDesc)(exports.fil
37
38
  * Use `create(ListUserProfilesResponseSchema)` to create a new message.
38
39
  */
39
40
  exports.ListUserProfilesResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 4);
41
+ /**
42
+ * Describes the message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.
43
+ * Use `create(GetUserProfilePictureUploadUrlRequestSchema)` to create a new message.
44
+ */
45
+ exports.GetUserProfilePictureUploadUrlRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 5);
46
+ /**
47
+ * Describes the message meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.
48
+ * Use `create(GetUserProfilePictureUploadUrlResponseSchema)` to create a new message.
49
+ */
50
+ exports.GetUserProfilePictureUploadUrlResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 6);
40
51
  /**
41
52
  *
42
53
  * UserProfileService manages user profile information and preferences.
@@ -1,4 +1,4 @@
1
- import { GetUserProfileByUserRequest, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
1
+ import { GetUserProfileByUserRequest, GetUserProfilePictureUploadUrlRequest, GetUserProfilePictureUploadUrlResponse, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
2
2
  import { UserProfile } from "./user_profile_pb";
3
3
  import { ClientOption } from "../../../config";
4
4
  /**
@@ -106,4 +106,10 @@ export declare class UserProfileServiceWeb {
106
106
  * @returns {Promise<ListUserProfilesResponse>} A promise that resolves with the list of user profiles.
107
107
  */
108
108
  listUserProfiles(request: ListUserProfilesRequest): Promise<ListUserProfilesResponse>;
109
+ /**
110
+ * Retrieves an user profile.
111
+ * @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
112
+ * @returns {Promise<GetUserProfilePictureUploadUrlResponse>} A promise that resolves with the user profile.
113
+ */
114
+ getUserProfilePictureUploadUrl(request: GetUserProfilePictureUploadUrlRequest): Promise<GetUserProfilePictureUploadUrlResponse>;
109
115
  }
@@ -198,5 +198,22 @@ class UserProfileServiceWeb {
198
198
  }
199
199
  return this._client.listUserProfiles(request);
200
200
  }
201
+ /**
202
+ * Retrieves an user profile.
203
+ * @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
204
+ * @returns {Promise<GetUserProfilePictureUploadUrlResponse>} A promise that resolves with the user profile.
205
+ */
206
+ getUserProfilePictureUploadUrl(request) {
207
+ // Validate request
208
+ const result = this._validator.validate(service_pb_2.GetUserProfilePictureUploadUrlRequestSchema, request);
209
+ if (result.kind === "invalid") {
210
+ const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
211
+ throw new Error(`Validation failed: ${violations}`);
212
+ }
213
+ else if (result.kind === "error") {
214
+ throw result.error;
215
+ }
216
+ return this._client.getUserProfilePictureUploadUrl(request);
217
+ }
201
218
  }
202
219
  exports.UserProfileServiceWeb = UserProfileServiceWeb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-web",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "Mesh Typescript SDK",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",