Skip to content

Commit 56f5e84

Browse files
committed
chore: new api
1 parent 284034c commit 56f5e84

11 files changed

Lines changed: 193 additions & 52 deletions

File tree

precomputer/generated/purple_client/docs/PatchedRfcToBeRequest.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ Name | Type
2323
`stream` | string
2424
`publicationStream` | string
2525
`authors` | [Array<RfcAuthorRequest>](RfcAuthorRequest.md)
26+
`shepherdId` | number
27+
`iesgContactId` | number
2628
`rfcNumber` | number
2729
`consensus` | boolean
2830
`ianaStatusSlug` | [IanaStatusSlugEnum](IanaStatusSlugEnum.md)
2931
`repository` | string
32+
`streamManagerId` | number
3033

3134
## Example
3235

@@ -51,10 +54,13 @@ const example = {
5154
"stream": null,
5255
"publicationStream": null,
5356
"authors": null,
57+
"shepherdId": null,
58+
"iesgContactId": null,
5459
"rfcNumber": null,
5560
"consensus": null,
5661
"ianaStatusSlug": null,
5762
"repository": null,
63+
"streamManagerId": null,
5864
} satisfies PatchedRfcToBeRequest
5965

6066
console.log(example)

precomputer/generated/purple_client/docs/PublicQueueItem.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Name | Type
2727
`authors` | [Array<PublicQueueAuthor>](PublicQueueAuthor.md)
2828
`approvalLogMessage` | [Array<ApprovalLogMessage>](ApprovalLogMessage.md)
2929
`stream` | string
30+
`group` | string
31+
`groupName` | string
32+
`stdLevel` | string
33+
`references` | [Array<RpcRelatedDocument>](RpcRelatedDocument.md)
3034

3135
## Example
3236

@@ -55,6 +59,10 @@ const example = {
5559
"authors": null,
5660
"approvalLogMessage": null,
5761
"stream": null,
62+
"group": null,
63+
"groupName": null,
64+
"stdLevel": null,
65+
"references": null,
5866
} satisfies PublicQueueItem
5967

6068
console.log(example)

precomputer/generated/purple_client/docs/RfcToBe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Name | Type
4040
`additionalEmails` | [Array<AdditionalEmail>](AdditionalEmail.md)
4141
`repository` | string
4242
`blockingReasons` | [Array<RfcToBeBlockingReason>](RfcToBeBlockingReason.md)
43+
`streamManager` | [BaseDatatrackerPerson](BaseDatatrackerPerson.md)
4344

4445
## Example
4546

@@ -81,6 +82,7 @@ const example = {
8182
"additionalEmails": null,
8283
"repository": null,
8384
"blockingReasons": null,
85+
"streamManager": null,
8486
} satisfies RfcToBe
8587

8688
console.log(example)

precomputer/generated/purple_client/docs/RfcToBeRequest.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ Name | Type
2323
`stream` | string
2424
`publicationStream` | string
2525
`authors` | [Array<RfcAuthorRequest>](RfcAuthorRequest.md)
26+
`shepherdId` | number
27+
`iesgContactId` | number
2628
`rfcNumber` | number
2729
`consensus` | boolean
2830
`ianaStatusSlug` | [IanaStatusSlugEnum](IanaStatusSlugEnum.md)
2931
`repository` | string
32+
`streamManagerId` | number
3033

3134
## Example
3235

@@ -51,10 +54,13 @@ const example = {
5154
"stream": null,
5255
"publicationStream": null,
5356
"authors": null,
57+
"shepherdId": null,
58+
"iesgContactId": null,
5459
"rfcNumber": null,
5560
"consensus": null,
5661
"ianaStatusSlug": null,
5762
"repository": null,
63+
"streamManagerId": null,
5864
} satisfies RfcToBeRequest
5965

6066
console.log(example)

