|
| 1 | +/* Options: |
| 2 | +Date: 2024-06-06 02:20:36 |
| 3 | +Version: 8.23 |
| 4 | +Tip: To override a DTO option, remove "//" prefix before updating |
| 5 | +BaseUrl: https://localhost:5001 |
| 6 | +
|
| 7 | +//AddServiceStackTypes: True |
| 8 | +//AddDocAnnotations: True |
| 9 | +//AddDescriptionAsComments: True |
| 10 | +IncludeTypes: QueryUserApiKeys.*,CreateUserApiKey.*,UpdateUserApiKey.*,DeleteUserApiKey.* |
| 11 | +//ExcludeTypes: |
| 12 | +//DefaultImports: |
| 13 | +*/ |
| 14 | + |
| 15 | +"use strict"; |
| 16 | +export class ResponseError { |
| 17 | + /** @param {{errorCode?:string,fieldName?:string,message?:string,meta?:{ [index: string]: string; }}} [init] */ |
| 18 | + constructor(init) { Object.assign(this, init) } |
| 19 | + /** @type {string} */ |
| 20 | + errorCode; |
| 21 | + /** @type {string} */ |
| 22 | + fieldName; |
| 23 | + /** @type {string} */ |
| 24 | + message; |
| 25 | + /** @type {{ [index: string]: string; }} */ |
| 26 | + meta; |
| 27 | +} |
| 28 | +export class ResponseStatus { |
| 29 | + /** @param {{errorCode?:string,message?:string,stackTrace?:string,errors?:ResponseError[],meta?:{ [index: string]: string; }}} [init] */ |
| 30 | + constructor(init) { Object.assign(this, init) } |
| 31 | + /** @type {string} */ |
| 32 | + errorCode; |
| 33 | + /** @type {string} */ |
| 34 | + message; |
| 35 | + /** @type {string} */ |
| 36 | + stackTrace; |
| 37 | + /** @type {ResponseError[]} */ |
| 38 | + errors; |
| 39 | + /** @type {{ [index: string]: string; }} */ |
| 40 | + meta; |
| 41 | +} |
| 42 | +export class PartialApiKey { |
| 43 | + /** @param {{id?:number,name?:string,userId?:string,userName?:string,visibleKey?:string,environment?:string,createdDate?:string,expiryDate?:string,cancelledDate?:string,lastUsedDate?:string,scopes?:string[],features?:string[],restrictTo?:string[],notes?:string,refId?:number,refIdStr?:string,meta?:{ [index: string]: string; },active?:boolean}} [init] */ |
| 44 | + constructor(init) { Object.assign(this, init) } |
| 45 | + /** @type {number} */ |
| 46 | + id; |
| 47 | + /** @type {string} */ |
| 48 | + name; |
| 49 | + /** @type {string} */ |
| 50 | + userId; |
| 51 | + /** @type {string} */ |
| 52 | + userName; |
| 53 | + /** @type {string} */ |
| 54 | + visibleKey; |
| 55 | + /** @type {string} */ |
| 56 | + environment; |
| 57 | + /** @type {string} */ |
| 58 | + createdDate; |
| 59 | + /** @type {?string} */ |
| 60 | + expiryDate; |
| 61 | + /** @type {?string} */ |
| 62 | + cancelledDate; |
| 63 | + /** @type {?string} */ |
| 64 | + lastUsedDate; |
| 65 | + /** @type {string[]} */ |
| 66 | + scopes; |
| 67 | + /** @type {string[]} */ |
| 68 | + features; |
| 69 | + /** @type {string[]} */ |
| 70 | + restrictTo; |
| 71 | + /** @type {string} */ |
| 72 | + notes; |
| 73 | + /** @type {?number} */ |
| 74 | + refId; |
| 75 | + /** @type {string} */ |
| 76 | + refIdStr; |
| 77 | + /** @type {{ [index: string]: string; }} */ |
| 78 | + meta; |
| 79 | + /** @type {boolean} */ |
| 80 | + active; |
| 81 | +} |
| 82 | +export class UserApiKeysResponse { |
| 83 | + /** @param {{results?:PartialApiKey[],responseStatus?:ResponseStatus}} [init] */ |
| 84 | + constructor(init) { Object.assign(this, init) } |
| 85 | + /** @type {PartialApiKey[]} */ |
| 86 | + results; |
| 87 | + /** @type {ResponseStatus} */ |
| 88 | + responseStatus; |
| 89 | +} |
| 90 | +export class UserApiKeyResponse { |
| 91 | + /** @param {{result?:string,responseStatus?:ResponseStatus}} [init] */ |
| 92 | + constructor(init) { Object.assign(this, init) } |
| 93 | + /** @type {string} */ |
| 94 | + result; |
| 95 | + /** @type {ResponseStatus} */ |
| 96 | + responseStatus; |
| 97 | +} |
| 98 | +export class EmptyResponse { |
| 99 | + /** @param {{responseStatus?:ResponseStatus}} [init] */ |
| 100 | + constructor(init) { Object.assign(this, init) } |
| 101 | + /** @type {ResponseStatus} */ |
| 102 | + responseStatus; |
| 103 | +} |
| 104 | +export class QueryUserApiKeys { |
| 105 | + /** @param {{id?:number,search?:string,orderBy?:string,skip?:number,take?:number}} [init] */ |
| 106 | + constructor(init) { Object.assign(this, init) } |
| 107 | + /** @type {?number} */ |
| 108 | + id; |
| 109 | + /** @type {string} */ |
| 110 | + search; |
| 111 | + /** @type {string} */ |
| 112 | + orderBy; |
| 113 | + /** @type {?number} */ |
| 114 | + skip; |
| 115 | + /** @type {?number} */ |
| 116 | + take; |
| 117 | + getTypeName() { return 'QueryUserApiKeys' } |
| 118 | + getMethod() { return 'GET' } |
| 119 | + createResponse() { return new UserApiKeysResponse() } |
| 120 | +} |
| 121 | +export class CreateUserApiKey { |
| 122 | + /** @param {{name?:string,scopes?:string[],features?:string[],restrictTo?:string[],expiryDate?:string,notes?:string,refId?:number,refIdStr?:string,meta?:{ [index: string]: string; }}} [init] */ |
| 123 | + constructor(init) { Object.assign(this, init) } |
| 124 | + /** @type {string} */ |
| 125 | + name; |
| 126 | + /** @type {string[]} */ |
| 127 | + scopes; |
| 128 | + /** @type {string[]} */ |
| 129 | + features; |
| 130 | + /** @type {string[]} */ |
| 131 | + restrictTo; |
| 132 | + /** @type {?string} */ |
| 133 | + expiryDate; |
| 134 | + /** @type {string} */ |
| 135 | + notes; |
| 136 | + /** @type {?number} */ |
| 137 | + refId; |
| 138 | + /** @type {string} */ |
| 139 | + refIdStr; |
| 140 | + /** @type {{ [index: string]: string; }} */ |
| 141 | + meta; |
| 142 | + getTypeName() { return 'CreateUserApiKey' } |
| 143 | + getMethod() { return 'POST' } |
| 144 | + createResponse() { return new UserApiKeyResponse() } |
| 145 | +} |
| 146 | +export class UpdateUserApiKey { |
| 147 | + /** @param {{id?:number,name?:string,scopes?:string[],features?:string[],restrictTo?:string[],expiryDate?:string,cancelledDate?:string,notes?:string,refId?:number,refIdStr?:string,meta?:{ [index: string]: string; },reset?:string[]}} [init] */ |
| 148 | + constructor(init) { Object.assign(this, init) } |
| 149 | + /** @type {number} */ |
| 150 | + id; |
| 151 | + /** @type {string} */ |
| 152 | + name; |
| 153 | + /** @type {string[]} */ |
| 154 | + scopes; |
| 155 | + /** @type {string[]} */ |
| 156 | + features; |
| 157 | + /** @type {string[]} */ |
| 158 | + restrictTo; |
| 159 | + /** @type {?string} */ |
| 160 | + expiryDate; |
| 161 | + /** @type {?string} */ |
| 162 | + cancelledDate; |
| 163 | + /** @type {string} */ |
| 164 | + notes; |
| 165 | + /** @type {?number} */ |
| 166 | + refId; |
| 167 | + /** @type {string} */ |
| 168 | + refIdStr; |
| 169 | + /** @type {{ [index: string]: string; }} */ |
| 170 | + meta; |
| 171 | + /** @type {string[]} */ |
| 172 | + reset; |
| 173 | + getTypeName() { return 'UpdateUserApiKey' } |
| 174 | + getMethod() { return 'PATCH' } |
| 175 | + createResponse() { return new EmptyResponse() } |
| 176 | +} |
| 177 | +export class DeleteUserApiKey { |
| 178 | + /** @param {{id?:number}} [init] */ |
| 179 | + constructor(init) { Object.assign(this, init) } |
| 180 | + /** @type {?number} */ |
| 181 | + id; |
| 182 | + getTypeName() { return 'DeleteUserApiKey' } |
| 183 | + getMethod() { return 'DELETE' } |
| 184 | + createResponse() { return new EmptyResponse() } |
| 185 | +} |
0 commit comments