Skip to content

Commit ed1dcbf

Browse files
committed
Add missing schema to update:examples script
1 parent 69984d9 commit ed1dcbf

File tree

7 files changed

+129
-81
lines changed

7 files changed

+129
-81
lines changed

packages/openapi-typescript/examples/github-api-export-type-immutable.ts

+19-10
Original file line numberDiff line numberDiff line change
@@ -17624,6 +17624,7 @@ export type components = {
1762417624
readonly metadata?: string;
1762517625
readonly contents?: string;
1762617626
readonly deployments?: string;
17627+
} & {
1762717628
readonly [key: string]: string;
1762817629
};
1762917630
/**
@@ -19442,7 +19443,7 @@ export type components = {
1944219443
/** @description The total number of users who interacted with Copilot Chat in the IDE during the day specified. */
1944319444
readonly total_active_chat_users?: number;
1944419445
/** @description Breakdown of Copilot code completions usage by language and editor */
19445-
readonly breakdown: readonly {
19446+
readonly breakdown: readonly ({
1944619447
/** @description The language in which Copilot suggestions were shown to users in the specified editor. */
1944719448
readonly language?: string;
1944819449
/** @description The editor in which Copilot suggestions were shown to users for the specified language. */
@@ -19457,8 +19458,9 @@ export type components = {
1945719458
readonly lines_accepted?: number;
1945819459
/** @description The number of users who were shown Copilot completion suggestions in the editor specified during the day specified. */
1945919460
readonly active_users?: number;
19461+
} & {
1946019462
readonly [key: string]: unknown;
19461-
}[] | null;
19463+
})[] | null;
1946219464
};
1946319465
/** @description The security alert number. */
1946419466
readonly "alert-number": number;
@@ -20064,6 +20066,7 @@ export type components = {
2006420066
readonly metadata?: string;
2006520067
readonly contents?: string;
2006620068
readonly deployments?: string;
20069+
} & {
2006720070
readonly [key: string]: string;
2006820071
};
2006920072
/**
@@ -22149,6 +22152,7 @@ export type components = {
2214922152
* @enum {string}
2215022153
*/
2215122154
readonly seat_management_setting: "assign_all" | "assign_selected" | "disabled" | "unconfigured";
22155+
} & {
2215222156
readonly [key: string]: unknown;
2215322157
};
2215422158
/**
@@ -85571,13 +85575,14 @@ export interface operations {
8557185575
readonly [name: string]: unknown;
8557285576
};
8557385577
content: {
85574-
readonly "application/json": components["schemas"]["integration"] & {
85578+
readonly "application/json": components["schemas"]["integration"] & ({
8557585579
readonly client_id: string;
8557685580
readonly client_secret: string;
8557785581
readonly webhook_secret: string | null;
8557885582
readonly pem: string;
85583+
} & {
8557985584
readonly [key: string]: unknown;
85580-
};
85585+
});
8558185586
};
8558285587
};
8558385588
readonly 404: components["responses"]["not_found"];
@@ -100681,15 +100686,17 @@ export interface operations {
100681100686
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
100682100687
readonly identifier: string;
100683100688
}[];
100684-
} & ({
100689+
} & (({
100685100690
/** @enum {unknown} */
100686100691
readonly status: "completed";
100692+
} & {
100687100693
readonly [key: string]: unknown;
100688-
} | {
100694+
}) | ({
100689100695
/** @enum {unknown} */
100690100696
readonly status?: "queued" | "in_progress";
100697+
} & {
100691100698
readonly [key: string]: unknown;
100692-
});
100699+
}));
100693100700
};
100694100701
};
100695100702
readonly responses: {
@@ -100826,15 +100833,17 @@ export interface operations {
100826100833
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
100827100834
readonly identifier: string;
100828100835
}[];
100829-
} | {
100836+
} | ({
100830100837
/** @enum {unknown} */
100831100838
readonly status?: "completed";
100839+
} & {
100832100840
readonly [key: string]: unknown;
100833-
} | {
100841+
}) | ({
100834100842
/** @enum {unknown} */
100835100843
readonly status?: "queued" | "in_progress";
100844+
} & {
100836100845
readonly [key: string]: unknown;
100837-
};
100846+
});
100838100847
};
100839100848
};
100840100849
readonly responses: {

packages/openapi-typescript/examples/github-api-immutable.ts

+19-10
Original file line numberDiff line numberDiff line change
@@ -17624,6 +17624,7 @@ export interface components {
1762417624
readonly metadata?: string;
1762517625
readonly contents?: string;
1762617626
readonly deployments?: string;
17627+
} & {
1762717628
readonly [key: string]: string;
1762817629
};
1762917630
/**
@@ -19442,7 +19443,7 @@ export interface components {
1944219443
/** @description The total number of users who interacted with Copilot Chat in the IDE during the day specified. */
1944319444
readonly total_active_chat_users?: number;
1944419445
/** @description Breakdown of Copilot code completions usage by language and editor */
19445-
readonly breakdown: readonly {
19446+
readonly breakdown: readonly ({
1944619447
/** @description The language in which Copilot suggestions were shown to users in the specified editor. */
1944719448
readonly language?: string;
1944819449
/** @description The editor in which Copilot suggestions were shown to users for the specified language. */
@@ -19457,8 +19458,9 @@ export interface components {
1945719458
readonly lines_accepted?: number;
1945819459
/** @description The number of users who were shown Copilot completion suggestions in the editor specified during the day specified. */
1945919460
readonly active_users?: number;
19461+
} & {
1946019462
readonly [key: string]: unknown;
19461-
}[] | null;
19463+
})[] | null;
1946219464
};
1946319465
/** @description The security alert number. */
1946419466
readonly "alert-number": number;
@@ -20064,6 +20066,7 @@ export interface components {
2006420066
readonly metadata?: string;
2006520067
readonly contents?: string;
2006620068
readonly deployments?: string;
20069+
} & {
2006720070
readonly [key: string]: string;
2006820071
};
2006920072
/**
@@ -22149,6 +22152,7 @@ export interface components {
2214922152
* @enum {string}
2215022153
*/
2215122154
readonly seat_management_setting: "assign_all" | "assign_selected" | "disabled" | "unconfigured";
22155+
} & {
2215222156
readonly [key: string]: unknown;
2215322157
};
2215422158
/**
@@ -85571,13 +85575,14 @@ export interface operations {
8557185575
readonly [name: string]: unknown;
8557285576
};
8557385577
content: {
85574-
readonly "application/json": components["schemas"]["integration"] & {
85578+
readonly "application/json": components["schemas"]["integration"] & ({
8557585579
readonly client_id: string;
8557685580
readonly client_secret: string;
8557785581
readonly webhook_secret: string | null;
8557885582
readonly pem: string;
85583+
} & {
8557985584
readonly [key: string]: unknown;
85580-
};
85585+
});
8558185586
};
8558285587
};
8558385588
readonly 404: components["responses"]["not_found"];
@@ -100681,15 +100686,17 @@ export interface operations {
100681100686
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
100682100687
readonly identifier: string;
100683100688
}[];
100684-
} & ({
100689+
} & (({
100685100690
/** @enum {unknown} */
100686100691
readonly status: "completed";
100692+
} & {
100687100693
readonly [key: string]: unknown;
100688-
} | {
100694+
}) | ({
100689100695
/** @enum {unknown} */
100690100696
readonly status?: "queued" | "in_progress";
100697+
} & {
100691100698
readonly [key: string]: unknown;
100692-
});
100699+
}));
100693100700
};
100694100701
};
100695100702
readonly responses: {
@@ -100826,15 +100833,17 @@ export interface operations {
100826100833
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
100827100834
readonly identifier: string;
100828100835
}[];
100829-
} | {
100836+
} | ({
100830100837
/** @enum {unknown} */
100831100838
readonly status?: "completed";
100839+
} & {
100832100840
readonly [key: string]: unknown;
100833-
} | {
100841+
}) | ({
100834100842
/** @enum {unknown} */
100835100843
readonly status?: "queued" | "in_progress";
100844+
} & {
100836100845
readonly [key: string]: unknown;
100837-
};
100846+
});
100838100847
};
100839100848
};
100840100849
readonly responses: {

packages/openapi-typescript/examples/github-api-next.ts

+18-10
Original file line numberDiff line numberDiff line change
@@ -23390,6 +23390,7 @@ export interface components {
2339023390
metadata?: string;
2339123391
contents?: string;
2339223392
deployments?: string;
23393+
} & {
2339323394
[key: string]: string;
2339423395
};
2339523396
/** @description The list of events for the GitHub app */
@@ -24647,7 +24648,7 @@ export interface components {
2464724648
/** @description The total number of users who interacted with Copilot Chat in the IDE during the day specified. */
2464824649
total_active_chat_users?: number;
2464924650
/** @description Breakdown of Copilot code completions usage by language and editor */
24650-
breakdown: {
24651+
breakdown: ({
2465124652
/** @description The language in which Copilot suggestions were shown to users in the specified editor. */
2465224653
language?: string;
2465324654
/** @description The editor in which Copilot suggestions were shown to users for the specified language. */
@@ -24662,8 +24663,9 @@ export interface components {
2466224663
lines_accepted?: number;
2466324664
/** @description The number of users who were shown Copilot completion suggestions in the editor specified during the day specified. */
2466424665
active_users?: number;
24666+
} & {
2466524667
[key: string]: unknown;
24666-
}[] | null;
24668+
})[] | null;
2466724669
};
2466824670
/** @description The security alert number. */
2466924671
"alert-number": number;
@@ -26600,6 +26602,7 @@ export interface components {
2660026602
* @enum {string}
2660126603
*/
2660226604
seat_management_setting: "assign_all" | "assign_selected" | "disabled" | "unconfigured";
26605+
} & {
2660326606
[key: string]: unknown;
2660426607
};
2660526608
/**
@@ -86001,13 +86004,14 @@ export interface operations {
8600186004
[name: string]: unknown;
8600286005
};
8600386006
content: {
86004-
"application/json": components["schemas"]["integration"] & {
86007+
"application/json": components["schemas"]["integration"] & ({
8600586008
client_id: string;
8600686009
client_secret: string;
8600786010
webhook_secret: string | null;
8600886011
pem: string;
86012+
} & {
8600986013
[key: string]: unknown;
86010-
};
86014+
});
8601186015
};
8601286016
};
8601386017
404: components["responses"]["not_found"];
@@ -101002,15 +101006,17 @@ export interface operations {
101002101006
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
101003101007
identifier: string;
101004101008
}[];
101005-
} & ({
101009+
} & (({
101006101010
/** @enum {unknown} */
101007101011
status: "completed";
101012+
} & {
101008101013
[key: string]: unknown;
101009-
} | {
101014+
}) | ({
101010101015
/** @enum {unknown} */
101011101016
status?: "queued" | "in_progress";
101017+
} & {
101012101018
[key: string]: unknown;
101013-
});
101019+
}));
101014101020
};
101015101021
};
101016101022
responses: {
@@ -101147,15 +101153,17 @@ export interface operations {
101147101153
/** @description A reference for the action on the integrator's system. The maximum size is 20 characters. */
101148101154
identifier: string;
101149101155
}[];
101150-
} | {
101156+
} | ({
101151101157
/** @enum {unknown} */
101152101158
status?: "completed";
101159+
} & {
101153101160
[key: string]: unknown;
101154-
} | {
101161+
}) | ({
101155101162
/** @enum {unknown} */
101156101163
status?: "queued" | "in_progress";
101164+
} & {
101157101165
[key: string]: unknown;
101158-
};
101166+
});
101159101167
};
101160101168
};
101161101169
responses: {

0 commit comments

Comments
 (0)