precomputer/generated/purple_client/models/PatchedRfcToBeRequest.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ export interface PatchedRfcToBeRequest {
130130
* @memberof PatchedRfcToBeRequest
131131
*/
132132
authors?: Array<RfcAuthorRequest>;
133+
/**
134+
* Set the document shepherd by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
135+
* @type {number}
136+
* @memberof PatchedRfcToBeRequest
137+
*/
138+
shepherdId?: number | null;
139+
/**
140+
* Set the IESG contact by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
141+
* @type {number}
142+
* @memberof PatchedRfcToBeRequest
143+
*/
144+
iesgContactId?: number | null;
133145
/**
134146
*
135147
* @type {number}
@@ -160,6 +172,12 @@ export interface PatchedRfcToBeRequest {
160172
* @memberof PatchedRfcToBeRequest
161173
*/
162174
repository?: string;
175+
/**
176+
* Set the stream manager by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
177+
* @type {number}
178+
* @memberof PatchedRfcToBeRequest
179+
*/
180+
streamManagerId?: number | null;
163181
}
164182

165183

@@ -197,10 +215,13 @@ export function PatchedRfcToBeRequestFromJSONTyped(json: any, ignoreDiscriminato
197215
'stream': json['stream'] == null ? undefined : json['stream'],
198216
'publicationStream': json['publication_stream'] == null ? undefined : json['publication_stream'],
199217
'authors': json['authors'] == null ? undefined : ((json['authors'] as Array<any>).map(RfcAuthorRequestFromJSON)),
218+
'shepherdId': json['shepherd_id'] == null ? undefined : json['shepherd_id'],
219+
'iesgContactId': json['iesg_contact_id'] == null ? undefined : json['iesg_contact_id'],
200220
'rfcNumber': json['rfc_number'] == null ? undefined : json['rfc_number'],
201221
'consensus': json['consensus'] == null ? undefined : json['consensus'],
202222
'ianaStatusSlug': json['iana_status_slug'] == null ? undefined : IanaStatusSlugEnumFromJSON(json['iana_status_slug']),
203223
'repository': json['repository'] == null ? undefined : json['repository'],
224+
'streamManagerId': json['stream_manager_id'] == null ? undefined : json['stream_manager_id'],
204225
};
205226
}
206227

@@ -231,10 +252,13 @@ export function PatchedRfcToBeRequestToJSONTyped(value?: PatchedRfcToBeRequest |
231252
'stream': value['stream'],
232253
'publication_stream': value['publicationStream'],
233254
'authors': value['authors'] == null ? undefined : ((value['authors'] as Array<any>).map(RfcAuthorRequestToJSON)),
255+
'shepherd_id': value['shepherdId'],
256+
'iesg_contact_id': value['iesgContactId'],
234257
'rfc_number': value['rfcNumber'],
235258
'consensus': value['consensus'],
236259
'iana_status_slug': IanaStatusSlugEnumToJSON(value['ianaStatusSlug']),
237260
'repository': value['repository'],
261+
'stream_manager_id': value['streamManagerId'],
238262
};
239263
}
240264

