@gbg/go-core 0.0.1-alpha.24 → 0.0.1-alpha.26
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.
- package/FUNCTIONS.md +1 -7
- package/README.md +14 -43
- package/dist/commonjs/funcs/tokens-generate.d.ts +2 -2
- package/dist/commonjs/funcs/tokens-generate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokens-generate.js +7 -9
- package/dist/commonjs/funcs/tokens-generate.js.map +1 -1
- package/dist/commonjs/hooks/registration.js +4 -4
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/hooks/x-gbg-source.d.ts +36 -0
- package/dist/commonjs/hooks/x-gbg-source.d.ts.map +1 -0
- package/dist/commonjs/hooks/x-gbg-source.js +41 -0
- package/dist/commonjs/hooks/x-gbg-source.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.js +12 -12
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +3 -3
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/matchers.js +3 -3
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +1 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +18 -0
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.js +7 -0
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +50 -16
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/client-credentials-grant-request.d.ts +25 -0
- package/dist/commonjs/models/client-credentials-grant-request.d.ts.map +1 -0
- package/dist/commonjs/models/client-credentials-grant-request.js +58 -0
- package/dist/commonjs/models/client-credentials-grant-request.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.d.ts +41 -12
- package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.js +45 -16
- package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts +32 -0
- package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{post-auth-realms-go-protocol-openid-connect-token.js → post-as-token-oauth2.js} +16 -35
- package/dist/commonjs/models/operations/post-as-token-oauth2.js.map +1 -0
- package/dist/commonjs/models/password-grant-request.d.ts +35 -0
- package/dist/commonjs/models/password-grant-request.d.ts.map +1 -0
- package/dist/commonjs/models/password-grant-request.js +60 -0
- package/dist/commonjs/models/password-grant-request.js.map +1 -0
- package/dist/commonjs/sdk/tokens.d.ts +2 -2
- package/dist/commonjs/sdk/tokens.d.ts.map +1 -1
- package/dist/commonjs/sdk/tokens.js +1 -1
- package/dist/commonjs/sdk/tokens.js.map +1 -1
- package/dist/esm/funcs/tokens-generate.d.ts +2 -2
- package/dist/esm/funcs/tokens-generate.d.ts.map +1 -1
- package/dist/esm/funcs/tokens-generate.js +7 -9
- package/dist/esm/funcs/tokens-generate.js.map +1 -1
- package/dist/esm/hooks/registration.js +4 -4
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/hooks/x-gbg-source.d.ts +36 -0
- package/dist/esm/hooks/x-gbg-source.d.ts.map +1 -0
- package/dist/esm/hooks/x-gbg-source.js +37 -0
- package/dist/esm/hooks/x-gbg-source.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.js +1 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +3 -3
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/matchers.js +1 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +1 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +17 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.js +7 -0
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +50 -16
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/client-credentials-grant-request.d.ts +25 -0
- package/dist/esm/models/client-credentials-grant-request.d.ts.map +1 -0
- package/dist/esm/models/client-credentials-grant-request.js +21 -0
- package/dist/esm/models/client-credentials-grant-request.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.d.ts +41 -12
- package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.js +38 -11
- package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/post-as-token-oauth2.d.ts +32 -0
- package/dist/esm/models/operations/post-as-token-oauth2.d.ts.map +1 -0
- package/dist/esm/models/operations/post-as-token-oauth2.js +35 -0
- package/dist/esm/models/operations/post-as-token-oauth2.js.map +1 -0
- package/dist/esm/models/password-grant-request.d.ts +35 -0
- package/dist/esm/models/password-grant-request.d.ts.map +1 -0
- package/dist/esm/models/password-grant-request.js +23 -0
- package/dist/esm/models/password-grant-request.js.map +1 -0
- package/dist/esm/sdk/tokens.d.ts +2 -2
- package/dist/esm/sdk/tokens.d.ts.map +1 -1
- package/dist/esm/sdk/tokens.js +1 -1
- package/dist/esm/sdk/tokens.js.map +1 -1
- package/examples/tokensGenerate.example.ts +1 -7
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/x-gbg-source.test.mjs +59 -0
- package/src/funcs/tokens-generate.ts +12 -23
- package/src/hooks/registration.ts +4 -4
- package/src/hooks/types.ts +1 -0
- package/src/hooks/x-gbg-source.ts +70 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/models/client-credentials-grant-request.ts +57 -0
- package/src/models/index.ts +2 -0
- package/src/models/operations/fetch-interaction.ts +105 -34
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/post-as-token-oauth2.ts +88 -0
- package/src/models/password-grant-request.ts +67 -0
- package/src/sdk/tokens.ts +3 -5
- package/dist/commonjs/lib/dlv.d.ts +0 -14
- package/dist/commonjs/lib/dlv.d.ts.map +0 -1
- package/dist/commonjs/lib/dlv.js +0 -49
- package/dist/commonjs/lib/dlv.js.map +0 -1
- package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
- package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
- package/dist/commonjs/lib/is-plain-object.js +0 -41
- package/dist/commonjs/lib/is-plain-object.js.map +0 -1
- package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts +0 -71
- package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts.map +0 -1
- package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.js.map +0 -1
- package/dist/esm/lib/dlv.d.ts +0 -14
- package/dist/esm/lib/dlv.d.ts.map +0 -1
- package/dist/esm/lib/dlv.js +0 -46
- package/dist/esm/lib/dlv.js.map +0 -1
- package/dist/esm/lib/is-plain-object.d.ts +0 -2
- package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
- package/dist/esm/lib/is-plain-object.js +0 -38
- package/dist/esm/lib/is-plain-object.js.map +0 -1
- package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts +0 -71
- package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts.map +0 -1
- package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.js +0 -54
- package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/operations/post-auth-realms-go-protocol-openid-connect-token.ts +0 -150
|
@@ -23,6 +23,30 @@ export type FetchInteractionRequest = {
|
|
|
23
23
|
instanceId: string;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
export const JourneyStatus2 = {
|
|
27
|
+
Completed: "Completed",
|
|
28
|
+
InProgress: "InProgress",
|
|
29
|
+
Failed: "Failed",
|
|
30
|
+
Paused: "Paused",
|
|
31
|
+
} as const;
|
|
32
|
+
export type JourneyStatus2 = OpenEnum<typeof JourneyStatus2>;
|
|
33
|
+
|
|
34
|
+
export type Journey2 = {
|
|
35
|
+
status: JourneyStatus2;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type ResponseBody2 = {
|
|
39
|
+
/**
|
|
40
|
+
* Journey instance identifier
|
|
41
|
+
*/
|
|
42
|
+
instanceId: string;
|
|
43
|
+
journey: Journey2;
|
|
44
|
+
/**
|
|
45
|
+
* True when the journey is still working and no interaction is available yet. Clients should poll /journey/interaction/fetch until this is absent/false and an `interaction` is returned.
|
|
46
|
+
*/
|
|
47
|
+
processing: boolean;
|
|
48
|
+
};
|
|
49
|
+
|
|
26
50
|
export const FetchInteractionStatusError = {
|
|
27
51
|
Error: "error",
|
|
28
52
|
} as const;
|
|
@@ -42,16 +66,16 @@ export type FetchInteractionError = {
|
|
|
42
66
|
message: string;
|
|
43
67
|
};
|
|
44
68
|
|
|
45
|
-
export const
|
|
69
|
+
export const JourneyStatus1 = {
|
|
46
70
|
Completed: "Completed",
|
|
47
71
|
InProgress: "InProgress",
|
|
48
72
|
Failed: "Failed",
|
|
49
73
|
Paused: "Paused",
|
|
50
74
|
} as const;
|
|
51
|
-
export type
|
|
75
|
+
export type JourneyStatus1 = OpenEnum<typeof JourneyStatus1>;
|
|
52
76
|
|
|
53
|
-
export type
|
|
54
|
-
status:
|
|
77
|
+
export type Journey1 = {
|
|
78
|
+
status: JourneyStatus1;
|
|
55
79
|
};
|
|
56
80
|
|
|
57
81
|
export const ResourceType = {
|
|
@@ -1444,7 +1468,7 @@ export type FetchInteractionContext = {
|
|
|
1444
1468
|
subject?: FetchInteractionSubject | undefined;
|
|
1445
1469
|
};
|
|
1446
1470
|
|
|
1447
|
-
export type
|
|
1471
|
+
export type ResponseBody1 = {
|
|
1448
1472
|
/**
|
|
1449
1473
|
* Journey instance identifier
|
|
1450
1474
|
*/
|
|
@@ -1453,7 +1477,7 @@ export type ResponseBody = {
|
|
|
1453
1477
|
* Interaction identifier
|
|
1454
1478
|
*/
|
|
1455
1479
|
interactionId: string;
|
|
1456
|
-
journey:
|
|
1480
|
+
journey: Journey1;
|
|
1457
1481
|
interaction: Interaction;
|
|
1458
1482
|
context?: FetchInteractionContext | undefined;
|
|
1459
1483
|
instructions?: Array<string> | undefined;
|
|
@@ -1463,7 +1487,10 @@ export type ResponseBody = {
|
|
|
1463
1487
|
/**
|
|
1464
1488
|
* Success
|
|
1465
1489
|
*/
|
|
1466
|
-
export type FetchInteractionResponse =
|
|
1490
|
+
export type FetchInteractionResponse =
|
|
1491
|
+
| ResponseBody1
|
|
1492
|
+
| FetchInteractionError
|
|
1493
|
+
| ResponseBody2;
|
|
1467
1494
|
|
|
1468
1495
|
/** @internal */
|
|
1469
1496
|
export type FetchInteractionSecurity$Outbound = {
|
|
@@ -1514,6 +1541,48 @@ export function fetchInteractionRequestToJSON(
|
|
|
1514
1541
|
);
|
|
1515
1542
|
}
|
|
1516
1543
|
|
|
1544
|
+
/** @internal */
|
|
1545
|
+
export const JourneyStatus2$inboundSchema: z.ZodMiniType<
|
|
1546
|
+
JourneyStatus2,
|
|
1547
|
+
unknown
|
|
1548
|
+
> = openEnums.inboundSchema(JourneyStatus2);
|
|
1549
|
+
|
|
1550
|
+
/** @internal */
|
|
1551
|
+
export const Journey2$inboundSchema: z.ZodMiniType<Journey2, unknown> = z
|
|
1552
|
+
.object({
|
|
1553
|
+
status: JourneyStatus2$inboundSchema,
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1556
|
+
export function journey2FromJSON(
|
|
1557
|
+
jsonString: string,
|
|
1558
|
+
): SafeParseResult<Journey2, SDKValidationError> {
|
|
1559
|
+
return safeParse(
|
|
1560
|
+
jsonString,
|
|
1561
|
+
(x) => Journey2$inboundSchema.parse(JSON.parse(x)),
|
|
1562
|
+
`Failed to parse 'Journey2' from JSON`,
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
export const ResponseBody2$inboundSchema: z.ZodMiniType<
|
|
1568
|
+
ResponseBody2,
|
|
1569
|
+
unknown
|
|
1570
|
+
> = z.object({
|
|
1571
|
+
instanceId: types.string(),
|
|
1572
|
+
journey: z.lazy(() => Journey2$inboundSchema),
|
|
1573
|
+
processing: types.boolean(),
|
|
1574
|
+
});
|
|
1575
|
+
|
|
1576
|
+
export function responseBody2FromJSON(
|
|
1577
|
+
jsonString: string,
|
|
1578
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
1579
|
+
return safeParse(
|
|
1580
|
+
jsonString,
|
|
1581
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1582
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
1583
|
+
);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1517
1586
|
/** @internal */
|
|
1518
1587
|
export const FetchInteractionStatusError$inboundSchema: z.ZodMiniEnum<
|
|
1519
1588
|
typeof FetchInteractionStatusError
|
|
@@ -1540,23 +1609,24 @@ export function fetchInteractionErrorFromJSON(
|
|
|
1540
1609
|
}
|
|
1541
1610
|
|
|
1542
1611
|
/** @internal */
|
|
1543
|
-
export const
|
|
1544
|
-
|
|
1612
|
+
export const JourneyStatus1$inboundSchema: z.ZodMiniType<
|
|
1613
|
+
JourneyStatus1,
|
|
1545
1614
|
unknown
|
|
1546
|
-
> = openEnums.inboundSchema(
|
|
1615
|
+
> = openEnums.inboundSchema(JourneyStatus1);
|
|
1547
1616
|
|
|
1548
1617
|
/** @internal */
|
|
1549
|
-
export const
|
|
1550
|
-
|
|
1551
|
-
|
|
1618
|
+
export const Journey1$inboundSchema: z.ZodMiniType<Journey1, unknown> = z
|
|
1619
|
+
.object({
|
|
1620
|
+
status: JourneyStatus1$inboundSchema,
|
|
1621
|
+
});
|
|
1552
1622
|
|
|
1553
|
-
export function
|
|
1623
|
+
export function journey1FromJSON(
|
|
1554
1624
|
jsonString: string,
|
|
1555
|
-
): SafeParseResult<
|
|
1625
|
+
): SafeParseResult<Journey1, SDKValidationError> {
|
|
1556
1626
|
return safeParse(
|
|
1557
1627
|
jsonString,
|
|
1558
|
-
(x) =>
|
|
1559
|
-
`Failed to parse '
|
|
1628
|
+
(x) => Journey1$inboundSchema.parse(JSON.parse(x)),
|
|
1629
|
+
`Failed to parse 'Journey1' from JSON`,
|
|
1560
1630
|
);
|
|
1561
1631
|
}
|
|
1562
1632
|
|
|
@@ -3740,26 +3810,26 @@ export function fetchInteractionContextFromJSON(
|
|
|
3740
3810
|
}
|
|
3741
3811
|
|
|
3742
3812
|
/** @internal */
|
|
3743
|
-
export const
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3813
|
+
export const ResponseBody1$inboundSchema: z.ZodMiniType<
|
|
3814
|
+
ResponseBody1,
|
|
3815
|
+
unknown
|
|
3816
|
+
> = z.object({
|
|
3817
|
+
instanceId: types.string(),
|
|
3818
|
+
interactionId: types.string(),
|
|
3819
|
+
journey: z.lazy(() => Journey1$inboundSchema),
|
|
3820
|
+
interaction: z.lazy(() => Interaction$inboundSchema),
|
|
3821
|
+
context: types.optional(z.lazy(() => FetchInteractionContext$inboundSchema)),
|
|
3822
|
+
instructions: types.optional(z.array(types.string())),
|
|
3823
|
+
outstanding: types.optional(z.array(types.string())),
|
|
3824
|
+
});
|
|
3755
3825
|
|
|
3756
|
-
export function
|
|
3826
|
+
export function responseBody1FromJSON(
|
|
3757
3827
|
jsonString: string,
|
|
3758
|
-
): SafeParseResult<
|
|
3828
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
3759
3829
|
return safeParse(
|
|
3760
3830
|
jsonString,
|
|
3761
|
-
(x) =>
|
|
3762
|
-
`Failed to parse '
|
|
3831
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
3832
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
3763
3833
|
);
|
|
3764
3834
|
}
|
|
3765
3835
|
|
|
@@ -3768,8 +3838,9 @@ export const FetchInteractionResponse$inboundSchema: z.ZodMiniType<
|
|
|
3768
3838
|
FetchInteractionResponse,
|
|
3769
3839
|
unknown
|
|
3770
3840
|
> = smartUnion([
|
|
3771
|
-
z.lazy(() =>
|
|
3841
|
+
z.lazy(() => ResponseBody1$inboundSchema),
|
|
3772
3842
|
z.lazy(() => FetchInteractionError$inboundSchema),
|
|
3843
|
+
z.lazy(() => ResponseBody2$inboundSchema),
|
|
3773
3844
|
]);
|
|
3774
3845
|
|
|
3775
3846
|
export function fetchInteractionResponseFromJSON(
|
|
@@ -11,7 +11,7 @@ export * from "./get-task-schema.js";
|
|
|
11
11
|
export * from "./get-tasks-schema.js";
|
|
12
12
|
export * from "./get-tasks.js";
|
|
13
13
|
export * from "./health.js";
|
|
14
|
-
export * from "./post-
|
|
14
|
+
export * from "./post-as-token-oauth2.js";
|
|
15
15
|
export * from "./start-journey.js";
|
|
16
16
|
export * from "./submit-interaction.js";
|
|
17
17
|
export * from "./update-task.js";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export const PostAsTokenOauth2ServerList = [
|
|
14
|
+
"https://api.auth.gbgplc.com",
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
export type PostAsTokenOauth2Request =
|
|
18
|
+
| models.PasswordGrantRequest
|
|
19
|
+
| models.ClientCredentialsGrantRequest;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Successfully retrieved access token.
|
|
23
|
+
*/
|
|
24
|
+
export type PostAsTokenOauth2Response = {
|
|
25
|
+
/**
|
|
26
|
+
* The access token used for authentication.
|
|
27
|
+
*/
|
|
28
|
+
accessToken?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Token expiration time in seconds.
|
|
31
|
+
*/
|
|
32
|
+
expiresIn?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The type of token, usually 'Bearer'.
|
|
35
|
+
*/
|
|
36
|
+
tokenType?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type PostAsTokenOauth2Request$Outbound =
|
|
41
|
+
| models.PasswordGrantRequest$Outbound
|
|
42
|
+
| models.ClientCredentialsGrantRequest$Outbound;
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const PostAsTokenOauth2Request$outboundSchema: z.ZodMiniType<
|
|
46
|
+
PostAsTokenOauth2Request$Outbound,
|
|
47
|
+
PostAsTokenOauth2Request
|
|
48
|
+
> = z.union([
|
|
49
|
+
models.PasswordGrantRequest$outboundSchema,
|
|
50
|
+
models.ClientCredentialsGrantRequest$outboundSchema,
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
export function postAsTokenOauth2RequestToJSON(
|
|
54
|
+
postAsTokenOauth2Request: PostAsTokenOauth2Request,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
PostAsTokenOauth2Request$outboundSchema.parse(postAsTokenOauth2Request),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const PostAsTokenOauth2Response$inboundSchema: z.ZodMiniType<
|
|
63
|
+
PostAsTokenOauth2Response,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.pipe(
|
|
66
|
+
z.object({
|
|
67
|
+
access_token: types.optional(types.string()),
|
|
68
|
+
expires_in: types.optional(types.number()),
|
|
69
|
+
token_type: types.optional(types.string()),
|
|
70
|
+
}),
|
|
71
|
+
z.transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"access_token": "accessToken",
|
|
74
|
+
"expires_in": "expiresIn",
|
|
75
|
+
"token_type": "tokenType",
|
|
76
|
+
});
|
|
77
|
+
}),
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
export function postAsTokenOauth2ResponseFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<PostAsTokenOauth2Response, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => PostAsTokenOauth2Response$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'PostAsTokenOauth2Response' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type PasswordGrantRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The client ID assigned to your organization.
|
|
11
|
+
*/
|
|
12
|
+
clientId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The client secret assigned to your organization.
|
|
15
|
+
*/
|
|
16
|
+
clientSecret: string;
|
|
17
|
+
/**
|
|
18
|
+
* The username for API authentication.
|
|
19
|
+
*/
|
|
20
|
+
username: string;
|
|
21
|
+
/**
|
|
22
|
+
* The password for API authentication.
|
|
23
|
+
*/
|
|
24
|
+
password: string;
|
|
25
|
+
/**
|
|
26
|
+
* Must always be set to 'password'.
|
|
27
|
+
*/
|
|
28
|
+
grantType: "password";
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type PasswordGrantRequest$Outbound = {
|
|
33
|
+
client_id: string;
|
|
34
|
+
client_secret: string;
|
|
35
|
+
username: string;
|
|
36
|
+
password: string;
|
|
37
|
+
grant_type: "password";
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const PasswordGrantRequest$outboundSchema: z.ZodMiniType<
|
|
42
|
+
PasswordGrantRequest$Outbound,
|
|
43
|
+
PasswordGrantRequest
|
|
44
|
+
> = z.pipe(
|
|
45
|
+
z.object({
|
|
46
|
+
clientId: z.string(),
|
|
47
|
+
clientSecret: z.string(),
|
|
48
|
+
username: z.string(),
|
|
49
|
+
password: z.string(),
|
|
50
|
+
grantType: z.literal("password"),
|
|
51
|
+
}),
|
|
52
|
+
z.transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
clientId: "client_id",
|
|
55
|
+
clientSecret: "client_secret",
|
|
56
|
+
grantType: "grant_type",
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export function passwordGrantRequestToJSON(
|
|
62
|
+
passwordGrantRequest: PasswordGrantRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
PasswordGrantRequest$outboundSchema.parse(passwordGrantRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
package/src/sdk/tokens.ts
CHANGED
|
@@ -12,14 +12,12 @@ export class Tokens extends ClientSDK {
|
|
|
12
12
|
* Generate access token
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Get an access token to authenticate API requests. If you're unfamiliar with the authentication process, check out the [authentication guide](/docs/developer-integration/execute-customer-journeys/authenticate) for more details.
|
|
15
|
+
* Get an access token to authenticate API requests. If you're unfamiliar with the authentication process, check out the [authentication guide](/docs/go-v2/developer-integration/execute-customer-journeys/authenticate) for more details.
|
|
16
16
|
*/
|
|
17
17
|
async generate(
|
|
18
|
-
request?:
|
|
19
|
-
| operations.PostAuthRealmsGoProtocolOpenidConnectTokenRequest
|
|
20
|
-
| undefined,
|
|
18
|
+
request?: operations.PostAsTokenOauth2Request | undefined,
|
|
21
19
|
options?: RequestOptions,
|
|
22
|
-
): Promise<operations.
|
|
20
|
+
): Promise<operations.PostAsTokenOauth2Response> {
|
|
23
21
|
return unwrapAsync(tokensGenerate(
|
|
24
22
|
this,
|
|
25
23
|
request,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param obj The object to walk
|
|
3
|
-
* @param key The key path to walk the object with
|
|
4
|
-
* @param def A default value to return if the result is undefined
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* dlv(obj, "a.b.c.d")
|
|
8
|
-
* @example
|
|
9
|
-
* dlv(object, ["a", "b", "c", "d"])
|
|
10
|
-
* @example
|
|
11
|
-
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
12
|
-
*/
|
|
13
|
-
export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
|
|
14
|
-
//# sourceMappingURL=dlv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
|
package/dist/commonjs/lib/dlv.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.dlv = dlv;
|
|
7
|
-
/*
|
|
8
|
-
MIT License
|
|
9
|
-
|
|
10
|
-
Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
|
|
11
|
-
|
|
12
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
14
|
-
the Software without restriction, including without limitation the rights to
|
|
15
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
-
subject to the following conditions:
|
|
18
|
-
|
|
19
|
-
The above copyright notice and this permission notice shall be included in all
|
|
20
|
-
copies or substantial portions of the Software.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @param obj The object to walk
|
|
31
|
-
* @param key The key path to walk the object with
|
|
32
|
-
* @param def A default value to return if the result is undefined
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* dlv(obj, "a.b.c.d")
|
|
36
|
-
* @example
|
|
37
|
-
* dlv(object, ["a", "b", "c", "d"])
|
|
38
|
-
* @example
|
|
39
|
-
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
40
|
-
*/
|
|
41
|
-
function dlv(obj, key, def, p, undef) {
|
|
42
|
-
key = Array.isArray(key) ? key : key.split(".");
|
|
43
|
-
for (p = 0; p < key.length; p++) {
|
|
44
|
-
const k = key[p];
|
|
45
|
-
obj = k != null && obj ? obj[k] : undef;
|
|
46
|
-
}
|
|
47
|
-
return obj === undef ? def : obj;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=dlv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dlv.js","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAqCH,kBAaC;AAhDD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isPlainObject = isPlainObject;
|
|
7
|
-
/*
|
|
8
|
-
MIT License
|
|
9
|
-
|
|
10
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
11
|
-
|
|
12
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
14
|
-
the Software without restriction, including without limitation the rights to
|
|
15
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
-
subject to the following conditions:
|
|
18
|
-
|
|
19
|
-
The above copyright notice and this permission notice shall be included in all
|
|
20
|
-
copies or substantial portions of the Software.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
-
*/
|
|
29
|
-
// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
|
|
30
|
-
function isPlainObject(value) {
|
|
31
|
-
if (typeof value !== "object" || value === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
const prototype = Object.getPrototypeOf(value);
|
|
35
|
-
return ((prototype === null ||
|
|
36
|
-
prototype === Object.prototype ||
|
|
37
|
-
Object.getPrototypeOf(prototype) === null) &&
|
|
38
|
-
!(Symbol.toStringTag in value) &&
|
|
39
|
-
!(Symbol.iterator in value));
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=is-plain-object.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA2BH,sCAaC;AAtCD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,SAAgB,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
|
package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
-
export declare const PostAuthRealmsGoProtocolOpenidConnectTokenServerList: readonly ["https://eu.platform.go.gbgplc.com", "https://us.platform.go.gbgplc.com", "https://au.platform.go.gbgplc.com"];
|
|
6
|
-
/**
|
|
7
|
-
* Must always be set to 'password'.
|
|
8
|
-
*/
|
|
9
|
-
export declare const GrantType: {
|
|
10
|
-
readonly Password: "password";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Must always be set to 'password'.
|
|
14
|
-
*/
|
|
15
|
-
export type GrantType = ClosedEnum<typeof GrantType>;
|
|
16
|
-
export type PostAuthRealmsGoProtocolOpenidConnectTokenRequest = {
|
|
17
|
-
/**
|
|
18
|
-
* The client ID assigned to your organization.
|
|
19
|
-
*/
|
|
20
|
-
clientId: string;
|
|
21
|
-
/**
|
|
22
|
-
* The client secret assigned to your organization.
|
|
23
|
-
*/
|
|
24
|
-
clientSecret: string;
|
|
25
|
-
/**
|
|
26
|
-
* The username for API authentication.
|
|
27
|
-
*/
|
|
28
|
-
username: string;
|
|
29
|
-
/**
|
|
30
|
-
* The password for API authentication.
|
|
31
|
-
*/
|
|
32
|
-
password: string;
|
|
33
|
-
/**
|
|
34
|
-
* Must always be set to 'password'.
|
|
35
|
-
*/
|
|
36
|
-
grantType: GrantType;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Successfully retrieved access token.
|
|
40
|
-
*/
|
|
41
|
-
export type PostAuthRealmsGoProtocolOpenidConnectTokenResponse = {
|
|
42
|
-
/**
|
|
43
|
-
* The access token used for authentication.
|
|
44
|
-
*/
|
|
45
|
-
accessToken?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Token expiration time in seconds.
|
|
48
|
-
*/
|
|
49
|
-
expiresIn?: number | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* The type of token, usually 'Bearer'.
|
|
52
|
-
*/
|
|
53
|
-
tokenType?: string | undefined;
|
|
54
|
-
};
|
|
55
|
-
/** @internal */
|
|
56
|
-
export declare const GrantType$outboundSchema: z.ZodMiniEnum<typeof GrantType>;
|
|
57
|
-
/** @internal */
|
|
58
|
-
export type PostAuthRealmsGoProtocolOpenidConnectTokenRequest$Outbound = {
|
|
59
|
-
client_id: string;
|
|
60
|
-
client_secret: string;
|
|
61
|
-
username: string;
|
|
62
|
-
password: string;
|
|
63
|
-
grant_type: string;
|
|
64
|
-
};
|
|
65
|
-
/** @internal */
|
|
66
|
-
export declare const PostAuthRealmsGoProtocolOpenidConnectTokenRequest$outboundSchema: z.ZodMiniType<PostAuthRealmsGoProtocolOpenidConnectTokenRequest$Outbound, PostAuthRealmsGoProtocolOpenidConnectTokenRequest>;
|
|
67
|
-
export declare function postAuthRealmsGoProtocolOpenidConnectTokenRequestToJSON(postAuthRealmsGoProtocolOpenidConnectTokenRequest: PostAuthRealmsGoProtocolOpenidConnectTokenRequest): string;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const PostAuthRealmsGoProtocolOpenidConnectTokenResponse$inboundSchema: z.ZodMiniType<PostAuthRealmsGoProtocolOpenidConnectTokenResponse, unknown>;
|
|
70
|
-
export declare function postAuthRealmsGoProtocolOpenidConnectTokenResponseFromJSON(jsonString: string): SafeParseResult<PostAuthRealmsGoProtocolOpenidConnectTokenResponse, SDKValidationError>;
|
|
71
|
-
//# sourceMappingURL=post-auth-realms-go-protocol-openid-connect-token.d.ts.map
|
package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-auth-realms-go-protocol-openid-connect-token.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/post-auth-realms-go-protocol-openid-connect-token.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,eAAO,MAAM,oDAAoD,0HAIvD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS;;CAEZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD,MAAM,MAAM,iDAAiD,GAAG;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kDAAkD,GAAG;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAEpE,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0DAA0D,GAAG;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gEAAgE,EAC3E,CAAC,CAAC,WAAW,CACX,0DAA0D,EAC1D,iDAAiD,CAgBlD,CAAC;AAEJ,wBAAgB,uDAAuD,CACrE,iDAAiD,EAC/C,iDAAiD,GAClD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,gEAAgE,EAC3E,CAAC,CAAC,WAAW,CAAC,kDAAkD,EAAE,OAAO,CActE,CAAC;AAEN,wBAAgB,0DAA0D,CACxE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,kDAAkD,EAClD,kBAAkB,CACnB,CASA"}
|
package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-auth-realms-go-protocol-openid-connect-token.js","sourceRoot":"","sources":["../../../../src/models/operations/post-auth-realms-go-protocol-openid-connect-token.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGH,0HASC;AAoBD,gIAcC;AAjJD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAAmD;AAGtC,QAAA,oDAAoD,GAAG;IAClE,mCAAmC;IACnC,mCAAmC;IACnC,mCAAmC;CAC3B,CAAC;AAEX;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,QAAQ,EAAE,UAAU;CACZ,CAAC;AA+CX,gBAAgB;AACH,QAAA,wBAAwB,GAAoC,CAAC,CAAC,IAAI,CAC7E,iBAAS,CACV,CAAC;AAWF,gBAAgB;AACH,QAAA,gEAAgE,GAIvE,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,gCAAwB;CACpC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEJ,SAAgB,uDAAuD,CACrE,iDACmD;IAEnD,OAAO,IAAI,CAAC,SAAS,CACnB,wEAAgE,CAAC,KAAK,CACpE,iDAAiD,CAClD,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,gEAAgE,GACE,CAAC;KAC3E,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEN,SAAgB,0DAA0D,CACxE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,wEAAgE,CAAC,KAAK,CACpE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,gFAAgF,CACjF,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/dlv.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param obj The object to walk
|
|
3
|
-
* @param key The key path to walk the object with
|
|
4
|
-
* @param def A default value to return if the result is undefined
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* dlv(obj, "a.b.c.d")
|
|
8
|
-
* @example
|
|
9
|
-
* dlv(object, ["a", "b", "c", "d"])
|
|
10
|
-
* @example
|
|
11
|
-
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
12
|
-
*/
|
|
13
|
-
export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
|
|
14
|
-
//# sourceMappingURL=dlv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
|