Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/gen/common/CommonApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
BlockUsersResponse,
CancelImportV2TaskResponse,
CheckExternalStorageResponse,
CheckGCPPubSubRequest,
CheckGCPPubSubResponse,
CheckPushRequest,
CheckPushResponse,
CheckSNSRequest,
Expand Down Expand Up @@ -375,6 +377,29 @@ export class CommonApi {
return response;
}

async checkGCPPubSub(
request?: CheckGCPPubSubRequest,
): Promise<StreamResponse<CheckGCPPubSubResponse>> {
const body = {
gcp_pubsub_event_based_ordering_key_enabled:
request?.gcp_pubsub_event_based_ordering_key_enabled,
gcp_pubsub_region: request?.gcp_pubsub_region,
gcp_pubsub_topic: request?.gcp_pubsub_topic,
};

const response = await this.apiClient.sendRequest<CheckGCPPubSubResponse>(
'POST',
'/api/v2/check_gcp_pubsub',
undefined,
undefined,
body,
);

decoders['CheckGCPPubSubResponse']?.(response);

return response;
}

async checkPush(
request?: CheckPushRequest,
): Promise<StreamResponse<CheckPushResponse>> {
Expand Down
29 changes: 29 additions & 0 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import {
CastPollVoteRequest,
ChangeFeedVisibilityRequest,
ChangeFeedVisibilityResponse,
CommentFeedbackRequest,
CommentFeedbackResponse,
CreateCollectionsRequest,
CreateCollectionsResponse,
CreateFeedGroupRequest,
Expand Down Expand Up @@ -1433,6 +1435,31 @@ export class FeedsApi {
return response;
}

async commentFeedback(
request: CommentFeedbackRequest & { id: string },
): Promise<StreamResponse<CommentFeedbackResponse>> {
const pathParams = {
id: request?.id,
};
const body = {
hide: request?.hide,
user_id: request?.user_id,
user: request?.user,
};

const response = await this.apiClient.sendRequest<CommentFeedbackResponse>(
'POST',
'/api/v2/feeds/comments/{id}/feedback',
pathParams,
undefined,
body,
);

decoders['CommentFeedbackResponse']?.(response);

return response;
}

async updateCommentPartial(
request: UpdateCommentPartialRequest & { id: string },
): Promise<StreamResponse<UpdateCommentPartialResponse>> {
Expand Down Expand Up @@ -1746,6 +1773,7 @@ export class FeedsApi {
user_id: request?.user_id,
view: request?.view,
watch: request?.watch,
discard_actors: request?.discard_actors,
data: request?.data,
enrichment_options: request?.enrichment_options,
external_ranking: request?.external_ranking,
Expand Down Expand Up @@ -2934,6 +2962,7 @@ export class FeedsApi {
max_age_hours: request?.max_age_hours,
policy: request?.policy,
enabled: request?.enabled,
feed_groups: request?.feed_groups,
};

const response =
Expand Down
120 changes: 118 additions & 2 deletions src/gen/model-decoders/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,19 @@ decoders['AsyncExportErrorEvent'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['AsyncExportLabelResultsEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

finished_at: { type: 'DatetimeType', isSingle: true },

started_at: { type: 'DatetimeType', isSingle: true },

received_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['AsyncExportModerationLogsEvent'] = (input?: {
[key: string]: any;
}) => {
Expand Down Expand Up @@ -508,6 +521,32 @@ decoders['AsyncExportUsersEvent'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['AsyncImportErrorEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

finished_at: { type: 'DatetimeType', isSingle: true },

received_at: { type: 'DatetimeType', isSingle: true },

started_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['AsyncImportSuccessEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

finished_at: { type: 'DatetimeType', isSingle: true },

received_at: { type: 'DatetimeType', isSingle: true },

started_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['AutomodDetailsResponse'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
result: { type: 'MessageModerationResult', isSingle: true },
Expand Down Expand Up @@ -1072,6 +1111,17 @@ decoders['CallRingEvent'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['CallRingSettledEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

rang_at: { type: 'DatetimeType', isSingle: true },

settled_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['CallRtmpBroadcastFailedEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down Expand Up @@ -1921,6 +1971,17 @@ decoders['CommentDeletedEvent'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['CommentFeedbackEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

received_at: { type: 'DatetimeType', isSingle: true },

user: { type: 'UserResponseCommonFields', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['CommentReactionAddedEvent'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down Expand Up @@ -2644,6 +2705,13 @@ decoders['FeedsReactionResponse'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['FeedsRetentionPolicy'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
enabled_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['FeedsShareResponse'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down Expand Up @@ -3027,7 +3095,7 @@ decoders['GetFeedsRetentionPolicyResponse'] = (input?: {
[key: string]: any;
}) => {
const typeMappings: TypeMapping = {
policies: { type: 'RetentionPolicy', isSingle: false },
policies: { type: 'FeedsRetentionPolicy', isSingle: false },
};
return decode(typeMappings, input);
};
Expand Down Expand Up @@ -4420,6 +4488,15 @@ decoders['QueryCallParticipantsResponse'] = (input?: {
return decode(typeMappings, input);
};

decoders['QueryCallRingAttemptsResponse'] = (input?: {
[key: string]: any;
}) => {
const typeMappings: TypeMapping = {
ring_attempts: { type: 'RingAttemptResponse', isSingle: false },
};
return decode(typeMappings, input);
};

decoders['QueryCallSessionParticipantStatsResponse'] = (input?: {
[key: string]: any;
}) => {
Expand Down Expand Up @@ -5054,6 +5131,45 @@ decoders['RevisionHistoryResponse'] = (input?: { [key: string]: any }) => {
return decode(typeMappings, input);
};

decoders['RingAttemptResponse'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

expires_at: { type: 'DatetimeType', isSingle: true },

targets: { type: 'RingTargetResponse', isSingle: false },

deleted_at: { type: 'DatetimeType', isSingle: true },

settled_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['RingDeliveryResponse'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
sent_at: { type: 'DatetimeType', isSingle: true },

acked_at: { type: 'DatetimeType', isSingle: true },

displayed_at: { type: 'DatetimeType', isSingle: true },

fetched_at: { type: 'DatetimeType', isSingle: true },

provider_accepted_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders['RingTargetResponse'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
state_at: { type: 'DatetimeType', isSingle: true },

deliveries: { type: 'RingDeliveryResponse', isSingle: false },
};
return decode(typeMappings, input);
};

decoders['Role'] = (input?: { [key: string]: any }) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down Expand Up @@ -5214,7 +5330,7 @@ decoders['SetFeedsRetentionPolicyResponse'] = (input?: {
[key: string]: any;
}) => {
const typeMappings: TypeMapping = {
policy: { type: 'RetentionPolicy', isSingle: true },
policy: { type: 'FeedsRetentionPolicy', isSingle: true },
};
return decode(typeMappings, input);
};
Expand Down
Loading
Loading