precomputer/generated/purple_client/models/PublicQueueItem.ts

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ import {
2020
PublicAssignmentToJSON,
2121
PublicAssignmentToJSONTyped,
2222
} from './PublicAssignment.ts';
23+
import type { RpcRelatedDocument } from './RpcRelatedDocument.ts';
24+
import {
25+
RpcRelatedDocumentFromJSON,
26+
RpcRelatedDocumentFromJSONTyped,
27+
RpcRelatedDocumentToJSON,
28+
RpcRelatedDocumentToJSONTyped,
29+
} from './RpcRelatedDocument.ts';
2330
import type { ActionHolder } from './ActionHolder.ts';
2431
import {
2532
ActionHolderFromJSON,
@@ -204,12 +211,36 @@ export interface PublicQueueItem {
204211
* @memberof PublicQueueItem
205212
*/
206213
readonly approvalLogMessage?: Array<ApprovalLogMessage>;
214+
/**
215+
* Current stream
216+
* @type {string}
217+
* @memberof PublicQueueItem
218+
*/
219+
stream: string;
220+
/**
221+
* Acronym of datatracker group where this document originated, if any
222+
* @type {string}
223+
* @memberof PublicQueueItem
224+
*/
225+
group?: string;
207226
/**
208227
*
209228
* @type {string}
210229
* @memberof PublicQueueItem
211230
*/
212-
readonly stream?: string;
231+
readonly groupName?: string | null;
232+
/**
233+
* Current StdLevel
234+
* @type {string}
235+
* @memberof PublicQueueItem
236+
*/
237+
stdLevel: string;
238+
/**
239+
*
240+
* @type {Array<RpcRelatedDocument>}
241+
* @memberof PublicQueueItem
242+
*/
243+
readonly references?: Array<RpcRelatedDocument>;
213244
}
214245

215246
/**
@@ -221,6 +252,8 @@ export function instanceOfPublicQueueItem(value: object): value is PublicQueueIt
221252
if (!('disposition' in value) || value['disposition'] === undefined) return false;
222253
if (!('enqueuedAt' in value) || value['enqueuedAt'] === undefined) return false;
223254
if (!('authors' in value) || value['authors'] === undefined) return false;
255+
if (!('stream' in value) || value['stream'] === undefined) return false;
256+
if (!('stdLevel' in value) || value['stdLevel'] === undefined) return false;
224257
return true;
225258
}
226259

@@ -253,15 +286,19 @@ export function PublicQueueItemFromJSONTyped(json: any, ignoreDiscriminator: boo
253286
'blockingReasons': json['blocking_reasons'] == null ? undefined : ((json['blocking_reasons'] as Array<any>).map(RfcToBeBlockingReasonFromJSON)),
254287
'authors': ((json['authors'] as Array<any>).map(PublicQueueAuthorFromJSON)),
255288
'approvalLogMessage': json['approval_log_message'] == null ? undefined : ((json['approval_log_message'] as Array<any>).map(ApprovalLogMessageFromJSON)),
256-
'stream': json['stream'] == null ? undefined : json['stream'],
289+
'stream': json['stream'],
290+
'group': json['group'] == null ? undefined : json['group'],
291+
'groupName': json['group_name'] == null ? undefined : json['group_name'],
292+
'stdLevel': json['std_level'],
293+
'references': json['references'] == null ? undefined : ((json['references'] as Array<any>).map(RpcRelatedDocumentFromJSON)),
257294
};
258295
}
259296

260297
export function PublicQueueItemToJSON(json: any): PublicQueueItem {
261298
return PublicQueueItemToJSONTyped(json, false);
262299
}
263300

264-
export function PublicQueueItemToJSONTyped(value?: Omit<PublicQueueItem, 'id'|'name'|'labels'|'cluster'|'assignment_set'|'actionholder_set'|'pending_activities'|'pages'|'final_approval'|'iana_status'|'blocking_reasons'|'approval_log_message'|'stream'> | null, ignoreDiscriminator: boolean = false): any {
301+
export function PublicQueueItemToJSONTyped(value?: Omit<PublicQueueItem, 'id'|'name'|'labels'|'cluster'|'assignment_set'|'actionholder_set'|'pending_activities'|'pages'|'final_approval'|'iana_status'|'blocking_reasons'|'approval_log_message'|'group_name'|'references'> | null, ignoreDiscriminator: boolean = false): any {
265302
if (value == null) {
266303
return value;
267304
}
@@ -275,6 +312,9 @@ export function PublicQueueItemToJSONTyped(value?: Omit<PublicQueueItem, 'id'|'n
275312
'rfc_number': value['rfcNumber'],
276313
'enqueued_at': value['enqueuedAt'].toISOString(),
277314
'authors': ((value['authors'] as Array<any>).map(PublicQueueAuthorToJSON)),
315+
'stream': value['stream'],
316+
'group': value['group'],
317+
'std_level': value['stdLevel'],
278318
};
279319
}
280320

precomputer/generated/purple_client/models/RfcToBe.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,12 @@ export interface RfcToBe {
295295
* @memberof RfcToBe
296296
*/
297297
readonly blockingReasons?: Array<RfcToBeBlockingReason>;
298+
/**
299+
*
300+
* @type {BaseDatatrackerPerson}
301+
* @memberof RfcToBe
302+
*/
303+
readonly streamManager?: BaseDatatrackerPerson;
298304
}
299305

