hanzoai 8.5.912 → 8.5.914

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.
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
15
  import { type RequestArgs, BaseAPI } from '../base';
16
16
  import type { LeaderboardActivityView } from '../models';
17
+ import type { LeaderboardBetaBoard } from '../models';
17
18
  import type { LeaderboardLeaderboardView } from '../models';
18
19
  import type { LeaderboardOptinView } from '../models';
19
20
  import type { LeaderboardOrgOptinReq } from '../models';
@@ -47,6 +48,14 @@ export declare const LeaderboardApiAxiosParamCreator: (configuration?: Configura
47
48
  * @throws {RequiredError}
48
49
  */
49
50
  getLeaderboardActivity: (subject?: string, id?: string, from?: string, to?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
51
+ /**
52
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
53
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
54
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ getLeaderboardBeta: (limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
59
  /**
51
60
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
52
61
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -98,6 +107,14 @@ export declare const LeaderboardApiFp: (configuration?: Configuration) => {
98
107
  * @throws {RequiredError}
99
108
  */
100
109
  getLeaderboardActivity(subject?: string, id?: string, from?: string, to?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardActivityView>>;
110
+ /**
111
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
112
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
113
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ getLeaderboardBeta(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardBetaBoard>>;
101
118
  /**
102
119
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
103
120
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -143,6 +160,14 @@ export declare const LeaderboardApiFactory: (configuration?: Configuration, base
143
160
  * @throws {RequiredError}
144
161
  */
145
162
  getLeaderboardActivity(requestParameters?: LeaderboardApiGetLeaderboardActivityRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardActivityView>;
163
+ /**
164
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
165
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
166
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ getLeaderboardBeta(requestParameters?: LeaderboardApiGetLeaderboardBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardBetaBoard>;
146
171
  /**
147
172
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
148
173
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -229,6 +254,19 @@ export interface LeaderboardApiGetLeaderboardActivityRequest {
229
254
  */
230
255
  readonly to?: string;
231
256
  }
257
+ /**
258
+ * Request parameters for getLeaderboardBeta operation in LeaderboardApi.
259
+ * @export
260
+ * @interface LeaderboardApiGetLeaderboardBetaRequest
261
+ */
262
+ export interface LeaderboardApiGetLeaderboardBetaRequest {
263
+ /**
264
+ * Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
265
+ * @type {number}
266
+ * @memberof LeaderboardApiGetLeaderboardBeta
267
+ */
268
+ readonly limit?: number;
269
+ }
232
270
  /**
233
271
  * Request parameters for putLeaderboardOptin operation in LeaderboardApi.
234
272
  * @export
@@ -280,6 +318,15 @@ export declare class LeaderboardApi extends BaseAPI {
280
318
  * @memberof LeaderboardApi
281
319
  */
282
320
  getLeaderboardActivity(requestParameters?: LeaderboardApiGetLeaderboardActivityRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<LeaderboardActivityView, any, {}>>;
321
+ /**
322
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
323
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
324
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ * @memberof LeaderboardApi
328
+ */
329
+ getLeaderboardBeta(requestParameters?: LeaderboardApiGetLeaderboardBetaRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<LeaderboardBetaBoard, any, {}>>;
283
330
  /**
284
331
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
285
332
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -117,6 +117,38 @@ const LeaderboardApiAxiosParamCreator = function (configuration) {
117
117
  options: localVarRequestOptions,
118
118
  };
119
119
  },
120
+ /**
121
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
122
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
123
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ getLeaderboardBeta: async (limit, options = {}) => {
128
+ const localVarPath = `/v1/leaderboard/beta`;
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
136
+ const localVarHeaderParameter = {};
137
+ const localVarQueryParameter = {};
138
+ // authentication bearer required
139
+ // http bearer authentication required
140
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
141
+ if (limit !== undefined) {
142
+ localVarQueryParameter['limit'] = limit;
143
+ }
144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
147
+ return {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ };
151
+ },
120
152
  /**
121
153
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
122
154
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -253,6 +285,19 @@ const LeaderboardApiFp = function (configuration) {
253
285
  const localVarOperationServerBasePath = base_1.operationServerMap['LeaderboardApi.getLeaderboardActivity']?.[localVarOperationServerIndex]?.url;
254
286
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
255
287
  },
288
+ /**
289
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
290
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
291
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ async getLeaderboardBeta(limit, options) {
296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeaderboardBeta(limit, options);
297
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
298
+ const localVarOperationServerBasePath = base_1.operationServerMap['LeaderboardApi.getLeaderboardBeta']?.[localVarOperationServerIndex]?.url;
299
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
300
+ },
256
301
  /**
257
302
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
258
303
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -321,6 +366,16 @@ const LeaderboardApiFactory = function (configuration, basePath, axios) {
321
366
  getLeaderboardActivity(requestParameters = {}, options) {
322
367
  return localVarFp.getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(axios, basePath));
323
368
  },
369
+ /**
370
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
371
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
372
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ getLeaderboardBeta(requestParameters = {}, options) {
377
+ return localVarFp.getLeaderboardBeta(requestParameters.limit, options).then((request) => request(axios, basePath));
378
+ },
324
379
  /**
325
380
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
326
381
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -382,6 +437,17 @@ class LeaderboardApi extends base_1.BaseAPI {
382
437
  getLeaderboardActivity(requestParameters = {}, options) {
383
438
  return (0, exports.LeaderboardApiFp)(this.configuration).getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(this.axios, this.basePath));
384
439
  }
440
+ /**
441
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
442
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
443
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ * @memberof LeaderboardApi
447
+ */
448
+ getLeaderboardBeta(requestParameters = {}, options) {
449
+ return (0, exports.LeaderboardApiFp)(this.configuration).getLeaderboardBeta(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
450
+ }
385
451
  /**
386
452
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
387
453
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { LeaderboardActivityView } from '../models';
16
+ import type { LeaderboardBetaBoard } from '../models';
16
17
  import type { LeaderboardLeaderboardView } from '../models';
17
18
  import type { LeaderboardOptinView } from '../models';
18
19
  import type { LeaderboardOrgOptinReq } from '../models';
@@ -46,6 +47,14 @@ export declare const LeaderboardApiAxiosParamCreator: (configuration?: Configura
46
47
  * @throws {RequiredError}
47
48
  */
48
49
  getLeaderboardActivity: (subject?: string, id?: string, from?: string, to?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
52
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
53
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getLeaderboardBeta: (limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
58
  /**
50
59
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
51
60
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -97,6 +106,14 @@ export declare const LeaderboardApiFp: (configuration?: Configuration) => {
97
106
  * @throws {RequiredError}
98
107
  */
99
108
  getLeaderboardActivity(subject?: string, id?: string, from?: string, to?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardActivityView>>;
109
+ /**
110
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
111
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
112
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ getLeaderboardBeta(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardBetaBoard>>;
100
117
  /**
101
118
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
102
119
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -142,6 +159,14 @@ export declare const LeaderboardApiFactory: (configuration?: Configuration, base
142
159
  * @throws {RequiredError}
143
160
  */
144
161
  getLeaderboardActivity(requestParameters?: LeaderboardApiGetLeaderboardActivityRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardActivityView>;
162
+ /**
163
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
164
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
165
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ getLeaderboardBeta(requestParameters?: LeaderboardApiGetLeaderboardBetaRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardBetaBoard>;
145
170
  /**
146
171
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
147
172
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -228,6 +253,19 @@ export interface LeaderboardApiGetLeaderboardActivityRequest {
228
253
  */
229
254
  readonly to?: string;
230
255
  }
256
+ /**
257
+ * Request parameters for getLeaderboardBeta operation in LeaderboardApi.
258
+ * @export
259
+ * @interface LeaderboardApiGetLeaderboardBetaRequest
260
+ */
261
+ export interface LeaderboardApiGetLeaderboardBetaRequest {
262
+ /**
263
+ * Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
264
+ * @type {number}
265
+ * @memberof LeaderboardApiGetLeaderboardBeta
266
+ */
267
+ readonly limit?: number;
268
+ }
231
269
  /**
232
270
  * Request parameters for putLeaderboardOptin operation in LeaderboardApi.
233
271
  * @export
@@ -279,6 +317,15 @@ export declare class LeaderboardApi extends BaseAPI {
279
317
  * @memberof LeaderboardApi
280
318
  */
281
319
  getLeaderboardActivity(requestParameters?: LeaderboardApiGetLeaderboardActivityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaderboardActivityView, any, {}>>;
320
+ /**
321
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
322
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
323
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof LeaderboardApi
327
+ */
328
+ getLeaderboardBeta(requestParameters?: LeaderboardApiGetLeaderboardBetaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaderboardBetaBoard, any, {}>>;
282
329
  /**
283
330
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
284
331
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -111,6 +111,38 @@ export const LeaderboardApiAxiosParamCreator = function (configuration) {
111
111
  options: localVarRequestOptions,
112
112
  };
113
113
  },
114
+ /**
115
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
116
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
117
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ getLeaderboardBeta: async (limit, options = {}) => {
122
+ const localVarPath = `/v1/leaderboard/beta`;
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
135
+ if (limit !== undefined) {
136
+ localVarQueryParameter['limit'] = limit;
137
+ }
138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
141
+ return {
142
+ url: toPathString(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ };
145
+ },
114
146
  /**
115
147
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
116
148
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -246,6 +278,19 @@ export const LeaderboardApiFp = function (configuration) {
246
278
  const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.getLeaderboardActivity']?.[localVarOperationServerIndex]?.url;
247
279
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
248
280
  },
281
+ /**
282
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
283
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
284
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ async getLeaderboardBeta(limit, options) {
289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeaderboardBeta(limit, options);
290
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
291
+ const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.getLeaderboardBeta']?.[localVarOperationServerIndex]?.url;
292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
293
+ },
249
294
  /**
250
295
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
251
296
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -313,6 +358,16 @@ export const LeaderboardApiFactory = function (configuration, basePath, axios) {
313
358
  getLeaderboardActivity(requestParameters = {}, options) {
314
359
  return localVarFp.getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(axios, basePath));
315
360
  },
361
+ /**
362
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
363
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
364
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ getLeaderboardBeta(requestParameters = {}, options) {
369
+ return localVarFp.getLeaderboardBeta(requestParameters.limit, options).then((request) => request(axios, basePath));
370
+ },
316
371
  /**
317
372
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
318
373
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -373,6 +428,17 @@ export class LeaderboardApi extends BaseAPI {
373
428
  getLeaderboardActivity(requestParameters = {}, options) {
374
429
  return LeaderboardApiFp(this.configuration).getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(this.axios, this.basePath));
375
430
  }
431
+ /**
432
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
433
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
434
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ * @memberof LeaderboardApi
438
+ */
439
+ getLeaderboardBeta(requestParameters = {}, options) {
440
+ return LeaderboardApiFp(this.configuration).getLeaderboardBeta(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
441
+ }
376
442
  /**
377
443
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
378
444
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -1245,6 +1245,8 @@ export * from './layout';
1245
1245
  export * from './leaderboard-activity-point';
1246
1246
  export * from './leaderboard-activity-totals';
1247
1247
  export * from './leaderboard-activity-view';
1248
+ export * from './leaderboard-beta-board';
1249
+ export * from './leaderboard-beta-row';
1248
1250
  export * from './leaderboard-leaderboard-row';
1249
1251
  export * from './leaderboard-leaderboard-view';
1250
1252
  export * from './leaderboard-optin-view';
@@ -1245,6 +1245,8 @@ export * from './layout';
1245
1245
  export * from './leaderboard-activity-point';
1246
1246
  export * from './leaderboard-activity-totals';
1247
1247
  export * from './leaderboard-activity-view';
1248
+ export * from './leaderboard-beta-board';
1249
+ export * from './leaderboard-beta-row';
1248
1250
  export * from './leaderboard-leaderboard-row';
1249
1251
  export * from './leaderboard-leaderboard-view';
1250
1252
  export * from './leaderboard-optin-view';
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Hanzo Cloud API
3
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LeaderboardBetaRow } from './leaderboard-beta-row';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeaderboardBetaBoard
17
+ */
18
+ export interface LeaderboardBetaBoard {
19
+ /**
20
+ * Of is how many records are on the waitlist.
21
+ * @type {number}
22
+ * @memberof LeaderboardBetaBoard
23
+ */
24
+ 'of'?: number;
25
+ /**
26
+ * Referrals is whether referrals were counted; false when the referral service did not answer, and no record\'s score has them then.
27
+ * @type {boolean}
28
+ * @memberof LeaderboardBetaBoard
29
+ */
30
+ 'referrals'?: boolean;
31
+ /**
32
+ * Rows are the top of the waitlist, best first.
33
+ * @type {Array<LeaderboardBetaRow>}
34
+ * @memberof LeaderboardBetaBoard
35
+ */
36
+ 'rows'?: Array<LeaderboardBetaRow>;
37
+ /**
38
+ * Tokens is whether token usage was counted; false when the warehouse did not answer, and no record\'s score has it then.
39
+ * @type {boolean}
40
+ * @memberof LeaderboardBetaBoard
41
+ */
42
+ 'tokens'?: boolean;
43
+ /**
44
+ * You is the caller\'s own row wherever it ranks; null when the caller holds no record.
45
+ * @type {LeaderboardBetaRow}
46
+ * @memberof LeaderboardBetaBoard
47
+ */
48
+ 'you'?: LeaderboardBetaRow;
49
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hanzo Cloud API
5
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Hanzo Cloud API
3
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LeaderboardBetaRow
16
+ */
17
+ export interface LeaderboardBetaRow {
18
+ /**
19
+ * Applied is the day the record began, 2006-01-02.
20
+ * @type {string}
21
+ * @memberof LeaderboardBetaRow
22
+ */
23
+ 'applied'?: string;
24
+ /**
25
+ * Name is the handle its owner listed under on the public board; null for a person who did not opt in, whom the page calls a builder. The caller\'s own row is always named.
26
+ * @type {string}
27
+ * @memberof LeaderboardBetaRow
28
+ */
29
+ 'name'?: string;
30
+ /**
31
+ * Qualified is how many of them have made metered spend.
32
+ * @type {number}
33
+ * @memberof LeaderboardBetaRow
34
+ */
35
+ 'qualified'?: number;
36
+ /**
37
+ * Rank is the record\'s place, 1 first.
38
+ * @type {number}
39
+ * @memberof LeaderboardBetaRow
40
+ */
41
+ 'rank'?: number;
42
+ /**
43
+ * Referrals is how many orgs signed up with the record\'s referral code.
44
+ * @type {number}
45
+ * @memberof LeaderboardBetaRow
46
+ */
47
+ 'referrals'?: number;
48
+ /**
49
+ * Score is what the row is ranked by: points, referrals, qualified referrals and tokens, as GET /v1/leaderboard/beta\'s description states.
50
+ * @type {number}
51
+ * @memberof LeaderboardBetaRow
52
+ */
53
+ 'score'?: number;
54
+ /**
55
+ * Tokens is the person\'s all-time token usage as a range: 0, <1M, 1M-10M, 10M-100M, 100M-1B or 1B+.
56
+ * @type {string}
57
+ * @memberof LeaderboardBetaRow
58
+ */
59
+ 'tokens'?: string;
60
+ /**
61
+ * TokensUsed is the exact count, on a named row and the caller\'s; absent on every other.
62
+ * @type {number}
63
+ * @memberof LeaderboardBetaRow
64
+ */
65
+ 'tokensUsed'?: number;
66
+ /**
67
+ * You marks the caller\'s own row.
68
+ * @type {boolean}
69
+ * @memberof LeaderboardBetaRow
70
+ */
71
+ 'you'?: boolean;
72
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hanzo Cloud API
5
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -60,7 +60,7 @@ export interface MarketingBeta {
60
60
  */
61
61
  'of'?: number;
62
62
  /**
63
- * Place is the record\'s place on the waitlist, 1 first; 0 with no record.
63
+ * Place is the record\'s place on the waitlist, 1 first; 0 with no record, or when the board did not answer.
64
64
  * @type {number}
65
65
  * @memberof MarketingBeta
66
66
  */
@@ -85,6 +85,12 @@ export interface MarketingBeta {
85
85
  'requested'?: {
86
86
  [key: string]: string;
87
87
  };
88
+ /**
89
+ * Score is what the waitlist ranks the record by: Points, the account\'s referrals and its token usage (GET /v1/leaderboard/beta says how). 0 with no record, or when the board did not answer.
90
+ * @type {number}
91
+ * @memberof MarketingBeta
92
+ */
93
+ 'score'?: number;
88
94
  /**
89
95
  * Since is when the record began, as the CRM stamped it; empty with no record.
90
96
  * @type {string}
@@ -1245,6 +1245,8 @@ export * from './layout';
1245
1245
  export * from './leaderboard-activity-point';
1246
1246
  export * from './leaderboard-activity-totals';
1247
1247
  export * from './leaderboard-activity-view';
1248
+ export * from './leaderboard-beta-board';
1249
+ export * from './leaderboard-beta-row';
1248
1250
  export * from './leaderboard-leaderboard-row';
1249
1251
  export * from './leaderboard-leaderboard-view';
1250
1252
  export * from './leaderboard-optin-view';
@@ -1261,6 +1261,8 @@ __exportStar(require("./layout"), exports);
1261
1261
  __exportStar(require("./leaderboard-activity-point"), exports);
1262
1262
  __exportStar(require("./leaderboard-activity-totals"), exports);
1263
1263
  __exportStar(require("./leaderboard-activity-view"), exports);
1264
+ __exportStar(require("./leaderboard-beta-board"), exports);
1265
+ __exportStar(require("./leaderboard-beta-row"), exports);
1264
1266
  __exportStar(require("./leaderboard-leaderboard-row"), exports);
1265
1267
  __exportStar(require("./leaderboard-leaderboard-view"), exports);
1266
1268
  __exportStar(require("./leaderboard-optin-view"), exports);
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Hanzo Cloud API
3
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LeaderboardBetaRow } from './leaderboard-beta-row';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeaderboardBetaBoard
17
+ */
18
+ export interface LeaderboardBetaBoard {
19
+ /**
20
+ * Of is how many records are on the waitlist.
21
+ * @type {number}
22
+ * @memberof LeaderboardBetaBoard
23
+ */
24
+ 'of'?: number;
25
+ /**
26
+ * Referrals is whether referrals were counted; false when the referral service did not answer, and no record\'s score has them then.
27
+ * @type {boolean}
28
+ * @memberof LeaderboardBetaBoard
29
+ */
30
+ 'referrals'?: boolean;
31
+ /**
32
+ * Rows are the top of the waitlist, best first.
33
+ * @type {Array<LeaderboardBetaRow>}
34
+ * @memberof LeaderboardBetaBoard
35
+ */
36
+ 'rows'?: Array<LeaderboardBetaRow>;
37
+ /**
38
+ * Tokens is whether token usage was counted; false when the warehouse did not answer, and no record\'s score has it then.
39
+ * @type {boolean}
40
+ * @memberof LeaderboardBetaBoard
41
+ */
42
+ 'tokens'?: boolean;
43
+ /**
44
+ * You is the caller\'s own row wherever it ranks; null when the caller holds no record.
45
+ * @type {LeaderboardBetaRow}
46
+ * @memberof LeaderboardBetaBoard
47
+ */
48
+ 'you'?: LeaderboardBetaRow;
49
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Hanzo Cloud API
6
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Hanzo Cloud API
3
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LeaderboardBetaRow
16
+ */
17
+ export interface LeaderboardBetaRow {
18
+ /**
19
+ * Applied is the day the record began, 2006-01-02.
20
+ * @type {string}
21
+ * @memberof LeaderboardBetaRow
22
+ */
23
+ 'applied'?: string;
24
+ /**
25
+ * Name is the handle its owner listed under on the public board; null for a person who did not opt in, whom the page calls a builder. The caller\'s own row is always named.
26
+ * @type {string}
27
+ * @memberof LeaderboardBetaRow
28
+ */
29
+ 'name'?: string;
30
+ /**
31
+ * Qualified is how many of them have made metered spend.
32
+ * @type {number}
33
+ * @memberof LeaderboardBetaRow
34
+ */
35
+ 'qualified'?: number;
36
+ /**
37
+ * Rank is the record\'s place, 1 first.
38
+ * @type {number}
39
+ * @memberof LeaderboardBetaRow
40
+ */
41
+ 'rank'?: number;
42
+ /**
43
+ * Referrals is how many orgs signed up with the record\'s referral code.
44
+ * @type {number}
45
+ * @memberof LeaderboardBetaRow
46
+ */
47
+ 'referrals'?: number;
48
+ /**
49
+ * Score is what the row is ranked by: points, referrals, qualified referrals and tokens, as GET /v1/leaderboard/beta\'s description states.
50
+ * @type {number}
51
+ * @memberof LeaderboardBetaRow
52
+ */
53
+ 'score'?: number;
54
+ /**
55
+ * Tokens is the person\'s all-time token usage as a range: 0, <1M, 1M-10M, 10M-100M, 100M-1B or 1B+.
56
+ * @type {string}
57
+ * @memberof LeaderboardBetaRow
58
+ */
59
+ 'tokens'?: string;
60
+ /**
61
+ * TokensUsed is the exact count, on a named row and the caller\'s; absent on every other.
62
+ * @type {number}
63
+ * @memberof LeaderboardBetaRow
64
+ */
65
+ 'tokensUsed'?: number;
66
+ /**
67
+ * You marks the caller\'s own row.
68
+ * @type {boolean}
69
+ * @memberof LeaderboardBetaRow
70
+ */
71
+ 'you'?: boolean;
72
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Hanzo Cloud API
6
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -60,7 +60,7 @@ export interface MarketingBeta {
60
60
  */
61
61
  'of'?: number;
62
62
  /**
63
- * Place is the record\'s place on the waitlist, 1 first; 0 with no record.
63
+ * Place is the record\'s place on the waitlist, 1 first; 0 with no record, or when the board did not answer.
64
64
  * @type {number}
65
65
  * @memberof MarketingBeta
66
66
  */
@@ -85,6 +85,12 @@ export interface MarketingBeta {
85
85
  'requested'?: {
86
86
  [key: string]: string;
87
87
  };
88
+ /**
89
+ * Score is what the waitlist ranks the record by: Points, the account\'s referrals and its token usage (GET /v1/leaderboard/beta says how). 0 with no record, or when the board did not answer.
90
+ * @type {number}
91
+ * @memberof MarketingBeta
92
+ */
93
+ 'score'?: number;
88
94
  /**
89
95
  * Since is when the record began, as the CRM stamped it; empty with no record.
90
96
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanzoai",
3
- "version": "8.5.912",
3
+ "version": "8.5.914",
4
4
  "description": "The official TypeScript library for the Hanzo API",
5
5
  "author": "Hanzo <dev@hanzo.ai>",
6
6
  "license": "Apache-2.0",
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { LeaderboardActivityView } from '../models';
26
26
  // @ts-ignore
27
+ import type { LeaderboardBetaBoard } from '../models';
28
+ // @ts-ignore
27
29
  import type { LeaderboardLeaderboardView } from '../models';
28
30
  // @ts-ignore
29
31
  import type { LeaderboardOptinView } from '../models';
@@ -142,6 +144,45 @@ export const LeaderboardApiAxiosParamCreator = function (configuration?: Configu
142
144
 
143
145
 
144
146
 
147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
150
+
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ },
156
+ /**
157
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
158
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
159
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ getLeaderboardBeta: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
164
+ const localVarPath = `/v1/leaderboard/beta`;
165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
167
+ let baseOptions;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ }
171
+
172
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
173
+ const localVarHeaderParameter = {} as any;
174
+ const localVarQueryParameter = {} as any;
175
+
176
+ // authentication bearer required
177
+ // http bearer authentication required
178
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
179
+
180
+ if (limit !== undefined) {
181
+ localVarQueryParameter['limit'] = limit;
182
+ }
183
+
184
+
185
+
145
186
  setSearchParams(localVarUrlObj, localVarQueryParameter);
146
187
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147
188
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -307,6 +348,19 @@ export const LeaderboardApiFp = function(configuration?: Configuration) {
307
348
  const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.getLeaderboardActivity']?.[localVarOperationServerIndex]?.url;
308
349
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
350
  },
351
+ /**
352
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
353
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
354
+ * @param {number} [limit] Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ async getLeaderboardBeta(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardBetaBoard>> {
359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeaderboardBeta(limit, options);
360
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
361
+ const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.getLeaderboardBeta']?.[localVarOperationServerIndex]?.url;
362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
363
+ },
310
364
  /**
311
365
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
312
366
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -375,6 +429,16 @@ export const LeaderboardApiFactory = function (configuration?: Configuration, ba
375
429
  getLeaderboardActivity(requestParameters: LeaderboardApiGetLeaderboardActivityRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardActivityView> {
376
430
  return localVarFp.getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(axios, basePath));
377
431
  },
432
+ /**
433
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
434
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
435
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getLeaderboardBeta(requestParameters: LeaderboardApiGetLeaderboardBetaRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardBetaBoard> {
440
+ return localVarFp.getLeaderboardBeta(requestParameters.limit, options).then((request) => request(axios, basePath));
441
+ },
378
442
  /**
379
443
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
380
444
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -477,6 +541,20 @@ export interface LeaderboardApiGetLeaderboardActivityRequest {
477
541
  readonly to?: string
478
542
  }
479
543
 
544
+ /**
545
+ * Request parameters for getLeaderboardBeta operation in LeaderboardApi.
546
+ * @export
547
+ * @interface LeaderboardApiGetLeaderboardBetaRequest
548
+ */
549
+ export interface LeaderboardApiGetLeaderboardBetaRequest {
550
+ /**
551
+ * Limit caps the rows, clamped to 1..100. Defaults to 25, which is also what a non-positive value takes.
552
+ * @type {number}
553
+ * @memberof LeaderboardApiGetLeaderboardBeta
554
+ */
555
+ readonly limit?: number
556
+ }
557
+
480
558
  /**
481
559
  * Request parameters for putLeaderboardOptin operation in LeaderboardApi.
482
560
  * @export
@@ -536,6 +614,18 @@ export class LeaderboardApi extends BaseAPI {
536
614
  return LeaderboardApiFp(this.configuration).getLeaderboardActivity(requestParameters.subject, requestParameters.id, requestParameters.from, requestParameters.to, options).then((request) => request(this.axios, this.basePath));
537
615
  }
538
616
 
617
+ /**
618
+ * Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time. Ties go to the earlier record. Share clicks count for nothing. A row is named only for a person who opted into the public board (PUT /v1/leaderboard/optin); the caller always sees their own row named. Tokens are a range on every row and exact on a named row and the caller\'s. `tokens` and `referrals` say whether the warehouse and the referral service answered; a term that did not is left out of every score alike. A named handler, not a closure, so zipdoc can lift this prose into the registry.
619
+ * @summary Ranks everyone on the hanzo.ai/beta waitlist by one score: the record\'s verified-action points, plus 1 per org that signed up with its referral code, plus 20 per such org that has made metered spend, plus 1 per 100,000 tokens the person used, all time.
620
+ * @param {LeaderboardApiGetLeaderboardBetaRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof LeaderboardApi
624
+ */
625
+ public getLeaderboardBeta(requestParameters: LeaderboardApiGetLeaderboardBetaRequest = {}, options?: RawAxiosRequestConfig) {
626
+ return LeaderboardApiFp(this.configuration).getLeaderboardBeta(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+
539
629
  /**
540
630
  * Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.
541
631
  * @summary Returns the caller\'s own public-listing preference and their org\'s, each with whether the caller may change it.
@@ -1245,6 +1245,8 @@ export * from './layout';
1245
1245
  export * from './leaderboard-activity-point';
1246
1246
  export * from './leaderboard-activity-totals';
1247
1247
  export * from './leaderboard-activity-view';
1248
+ export * from './leaderboard-beta-board';
1249
+ export * from './leaderboard-beta-row';
1248
1250
  export * from './leaderboard-leaderboard-row';
1249
1251
  export * from './leaderboard-leaderboard-view';
1250
1252
  export * from './leaderboard-optin-view';
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hanzo Cloud API
5
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { LeaderboardBetaRow } from './leaderboard-beta-row';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface LeaderboardBetaBoard
24
+ */
25
+ export interface LeaderboardBetaBoard {
26
+ /**
27
+ * Of is how many records are on the waitlist.
28
+ * @type {number}
29
+ * @memberof LeaderboardBetaBoard
30
+ */
31
+ 'of'?: number;
32
+ /**
33
+ * Referrals is whether referrals were counted; false when the referral service did not answer, and no record\'s score has them then.
34
+ * @type {boolean}
35
+ * @memberof LeaderboardBetaBoard
36
+ */
37
+ 'referrals'?: boolean;
38
+ /**
39
+ * Rows are the top of the waitlist, best first.
40
+ * @type {Array<LeaderboardBetaRow>}
41
+ * @memberof LeaderboardBetaBoard
42
+ */
43
+ 'rows'?: Array<LeaderboardBetaRow>;
44
+ /**
45
+ * Tokens is whether token usage was counted; false when the warehouse did not answer, and no record\'s score has it then.
46
+ * @type {boolean}
47
+ * @memberof LeaderboardBetaBoard
48
+ */
49
+ 'tokens'?: boolean;
50
+ /**
51
+ * You is the caller\'s own row wherever it ranks; null when the caller holds no record.
52
+ * @type {LeaderboardBetaRow}
53
+ * @memberof LeaderboardBetaBoard
54
+ */
55
+ 'you'?: LeaderboardBetaRow;
56
+ }
57
+
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hanzo Cloud API
5
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface LeaderboardBetaRow
21
+ */
22
+ export interface LeaderboardBetaRow {
23
+ /**
24
+ * Applied is the day the record began, 2006-01-02.
25
+ * @type {string}
26
+ * @memberof LeaderboardBetaRow
27
+ */
28
+ 'applied'?: string;
29
+ /**
30
+ * Name is the handle its owner listed under on the public board; null for a person who did not opt in, whom the page calls a builder. The caller\'s own row is always named.
31
+ * @type {string}
32
+ * @memberof LeaderboardBetaRow
33
+ */
34
+ 'name'?: string;
35
+ /**
36
+ * Qualified is how many of them have made metered spend.
37
+ * @type {number}
38
+ * @memberof LeaderboardBetaRow
39
+ */
40
+ 'qualified'?: number;
41
+ /**
42
+ * Rank is the record\'s place, 1 first.
43
+ * @type {number}
44
+ * @memberof LeaderboardBetaRow
45
+ */
46
+ 'rank'?: number;
47
+ /**
48
+ * Referrals is how many orgs signed up with the record\'s referral code.
49
+ * @type {number}
50
+ * @memberof LeaderboardBetaRow
51
+ */
52
+ 'referrals'?: number;
53
+ /**
54
+ * Score is what the row is ranked by: points, referrals, qualified referrals and tokens, as GET /v1/leaderboard/beta\'s description states.
55
+ * @type {number}
56
+ * @memberof LeaderboardBetaRow
57
+ */
58
+ 'score'?: number;
59
+ /**
60
+ * Tokens is the person\'s all-time token usage as a range: 0, <1M, 1M-10M, 10M-100M, 100M-1B or 1B+.
61
+ * @type {string}
62
+ * @memberof LeaderboardBetaRow
63
+ */
64
+ 'tokens'?: string;
65
+ /**
66
+ * TokensUsed is the exact count, on a named row and the caller\'s; absent on every other.
67
+ * @type {number}
68
+ * @memberof LeaderboardBetaRow
69
+ */
70
+ 'tokensUsed'?: number;
71
+ /**
72
+ * You marks the caller\'s own row.
73
+ * @type {boolean}
74
+ * @memberof LeaderboardBetaRow
75
+ */
76
+ 'you'?: boolean;
77
+ }
78
+
@@ -69,7 +69,7 @@ export interface MarketingBeta {
69
69
  */
70
70
  'of'?: number;
71
71
  /**
72
- * Place is the record\'s place on the waitlist, 1 first; 0 with no record.
72
+ * Place is the record\'s place on the waitlist, 1 first; 0 with no record, or when the board did not answer.
73
73
  * @type {number}
74
74
  * @memberof MarketingBeta
75
75
  */
@@ -92,6 +92,12 @@ export interface MarketingBeta {
92
92
  * @memberof MarketingBeta
93
93
  */
94
94
  'requested'?: { [key: string]: string; };
95
+ /**
96
+ * Score is what the waitlist ranks the record by: Points, the account\'s referrals and its token usage (GET /v1/leaderboard/beta says how). 0 with no record, or when the board did not answer.
97
+ * @type {number}
98
+ * @memberof MarketingBeta
99
+ */
100
+ 'score'?: number;
95
101
  /**
96
102
  * Since is when the record began, as the CRM stamped it; empty with no record.
97
103
  * @type {string}