300306
/**
@@ -355,14 +361,15 @@ export function RfcToBeFromJSONTyped(json: any, ignoreDiscriminator: boolean): R
355361
'additionalEmails': json['additional_emails'] == null ? undefined : ((json['additional_emails'] as Array<any>).map(AdditionalEmailFromJSON)),
356362
'repository': json['repository'] == null ? undefined : json['repository'],
357363
'blockingReasons': json['blocking_reasons'] == null ? undefined : ((json['blocking_reasons'] as Array<any>).map(RfcToBeBlockingReasonFromJSON)),
364+
'streamManager': json['stream_manager'] == null ? undefined : BaseDatatrackerPersonFromJSON(json['stream_manager']),
358365
};
359366
}
360367

361368
export function RfcToBeToJSON(json: any): RfcToBe {
362369
return RfcToBeToJSONTyped(json, false);
363370
}
364371

365-
export function RfcToBeToJSONTyped(value?: Omit<RfcToBe, 'id'|'name'|'draft'|'cluster'|'shepherd'|'iesg_contact'|'assignment_set'|'actionholder_set'|'pending_activities'|'published_at'|'subseries'|'iana_status'|'additional_emails'|'blocking_reasons'> | null, ignoreDiscriminator: boolean = false): any {
372+
export function RfcToBeToJSONTyped(value?: Omit<RfcToBe, 'id'|'name'|'draft'|'cluster'|'shepherd'|'iesg_contact'|'assignment_set'|'actionholder_set'|'pending_activities'|'published_at'|'subseries'|'iana_status'|'additional_emails'|'blocking_reasons'|'stream_manager'> | null, ignoreDiscriminator: boolean = false): any {
366373
if (value == null) {
367374
return value;
368375
}

precomputer/generated/purple_client/models/RfcToBeRequest.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ export interface RfcToBeRequest {
130130
* @memberof RfcToBeRequest
131131
*/
132132
authors: Array<RfcAuthorRequest>;
133+
/**
134+
* Set the document shepherd by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
135+
* @type {number}
136+
* @memberof RfcToBeRequest
137+
*/
138+
shepherdId?: number | null;
139+
/**
140+
* Set the IESG contact by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
141+
* @type {number}
142+
* @memberof RfcToBeRequest
143+
*/
144+
iesgContactId?: number | null;
133145
/**
134146
*
135147
* @type {number}
@@ -160,6 +172,12 @@ export interface RfcToBeRequest {
160172
* @memberof RfcToBeRequest
161173
*/
162174
repository?: string;
175+
/**
176+
* Set the stream manager by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
177+
* @type {number}
178+
* @memberof RfcToBeRequest
179+
*/
180+
streamManagerId?: number | null;
163181
}
164182

165183

@@ -205,10 +223,13 @@ export function RfcToBeRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
205223
'stream': json['stream'],
206224
'publicationStream': json['publication_stream'] == null ? undefined : json['publication_stream'],
207225
'authors': ((json['authors'] as Array<any>).map(RfcAuthorRequestFromJSON)),
226+
'shepherdId': json['shepherd_id'] == null ? undefined : json['shepherd_id'],
227+
'iesgContactId': json['iesg_contact_id'] == null ? undefined : json['iesg_contact_id'],
208228
'rfcNumber': json['rfc_number'] == null ? undefined : json['rfc_number'],
209229
'consensus': json['consensus'] == null ? undefined : json['consensus'],
210230
'ianaStatusSlug': json['iana_status_slug'] == null ? undefined : IanaStatusSlugEnumFromJSON(json['iana_status_slug']),
211231
'repository': json['repository'] == null ? undefined : json['repository'],
232+
'streamManagerId': json['stream_manager_id'] == null ? undefined : json['stream_manager_id'],
212233
};
213234
}
214235

@@ -239,10 +260,13 @@ export function RfcToBeRequestToJSONTyped(value?: RfcToBeRequest | null, ignoreD
239260
'stream': value['stream'],
240261
'publication_stream': value['publicationStream'],
241262
'authors': ((value['authors'] as Array<any>).map(RfcAuthorRequestToJSON)),
263+
'shepherd_id': value['shepherdId'],
264+
'iesg_contact_id': value['iesgContactId'],
242265
'rfc_number': value['rfcNumber'],
243266
'consensus': value['consensus'],
244267
'iana_status_slug': IanaStatusSlugEnumToJSON(value['ianaStatusSlug']),
245268
'repository': value['repository'],
269+
'stream_manager_id': value['streamManagerId'],
246270
};
247271
}
248272

0 commit comments

Comments
 (0)